Mini Kabibi Habibi
/*!-----------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.48.0(b400f83fe3ac6a1780b7eed419dc4d83dbf32919)
* Released under the MIT license
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
*-----------------------------------------------------------------------------*/
define("vs/language/typescript/tsWorker", ["require","require"],(require)=>{
"use strict";var moduleExports=(()=>{var $ge=Object.defineProperty;var Upt=Object.getOwnPropertyDescriptor;var Hpt=Object.getOwnPropertyNames;var qpt=Object.prototype.hasOwnProperty;var hWe=(Vp,mi)=>{for(var pt in mi)$ge(Vp,pt,{get:mi[pt],enumerable:!0})},Jpt=(Vp,mi,pt,As)=>{if(mi&&typeof mi=="object"||typeof mi=="function")for(let Ra of Hpt(mi))!qpt.call(Vp,Ra)&&Ra!==pt&&$ge(Vp,Ra,{get:()=>mi[Ra],enumerable:!(As=Upt(mi,Ra))||As.enumerable});return Vp};var Kpt=Vp=>Jpt($ge({},"__esModule",{value:!0}),Vp);var rft={};hWe(rft,{TypeScriptWorker:()=>H5,create:()=>nft});var ove={};hWe(ove,{EndOfLineState:()=>$pt,IndentStyle:()=>Zpt,ScriptKind:()=>kD,ScriptTarget:()=>eft,TokenClass:()=>tft,createClassifier:()=>Xpt,createLanguageService:()=>rve,displayPartsToString:()=>Ypt,flattenDiagnosticMessageText:()=>Qpt,typescript:()=>ive});var cS=void 0,IZ={exports:{}};var dS=(()=>{var Vp=Object.defineProperty,mi=Object.getOwnPropertyNames,pt=(e,t)=>function(){return e&&(t=(0,e[mi(e)[0]])(e=0)),t},As=(e,t)=>function(){return t||(0,e[mi(e)[0]])((t={exports:{}}).exports,t),t.exports},Ra=(e,t)=>{for(var r in t)Vp(e,r,{get:t[r],enumerable:!0})},uh,yp,q5,AWe=pt({"src/compiler/corePublic.ts"(){"use strict";uh="5.4",yp="5.4.5",q5=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(q5||{})}});function yn(e){return e?e.length:0}function an(e,t){if(e)for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i)return i}}function RZ(e,t){if(e)for(let r=e.length-1;r>=0;r--){let i=t(e[r],r);if(i)return i}}function ml(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i!==void 0)return i}}function cM(e,t){for(let r of e){let i=t(r);if(i!==void 0)return i}}function ave(e,t,r){let i=r;if(e){let o=0;for(let s of e)i=t(i,s,o),o++}return i}function J5(e,t,r){let i=[];x.assertEqual(e.length,t.length);for(let o=0;o<e.length;o++)i.push(r(e[o],t[o],o));return i}function K5(e,t){if(e.length<=1)return e;let r=[];for(let i=0,o=e.length;i<o;i++)i&&r.push(t),r.push(e[i]);return r}function ji(e,t){if(e){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function Dr(e,t,r){if(e!==void 0)for(let i=r??0;i<e.length;i++){let o=e[i];if(t(o,i))return o}}function hA(e,t,r){if(e!==void 0)for(let i=r??e.length-1;i>=0;i--){let o=e[i];if(t(o,i))return o}}function Tl(e,t,r){if(e===void 0)return-1;for(let i=r??0;i<e.length;i++)if(t(e[i],i))return i;return-1}function Uw(e,t,r){if(e===void 0)return-1;for(let i=r??e.length-1;i>=0;i--)if(t(e[i],i))return i;return-1}function sve(e,t){for(let r=0;r<e.length;r++){let i=t(e[r],r);if(i)return i}return x.fail()}function To(e,t,r=Hg){if(e){for(let i of e)if(r(i,t))return!0}return!1}function dM(e,t,r=Hg){return e.length===t.length&&e.every((i,o)=>r(i,t[o]))}function DZ(e,t,r){for(let i=r||0;i<e.length;i++)if(To(t,e.charCodeAt(i)))return i;return-1}function Wv(e,t){let r=0;if(e)for(let i=0;i<e.length;i++){let o=e[i];t(o,i)&&r++}return r}function Cr(e,t){if(e){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;if(i<r){let o=e.slice(0,i);for(i++;i<r;){let s=e[i];t(s)&&o.push(s),i++}return o}}return e}function X5(e,t){let r=0;for(let i=0;i<e.length;i++)t(e[i],i,e)&&(e[r]=e[i],r++);e.length=r}function ph(e){e.length=0}function nn(e,t){let r;if(e){r=[];for(let i=0;i<e.length;i++)r.push(t(e[i],i))}return r}function*OD(e,t){for(let r of e)yield t(r)}function sc(e,t){if(e)for(let r=0;r<e.length;r++){let i=e[r],o=t(i,r);if(i!==o){let s=e.slice(0,r);for(s.push(o),r++;r<e.length;r++)s.push(t(e[r],r));return s}}return e}function Ff(e){let t=[];for(let r of e)r&&(oo(r)?Pr(t,r):t.push(r));return t}function ta(e,t){let r;if(e)for(let i=0;i<e.length;i++){let o=t(e[i],i);o&&(oo(o)?r=Pr(r,o):r=pn(r,o))}return r||je}function wD(e,t){let r=[];if(e)for(let i=0;i<e.length;i++){let o=t(e[i],i);o&&(oo(o)?Pr(r,o):r.push(o))}return r}function*Y5(e,t){for(let r of e){let i=t(r);i&&(yield*i)}}function CZ(e,t){let r;if(e)for(let i=0;i<e.length;i++){let o=e[i],s=t(o,i);(r||o!==s||oo(s))&&(r||(r=e.slice(0,i)),oo(s)?Pr(r,s):r.push(s))}return r||e}function $5(e,t){let r=[];for(let i=0;i<e.length;i++){let o=t(e[i],i);if(o===void 0)return;r.push(o)}return r}function Fi(e,t){let r=[];if(e)for(let i=0;i<e.length;i++){let o=t(e[i],i);o!==void 0&&r.push(o)}return r}function*WD(e,t){for(let r of e){let i=t(r);i!==void 0&&(yield i)}}function NZ(e,t){if(!e)return;let r=new Map;return e.forEach((i,o)=>{let s=t(o,i);if(s!==void 0){let[l,d]=s;l!==void 0&&d!==void 0&&r.set(l,d)}}),r}function FD(e,t,r){if(e.has(t))return e.get(t);let i=r();return e.set(t,i),i}function db(e,t){return e.has(t)?!1:(e.add(t),!0)}function*PZ(e){yield e}function Q5(e,t,r){let i;if(e){i=[];let o=e.length,s,l,d=0,p=0;for(;d<o;){for(;p<o;){let h=e[p];if(l=t(h,p),p===0)s=l;else if(l!==s)break;p++}if(d<p){let h=r(e.slice(d,p),s,d,p);h&&i.push(h),d=p}s=l,p++}}return i}function MZ(e,t){if(!e)return;let r=new Map;return e.forEach((i,o)=>{let[s,l]=t(o,i);r.set(s,l)}),r}function ct(e,t){if(e)if(t){for(let r of e)if(t(r))return!0}else return e.length>0;return!1}function Z5(e,t,r){let i;for(let o=0;o<e.length;o++)t(e[o])?i=i===void 0?o:i:i!==void 0&&(r(i,o),i=void 0);i!==void 0&&r(i,e.length)}function ro(e,t){return ct(t)?ct(e)?[...e,...t]:t:e}function IWe(e,t){return t}function uM(e){return e.map(IWe)}function xWe(e,t,r){let i=uM(e);lve(e,i,r);let o=e[i[0]],s=[i[0]];for(let l=1;l<i.length;l++){let d=i[l],p=e[d];t(o,p)||(s.push(d),o=p)}return s.sort(),s.map(l=>e[l])}function RWe(e,t){let r=[];for(let i of e)jp(r,i,t);return r}function NE(e,t,r){return e.length===0?[]:e.length===1?e.slice():r?xWe(e,t,r):RWe(e,t)}function DWe(e,t){if(e.length===0)return je;let r=e[0],i=[r];for(let o=1;o<e.length;o++){let s=e[o];switch(t(s,r)){case!0:case 0:continue;case-1:return x.fail("Array is unsorted.")}i.push(r=s)}return i}function eB(){return[]}function Fv(e,t,r,i){if(e.length===0)return e.push(t),!0;let o=Vg(e,t,Ps,r);return o<0?(e.splice(~o,0,t),!0):i?(e.splice(o,0,t),!0):!1}function zD(e,t,r){return DWe(uS(e,t),r||t||gd)}function Hw(e,t){if(e.length<2)return!0;for(let r=1,i=e.length;r<i;r++)if(t(e[r-1],e[r])===1)return!1;return!0}function BD(e,t,r,i){let o=3;if(e.length<2)return o;let s=t(e[0]);for(let l=1,d=e.length;l<d&&o!==0;l++){let p=t(e[l]);o&1&&r(s,p)>0&&(o&=-2),o&2&&i(s,p)>0&&(o&=-3),s=p}return o}function mm(e,t,r=Hg){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!r(e[i],t[i],i))return!1;return!0}function pM(e){let t;if(e)for(let r=0;r<e.length;r++){let i=e[r];(t||!i)&&(t||(t=e.slice(0,r)),i&&t.push(i))}return t||e}function LZ(e,t,r){if(!t||!e||t.length===0||e.length===0)return t;let i=[];e:for(let o=0,s=0;s<t.length;s++){s>0&&x.assertGreaterThanOrEqual(r(t[s],t[s-1]),0);t:for(let l=o;o<e.length;o++)switch(o>l&&x.assertGreaterThanOrEqual(r(e[o],e[o-1]),0),r(t[s],e[o])){case-1:i.push(t[s]);continue e;case 0:continue e;case 1:continue t}}return i}function pn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function x1(e,t){return e===void 0?t:t===void 0?e:oo(e)?oo(t)?ro(e,t):pn(e,t):oo(t)?pn(t,e):[e,t]}function kZ(e,t){return t<0?e.length+t:t}function Pr(e,t,r,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,i);r=r===void 0?0:kZ(t,r),i=i===void 0?t.length:kZ(t,i);for(let o=r;o<i&&o<t.length;o++)t[o]!==void 0&&e.push(t[o]);return e}function jp(e,t,r){return To(e,t,r)?!1:(e.push(t),!0)}function Kh(e,t,r){return e?(jp(e,t,r),e):[t]}function lve(e,t,r){t.sort((i,o)=>r(e[i],e[o])||Ms(i,o))}function uS(e,t){return e.length===0?e:e.slice().sort(t)}function*tB(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Gg(e,t){let r=uM(e);return lve(e,r,t),r.map(i=>e[i])}function nB(e,t,r,i){for(;r<i;){if(e[r]!==t[r])return!1;r++}return!0}function Ac(e){return e===void 0||e.length===0?void 0:e[0]}function qw(e){if(e)for(let t of e)return t}function Sa(e){return x.assert(e.length!==0),e[0]}function rB(e){for(let t of e)return t;x.fail("iterator is empty")}function Ns(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function Da(e){return x.assert(e.length!==0),e[e.length-1]}function x_(e){return e&&e.length===1?e[0]:void 0}function iB(e){return x.checkDefined(x_(e))}function R_(e){return e&&e.length===1?e[0]:e}function oB(e,t,r){let i=e.slice(0);return i[t]=r,i}function Vg(e,t,r,i,o){return gA(e,r(t),r,i,o)}function gA(e,t,r,i,o){if(!ct(e))return-1;let s=o||0,l=e.length-1;for(;s<=l;){let d=s+(l-s>>1),p=r(e[d],d);switch(i(p,t)){case-1:s=d+1;break;case 0:return d;case 1:l=d-1;break}}return~s}function Nd(e,t,r,i,o){if(e&&e.length>0){let s=e.length;if(s>0){let l=i===void 0||i<0?0:i,d=o===void 0||l+o>s-1?s-1:l+o,p;for(arguments.length<=2?(p=e[l],l++):p=r;l<=d;)p=t(p,e[l],l),l++;return p}}return r}function rs(e,t){return Gv.call(e,t)}function Jw(e,t){return Gv.call(e,t)?e[t]:void 0}function fh(e){let t=[];for(let r in e)Gv.call(e,r)&&t.push(r);return t}function cve(e){let t=[];do{let r=Object.getOwnPropertyNames(e);for(let i of r)jp(t,i)}while(e=Object.getPrototypeOf(e));return t}function vA(e){let t=[];for(let r in e)Gv.call(e,r)&&t.push(e[r]);return t}function OZ(e,t){let r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i);return r}function bo(e,t){let r=[];for(let i of e)r.push(t?t(i):i);return r}function R1(e,...t){for(let r of t)if(r!==void 0)for(let i in r)rs(r,i)&&(e[i]=r[i]);return e}function wZ(e,t,r=Hg){if(e===t)return!0;if(!e||!t)return!1;for(let i in e)if(Gv.call(e,i)&&(!Gv.call(t,i)||!r(e[i],t[i])))return!1;for(let i in t)if(Gv.call(t,i)&&!Gv.call(e,i))return!1;return!0}function PE(e,t,r=Ps){let i=new Map;for(let o of e){let s=t(o);s!==void 0&&i.set(s,r(o))}return i}function WZ(e,t,r=Ps){let i=[];for(let o of e)i[t(o)]=r(o);return i}function fM(e,t,r=Ps){let i=bp();for(let o of e)i.add(t(o),r(o));return i}function GD(e,t,r=Ps){return bo(fM(e,t).values(),r)}function Kw(e,t){let r={};if(e)for(let i of e){let o=`${t(i)}`;(r[o]??(r[o]=[])).push(i)}return r}function aB(e){let t={};for(let r in e)Gv.call(e,r)&&(t[r]=e[r]);return t}function Xw(e,t){let r={};for(let i in t)Gv.call(t,i)&&(r[i]=t[i]);for(let i in e)Gv.call(e,i)&&(r[i]=e[i]);return r}function sB(e,t){for(let r in t)Gv.call(t,r)&&(e[r]=t[r])}function Wo(e,t){return t?t.bind(e):void 0}function bp(){let e=new Map;return e.add=CWe,e.remove=NWe,e}function CWe(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}function NWe(e,t){let r=this.get(e);r&&(bA(r,t),r.length||this.delete(e))}function mM(e){let t=e?.slice()||[],r=0;function i(){return r===t.length}function o(...l){t.push(...l)}function s(){if(i())throw new Error("Queue is empty");let l=t[r];if(t[r]=void 0,r++,r>100&&r>t.length>>1){let d=t.length-r;t.copyWithin(0,r),t.length=d,r=0}return l}return{enqueue:o,dequeue:s,isEmpty:i}}function lB(e,t){let r=new Map,i=0;function*o(){for(let l of r.values())oo(l)?yield*l:yield l}let s={has(l){let d=e(l);if(!r.has(d))return!1;let p=r.get(d);if(!oo(p))return t(p,l);for(let h of p)if(t(h,l))return!0;return!1},add(l){let d=e(l);if(r.has(d)){let p=r.get(d);if(oo(p))To(p,l,t)||(p.push(l),i++);else{let h=p;t(h,l)||(r.set(d,[h,l]),i++)}}else r.set(d,l),i++;return this},delete(l){let d=e(l);if(!r.has(d))return!1;let p=r.get(d);if(oo(p)){for(let h=0;h<p.length;h++)if(t(p[h],l))return p.length===1?r.delete(d):p.length===2?r.set(d,p[1-h]):uB(p,h),i--,!0}else if(t(p,l))return r.delete(d),i--,!0;return!1},clear(){r.clear(),i=0},get size(){return i},forEach(l){for(let d of bo(r.values()))if(oo(d))for(let p of d)l(p,p,s);else{let p=d;l(p,p,s)}},keys(){return o()},values(){return o()},*entries(){for(let l of o())yield[l,l]},[Symbol.iterator]:()=>o(),[Symbol.toStringTag]:r[Symbol.toStringTag]};return s}function oo(e){return Array.isArray(e)}function yA(e){return oo(e)?e:[e]}function fo(e){return typeof e=="string"}function jg(e){return typeof e=="number"}function Vr(e,t){return e!==void 0&&t(e)?e:void 0}function Fo(e,t){return e!==void 0&&t(e)?e:x.fail(`Invalid cast. The supplied value ${e} did not pass the test '${x.getFunctionName(t)}'.`)}function Ca(e){}function _m(){return!1}function Ug(){return!0}function ub(){}function Ps(e){return e}function FZ(e){return e.toLowerCase()}function D_(e){return YZ.test(e)?e.replace(YZ,FZ):e}function Ro(){throw new Error("Not implemented")}function Kd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function C_(e){let t=new Map;return r=>{let i=`${typeof r}:${r}`,o=t.get(i);return o===void 0&&!t.has(i)&&(o=e(r),t.set(i,o)),o}}function dve(e){let t=new WeakMap;return r=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(r),t.set(r,i)),i}}function zZ(e,t){return(...r)=>{let i=t.get(r);return i===void 0&&!t.has(r)&&(i=e(...r),t.set(r,i)),i}}function uve(e,t,r,i,o){if(o){let s=[];for(let l=0;l<arguments.length;l++)s[l]=arguments[l];return l=>Nd(s,(d,p)=>p(d),l)}else return i?s=>i(r(t(e(s)))):r?s=>r(t(e(s))):t?s=>t(e(s)):e?s=>e(s):s=>s}function Hg(e,t){return e===t}function pb(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function pS(e,t){return Hg(e,t)}function pve(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Ms(e,t){return pve(e,t)}function Yw(e,t){return Ms(e?.start,t?.start)||Ms(e?.length,t?.length)}function cB(e,t){return Nd(e,(r,i)=>t(r,i)===-1?r:i)}function $w(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),e<t?-1:e>t?1:0)}function BZ(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),e<t?-1:e>t?1:0)}function gd(e,t){return pve(e,t)}function D1(e){return e?$w:gd}function GZ(){return gB}function VZ(e){gB!==e&&(gB=e,$Z=void 0)}function _M(e,t){return($Z||($Z=_ve(gB)))(e,t)}function jZ(e,t,r,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[r],t[r])}function zv(e,t){return Ms(e?1:0,t?1:0)}function VD(e,t,r){let i=Math.max(2,Math.floor(e.length*.34)),o=Math.floor(e.length*.4)+1,s;for(let l of t){let d=r(l);if(d!==void 0&&Math.abs(d.length-e.length)<=i){if(d===e||d.length<3&&d.toLowerCase()!==e.toLowerCase())continue;let p=PWe(e,d,o-.1);if(p===void 0)continue;x.assert(p<o),o=p,s=l}}return s}function PWe(e,t,r){let i=new Array(t.length+1),o=new Array(t.length+1),s=r+.01;for(let d=0;d<=t.length;d++)i[d]=d;for(let d=1;d<=e.length;d++){let p=e.charCodeAt(d-1),h=Math.ceil(d>r?d-r:1),m=Math.floor(t.length>r+d?r+d:t.length);o[0]=d;let v=d;for(let S=1;S<h;S++)o[S]=s;for(let S=h;S<=m;S++){let A=e[d-1].toLowerCase()===t[S-1].toLowerCase()?i[S-1]+.1:i[S-1]+2,C=p===t.charCodeAt(S-1)?i[S-1]:Math.min(i[S]+1,o[S-1]+1,A);o[S]=C,v=Math.min(v,C)}for(let S=m+1;S<=t.length;S++)o[S]=s;if(v>r)return;let E=i;i=o,o=E}let l=i[t.length];return l>r?void 0:l}function Zs(e,t,r){let i=e.length-t.length;return i>=0&&(r?pb(e.slice(i),t):e.indexOf(t,i)===i)}function C1(e,t){return Zs(e,t)?e.slice(0,e.length-t.length):e}function UZ(e,t){return Zs(e,t)?e.slice(0,e.length-t.length):void 0}function dB(e){let t=e.length;for(let r=t-1;r>0;r--){let i=e.charCodeAt(r);if(i>=48&&i<=57)do--r,i=e.charCodeAt(r);while(r>0&&i>=48&&i<=57);else if(r>4&&(i===110||i===78)){if(--r,i=e.charCodeAt(r),i!==105&&i!==73||(--r,i=e.charCodeAt(r),i!==109&&i!==77))break;--r,i=e.charCodeAt(r)}else break;if(i!==45&&i!==46)break;t=r}return t===e.length?e:e.slice(0,t)}function N1(e,t){for(let r=0;r<e.length;r++)if(e[r]===t)return Bv(e,r),!0;return!1}function Bv(e,t){for(let r=t;r<e.length-1;r++)e[r]=e[r+1];e.pop()}function uB(e,t){e[t]=e[e.length-1],e.pop()}function bA(e,t){return MWe(e,r=>r===t)}function MWe(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return uB(e,r),!0;return!1}function od(e){return e?Ps:D_}function HZ({prefix:e,suffix:t}){return`${e}*${t}`}function qZ(e,t){return x.assert(Qw(e,t)),t.substring(e.prefix.length,t.length-e.suffix.length)}function pB(e,t,r){let i,o=-1;for(let s of e){let l=t(s);Qw(l,r)&&l.prefix.length>o&&(o=l.prefix.length,i=s)}return i}function Ui(e,t,r){return r?pb(e.slice(0,t.length),t):e.lastIndexOf(t,0)===0}function jD(e,t){return Ui(e,t)?e.substr(t.length):e}function fB(e,t,r=Ps){return Ui(r(e),r(t))?e.substring(t.length):void 0}function Qw({prefix:e,suffix:t},r){return r.length>=e.length+t.length&&Ui(r,e)&&Zs(r,t)}function Zw(e,t){return r=>e(r)&&t(r)}function hm(...e){return(...t)=>{let r;for(let i of e)if(r=i(...t),r)return r;return r}}function e8(e){return(...t)=>!e(...t)}function fve(e){}function EA(e){return e===void 0?void 0:[e]}function t8(e,t,r,i,o,s){s=s||Ca;let l=0,d=0,p=e.length,h=t.length,m=!1;for(;l<p&&d<h;){let v=e[l],E=t[d],S=r(v,E);S===-1?(i(v),l++,m=!0):S===1?(o(E),d++,m=!0):(s(E,v),l++,d++)}for(;l<p;)i(e[l++]),m=!0;for(;d<h;)o(t[d++]),m=!0;return m}function JZ(e){let t=[];return mve(e,t,void 0,0),t}function mve(e,t,r,i){for(let o of e[i]){let s;r?(s=r.slice(),s.push(o)):s=[o],i===e.length-1?t.push(s):mve(e,t,s,i+1)}}function n8(e,t){if(e){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;return e.slice(0,i)}}function KZ(e,t){if(e){let r=e.length,i=0;for(;i<r&&t(e[i]);)i++;return e.slice(i)}}function mB(){return typeof process<"u"&&!!process.nextTick&&!process.browser&&typeof IZ=="object"}var je,r8,XZ,_B,qg,Gv,YZ,hB,_ve,$Z,gB,LWe=pt({"src/compiler/core.ts"(){"use strict";wo(),je=[],r8=new Map,XZ=new Set,_B=(e=>(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(_B||{}),qg=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=kZ(e,t),t<e.length))return e[t]},Gv=Object.prototype.hasOwnProperty,YZ=/[^\u0130\u0131\u00DFa-z0-9\\/:\-_. ]+/g,hB=(e=>(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(hB||{}),_ve=(()=>{return t;function e(r,i,o){if(r===i)return 0;if(r===void 0)return-1;if(i===void 0)return 1;let s=o(r,i);return s<0?-1:s>0?1:0}function t(r){let i=new Intl.Collator(r,{usage:"sort",sensitivity:"variant"}).compare;return(o,s)=>e(o,s,i)}})()}}),vB,x,kWe=pt({"src/compiler/debug.ts"(){"use strict";wo(),wo(),vB=(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))(vB||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(Jt){return e.currentLogLevel<=Jt}e.shouldLog=r;function i(Jt,Ue){e.loggingHost&&r(Jt)&&e.loggingHost.log(Jt,Ue)}function o(Jt){i(3,Jt)}e.log=o,(Jt=>{function Ue(ni){i(1,ni)}Jt.error=Ue;function Rt(ni){i(2,ni)}Jt.warn=Rt;function mn(ni){i(3,ni)}Jt.log=mn;function qr(ni){i(4,ni)}Jt.trace=qr})(o=e.log||(e.log={}));let s={};function l(){return t}e.getAssertionLevel=l;function d(Jt){let Ue=t;if(t=Jt,Jt>Ue)for(let Rt of fh(s)){let mn=s[Rt];mn!==void 0&&e[Rt]!==mn.assertion&&Jt>=mn.level&&(e[Rt]=mn,s[Rt]=void 0)}}e.setAssertionLevel=d;function p(Jt){return t>=Jt}e.shouldAssert=p;function h(Jt,Ue){return p(Jt)?!0:(s[Ue]={level:Jt,assertion:e[Ue]},e[Ue]=Ca,!1)}function m(Jt,Ue){let Rt=new Error(Jt?`Debug Failure. ${Jt}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Rt,Ue||m),Rt}e.fail=m;function v(Jt,Ue,Rt){return m(`${Ue||"Unexpected node."}\r
Node ${pe(Jt.kind)} was unexpected.`,Rt||v)}e.failBadSyntaxKind=v;function E(Jt,Ue,Rt,mn){Jt||(Ue=Ue?`False expression: ${Ue}`:"False expression.",Rt&&(Ue+=`\r
Verbose Debug Information: `+(typeof Rt=="string"?Rt:Rt())),m(Ue,mn||E))}e.assert=E;function S(Jt,Ue,Rt,mn,qr){if(Jt!==Ue){let ni=Rt?mn?`${Rt} ${mn}`:Rt:"";m(`Expected ${Jt} === ${Ue}. ${ni}`,qr||S)}}e.assertEqual=S;function A(Jt,Ue,Rt,mn){Jt>=Ue&&m(`Expected ${Jt} < ${Ue}. ${Rt||""}`,mn||A)}e.assertLessThan=A;function C(Jt,Ue,Rt){Jt>Ue&&m(`Expected ${Jt} <= ${Ue}`,Rt||C)}e.assertLessThanOrEqual=C;function R(Jt,Ue,Rt){Jt<Ue&&m(`Expected ${Jt} >= ${Ue}`,Rt||R)}e.assertGreaterThanOrEqual=R;function L(Jt,Ue,Rt){Jt==null&&m(Ue,Rt||L)}e.assertIsDefined=L;function G(Jt,Ue,Rt){return L(Jt,Ue,Rt||G),Jt}e.checkDefined=G;function U(Jt,Ue,Rt){for(let mn of Jt)L(mn,Ue,Rt||U)}e.assertEachIsDefined=U;function K(Jt,Ue,Rt){return U(Jt,Ue,Rt||K),Jt}e.checkEachDefined=K;function F(Jt,Ue="Illegal value:",Rt){let mn=typeof Jt=="object"&&rs(Jt,"kind")&&rs(Jt,"pos")?"SyntaxKind: "+pe(Jt.kind):JSON.stringify(Jt);return m(`${Ue} ${mn}`,Rt||F)}e.assertNever=F;function oe(Jt,Ue,Rt,mn){h(1,"assertEachNode")&&E(Ue===void 0||ji(Jt,Ue),Rt||"Unexpected node.",()=>`Node array did not pass test '${ee(Ue)}'.`,mn||oe)}e.assertEachNode=oe;function W(Jt,Ue,Rt,mn){h(1,"assertNode")&&E(Jt!==void 0&&(Ue===void 0||Ue(Jt)),Rt||"Unexpected node.",()=>`Node ${pe(Jt?.kind)} did not pass test '${ee(Ue)}'.`,mn||W)}e.assertNode=W;function $(Jt,Ue,Rt,mn){h(1,"assertNotNode")&&E(Jt===void 0||Ue===void 0||!Ue(Jt),Rt||"Unexpected node.",()=>`Node ${pe(Jt.kind)} should not have passed test '${ee(Ue)}'.`,mn||$)}e.assertNotNode=$;function de(Jt,Ue,Rt,mn){h(1,"assertOptionalNode")&&E(Ue===void 0||Jt===void 0||Ue(Jt),Rt||"Unexpected node.",()=>`Node ${pe(Jt?.kind)} did not pass test '${ee(Ue)}'.`,mn||de)}e.assertOptionalNode=de;function fe(Jt,Ue,Rt,mn){h(1,"assertOptionalToken")&&E(Ue===void 0||Jt===void 0||Jt.kind===Ue,Rt||"Unexpected node.",()=>`Node ${pe(Jt?.kind)} was not a '${pe(Ue)}' token.`,mn||fe)}e.assertOptionalToken=fe;function q(Jt,Ue,Rt){h(1,"assertMissingNode")&&E(Jt===void 0,Ue||"Unexpected node.",()=>`Node ${pe(Jt.kind)} was unexpected'.`,Rt||q)}e.assertMissingNode=q;function H(Jt){}e.type=H;function ee(Jt){if(typeof Jt!="function")return"";if(rs(Jt,"name"))return Jt.name;{let Ue=Function.prototype.toString.call(Jt),Rt=/^function\s+([\w$]+)\s*\(/.exec(Ue);return Rt?Rt[1]:""}}e.getFunctionName=ee;function le(Jt){return`{ name: ${Ii(Jt.escapedName)}; flags: ${ft(Jt.flags)}; declarations: ${nn(Jt.declarations,Ue=>pe(Ue.kind))} }`}e.formatSymbol=le;function Ee(Jt=0,Ue,Rt){let mn=Z(Ue);if(Jt===0)return mn.length>0&&mn[0][0]===0?mn[0][1]:"0";if(Rt){let qr=[],ni=Jt;for(let[ki,so]of mn){if(ki>Jt)break;ki!==0&&ki&Jt&&(qr.push(so),ni&=~ki)}if(ni===0)return qr.join("|")}else for(let[qr,ni]of mn)if(qr===Jt)return ni;return Jt.toString()}e.formatEnum=Ee;let ce=new Map;function Z(Jt){let Ue=ce.get(Jt);if(Ue)return Ue;let Rt=[];for(let qr in Jt){let ni=Jt[qr];typeof ni=="number"&&Rt.push([ni,qr])}let mn=Gg(Rt,(qr,ni)=>Ms(qr[0],ni[0]));return ce.set(Jt,mn),mn}function pe(Jt){return Ee(Jt,o8,!1)}e.formatSyntaxKind=pe;function Ae(Jt){return Ee(Jt,v8,!1)}e.formatSnippetKind=Ae;function Oe(Jt){return Ee(Jt,h8,!1)}e.formatScriptKind=Oe;function _e(Jt){return Ee(Jt,a8,!0)}e.formatNodeFlags=_e;function be(Jt){return Ee(Jt,s8,!0)}e.formatModifierFlags=be;function Te(Jt){return Ee(Jt,g8,!0)}e.formatTransformFlags=Te;function De(Jt){return Ee(Jt,y8,!0)}e.formatEmitFlags=De;function ft(Jt){return Ee(Jt,p8,!0)}e.formatSymbolFlags=ft;function he(Jt){return Ee(Jt,f8,!0)}e.formatTypeFlags=he;function Le(Jt){return Ee(Jt,_8,!0)}e.formatSignatureFlags=Le;function Ke(Jt){return Ee(Jt,m8,!0)}e.formatObjectFlags=Ke;function Dt(Jt){return Ee(Jt,yM,!0)}e.formatFlowFlags=Dt;function st(Jt){return Ee(Jt,l8,!0)}e.formatRelationComparisonResult=st;function Ge(Jt){return Ee(Jt,c4,!0)}e.formatCheckMode=Ge;function ot(Jt){return Ee(Jt,d4,!0)}e.formatSignatureCheckMode=ot;function Vt(Jt){return Ee(Jt,l4,!0)}e.formatTypeFacts=Vt;let jt=!1,gn;function On(Jt){"__debugFlowFlags"in Jt||Object.defineProperties(Jt,{__tsDebuggerDisplay:{value(){let Ue=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Rt=this.flags&-2048;return`${Ue}${Rt?` (${Dt(Rt)})`:""}`}},__debugFlowFlags:{get(){return Ee(this.flags,yM,!0)}},__debugToString:{value(){return cr(this)}}})}function en(Jt){jt&&(typeof Object.setPrototypeOf=="function"?(gn||(gn=Object.create(Object.prototype),On(gn)),Object.setPrototypeOf(Jt,gn)):On(Jt))}e.attachFlowNodeDebugInfo=en;let zt;function Wt(Jt){"__tsDebuggerDisplay"in Jt||Object.defineProperties(Jt,{__tsDebuggerDisplay:{value(Ue){return Ue=String(Ue).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Ue}`}}})}function ei(Jt){jt&&(typeof Object.setPrototypeOf=="function"?(zt||(zt=Object.create(Array.prototype),Wt(zt)),Object.setPrototypeOf(Jt,zt)):Wt(Jt))}e.attachNodeArrayDebugInfo=ei;function Ki(){if(jt)return;let Jt=new WeakMap,Ue=new WeakMap;Object.defineProperties(wc.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let mn=this.flags&33554432?"TransientSymbol":"Symbol",qr=this.flags&-33554433;return`${mn} '${$s(this)}'${qr?` (${ft(qr)})`:""}`}},__debugFlags:{get(){return ft(this.flags)}}}),Object.defineProperties(wc.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let mn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",qr=this.flags&524288?this.objectFlags&-1344:0;return`${mn}${this.symbol?` '${$s(this.symbol)}'`:""}${qr?` (${Ke(qr)})`:""}`}},__debugFlags:{get(){return he(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Ke(this.objectFlags):""}},__debugTypeToString:{value(){let mn=Jt.get(this);return mn===void 0&&(mn=this.checker.typeToString(this),Jt.set(this,mn)),mn}}}),Object.defineProperties(wc.getSignatureConstructor().prototype,{__debugFlags:{get(){return Le(this.flags)}},__debugSignatureToString:{value(){var mn;return(mn=this.checker)==null?void 0:mn.signatureToString(this)}}});let Rt=[wc.getNodeConstructor(),wc.getIdentifierConstructor(),wc.getTokenConstructor(),wc.getSourceFileConstructor()];for(let mn of Rt)rs(mn.prototype,"__debugKind")||Object.defineProperties(mn.prototype,{__tsDebuggerDisplay:{value(){return`${ws(this)?"GeneratedIdentifier":Me(this)?`Identifier '${ar(this)}'`:Ci(this)?`PrivateIdentifier '${ar(this)}'`:ca(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Bu(this)?`NumericLiteral ${this.text}`:c6(this)?`BigIntLiteral ${this.text}n`:qs(this)?"TypeParameterDeclaration":ao(this)?"ParameterDeclaration":ll(this)?"ConstructorDeclaration":Ap(this)?"GetAccessorDeclaration":Vu(this)?"SetAccessorDeclaration":iI(this)?"CallSignatureDeclaration":S2(this)?"ConstructSignatureDeclaration":r0(this)?"IndexSignatureDeclaration":T2(this)?"TypePredicateNode":Yp(this)?"TypeReferenceNode":B_(this)?"FunctionTypeNode":kx(this)?"ConstructorTypeNode":oI(this)?"TypeQueryNode":ju(this)?"TypeLiteralNode":A2(this)?"ArrayTypeNode":aI(this)?"TupleTypeNode":m6(this)?"OptionalTypeNode":_6(this)?"RestTypeNode":dy(this)?"UnionTypeNode":sI(this)?"IntersectionTypeNode":lI(this)?"ConditionalTypeNode":GS(this)?"InferTypeNode":VS(this)?"ParenthesizedTypeNode":I2(this)?"ThisTypeNode":jS(this)?"TypeOperatorNode":US(this)?"IndexedAccessTypeNode":wx(this)?"MappedTypeNode":uy(this)?"LiteralTypeNode":Ox(this)?"NamedTupleMember":Dh(this)?"ImportTypeNode":pe(this.kind)}${this.flags?` (${_e(this.flags)})`:""}`}},__debugKind:{get(){return pe(this.kind)}},__debugNodeFlags:{get(){return _e(this.flags)}},__debugModifierFlags:{get(){return be(Ane(this))}},__debugTransformFlags:{get(){return Te(this.transformFlags)}},__debugIsParseTreeNode:{get(){return eC(this)}},__debugEmitFlags:{get(){return De(ya(this))}},__debugGetText:{value(qr){if(xs(this))return"";let ni=Ue.get(this);if(ni===void 0){let ki=uo(this),so=ki&&Nn(ki);ni=so?FE(so,ki,qr):"",Ue.set(this,ni)}return ni}}});jt=!0}e.enableDebugInfo=Ki;function gi(Jt){let Ue=Jt&7,Rt=Ue===0?"in out":Ue===3?"[bivariant]":Ue===2?"in":Ue===1?"out":Ue===4?"[independent]":"";return Jt&8?Rt+=" (unmeasurable)":Jt&16&&(Rt+=" (unreliable)"),Rt}e.formatVariance=gi;class io{__debugToString(){var Ue;switch(this.kind){case 3:return((Ue=this.debugInfo)==null?void 0:Ue.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return J5(this.sources,this.targets||nn(this.sources,()=>"any"),(Rt,mn)=>`${Rt.__debugTypeToString()} -> ${typeof mn=="string"?mn:mn.__debugTypeToString()}`).join(", ");case 2:return J5(this.sources,this.targets,(Rt,mn)=>`${Rt.__debugTypeToString()} -> ${mn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return F(this)}}}e.DebugTypeMapper=io;function Gn(Jt){return e.isDebugging?Object.setPrototypeOf(Jt,io.prototype):Jt}e.attachDebugPrototypeIfDebug=Gn;function Nr(Jt){return console.log(cr(Jt))}e.printControlFlowGraph=Nr;function cr(Jt){let Ue=-1;function Rt(te){return te.id||(te.id=Ue,Ue--),te.id}let mn;(te=>{te.lr="\u2500",te.ud="\u2502",te.dr="\u256D",te.dl="\u256E",te.ul="\u256F",te.ur="\u2570",te.udr="\u251C",te.udl="\u2524",te.dlr="\u252C",te.ulr="\u2534",te.udlr="\u256B"})(mn||(mn={}));let qr;(te=>{te[te.None=0]="None",te[te.Up=1]="Up",te[te.Down=2]="Down",te[te.Left=4]="Left",te[te.Right=8]="Right",te[te.UpDown=3]="UpDown",te[te.LeftRight=12]="LeftRight",te[te.UpLeft=5]="UpLeft",te[te.UpRight=9]="UpRight",te[te.DownLeft=6]="DownLeft",te[te.DownRight=10]="DownRight",te[te.UpDownLeft=7]="UpDownLeft",te[te.UpDownRight=11]="UpDownRight",te[te.UpLeftRight=13]="UpLeftRight",te[te.DownLeftRight=14]="DownLeftRight",te[te.UpDownLeftRight=15]="UpDownLeftRight",te[te.NoChildren=16]="NoChildren"})(qr||(qr={}));let ni=2032,ki=882,so=Object.create(null),Jo=[],ba=[],ln=z(Jt,new Set);for(let te of Jo)te.text=Zt(te.flowNode,te.circular),_t(te);let Tn=ze(ln),ke=it(Tn);return Ct(ln,0),V();function nt(te){return!!(te.flags&128)}function tt(te){return!!(te.flags&12)&&!!te.antecedents}function yt(te){return!!(te.flags&ni)}function re(te){return!!(te.flags&ki)}function Ce(te){let j=[];for(let se of te.edges)se.source===te&&j.push(se.target);return j}function et(te){let j=[];for(let se of te.edges)se.target===te&&j.push(se.source);return j}function z(te,j){let se=Rt(te),Pe=so[se];if(Pe&&j.has(te))return Pe.circular=!0,Pe={id:-1,flowNode:te,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Jo.push(Pe),Pe;if(j.add(te),!Pe)if(so[se]=Pe={id:se,flowNode:te,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Jo.push(Pe),tt(te))for(let Ie of te.antecedents)Je(Pe,Ie,j);else yt(te)&&Je(Pe,te.antecedent,j);return j.delete(te),Pe}function Je(te,j,se){let Pe=z(j,se),Ie={source:te,target:Pe};ba.push(Ie),te.edges.push(Ie),Pe.edges.push(Ie)}function _t(te){if(te.level!==-1)return te.level;let j=0;for(let se of et(te))j=Math.max(j,_t(se)+1);return te.level=j}function ze(te){let j=0;for(let se of Ce(te))j=Math.max(j,ze(se));return j+1}function it(te){let j=St(Array(te),0);for(let se of Jo)j[se.level]=Math.max(j[se.level],se.text.length);return j}function Ct(te,j){if(te.lane===-1){te.lane=j,te.endLane=j;let se=Ce(te);for(let Pe=0;Pe<se.length;Pe++){Pe>0&&j++;let Ie=se[Pe];Ct(Ie,j),Ie.endLane>te.endLane&&(j=Ie.endLane)}te.endLane=j}}function on(te){if(te&2)return"Start";if(te&4)return"Branch";if(te&8)return"Loop";if(te&16)return"Assignment";if(te&32)return"True";if(te&64)return"False";if(te&128)return"SwitchClause";if(te&256)return"ArrayMutation";if(te&512)return"Call";if(te&1024)return"ReduceLabel";if(te&1)return"Unreachable";throw new Error}function Qt(te){let j=Nn(te);return FE(j,te,!1)}function Zt(te,j){let se=on(te.flags);if(j&&(se=`${se}#${Rt(te)}`),re(te))te.node&&(se+=` (${Qt(te.node)})`);else if(nt(te)){let Pe=[];for(let Ie=te.clauseStart;Ie<te.clauseEnd;Ie++){let gt=te.switchStatement.caseBlock.clauses[Ie];_N(gt)?Pe.push("default"):Pe.push(Qt(gt.expression))}se+=` (${Pe.join(", ")})`}return j==="circularity"?`Circular(${se})`:se}function V(){let te=ke.length,j=Jo.reduce((bt,Ot)=>Math.max(bt,Ot.lane),0)+1,se=St(Array(j),""),Pe=ke.map(()=>Array(j)),Ie=ke.map(()=>St(Array(j),0));for(let bt of Jo){Pe[bt.level][bt.lane]=bt;let Ot=Ce(bt);for(let An=0;An<Ot.length;An++){let Cn=Ot[An],ti=8;Cn.lane===bt.lane&&(ti|=4),An>0&&(ti|=1),An<Ot.length-1&&(ti|=2),Ie[bt.level][Cn.lane]|=ti}Ot.length===0&&(Ie[bt.level][bt.lane]|=16);let dn=et(bt);for(let An=0;An<dn.length;An++){let Cn=dn[An],ti=4;An>0&&(ti|=1),An<dn.length-1&&(ti|=2),Ie[bt.level-1][Cn.lane]|=ti}}for(let bt=0;bt<te;bt++)for(let Ot=0;Ot<j;Ot++){let dn=bt>0?Ie[bt-1][Ot]:0,An=Ot>0?Ie[bt][Ot-1]:0,Cn=Ie[bt][Ot];Cn||(dn&8&&(Cn|=12),An&2&&(Cn|=3),Ie[bt][Ot]=Cn)}for(let bt=0;bt<te;bt++)for(let Ot=0;Ot<se.length;Ot++){let dn=Ie[bt][Ot],An=dn&4?"\u2500":" ",Cn=Pe[bt][Ot];Cn?(gt(Ot,Cn.text),bt<te-1&&(gt(Ot," "),gt(Ot,M(An,ke[bt]-Cn.text.length)))):bt<te-1&>(Ot,M(An,ke[bt]+1)),gt(Ot,Re(dn)),gt(Ot,dn&8&&bt<te-1&&!Pe[bt+1][Ot]?"\u2500":" ")}return`
${se.join(`
`)}
`;function gt(bt,Ot){se[bt]+=Ot}}function Re(te){switch(te){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function St(te,j){if(te.fill)te.fill(j);else for(let se=0;se<te.length;se++)te[se]=j;return te}function M(te,j){if(te.repeat)return j>0?te.repeat(j):"";let se="";for(;se.length<j;)se+=te;return se}}e.formatControlFlowGraph=cr})(x||(x={}))}});function hve(e){let t=vve.exec(e);if(!t)return;let[,r,i="0",o="0",s="",l=""]=t;if(!(s&&!yve.test(s))&&!(l&&!Eve.test(l)))return{major:parseInt(r,10),minor:parseInt(i,10),patch:parseInt(o,10),prerelease:s,build:l}}function OWe(e,t){if(e===t)return 0;if(e.length===0)return t.length===0?0:1;if(t.length===0)return-1;let r=Math.min(e.length,t.length);for(let i=0;i<r;i++){let o=e[i],s=t[i];if(o===s)continue;let l=ZZ.test(o),d=ZZ.test(s);if(l||d){if(l!==d)return l?-1:1;let p=Ms(+o,+s);if(p)return p}else{let p=gd(o,s);if(p)return p}}return Ms(e.length,t.length)}function gve(e){let t=[];for(let r of e.trim().split(Tve)){if(!r)continue;let i=[];r=r.trim();let o=xve.exec(r);if(o){if(!wWe(o[1],o[2],i))return}else for(let s of r.split(Ave)){let l=Rve.exec(s.trim());if(!l||!WWe(l[1],l[2],i))return}t.push(i)}return t}function QZ(e){let t=Ive.exec(e);if(!t)return;let[,r,i="*",o="*",s,l]=t;return{version:new zf(_f(r)?0:parseInt(r,10),_f(r)||_f(i)?0:parseInt(i,10),_f(r)||_f(i)||_f(o)?0:parseInt(o,10),s,l),major:r,minor:i,patch:o}}function wWe(e,t,r){let i=QZ(e);if(!i)return!1;let o=QZ(t);return o?(_f(i.major)||r.push(N_(">=",i.version)),_f(o.major)||r.push(_f(o.minor)?N_("<",o.version.increment("major")):_f(o.patch)?N_("<",o.version.increment("minor")):N_("<=",o.version)),!0):!1}function WWe(e,t,r){let i=QZ(t);if(!i)return!1;let{version:o,major:s,minor:l,patch:d}=i;if(_f(s))(e==="<"||e===">")&&r.push(N_("<",zf.zero));else switch(e){case"~":r.push(N_(">=",o)),r.push(N_("<",o.increment(_f(l)?"major":"minor")));break;case"^":r.push(N_(">=",o)),r.push(N_("<",o.increment(o.major>0||_f(l)?"major":o.minor>0||_f(d)?"minor":"patch")));break;case"<":case">=":r.push(_f(l)||_f(d)?N_(e,o.with({prerelease:"0"})):N_(e,o));break;case"<=":case">":r.push(_f(l)?N_(e==="<="?"<":">=",o.increment("major").with({prerelease:"0"})):_f(d)?N_(e==="<="?"<":">=",o.increment("minor").with({prerelease:"0"})):N_(e,o));break;case"=":case void 0:_f(l)||_f(d)?(r.push(N_(">=",o.with({prerelease:"0"}))),r.push(N_("<",o.increment(_f(l)?"major":"minor").with({prerelease:"0"})))):r.push(N_("=",o));break;default:return!1}return!0}function _f(e){return e==="*"||e==="x"||e==="X"}function N_(e,t){return{operator:e,operand:t}}function FWe(e,t){if(t.length===0)return!0;for(let r of t)if(zWe(e,r))return!0;return!1}function zWe(e,t){for(let r of t)if(!BWe(e,r.operator,r.operand))return!1;return!0}function BWe(e,t,r){let i=e.compareTo(r);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return x.assertNever(t)}}function GWe(e){return nn(e,VWe).join(" || ")||"*"}function VWe(e){return nn(e,jWe).join(" ")}function jWe(e){return`${e.operator}${e.operand}`}var vve,yve,bve,Eve,Sve,ZZ,yB,zf,hM,Tve,Ave,Ive,xve,Rve,UWe=pt({"src/compiler/semver.ts"(){"use strict";wo(),vve=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,yve=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,bve=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Eve=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Sve=/^[a-z0-9-]+$/i,ZZ=/^(0|[1-9]\d*)$/,yB=class jw{constructor(t,r=0,i=0,o="",s=""){typeof t=="string"&&({major:t,minor:r,patch:i,prerelease:o,build:s}=x.checkDefined(hve(t),"Invalid version")),x.assert(t>=0,"Invalid argument: major"),x.assert(r>=0,"Invalid argument: minor"),x.assert(i>=0,"Invalid argument: patch");let l=o?oo(o)?o:o.split("."):je,d=s?oo(s)?s:s.split("."):je;x.assert(ji(l,p=>bve.test(p)),"Invalid argument: prerelease"),x.assert(ji(d,p=>Sve.test(p)),"Invalid argument: build"),this.major=t,this.minor=r,this.patch=i,this.prerelease=l,this.build=d}static tryParse(t){let r=hve(t);if(!r)return;let{major:i,minor:o,patch:s,prerelease:l,build:d}=r;return new jw(i,o,s,l,d)}compareTo(t){return this===t?0:t===void 0?1:Ms(this.major,t.major)||Ms(this.minor,t.minor)||Ms(this.patch,t.patch)||OWe(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new jw(this.major+1,0,0);case"minor":return new jw(this.major,this.minor+1,0);case"patch":return new jw(this.major,this.minor,this.patch+1);default:return x.assertNever(t)}}with(t){let{major:r=this.major,minor:i=this.minor,patch:o=this.patch,prerelease:s=this.prerelease,build:l=this.build}=t;return new jw(r,i,o,s,l)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return ct(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),ct(this.build)&&(t+=`+${this.build.join(".")}`),t}},yB.zero=new yB(0,0,0,["0"]),zf=yB,hM=class gWe{constructor(t){this._alternatives=t?x.checkDefined(gve(t),"Invalid range spec."):je}static tryParse(t){let r=gve(t);if(r){let i=new gWe("");return i._alternatives=r,i}}test(t){return typeof t=="string"&&(t=new zf(t)),FWe(t,this._alternatives)}toString(){return GWe(this._alternatives)}},Tve=/\|\|/g,Ave=/\s+/g,Ive=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,xve=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Rve=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Dve(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function HWe(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Dve(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function qWe(){if(mB())try{let{performance:e,PerformanceObserver:t}=cS("perf_hooks");if(Dve(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function eee(){return bB}var bB,tee,Is,JWe=pt({"src/compiler/performanceCore.ts"(){"use strict";wo(),bB=HWe()||qWe(),tee=bB?.performance,Is=tee?()=>tee.now():Date.now?Date.now:()=>+new Date}}),i8,Pd,KWe=pt({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";i8=cS(e)}catch{i8=void 0}Pd=i8?.logEvent?i8:void 0}});function Cve(e,t,r,i){return e?EB(t,r,i):SB}function EB(e,t,r){let i=0;return{enter:o,exit:s};function o(){++i===1&&Ls(t)}function s(){--i===0?(Ls(r),Ep(e,t,r)):i<0&&x.fail("enter/exit count does not match.")}}function Ls(e){if(P1){let t=UD.get(e)??0;UD.set(e,t+1),M1.set(e,Is()),fS?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function Ep(e,t,r){if(P1){let i=(r!==void 0?M1.get(r):void 0)??Is(),o=(t!==void 0?M1.get(t):void 0)??nee,s=L1.get(e)||0;L1.set(e,s+(i-o)),fS?.measure(e,t,r)}}function XWe(e){return UD.get(e)||0}function YWe(e){return L1.get(e)||0}function $We(e){L1.forEach((t,r)=>e(r,t))}function QWe(e){M1.forEach((t,r)=>e(r))}function ZWe(e){e!==void 0?L1.delete(e):L1.clear(),fS?.clearMeasures(e)}function eFe(e){e!==void 0?(UD.delete(e),M1.delete(e)):(UD.clear(),M1.clear()),fS?.clearMarks(e)}function tFe(){return P1}function nFe(e=Hc){var t;return P1||(P1=!0,gM||(gM=eee()),gM&&(nee=gM.performance.timeOrigin,(gM.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(fS=gM.performance))),!0}function rFe(){P1&&(M1.clear(),UD.clear(),L1.clear(),fS=void 0,P1=!1)}var gM,fS,SB,P1,nee,M1,UD,L1,iFe=pt({"src/compiler/performance.ts"(){"use strict";wo(),SB={enter:Ca,exit:Ca},P1=!1,nee=Is(),M1=new Map,UD=new Map,L1=new Map}}),ree={};Ra(ree,{clearMarks:()=>eFe,clearMeasures:()=>ZWe,createTimer:()=>EB,createTimerIf:()=>Cve,disable:()=>rFe,enable:()=>nFe,forEachMark:()=>QWe,forEachMeasure:()=>$We,getCount:()=>XWe,getDuration:()=>YWe,isEnabled:()=>tFe,mark:()=>Ls,measure:()=>Ep,nullTimer:()=>SB});var mS=pt({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";iFe()}}),qn,vM,iee,oee,oFe=pt({"src/compiler/tracing.ts"(){"use strict";wo(),mS(),(e=>{let t,r=0,i=0,o,s=[],l,d=[];function p(W,$,de){if(x.assert(!qn,"Tracing already started"),t===void 0)try{t=cS("fs")}catch(le){throw new Error(`tracing requires having fs
(original error: ${le.message||le})`)}o=W,s.length=0,l===void 0&&(l=wr($,"legend.json")),t.existsSync($)||t.mkdirSync($,{recursive:!0});let fe=o==="build"?`.${process.pid}-${++r}`:o==="server"?`.${process.pid}`:"",q=wr($,`trace${fe}.json`),H=wr($,`types${fe}.json`);d.push({configFilePath:de,tracePath:q,typesPath:H}),i=t.openSync(q,"w"),qn=e;let ee={cat:"__metadata",ph:"M",ts:1e3*Is(),pid:1,tid:1};t.writeSync(i,`[
`+[{name:"process_name",args:{name:"tsc"},...ee},{name:"thread_name",args:{name:"Main"},...ee},{name:"TracingStartedInBrowser",...ee,cat:"disabled-by-default-devtools.timeline"}].map(le=>JSON.stringify(le)).join(`,
`))}e.startTracing=p;function h(){x.assert(qn,"Tracing is not in progress"),x.assert(!!s.length==(o!=="server")),t.writeSync(i,`
]
`),t.closeSync(i),qn=void 0,s.length?F(s):d[d.length-1].typesPath=void 0}e.stopTracing=h;function m(W){o!=="server"&&s.push(W)}e.recordType=m;let v;(W=>{W.Parse="parse",W.Program="program",W.Bind="bind",W.Check="check",W.CheckTypes="checkTypes",W.Emit="emit",W.Session="session"})(v=e.Phase||(e.Phase={}));function E(W,$,de){U("I",W,$,de,'"s":"g"')}e.instant=E;let S=[];function A(W,$,de,fe=!1){fe&&U("B",W,$,de),S.push({phase:W,name:$,args:de,time:1e3*Is(),separateBeginAndEnd:fe})}e.push=A;function C(W){x.assert(S.length>0),G(S.length-1,1e3*Is(),W),S.length--}e.pop=C;function R(){let W=1e3*Is();for(let $=S.length-1;$>=0;$--)G($,W);S.length=0}e.popAll=R;let L=1e3*10;function G(W,$,de){let{phase:fe,name:q,args:H,time:ee,separateBeginAndEnd:le}=S[W];le?(x.assert(!de,"`results` are not supported for events with `separateBeginAndEnd`"),U("E",fe,q,H,void 0,$)):L-ee%L<=$-ee&&U("X",fe,q,{...H,results:de},`"dur":${$-ee}`,ee)}function U(W,$,de,fe,q,H=1e3*Is()){o==="server"&&$==="checkTypes"||(Ls("beginTracing"),t.writeSync(i,`,
{"pid":1,"tid":1,"ph":"${W}","cat":"${$}","ts":${H},"name":"${de}"`),q&&t.writeSync(i,`,${q}`),fe&&t.writeSync(i,`,"args":${JSON.stringify(fe)}`),t.writeSync(i,"}"),Ls("endTracing"),Ep("Tracing","beginTracing","endTracing"))}function K(W){let $=Nn(W);return $?{path:$.path,start:de($a($,W.pos)),end:de($a($,W.end))}:void 0;function de(fe){return{line:fe.line+1,character:fe.character+1}}}function F(W){var $,de,fe,q,H,ee,le,Ee,ce,Z,pe,Ae,Oe,_e,be,Te,De,ft,he;Ls("beginDumpTypes");let Le=d[d.length-1].typesPath,Ke=t.openSync(Le,"w"),Dt=new Map;t.writeSync(Ke,"[");let st=W.length;for(let Ge=0;Ge<st;Ge++){let ot=W[Ge],Vt=ot.objectFlags,jt=ot.aliasSymbol??ot.symbol,gn;if(Vt&16|ot.flags&2944)try{gn=($=ot.checker)==null?void 0:$.typeToString(ot)}catch{gn=void 0}let On={};if(ot.flags&8388608){let Nr=ot;On={indexedAccessObjectType:(de=Nr.objectType)==null?void 0:de.id,indexedAccessIndexType:(fe=Nr.indexType)==null?void 0:fe.id}}let en={};if(Vt&4){let Nr=ot;en={instantiatedType:(q=Nr.target)==null?void 0:q.id,typeArguments:(H=Nr.resolvedTypeArguments)==null?void 0:H.map(cr=>cr.id),referenceLocation:K(Nr.node)}}let zt={};if(ot.flags&16777216){let Nr=ot;zt={conditionalCheckType:(ee=Nr.checkType)==null?void 0:ee.id,conditionalExtendsType:(le=Nr.extendsType)==null?void 0:le.id,conditionalTrueType:((Ee=Nr.resolvedTrueType)==null?void 0:Ee.id)??-1,conditionalFalseType:((ce=Nr.resolvedFalseType)==null?void 0:ce.id)??-1}}let Wt={};if(ot.flags&33554432){let Nr=ot;Wt={substitutionBaseType:(Z=Nr.baseType)==null?void 0:Z.id,constraintType:(pe=Nr.constraint)==null?void 0:pe.id}}let ei={};if(Vt&1024){let Nr=ot;ei={reverseMappedSourceType:(Ae=Nr.source)==null?void 0:Ae.id,reverseMappedMappedType:(Oe=Nr.mappedType)==null?void 0:Oe.id,reverseMappedConstraintType:(_e=Nr.constraintType)==null?void 0:_e.id}}let Ki={};if(Vt&256){let Nr=ot;Ki={evolvingArrayElementType:Nr.elementType.id,evolvingArrayFinalType:(be=Nr.finalArrayType)==null?void 0:be.id}}let gi,io=ot.checker.getRecursionIdentity(ot);io&&(gi=Dt.get(io),gi||(gi=Dt.size,Dt.set(io,gi)));let Gn={id:ot.id,intrinsicName:ot.intrinsicName,symbolName:jt?.escapedName&&Ii(jt.escapedName),recursionId:gi,isTuple:Vt&8?!0:void 0,unionTypes:ot.flags&1048576?(Te=ot.types)==null?void 0:Te.map(Nr=>Nr.id):void 0,intersectionTypes:ot.flags&2097152?ot.types.map(Nr=>Nr.id):void 0,aliasTypeArguments:(De=ot.aliasTypeArguments)==null?void 0:De.map(Nr=>Nr.id),keyofType:ot.flags&4194304?(ft=ot.type)==null?void 0:ft.id:void 0,...On,...en,...zt,...Wt,...ei,...Ki,destructuringPattern:K(ot.pattern),firstDeclaration:K((he=jt?.declarations)==null?void 0:he[0]),flags:x.formatTypeFlags(ot.flags).split("|"),display:gn};t.writeSync(Ke,JSON.stringify(Gn)),Ge<st-1&&t.writeSync(Ke,`,
`)}t.writeSync(Ke,`]
`),t.closeSync(Ke),Ls("endDumpTypes"),Ep("Dump types","beginDumpTypes","endDumpTypes")}function oe(){l&&t.writeFileSync(l,JSON.stringify(d))}e.dumpLegend=oe})(vM||(vM={})),iee=vM.startTracing,oee=vM.dumpLegend}});function _S(e,t=!0){let r=bM[e.category];return t?r.toLowerCase():r}var o8,a8,s8,TB,l8,c8,AB,yM,IB,k1,d8,xB,RB,u8,DB,CB,NB,PB,MB,LB,kB,OB,wB,WB,FB,p8,zB,BB,GB,VB,f8,m8,jB,UB,HB,qB,JB,KB,_8,XB,YB,$B,QB,ZB,eG,bM,O1,tG,nG,rG,iG,HD,oG,aG,sG,h8,lG,cG,dG,uG,pG,g8,v8,y8,fG,mG,_G,hG,gG,vG,yG,bG,EM,EG,Nve=pt({"src/compiler/types.ts"(){"use strict";o8=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(o8||{}),a8=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(a8||{}),s8=(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))(s8||{}),TB=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(TB||{}),l8=(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))(l8||{}),c8=(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))(c8||{}),AB=(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))(AB||{}),yM=(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))(yM||{}),IB=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(IB||{}),k1=class{},d8=(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))(d8||{}),xB=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(xB||{}),RB=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(RB||{}),u8=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(u8||{}),DB=(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))(DB||{}),CB=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(CB||{}),NB=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(NB||{}),PB=(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))(PB||{}),MB=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(MB||{}),LB=(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))(LB||{}),kB=(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))(kB||{}),OB=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(OB||{}),wB=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(wB||{}),WB=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(WB||{}),FB=(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))(FB||{}),p8=(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))(p8||{}),zB=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(zB||{}),BB=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(BB||{}),GB=(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))(GB||{}),VB=(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))(VB||{}),f8=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(f8||{}),m8=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(m8||{}),jB=(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))(jB||{}),UB=(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))(UB||{}),HB=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(HB||{}),qB=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(qB||{}),JB=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(JB||{}),KB=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(KB||{}),_8=(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))(_8||{}),XB=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(XB||{}),YB=(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))(YB||{}),$B=(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))($B||{}),QB=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(QB||{}),ZB=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(ZB||{}),eG=(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))(eG||{}),bM=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(bM||{}),O1=(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))(O1||{}),tG=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(tG||{}),nG=(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))(nG||{}),rG=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(rG||{}),iG=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(iG||{}),HD=(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))(HD||{}),oG=(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))(oG||{}),aG=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(aG||{}),sG=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(sG||{}),h8=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(h8||{}),lG=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(lG||{}),cG=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(cG||{}),dG=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(dG||{}),uG=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(uG||{}),pG=(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))(pG||{}),g8=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(g8||{}),v8=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(v8||{}),y8=(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))(y8||{}),fG=(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))(fG||{}),mG=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(mG||{}),_G=(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))(_G||{}),hG=(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))(hG||{}),gG=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(gG||{}),vG=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(vG||{}),yG=(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))(yG||{}),bG=(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))(bG||{}),EM={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},EG=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(EG||{})}});function qD(e){let t=5381;for(let r=0;r<e.length;r++)t=(t<<5)+t+e.charCodeAt(r);return t.toString()}function Pve(){Error.stackTraceLimit<100&&(Error.stackTraceLimit=100)}function SA(e,t){return e.getModifiedTime(t)||ip}function aee(e){return{250:e.Low,500:e.Medium,2e3:e.High}}function aFe(e){if(!e.getEnvironmentVariable)return;let t=o("TSC_WATCH_POLLINGINTERVAL",b8);S8=s("TSC_WATCH_POLLINGCHUNKSIZE",E8)||S8,TM=s("TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS",E8)||TM;function r(l,d){return e.getEnvironmentVariable(`${l}_${d.toUpperCase()}`)}function i(l){let d;return p("Low"),p("Medium"),p("High"),d;function p(h){let m=r(l,h);m&&((d||(d={}))[h]=Number(m))}}function o(l,d){let p=i(l);if(p)return h("Low"),h("Medium"),h("High"),!0;return!1;function h(m){d[m]=p[m]||d[m]}}function s(l,d){let p=i(l);return(t||p)&&aee(p?{...d,...p}:d)}}function Mve(e,t,r,i,o){let s=r;for(let d=t.length;i&&d;l(),d--){let p=t[r];if(p){if(p.isClosed){t[r]=void 0;continue}}else continue;i--;let h=dFe(p,SA(e,p.fileName));if(p.isClosed){t[r]=void 0;continue}o?.(p,r,h),t[r]&&(s<r&&(t[s]=p,t[r]=void 0),s++)}return r;function l(){r++,r===t.length&&(s<r&&(t.length=s),r=0,s=0)}}function sFe(e){let t=[],r=[],i=d(250),o=d(500),s=d(2e3);return l;function l(R,L,G){let U={fileName:R,callback:L,unchangedPolls:0,mtime:SA(e,R)};return t.push(U),E(U,G),{close:()=>{U.isClosed=!0,bA(t,U)}}}function d(R){let L=[];return L.pollingInterval=R,L.pollIndex=0,L.pollScheduled=!1,L}function p(R,L){L.pollIndex=m(L,L.pollingInterval,L.pollIndex,S8[L.pollingInterval]),L.length?C(L.pollingInterval):(x.assert(L.pollIndex===0),L.pollScheduled=!1)}function h(R,L){m(r,250,0,r.length),p(R,L),!L.pollScheduled&&r.length&&C(250)}function m(R,L,G,U){return Mve(e,R,G,U,K);function K(F,oe,W){W?(F.unchangedPolls=0,R!==r&&(R[oe]=void 0,S(F))):F.unchangedPolls!==TM[L]?F.unchangedPolls++:R===r?(F.unchangedPolls=1,R[oe]=void 0,E(F,250)):L!==2e3&&(F.unchangedPolls++,R[oe]=void 0,E(F,L===250?500:2e3))}}function v(R){switch(R){case 250:return i;case 500:return o;case 2e3:return s}}function E(R,L){v(L).push(R),A(L)}function S(R){r.push(R),A(250)}function A(R){v(R).pollScheduled||C(R)}function C(R){v(R).pollScheduled=e.setTimeout(R===250?h:p,R,R===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",v(R))}}function lFe(e,t,r,i){let o=bp(),s=i?new Map:void 0,l=new Map,d=od(t);return p;function p(m,v,E,S){let A=d(m);o.add(A,v).length===1&&s&&s.set(A,r(m)||ip);let C=Ur(A)||".",R=l.get(C)||h(Ur(m)||".",C,S);return R.referenceCount++,{close:()=>{R.referenceCount===1?(R.close(),l.delete(C)):R.referenceCount--,o.remove(A,v)}}}function h(m,v,E){let S=e(m,1,(A,C)=>{if(!fo(C))return;let R=Qi(C,m),L=d(R),G=R&&o.get(L);if(G){let U,K=1;if(s){let F=s.get(L);if(A==="change"&&(U=r(R)||ip,U.getTime()===F.getTime()))return;U||(U=r(R)||ip),s.set(L,U),F===ip?K=0:U===ip&&(K=2)}for(let F of G)F(R,K,U)}},!1,500,E);return S.referenceCount=0,l.set(v,S),S}}function cFe(e){let t=[],r=0,i;return o;function o(d,p){let h={fileName:d,callback:p,mtime:SA(e,d)};return t.push(h),l(),{close:()=>{h.isClosed=!0,bA(t,h)}}}function s(){i=void 0,r=Mve(e,t,r,S8[250]),l()}function l(){!t.length||i||(i=e.setTimeout(s,2e3,"pollQueue"))}}function Lve(e,t,r,i,o){let l=od(t)(r),d=e.get(l);return d?d.callbacks.push(i):e.set(l,{watcher:o((p,h,m)=>{var v;return(v=e.get(l))==null?void 0:v.callbacks.slice().forEach(E=>E(p,h,m))}),callbacks:[i]}),{close:()=>{let p=e.get(l);p&&(!N1(p.callbacks,i)||p.callbacks.length||(e.delete(l),Qp(p)))}}}function dFe(e,t){let r=e.mtime.getTime(),i=t.getTime();return r!==i?(e.mtime=t,e.callback(e.fileName,SG(r,i),t),!0):!1}function SG(e,t){return e===0?0:t===0?2:1}function SM(e){return dee(e)}function see(e){dee=e}function uFe({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:r,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:o,realpath:s,setTimeout:l,clearTimeout:d}){let p=new Map,h=bp(),m=new Map,v,E=D1(!t),S=od(t);return(W,$,de,fe)=>de?A(W,fe,$):e(W,$,de,fe);function A(W,$,de){let fe=S(W),q=p.get(fe);q?q.refCount++:(q={watcher:e(W,ee=>{F(ee,$)||($?.synchronousWatchDirectory?(C(fe,ee),K(W,fe,$)):R(W,fe,ee,$))},!1,$),refCount:1,childWatches:je},p.set(fe,q),K(W,fe,$));let H=de&&{dirName:W,callback:de};return H&&h.add(fe,H),{dirName:W,close:()=>{let ee=x.checkDefined(p.get(fe));H&&h.remove(fe,H),ee.refCount--,!ee.refCount&&(p.delete(fe),Qp(ee),ee.childWatches.forEach(vm))}}}function C(W,$,de){let fe,q;fo($)?fe=$:q=$,h.forEach((H,ee)=>{if(!(q&&q.get(ee)===!0)&&(ee===W||Ui(W,ee)&&W[ee.length]===Os))if(q)if(de){let le=q.get(ee);le?le.push(...de):q.set(ee,de.slice())}else q.set(ee,!0);else H.forEach(({callback:le})=>le(fe))})}function R(W,$,de,fe){let q=p.get($);if(q&&o(W,1)){L(W,$,de,fe);return}C($,de),U(q)}function L(W,$,de,fe){let q=m.get($);q?q.fileNames.push(de):m.set($,{dirName:W,options:fe,fileNames:[de]}),v&&(d(v),v=void 0),v=l(G,1e3,"timerToUpdateChildWatches")}function G(){v=void 0,SM(`sysLog:: onTimerToUpdateChildWatches:: ${m.size}`);let W=Is(),$=new Map;for(;!v&&m.size;){let fe=m.entries().next();x.assert(!fe.done);let{value:[q,{dirName:H,options:ee,fileNames:le}]}=fe;m.delete(q);let Ee=K(H,q,ee);C(q,$,Ee?void 0:le)}SM(`sysLog:: invokingWatchers:: Elapsed:: ${Is()-W}ms:: ${m.size}`),h.forEach((fe,q)=>{let H=$.get(q);H&&fe.forEach(({callback:ee,dirName:le})=>{oo(H)?H.forEach(ee):ee(le)})});let de=Is()-W;SM(`sysLog:: Elapsed:: ${de}ms:: onTimerToUpdateChildWatches:: ${m.size} ${v}`)}function U(W){if(!W)return;let $=W.childWatches;W.childWatches=je;for(let de of $)de.close(),U(p.get(S(de.dirName)))}function K(W,$,de){let fe=p.get($);if(!fe)return!1;let q,H=t8(o(W,1)?Fi(i(W),Ee=>{let ce=Qi(Ee,W);return!F(ce,de)&&E(ce,Yo(s(ce)))===0?ce:void 0}):je,fe.childWatches,(Ee,ce)=>E(Ee,ce.dirName),ee,vm,le);return fe.childWatches=q||je,H;function ee(Ee){let ce=A(Ee,de);le(ce)}function le(Ee){(q||(q=[])).push(Ee)}}function F(W,$){return ct(AM,de=>oe(W,de))||kve(W,$,t,r)}function oe(W,$){return W.includes($)?!0:t?!1:S(W).includes($)}}function pFe(e){return(t,r,i)=>e(r===1?"change":"rename","",i)}function fFe(e,t,r){return(i,o,s)=>{i==="rename"?(s||(s=r(e)||ip),t(e,s!==ip?0:2,s)):t(e,1,s)}}function kve(e,t,r,i){return(t?.excludeDirectories||t?.excludeFiles)&&(B6(e,t?.excludeFiles,r,i())||B6(e,t?.excludeDirectories,r,i()))}function Ove(e,t,r,i,o){return(s,l)=>{if(s==="rename"){let d=l?Yo(wr(e,l)):e;(!l||!kve(d,r,i,o))&&t(d)}}}function lee({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:r,clearTimeout:i,fsWatchWorker:o,fileSystemEntryExists:s,useCaseSensitiveFileNames:l,getCurrentDirectory:d,fsSupportsRecursiveFsWatch:p,getAccessibleSortedChildDirectories:h,realpath:m,tscWatchFile:v,useNonPollingWatchers:E,tscWatchDirectory:S,inodeWatching:A,fsWatchWithTimestamp:C,sysLog:R}){let L=new Map,G=new Map,U=new Map,K,F,oe,W,$=!1;return{watchFile:de,watchDirectory:le};function de(_e,be,Te,De){De=H(De,E);let ft=x.checkDefined(De.watchFile);switch(ft){case 0:return Z(_e,be,250,void 0);case 1:return Z(_e,be,Te,void 0);case 2:return fe()(_e,be,Te,void 0);case 3:return q()(_e,be,void 0,void 0);case 4:return pe(_e,0,fFe(_e,be,t),!1,Te,yk(De));case 5:return oe||(oe=lFe(pe,l,t,C)),oe(_e,be,Te,yk(De));default:x.assertNever(ft)}}function fe(){return K||(K=sFe({getModifiedTime:t,setTimeout:r}))}function q(){return F||(F=cFe({getModifiedTime:t,setTimeout:r}))}function H(_e,be){if(_e&&_e.watchFile!==void 0)return _e;switch(v){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return ee(4,1,_e);case"UseFsEventsWithFallbackDynamicPolling":return ee(4,2,_e);case"UseFsEventsOnParentDirectory":be=!0;default:return be?ee(5,1,_e):{watchFile:4}}}function ee(_e,be,Te){let De=Te?.fallbackPolling;return{watchFile:_e,fallbackPolling:De===void 0?be:De}}function le(_e,be,Te,De){return p?pe(_e,1,Ove(_e,be,De,l,d),Te,500,yk(De)):(W||(W=uFe({useCaseSensitiveFileNames:l,getCurrentDirectory:d,fileSystemEntryExists:s,getAccessibleSortedChildDirectories:h,watchDirectory:Ee,realpath:m,setTimeout:r,clearTimeout:i})),W(_e,be,Te,De))}function Ee(_e,be,Te,De){x.assert(!Te);let ft=ce(De),he=x.checkDefined(ft.watchDirectory);switch(he){case 1:return Z(_e,()=>be(_e),500,void 0);case 2:return fe()(_e,()=>be(_e),500,void 0);case 3:return q()(_e,()=>be(_e),void 0,void 0);case 0:return pe(_e,1,Ove(_e,be,De,l,d),Te,500,yk(ft));default:x.assertNever(he)}}function ce(_e){if(_e&&_e.watchDirectory!==void 0)return _e;switch(S){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let be=_e?.fallbackPolling;return{watchDirectory:0,fallbackPolling:be!==void 0?be:void 0}}}function Z(_e,be,Te,De){return Lve(L,l,_e,be,ft=>e(_e,ft,Te,De))}function pe(_e,be,Te,De,ft,he){return Lve(De?U:G,l,_e,Te,Le=>Ae(_e,be,Le,De,ft,he))}function Ae(_e,be,Te,De,ft,he){let Le,Ke;A&&(Le=_e.substring(_e.lastIndexOf(Os)),Ke=Le.slice(Os.length));let Dt=s(_e,be)?Ge():jt();return{close:()=>{Dt&&(Dt.close(),Dt=void 0)}};function st(gn){Dt&&(R(`sysLog:: ${_e}:: Changing watcher to ${gn===Ge?"Present":"Missing"}FileSystemEntryWatcher`),Dt.close(),Dt=gn())}function Ge(){if($)return R(`sysLog:: ${_e}:: Defaulting to watchFile`),Vt();try{let gn=(be===1||!C?o:Oe)(_e,De,A?ot:Te);return gn.on("error",()=>{Te("rename",""),st(jt)}),gn}catch(gn){return $||($=gn.code==="ENOSPC"),R(`sysLog:: ${_e}:: Changing to watchFile`),Vt()}}function ot(gn,On){let en;if(On&&Zs(On,"~")&&(en=On,On=On.slice(0,On.length-1)),gn==="rename"&&(!On||On===Ke||Zs(On,Le))){let zt=t(_e)||ip;en&&Te(gn,en,zt),Te(gn,On,zt),A?st(zt===ip?jt:Ge):zt===ip&&st(jt)}else en&&Te(gn,en),Te(gn,On)}function Vt(){return de(_e,pFe(Te),ft,he)}function jt(){return de(_e,(gn,On,en)=>{On===0&&(en||(en=t(_e)||ip),en!==ip&&(Te("rename","",en),st(Ge)))},ft,he)}}function Oe(_e,be,Te){let De=t(_e)||ip;return o(_e,be,(ft,he,Le)=>{ft==="change"&&(Le||(Le=t(_e)||ip),Le.getTime()===De.getTime())||(De=Le||t(_e)||ip,Te(ft,he,De))})}}function cee(e){let t=e.writeFile;e.writeFile=(r,i,o)=>oV(r,i,!!o,(s,l,d)=>t.call(e,s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s))}function wve(e){Hc=e}var TG,b8,ip,E8,S8,TM,AM,dee,AG,Hc,mFe=pt({"src/compiler/sys.ts"(){"use strict";wo(),TG=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(TG||{}),b8=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(b8||{}),ip=new Date(0),E8={Low:32,Medium:64,High:256},S8=aee(E8),TM=aee(E8),AM=["/node_modules/.","/.git","/.#"],dee=Ca,AG=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(AG||{}),Hc=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,o=cS("fs"),s=cS("path"),l=cS("os"),d;try{d=cS("crypto")}catch{d=void 0}let p,h="./profile.cpuprofile",m=cS("buffer").Buffer,v=process.platform==="darwin",E=process.platform==="linux"||v,S=l.platform(),A=q(),C=o.realpathSync.native?process.platform==="win32"?De:o.realpathSync.native:o.realpathSync,R=__filename.endsWith("sys.js")?s.join(s.dirname(__dirname),"__fake__.js"):__filename,L=process.platform==="win32"||v,G=Kd(()=>process.cwd()),{watchFile:U,watchDirectory:K}=lee({pollingWatchFileWorker:ee,getModifiedTime:he,setTimeout,clearTimeout,fsWatchWorker:le,useCaseSensitiveFileNames:A,getCurrentDirectory:G,fileSystemEntryExists:Oe,fsSupportsRecursiveFsWatch:L,getAccessibleSortedChildDirectories:st=>pe(st).directories,realpath:ft,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:E,fsWatchWithTimestamp:v,sysLog:SM}),F={args:process.argv.slice(2),newLine:l.EOL,useCaseSensitiveFileNames:A,write(st){process.stdout.write(st)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:ce,writeFile:Z,watchFile:U,watchDirectory:K,resolvePath:st=>s.resolve(st),fileExists:_e,directoryExists:be,getAccessibleFileSystemEntries:pe,createDirectory(st){if(!F.directoryExists(st))try{o.mkdirSync(st)}catch(Ge){if(Ge.code!=="EEXIST")throw Ge}},getExecutingFilePath(){return R},getCurrentDirectory:G,getDirectories:Te,getEnvironmentVariable(st){return process.env[st]||""},readDirectory:Ae,getModifiedTime:he,setModifiedTime:Le,deleteFile:Ke,createHash:d?Dt:qD,createSHA256Hash:d?Dt:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(st){try{let Ge=oe(st);if(Ge?.isFile())return Ge.size}catch{}return 0},exit(st){de(()=>process.exit(st))},enableCPUProfiler:W,disableCPUProfiler:de,cpuProfilingEnabled:()=>!!p||To(process.execArgv,"--cpu-prof")||To(process.execArgv,"--prof"),realpath:ft,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||ct(process.execArgv,st=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(st))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{cS("source-map-support").install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var st;let Ge=(st=process.stdout)==null?void 0:st._handle;Ge&&Ge.setBlocking&&Ge.setBlocking(!0)},bufferFrom:fe,base64decode:st=>fe(st,"base64").toString("utf8"),base64encode:st=>fe(st).toString("base64"),require:(st,Ge)=>{try{let ot=ioe(Ge,st,F);return{module:cS(ot),modulePath:ot,error:void 0}}catch(ot){return{module:void 0,modulePath:void 0,error:ot}}}};return F;function oe(st){return o.statSync(st,{throwIfNoEntry:!1})}function W(st,Ge){if(p)return Ge(),!1;let ot=cS("inspector");if(!ot||!ot.Session)return Ge(),!1;let Vt=new ot.Session;return Vt.connect(),Vt.post("Profiler.enable",()=>{Vt.post("Profiler.start",()=>{p=Vt,h=st,Ge()})}),!0}function $(st){let Ge=0,ot=new Map,Vt=ad(s.dirname(R)),jt=`file://${P_(Vt)===1?"":"/"}${Vt}`;for(let gn of st.nodes)if(gn.callFrame.url){let On=ad(gn.callFrame.url);Bf(jt,On,A)?gn.callFrame.url=AA(jt,On,jt,od(A),!0):i.test(On)||(gn.callFrame.url=(ot.has(On)?ot:ot.set(On,`external${Ge}.js`)).get(On),Ge++)}return st}function de(st){if(p&&p!=="stopping"){let Ge=p;return p.post("Profiler.stop",(ot,{profile:Vt})=>{var jt;if(!ot){try{(jt=oe(h))!=null&&jt.isDirectory()&&(h=s.join(h,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{o.mkdirSync(s.dirname(h),{recursive:!0})}catch{}o.writeFileSync(h,JSON.stringify($(Vt)))}p=void 0,Ge.disconnect(),st()}),p="stopping",!0}else return st(),!1}function fe(st,Ge){return m.from&&m.from!==Int8Array.from?m.from(st,Ge):new m(st,Ge)}function q(){return S==="win32"||S==="win64"?!1:!_e(H(__filename))}function H(st){return st.replace(/\w/g,Ge=>{let ot=Ge.toUpperCase();return Ge===ot?Ge.toLowerCase():ot})}function ee(st,Ge,ot){o.watchFile(st,{persistent:!0,interval:ot},jt);let Vt;return{close:()=>o.unwatchFile(st,jt)};function jt(gn,On){let en=+On.mtime==0||Vt===2;if(+gn.mtime==0){if(en)return;Vt=2}else if(en)Vt=0;else{if(+gn.mtime==+On.mtime)return;Vt=1}Ge(st,Vt,gn.mtime)}}function le(st,Ge,ot){return o.watch(st,L?{persistent:!0,recursive:!!Ge}:{persistent:!0},ot)}function Ee(st,Ge){let ot;try{ot=o.readFileSync(st)}catch{return}let Vt=ot.length;if(Vt>=2&&ot[0]===254&&ot[1]===255){Vt&=-2;for(let jt=0;jt<Vt;jt+=2){let gn=ot[jt];ot[jt]=ot[jt+1],ot[jt+1]=gn}return ot.toString("utf16le",2)}return Vt>=2&&ot[0]===255&&ot[1]===254?ot.toString("utf16le",2):Vt>=3&&ot[0]===239&&ot[1]===187&&ot[2]===191?ot.toString("utf8",3):ot.toString("utf8")}function ce(st,Ge){var ot,Vt;(ot=Pd)==null||ot.logStartReadFile(st);let jt=Ee(st,Ge);return(Vt=Pd)==null||Vt.logStopReadFile(),jt}function Z(st,Ge,ot){var Vt;(Vt=Pd)==null||Vt.logEvent("WriteFile: "+st),ot&&(Ge=e+Ge);let jt;try{jt=o.openSync(st,"w"),o.writeSync(jt,Ge,void 0,"utf8")}finally{jt!==void 0&&o.closeSync(jt)}}function pe(st){var Ge;(Ge=Pd)==null||Ge.logEvent("ReadDir: "+(st||"."));try{let ot=o.readdirSync(st||".",{withFileTypes:!0}),Vt=[],jt=[];for(let gn of ot){let On=typeof gn=="string"?gn:gn.name;if(On==="."||On==="..")continue;let en;if(typeof gn=="string"||gn.isSymbolicLink()){let zt=wr(st,On);try{if(en=oe(zt),!en)continue}catch{continue}}else en=gn;en.isFile()?Vt.push(On):en.isDirectory()&&jt.push(On)}return Vt.sort(),jt.sort(),{files:Vt,directories:jt}}catch{return NF}}function Ae(st,Ge,ot,Vt,jt){return DV(st,Ge,ot,Vt,A,process.cwd(),jt,pe,ft)}function Oe(st,Ge){let ot=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let Vt=oe(st);if(!Vt)return!1;switch(Ge){case 0:return Vt.isFile();case 1:return Vt.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=ot}}function _e(st){return Oe(st,0)}function be(st){return Oe(st,1)}function Te(st){return pe(st).directories.slice()}function De(st){return st.length<260?o.realpathSync.native(st):o.realpathSync(st)}function ft(st){try{return C(st)}catch{return st}}function he(st){var Ge;let ot=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(Ge=oe(st))==null?void 0:Ge.mtime}catch{return}finally{Error.stackTraceLimit=ot}}function Le(st,Ge){try{o.utimesSync(st,Ge,Ge)}catch{return}}function Ke(st){try{return o.unlinkSync(st)}catch{return}}function Dt(st){let Ge=d.createHash("sha256");return Ge.update(st),Ge.digest("hex")}}let r;return mB()&&(r=t()),r&&cee(r),r})(),Hc&&Hc.getEnvironmentVariable&&(aFe(Hc),x.setAssertionLevel(/^development$/i.test(Hc.getEnvironmentVariable("NODE_ENV"))?1:0)),Hc&&Hc.debugMode&&(x.isDebugging=!0)}});function IG(e){return e===47||e===92}function uee(e){return T8(e)<0}function Ou(e){return T8(e)>0}function xG(e){let t=T8(e);return t>0&&t===e.length}function JD(e){return T8(e)!==0}function op(e){return/^\.\.?($|[\\/])/.test(e)}function RG(e){return!JD(e)&&!op(e)}function TA(e){return Ll(e).includes(".")}function el(e,t){return e.length>t.length&&Zs(e,t)}function $l(e,t){for(let r of t)if(el(e,r))return!0;return!1}function Jg(e){return e.length>0&&IG(e.charCodeAt(e.length-1))}function Wve(e){return e>=97&&e<=122||e>=65&&e<=90}function _Fe(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function T8(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?Os:DM,2);return i<0?e.length:i+1}if(Wve(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let r=e.indexOf(mee);if(r!==-1){let i=r+mee.length,o=e.indexOf(Os,i);if(o!==-1){let s=e.slice(0,r),l=e.slice(i,o);if(s==="file"&&(l===""||l==="localhost")&&Wve(e.charCodeAt(o+1))){let d=_Fe(e,o+2);if(d!==-1){if(e.charCodeAt(d)===47)return~(d+1);if(d===e.length)return~d}}return~(o+1)}return~e.length}return 0}function P_(e){let t=T8(e);return t<0?~t:t}function Ur(e){e=ad(e);let t=P_(e);return t===e.length?e:(e=fb(e),e.slice(0,Math.max(t,e.lastIndexOf(Os))))}function Ll(e,t,r){if(e=ad(e),P_(e)===e.length)return"";e=fb(e);let o=e.slice(Math.max(P_(e),e.lastIndexOf(Os)+1)),s=t!==void 0&&r!==void 0?w1(o,t,r):void 0;return s?o.slice(0,o.length-s.length):o}function Fve(e,t,r){if(Ui(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(r(i,t))return i}}function hFe(e,t,r){if(typeof t=="string")return Fve(e,t,r)||"";for(let i of t){let o=Fve(e,i,r);if(o)return o}return""}function w1(e,t,r){if(t)return hFe(fb(e),t,r?pb:pS);let i=Ll(e),o=i.lastIndexOf(".");return o>=0?i.substring(o):""}function gFe(e,t){let r=e.substring(0,t),i=e.substring(t).split(Os);return i.length&&!Ns(i)&&i.pop(),[r,...i]}function mc(e,t=""){return e=wr(t,e),gFe(e,P_(e))}function Vv(e,t){return e.length===0?"":(e[0]&&_c(e[0]))+e.slice(1,t).join(Os)}function ad(e){return e.includes("\\")?e.replace(Gve,Os):e}function hS(e){if(!ct(e))return[];let t=[e[0]];for(let r=1;r<e.length;r++){let i=e[r];if(i&&i!=="."){if(i===".."){if(t.length>1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function wr(e,...t){e&&(e=ad(e));for(let r of t)r&&(r=ad(r),!e||P_(r)!==0?e=r:e=_c(e)+r);return e}function jv(e,...t){return Yo(ct(t)?wr(e,...t):ad(e))}function IM(e,t){return hS(mc(e,t))}function Qi(e,t){return Vv(IM(e,t))}function Yo(e){if(e=ad(e),!I8.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!I8.test(e)))return e;let r=Vv(hS(mc(e)));return r&&Jg(e)?_c(r):r}function vFe(e){return e.length===0?"":e.slice(1).join(Os)}function DG(e,t){return vFe(IM(e,t))}function ks(e,t,r){let i=Ou(e)?Yo(e):Qi(e,t);return r(i)}function fb(e){return Jg(e)?e.substr(0,e.length-1):e}function _c(e){return Jg(e)?e:e+Os}function ME(e){return!JD(e)&&!op(e)?"./"+e:e}function xM(e,t,r,i){let o=r!==void 0&&i!==void 0?w1(e,r,i):w1(e);return o?e.slice(0,e.length-o.length)+(Ui(t,".")?t:"."+t):e}function pee(e,t){let r=Xj(e);return r?e.slice(0,e.length-r.length)+(Ui(t,".")?t:"."+t):xM(e,t)}function fee(e,t,r){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,P_(e)),o=t.substring(0,P_(t)),s=$w(i,o);if(s!==0)return s;let l=e.substring(i.length),d=t.substring(o.length);if(!I8.test(l)&&!I8.test(d))return r(l,d);let p=hS(mc(e)),h=hS(mc(t)),m=Math.min(p.length,h.length);for(let v=1;v<m;v++){let E=r(p[v],h[v]);if(E!==0)return E}return Ms(p.length,h.length)}function zve(e,t){return fee(e,t,gd)}function Bve(e,t){return fee(e,t,$w)}function Xh(e,t,r,i){return typeof r=="string"?(e=wr(r,e),t=wr(r,t)):typeof r=="boolean"&&(i=r),fee(e,t,D1(i))}function Bf(e,t,r,i){if(typeof r=="string"?(e=wr(r,e),t=wr(r,t)):typeof r=="boolean"&&(i=r),e===void 0||t===void 0)return!1;if(e===t)return!0;let o=hS(mc(e)),s=hS(mc(t));if(s.length<o.length)return!1;let l=i?pb:pS;for(let d=0;d<o.length;d++)if(!(d===0?pb:l)(o[d],s[d]))return!1;return!0}function CG(e,t,r){let i=r(e),o=r(t);return Ui(i,o+"/")||Ui(i,o+"\\")}function NG(e,t,r,i){let o=hS(mc(e)),s=hS(mc(t)),l;for(l=0;l<o.length&&l<s.length;l++){let h=i(o[l]),m=i(s[l]);if(!(l===0?pb:r)(h,m))break}if(l===0)return s;let d=s.slice(l),p=[];for(;l<o.length;l++)p.push("..");return["",...p,...d]}function Gf(e,t,r){x.assert(P_(e)>0==P_(t)>0,"Paths must either both be absolute or both be relative");let s=NG(e,t,(typeof r=="boolean"?r:!1)?pb:pS,typeof r=="function"?r:Ps);return Vv(s)}function KD(e,t,r){return Ou(e)?AA(t,e,t,r,!1):e}function RM(e,t,r){return ME(Gf(Ur(e),t,r))}function AA(e,t,r,i,o){let s=NG(jv(r,e),jv(r,t),pS,i),l=s[0];if(o&&Ou(l)){let d=l.charAt(0)===Os?"file://":"file:///";s[0]=d+l}return Vv(s)}function Vf(e,t){for(;;){let r=t(e);if(r!==void 0)return r;let i=Ur(e);if(i===e)return;e=i}}function A8(e){return Zs(e,"/node_modules")}var Os,DM,mee,Gve,I8,yFe=pt({"src/compiler/path.ts"(){"use strict";wo(),Os="/",DM="\\",mee="://",Gve=/\\/g,I8=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,r,i,o,s,l){return{code:e,category:t,key:r,message:i,reportsUnnecessary:o,elidedInCompatabilityPyramid:s,reportsDeprecated:l}}var f,bFe=pt({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";Nve(),f={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:b(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:b(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:b(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:b(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:b(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:b(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:b(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:b(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:b(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:b(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:b(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:b(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:b(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:b(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:b(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:b(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:b(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:b(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:b(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:b(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise<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:b(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise<T> type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:b(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:b(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:b(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:b(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:b(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:b(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:b(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:b(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:b(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:b(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:b(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:b(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:b(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:b(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:b(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:b(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:b(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:b(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:b(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:b(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:b(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:b(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:b(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:b(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:b(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:b(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:b(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:b(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:b(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:b(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:b(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:b(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:b(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:b(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:b(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:b(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:b(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:b(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:b(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:b(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:b(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:b(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:b(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:b(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:b(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:b(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:b(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:b(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:b(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:b(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:b(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:b(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:b(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:b(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:b(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:b(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:b(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:b(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:b(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:b(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:b(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:b(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:b(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:b(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:b(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:b(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:b(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:b(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:b(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:b(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:b(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:b(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:b(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:b(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:b(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1289,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1289","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1290,1,"_0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_1290","'{0}' resolves to a type-only declaration and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:b(1291,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1291","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'import type' where '{0}' is imported."),_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default:b(1292,1,"_0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enable_1292","'{0}' resolves to a type and must be marked type-only in this file before re-exporting when '{1}' is enabled. Consider using 'export type { {0} as default }'."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:b(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:b(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:b(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:b(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:b(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:b(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:b(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:b(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:b(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:b(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:b(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:b(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:b(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:b(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:b(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:b(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:b(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:b(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:b(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:b(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:b(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:b(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:b(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:b(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:b(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:b(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:b(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:b(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:b(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:b(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:b(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:b(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:b(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:b(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:b(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:b(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:b(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:b(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:b(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:b(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:b(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:b(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:b(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:b(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:b(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:b(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:b(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:b(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:b(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:b(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:b(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:b(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:b(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:b(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:b(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:b(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:b(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:b(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:b(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:b(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:b(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:b(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:b(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:b(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:b(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:b(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:b(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:b(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:b(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:b(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:b(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:b(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:b(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:b(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:b(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:b(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:b(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:b(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:b(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:b(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:b(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:b(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:b(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:b(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:b(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:b(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:b(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:b(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:b(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:b(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:b(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:b(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:b(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:b(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:b(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:b(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:b(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:b(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:b(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:b(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:b(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:b(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:b(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:b(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:b(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:b(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:b(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:b(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:b(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:b(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:b(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:b(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:b(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:b(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:b(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:b(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:b(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:b(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:b(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:b(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:b(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:b(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:b(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:b(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:b(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:b(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:b(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:b(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:b(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:b(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:b(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:b(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:b(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:b(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:b(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:b(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:b(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:b(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:b(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:b(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:b(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:b(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:b(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:b(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:b(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:b(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:b(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:b(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:b(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:b(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:b(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:b(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:b(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:b(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:b(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:b(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:b(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:b(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:b(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:b(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:b(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:b(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:b(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:b(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:b(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:b(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:b(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:b(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:b(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:b(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:b(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:b(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:b(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:b(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:b(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:b(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:b(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:b(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:b(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:b(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:b(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:b(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:b(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:b(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:b(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:b(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:b(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:b(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:b(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:b(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:b(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:b(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:b(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:b(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:b(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:b(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:b(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:b(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:b(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:b(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:b(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:b(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:b(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:b(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:b(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:b(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:b(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:b(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:b(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:b(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:b(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:b(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:b(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:b(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:b(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:b(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:b(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:b(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:b(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:b(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:b(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:b(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:b(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:b(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:b(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:b(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:b(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:b(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:b(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:b(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:b(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:b(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:b(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:b(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:b(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:b(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:b(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:b(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:b(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:b(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:b(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:b(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:b(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:b(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:b(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:b(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:b(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:b(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:b(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:b(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:b(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:b(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:b(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:b(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:b(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:b(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:b(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:b(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:b(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:b(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:b(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:b(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:b(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:b(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:b(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:b(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:b(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:b(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:b(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:b(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:b(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:b(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:b(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:b(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:b(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:b(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:b(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:b(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:b(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:b(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:b(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:b(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:b(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:b(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:b(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:b(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:b(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:b(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:b(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:b(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:b(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:b(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:b(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:b(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:b(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:b(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:b(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:b(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:b(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:b(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:b(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:b(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:b(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:b(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:b(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:b(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:b(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:b(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:b(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:b(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:b(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:b(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:b(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:b(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:b(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:b(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:b(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:b(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:b(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:b(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:b(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:b(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:b(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:b(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:b(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:b(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:b(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:b(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:b(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:b(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:b(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:b(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:b(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:b(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:b(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:b(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:b(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:b(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:b(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:b(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:b(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:b(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:b(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:b(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:b(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:b(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:b(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:b(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:b(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:b(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:b(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:b(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:b(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:b(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:b(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:b(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:b(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:b(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:b(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:b(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:b(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:b(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:b(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:b(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:b(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:b(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:b(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:b(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:b(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:b(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:b(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:b(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:b(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:b(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:b(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:b(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:b(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:b(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:b(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:b(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:b(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:b(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:b(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:b(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:b(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:b(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:b(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:b(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:b(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:b(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:b(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2821","Import assertions are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:b(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:b(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve_2823","Import attributes are only supported when the '--module' option is set to 'esnext', 'nodenext', or 'preserve'."),Cannot_find_namespace_0_Did_you_mean_1:b(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:b(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:b(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:b(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:b(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:b(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', 'nodenext', or 'preserve', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:b(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:b(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:b(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:b(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:b(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:b(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:b(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:b(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:b(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2865,1,"Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_2865","Import '{0}' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled."),Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled:b(2866,1,"Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_w_2866","Import '{0}' conflicts with global value used in this file, so must be declared with a type-only import when 'isolatedModules' is enabled."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun:b(2867,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2867","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_and_then_add_bun_to_the_types_field_in_your_tsconfig:b(2868,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_Bun_Try_npm_i_save_dev_types_Slashbun_2868","Cannot find name '{0}'. Do you need to install type definitions for Bun? Try `npm i --save-dev @types/bun` and then add 'bun' to the types field in your tsconfig."),Import_declaration_0_is_using_private_name_1:b(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:b(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:b(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:b(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:b(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:b(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:b(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:b(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:b(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:b(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:b(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:b(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:b(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:b(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:b(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:b(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:b(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:b(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:b(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:b(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:b(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:b(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:b(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:b(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:b(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:b(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:b(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:b(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:b(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:b(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:b(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:b(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:b(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:b(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:b(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:b(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:b(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:b(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:b(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:b(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:b(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:b(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:b(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:b(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given:b(4125,1,"Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given_4125","Each declaration of '{0}.{1}' differs in its value, where '{2}' was expected but '{3}' was given."),One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value:b(4126,1,"One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value_4126","One value of '{0}.{1}' is the string '{2}', and the other is assumed to be an unknown numeric value."),The_current_host_does_not_support_the_0_option:b(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:b(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:b(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:b(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:b(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:b(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:b(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:b(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:b(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:b(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:b(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:b(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:b(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:b(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:b(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:b(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:b(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:b(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:b(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:b(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:b(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:b(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:b(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd:b(5071,1,"Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd_5071","Option '--resolveJsonModule' cannot be specified when 'module' is set to 'none', 'system', or 'umd'."),Unknown_build_option_0:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:b(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:b(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:b(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:b(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:b(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:b(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:b(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:b(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:b(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:b(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:b(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:b(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later:b(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'preserve' or to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:b(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:b(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:b(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:b(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:b(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form <language> or <language>-<territory>. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:b(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:b(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:b(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:b(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:b(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:b(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:b(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),Only_amd_and_system_modules_are_supported_alongside_0:b(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:b(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:b(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:b(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:b(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:b(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:b(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:b(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:b(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:b(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:b(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:b(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:b(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:b(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:b(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:b(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:b(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:b(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:b(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:b(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:b(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:b(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:b(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:b(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:b(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:b(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:b(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:b(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:b(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:b(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:b(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:b(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:b(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:b(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:b(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:b(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:b(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:b(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:b(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:b(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:b(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:b(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:b(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:b(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:b(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:b(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:b(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:b(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:b(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:b(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:b(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:b(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:b(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:b(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:b(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:b(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:b(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:b(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:b(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:b(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:b(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:b(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:b(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:b(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:b(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:b(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:b(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:b(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:b(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:b(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:b(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:b(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:b(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:b(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:b(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:b(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:b(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:b(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update:b(6279,3,"Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_ne_6279","Resolution of non-relative name failed; trying with '--moduleResolution bundler' to see if project may need configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler:b(6280,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setti_6280","There are types at '{0}', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'."),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:b(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:b(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:b(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:b(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:b(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:b(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:b(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:b(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:b(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:b(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:b(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:b(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:b(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:b(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:b(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:b(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:b(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:b(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:b(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:b(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:b(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:b(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:b(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:b(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:b(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:b(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:b(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:b(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:b(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:b(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:b(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:b(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:b(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:b(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:b(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:b(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:b(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:b(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:b(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:b(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:b(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:b(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:b(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:b(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:b(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:b(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:b(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:b(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:b(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:b(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:b(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:b(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:b(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:b(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:b(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:b(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:b(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:b(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:b(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:b(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:b(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:b(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:b(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:b(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:b(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:b(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:b(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:b(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:b(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:b(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:b(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:b(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:b(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:b(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:b(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:b(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:b(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:b(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:b(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:b(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:b(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:b(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:b(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:b(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:b(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:b(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:b(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:b(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:b(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:b(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:b(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:b(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:b(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:b(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:b(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:b(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:b(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:b(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:b(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:b(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:b(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:b(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:b(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:b(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:b(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:b(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:b(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:b(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:b(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:b(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:b(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:b(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:b(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:b(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:b(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:b(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:b(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:b(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:b(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:b(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:b(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:b(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:b(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:b(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:b(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:b(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:b(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:b(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:b(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:b(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:b(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:b(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:b(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:b(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:b(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:b(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:b(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:b(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:b(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:b(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:b(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:b(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:b(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:b(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:b(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:b(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:b(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:b(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:b(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:b(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:b(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:b(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:b(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:b(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:b(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:b(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:b(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:b(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:b(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:b(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:b(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:b(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:b(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:b(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:b(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:b(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:b(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:b(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:b(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:b(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:b(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:b(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:b(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:b(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:b(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:b(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:b(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:b(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:b(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:b(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:b(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:b(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:b(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:b(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:b(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:b(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:b(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:b(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:b(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:b(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:b(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:b(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:b(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:b(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:b(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:b(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:b(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:b(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:b(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:b(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:b(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:b(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:b(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:b(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:b(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:b(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:b(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:b(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:b(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:b(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:b(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:b(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:b(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:b(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:b(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:b(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:b(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:b(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:b(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:b(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:b(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:b(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:b(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:b(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),Add_missing_parameter_to_0:b(95188,3,"Add_missing_parameter_to_0_95188","Add missing parameter to '{0}'"),Add_missing_parameters_to_0:b(95189,3,"Add_missing_parameters_to_0_95189","Add missing parameters to '{0}'"),Add_all_missing_parameters:b(95190,3,"Add_all_missing_parameters_95190","Add all missing parameters"),Add_optional_parameter_to_0:b(95191,3,"Add_optional_parameter_to_0_95191","Add optional parameter to '{0}'"),Add_optional_parameters_to_0:b(95192,3,"Add_optional_parameters_to_0_95192","Add optional parameters to '{0}'"),Add_all_optional_parameters:b(95193,3,"Add_all_optional_parameters_95193","Add all optional parameters"),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:b(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:b(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:b(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:b(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:b(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:b(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:b(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:b(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:b(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:b(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:b(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:b(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:b(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:b(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:b(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:b(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:b(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:b(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:b(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:b(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:b(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:b(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:b(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:b(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:b(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:b(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function Md(e){return e>=80}function _ee(e){return e===32||Md(e)}function CM(e,t){if(e<t[0])return!1;let r=0,i=t.length,o;for(;r+1<i;){if(o=r+(i-r)/2,o-=o%2,t[o]<=e&&e<=t[o+1])return!0;e<t[o]?i=o:r=o+2}return!1}function x8(e,t){return t>=2?CM(e,Xve):t===1?CM(e,Jve):CM(e,Hve)}function EFe(e,t){return t>=2?CM(e,Yve):t===1?CM(e,Kve):CM(e,qve)}function SFe(e){let t=[];return e.forEach((r,i)=>{t[r]=i}),t}function qo(e){return eye[e]}function LE(e){return yee.get(e)}function IA(e){let t=[],r=0,i=0;for(;r<e.length;){let o=e.charCodeAt(r);switch(r++,o){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(i),i=r;break;default:o>127&&vd(o)&&(t.push(i),i=r);break}}return t.push(i),t}function NM(e,t,r,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,r,i):R8(Yh(e),t,r,e.text,i)}function R8(e,t,r,i,o){(t<0||t>=e.length)&&(o?t=t<0?0:t>=e.length?e.length-1:t:x.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?dM(e,IA(i)):"unknown"}`));let s=e[t]+r;return o?s>e[t+1]?e[t+1]:typeof i=="string"&&s>i.length?i.length:s:(t<e.length-1?x.assert(s<e[t+1]):i!==void 0&&x.assert(s<=i.length),s)}function Yh(e){return e.lineMap||(e.lineMap=IA(e.text))}function W1(e,t){let r=XD(e,t);return{line:r,character:t-e[r]}}function XD(e,t,r){let i=Vg(e,t,Ps,Ms,r);return i<0&&(i=~i-1,x.assert(i!==-1,"position cannot precede the beginning of the file")),i}function YD(e,t,r){if(t===r)return 0;let i=Yh(e),o=Math.min(t,r),s=o===r,l=s?t:r,d=XD(i,o),p=XD(i,l,d);return s?d-p:p-d}function $a(e,t){return W1(Yh(e),t)}function $h(e){return jm(e)||vd(e)}function jm(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function vd(e){return e===10||e===13||e===8232||e===8233}function $D(e){return e>=48&&e<=57}function Vve(e){return $D(e)||e>=65&&e<=70||e>=97&&e<=102}function TFe(e){return e<=1114111}function D8(e){return e>=48&&e<=55}function hee(e,t){let r=e.charCodeAt(t);switch(r){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return r>127}}function ua(e,t,r,i,o){if(ym(t))return t;let s=!1;for(;;){let l=e.charCodeAt(t);switch(l){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;s=!!o;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!vd(e.charCodeAt(t));)t++;s=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}s=!1;continue}break;case 60:case 124:case 61:case 62:if(QD(e,t)){t=PM(e,t),s=!1;continue}break;case 35:if(t===0&&PG(e,t)){t=MG(e,t),s=!1;continue}break;case 42:if(s){t++,s=!1;continue}break;default:if(l>127&&$h(l)){t++;continue}break}return t}}function QD(e,t){if(x.assert(t>=0),t===0||vd(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+N8<e.length){for(let i=0;i<N8;i++)if(e.charCodeAt(t+i)!==r)return!1;return r===61||e.charCodeAt(t+N8)===32}}return!1}function PM(e,t,r){r&&r(f.Merge_conflict_marker_encountered,t,N8);let i=e.charCodeAt(t),o=e.length;if(i===60||i===62)for(;t<o&&!vd(e.charCodeAt(t));)t++;else for(x.assert(i===124||i===61);t<o;){let s=e.charCodeAt(t);if((s===61||s===62)&&s!==i&&QD(e,t))break;t++}return t}function PG(e,t){return x.assert(t===0),kG.test(e)}function MG(e,t){let r=kG.exec(e)[0];return t=t+r.length,t}function LG(e,t,r,i,o,s,l){let d,p,h,m,v=!1,E=i,S=l;if(r===0){E=!0;let A=C8(t);A&&(r=A.length)}e:for(;r>=0&&r<t.length;){let A=t.charCodeAt(r);switch(A){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,i)break e;E=!0,v&&(m=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:let C=t.charCodeAt(r+1),R=!1;if(C===47||C===42){let L=C===47?2:3,G=r;if(r+=2,C===47)for(;r<t.length;){if(vd(t.charCodeAt(r))){R=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(E){if(v&&(S=o(d,p,h,m,s,S),!e&&S))return S;d=G,p=r,h=L,m=R,v=!0}continue}break e;default:if(A>127&&$h(A)){v&&vd(A)&&(m=!0),r++;continue}break e}}return v&&(S=o(d,p,h,m,s,S)),S}function MM(e,t,r,i){return LG(!1,e,t,!1,r,i)}function LM(e,t,r,i){return LG(!1,e,t,!0,r,i)}function gee(e,t,r,i,o){return LG(!0,e,t,!1,r,i,o)}function vee(e,t,r,i,o){return LG(!0,e,t,!0,r,i,o)}function jve(e,t,r,i,o,s=[]){return s.push({kind:r,pos:e,end:t,hasTrailingNewLine:i}),s}function mh(e,t){return gee(e,t,jve,void 0,void 0)}function mb(e,t){return vee(e,t,jve,void 0,void 0)}function C8(e){let t=kG.exec(e);if(t)return t[0]}function _h(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&x8(e,t)}function _b(e,t,r){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(r===1?e===45||e===58:!1)||e>127&&EFe(e,t)}function Sp(e,t,r){let i=Uv(e,0);if(!_h(i,t))return!1;for(let o=hb(i);o<e.length;o+=hb(i))if(!_b(i=Uv(e,o),t,r))return!1;return!0}function Kg(e,t,r=0,i,o,s,l){var d=i,p,h,m,v,E,S,A,C,R=0,L=0,G=0;Rt(d,s,l);var U={getTokenFullStart:()=>m,getStartPos:()=>m,getTokenEnd:()=>p,getTextPos:()=>p,getToken:()=>E,getTokenStart:()=>v,getTokenPos:()=>v,getTokenText:()=>d.substring(v,p),getTokenValue:()=>S,hasUnicodeEscape:()=>(A&1024)!==0,hasExtendedUnicodeEscape:()=>(A&8)!==0,hasPrecedingLineBreak:()=>(A&1)!==0,hasPrecedingJSDocComment:()=>(A&2)!==0,isIdentifier:()=>E===80||E>118,isReservedWord:()=>E>=83&&E<=118,isUnterminated:()=>(A&4)!==0,getCommentDirectives:()=>C,getNumericLiteralFlags:()=>A&25584,getTokenFlags:()=>A,reScanGreaterToken:he,reScanAsteriskEqualsToken:Le,reScanSlashToken:Ke,reScanTemplateToken:Ge,reScanTemplateHeadOrNoSubstitutionTemplate:ot,scanJsxIdentifier:zt,scanJsxAttributeValue:Wt,reScanJsxAttributeValue:ei,reScanJsxToken:Vt,reScanLessThanToken:jt,reScanHashToken:gn,reScanQuestionToken:On,reScanInvalidIdentifier:De,scanJsxToken:en,scanJsDocToken:gi,scanJSDocCommentTextToken:Ki,scan:be,getText:Jt,clearCommentDirectives:Ue,setText:Rt,setScriptTarget:qr,setLanguageVariant:ni,setScriptKind:ki,setJSDocParsingMode:so,setOnError:mn,resetTokenState:Jo,setTextPos:Jo,setInJSDocType:ba,tryScan:cr,lookAhead:Nr,scanRange:Gn};return x.isDebugging&&Object.defineProperty(U,"__debugShowCurrentPositionInText",{get:()=>{let ln=U.getText();return ln.slice(0,U.getTokenFullStart())+"\u2551"+ln.slice(U.getTokenFullStart())}}),U;function K(ln,Tn=p,ke,nt){if(o){let tt=p;p=Tn,o(ln,ke||0,nt),p=tt}}function F(){let ln=p,Tn=!1,ke=!1,nt="";for(;;){let tt=d.charCodeAt(p);if(tt===95){A|=512,Tn?(Tn=!1,ke=!0,nt+=d.substring(ln,p)):(A|=16384,K(ke?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1)),p++,ln=p;continue}if($D(tt)){Tn=!0,ke=!1,p++;continue}break}return d.charCodeAt(p-1)===95&&(A|=16384,K(f.Numeric_separators_are_not_allowed_here,p-1,1)),nt+d.substring(ln,p)}function oe(){let ln=p,Tn;if(d.charCodeAt(p)===48)if(p++,d.charCodeAt(p)===95)A|=16896,K(f.Numeric_separators_are_not_allowed_here,p,1),p--,Tn=F();else if(!$())A|=8192,Tn=""+ +S;else if(!S)Tn="0";else{S=""+parseInt(S,8),A|=32;let re=E===41,Ce=(re?"-":"")+"0o"+(+S).toString(8);return re&&ln--,K(f.Octal_literals_are_not_allowed_Use_the_syntax_0,ln,p-ln,Ce),9}else Tn=F();let ke,nt;d.charCodeAt(p)===46&&(p++,ke=F());let tt=p;if(d.charCodeAt(p)===69||d.charCodeAt(p)===101){p++,A|=16,(d.charCodeAt(p)===43||d.charCodeAt(p)===45)&&p++;let re=p,Ce=F();Ce?(nt=d.substring(tt,re)+Ce,tt=p):K(f.Digit_expected)}let yt;if(A&512?(yt=Tn,ke&&(yt+="."+ke),nt&&(yt+=nt)):yt=d.substring(ln,tt),A&8192)return K(f.Decimals_with_leading_zeros_are_not_allowed,ln,tt-ln),S=""+ +yt,9;if(ke!==void 0||A&16)return W(ln,ke===void 0&&!!(A&16)),S=""+ +yt,9;{S=yt;let re=_e();return W(ln),re}}function W(ln,Tn){if(!_h(Uv(d,p),e))return;let ke=p,{length:nt}=pe();nt===1&&d[ke]==="n"?K(Tn?f.A_bigint_literal_cannot_use_exponential_notation:f.A_bigint_literal_must_be_an_integer,ln,ke-ln+1):(K(f.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,ke,nt),p=ke)}function $(){let ln=p,Tn=!0;for(;$D(d.charCodeAt(p));)D8(d.charCodeAt(p))||(Tn=!1),p++;return S=d.substring(ln,p),Tn}function de(ln,Tn){let ke=q(ln,!1,Tn);return ke?parseInt(ke,16):-1}function fe(ln,Tn){return q(ln,!0,Tn)}function q(ln,Tn,ke){let nt=[],tt=!1,yt=!1;for(;nt.length<ln||Tn;){let re=d.charCodeAt(p);if(ke&&re===95){A|=512,tt?(tt=!1,yt=!0):K(yt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(tt=ke,re>=65&&re<=70)re+=32;else if(!(re>=48&&re<=57||re>=97&&re<=102))break;nt.push(re),p++,yt=!1}return nt.length<ln&&(nt=[]),d.charCodeAt(p-1)===95&&K(f.Numeric_separators_are_not_allowed_here,p-1,1),String.fromCharCode(...nt)}function H(ln=!1){let Tn=d.charCodeAt(p);p++;let ke="",nt=p;for(;;){if(p>=h){ke+=d.substring(nt,p),A|=4,K(f.Unterminated_string_literal);break}let tt=d.charCodeAt(p);if(tt===Tn){ke+=d.substring(nt,p),p++;break}if(tt===92&&!ln){ke+=d.substring(nt,p),ke+=le(!0),nt=p;continue}if((tt===10||tt===13)&&!ln){ke+=d.substring(nt,p),A|=4,K(f.Unterminated_string_literal);break}p++}return ke}function ee(ln){let Tn=d.charCodeAt(p)===96;p++;let ke=p,nt="",tt;for(;;){if(p>=h){nt+=d.substring(ke,p),A|=4,K(f.Unterminated_template_literal),tt=Tn?15:18;break}let yt=d.charCodeAt(p);if(yt===96){nt+=d.substring(ke,p),p++,tt=Tn?15:18;break}if(yt===36&&p+1<h&&d.charCodeAt(p+1)===123){nt+=d.substring(ke,p),p+=2,tt=Tn?16:17;break}if(yt===92){nt+=d.substring(ke,p),nt+=le(ln),ke=p;continue}if(yt===13){nt+=d.substring(ke,p),p++,p<h&&d.charCodeAt(p)===10&&p++,nt+=`
`,ke=p;continue}p++}return x.assert(tt!==void 0),S=nt,tt}function le(ln){let Tn=p;if(p++,p>=h)return K(f.Unexpected_end_of_text),"";let ke=d.charCodeAt(p);switch(p++,ke){case 48:if(p>=h||!$D(d.charCodeAt(p)))return"\0";case 49:case 50:case 51:p<h&&D8(d.charCodeAt(p))&&p++;case 52:case 53:case 54:case 55:if(p<h&&D8(d.charCodeAt(p))&&p++,A|=2048,ln){let nt=parseInt(d.substring(Tn+1,p),8);return K(f.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,Tn,p-Tn,"\\x"+nt.toString(16).padStart(2,"0")),String.fromCharCode(nt)}return d.substring(Tn,p);case 56:case 57:return A|=2048,ln?(K(f.Escape_sequence_0_is_not_allowed,Tn,p-Tn,d.substring(Tn,p)),String.fromCharCode(ke)):d.substring(Tn,p);case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(p<h&&d.charCodeAt(p)===123){p++;let nt=fe(1,!1),tt=nt?parseInt(nt,16):-1;return tt<0?(A|=2048,ln&&K(f.Hexadecimal_digit_expected),d.substring(Tn,p)):TFe(tt)?p>=h?(A|=2048,ln&&K(f.Unexpected_end_of_text),d.substring(Tn,p)):d.charCodeAt(p)!==125?(A|=2048,ln&&K(f.Unterminated_Unicode_escape_sequence),d.substring(Tn,p)):(p++,A|=8,F1(tt)):(A|=2048,ln&&K(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),d.substring(Tn,p))}for(;p<Tn+6;p++)if(!(p<h&&Vve(d.charCodeAt(p))))return A|=2048,ln&&K(f.Hexadecimal_digit_expected),d.substring(Tn,p);return A|=1024,String.fromCharCode(parseInt(d.substring(Tn+2,p),16));case 120:for(;p<Tn+4;p++)if(!(p<h&&Vve(d.charCodeAt(p))))return A|=2048,ln&&K(f.Hexadecimal_digit_expected),d.substring(Tn,p);return A|=4096,String.fromCharCode(parseInt(d.substring(Tn+2,p),16));case 13:p<h&&d.charCodeAt(p)===10&&p++;case 10:case 8232:case 8233:return"";default:return String.fromCharCode(ke)}}function Ee(){let ln=fe(1,!1),Tn=ln?parseInt(ln,16):-1,ke=!1;return Tn<0?(K(f.Hexadecimal_digit_expected),ke=!0):Tn>1114111&&(K(f.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),ke=!0),p>=h?(K(f.Unexpected_end_of_text),ke=!0):d.charCodeAt(p)===125?p++:(K(f.Unterminated_Unicode_escape_sequence),ke=!0),ke?"":F1(Tn)}function ce(){if(p+5<h&&d.charCodeAt(p+1)===117){let ln=p;p+=2;let Tn=de(4,!1);return p=ln,Tn}return-1}function Z(){if(Uv(d,p+1)===117&&Uv(d,p+2)===123){let ln=p;p+=3;let Tn=fe(1,!1),ke=Tn?parseInt(Tn,16):-1;return p=ln,ke}return-1}function pe(){let ln="",Tn=p;for(;p<h;){let ke=Uv(d,p);if(_b(ke,e))p+=hb(ke);else if(ke===92){if(ke=Z(),ke>=0&&_b(ke,e)){p+=3,A|=8,ln+=Ee(),Tn=p;continue}if(ke=ce(),!(ke>=0&&_b(ke,e)))break;A|=1024,ln+=d.substring(Tn,p),ln+=F1(ke),p+=6,Tn=p}else break}return ln+=d.substring(Tn,p),ln}function Ae(){let ln=S.length;if(ln>=2&&ln<=12){let Tn=S.charCodeAt(0);if(Tn>=97&&Tn<=122){let ke=Uve.get(S);if(ke!==void 0)return E=ke}}return E=80}function Oe(ln){let Tn="",ke=!1,nt=!1;for(;;){let tt=d.charCodeAt(p);if(tt===95){A|=512,ke?(ke=!1,nt=!0):K(nt?f.Multiple_consecutive_numeric_separators_are_not_permitted:f.Numeric_separators_are_not_allowed_here,p,1),p++;continue}if(ke=!0,!$D(tt)||tt-48>=ln)break;Tn+=d[p],p++,nt=!1}return d.charCodeAt(p-1)===95&&K(f.Numeric_separators_are_not_allowed_here,p-1,1),Tn}function _e(){return d.charCodeAt(p)===110?(S+="n",A&384&&(S=HC(S)+"n"),p++,10):(S=""+(A&128?parseInt(S.slice(2),2):A&256?parseInt(S.slice(2),8):+S),9)}function be(){m=p,A=0;let ln=!1;for(;;){if(v=p,p>=h)return E=1;let Tn=Uv(d,p);if(p===0){if(d.slice(0,256).includes("\uFFFD"))return K(f.File_appears_to_be_binary),p=h,E=8;if(Tn===35&&PG(d,p)){if(p=MG(d,p),t)continue;return E=6}}switch(Tn){case 10:case 13:if(A|=1,t){p++;continue}else return Tn===13&&p+1<h&&d.charCodeAt(p+1)===10?p+=2:p++,E=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){p++;continue}else{for(;p<h&&jm(d.charCodeAt(p));)p++;return E=5}case 33:return d.charCodeAt(p+1)===61?d.charCodeAt(p+2)===61?(p+=3,E=38):(p+=2,E=36):(p++,E=54);case 34:case 39:return S=H(),E=11;case 96:return E=ee(!1);case 37:return d.charCodeAt(p+1)===61?(p+=2,E=70):(p++,E=45);case 38:return d.charCodeAt(p+1)===38?d.charCodeAt(p+2)===61?(p+=3,E=77):(p+=2,E=56):d.charCodeAt(p+1)===61?(p+=2,E=74):(p++,E=51);case 40:return p++,E=21;case 41:return p++,E=22;case 42:if(d.charCodeAt(p+1)===61)return p+=2,E=67;if(d.charCodeAt(p+1)===42)return d.charCodeAt(p+2)===61?(p+=3,E=68):(p+=2,E=43);if(p++,R&&!ln&&A&1){ln=!0;continue}return E=42;case 43:return d.charCodeAt(p+1)===43?(p+=2,E=46):d.charCodeAt(p+1)===61?(p+=2,E=65):(p++,E=40);case 44:return p++,E=28;case 45:return d.charCodeAt(p+1)===45?(p+=2,E=47):d.charCodeAt(p+1)===61?(p+=2,E=66):(p++,E=41);case 46:return $D(d.charCodeAt(p+1))?(oe(),E=9):d.charCodeAt(p+1)===46&&d.charCodeAt(p+2)===46?(p+=3,E=26):(p++,E=25);case 47:if(d.charCodeAt(p+1)===47){for(p+=2;p<h&&!vd(d.charCodeAt(p));)p++;if(C=Dt(C,d.slice(v,p),$ve,v),t)continue;return E=2}if(d.charCodeAt(p+1)===42){p+=2;let Ce=d.charCodeAt(p)===42&&d.charCodeAt(p+1)!==47,et=!1,z=v;for(;p<h;){let Je=d.charCodeAt(p);if(Je===42&&d.charCodeAt(p+1)===47){p+=2,et=!0;break}p++,vd(Je)&&(z=p,A|=1)}if(Ce&&Te()&&(A|=2),C=Dt(C,d.slice(z,p),Qve,z),et||K(f.Asterisk_Slash_expected),t)continue;return et||(A|=4),E=3}return d.charCodeAt(p+1)===61?(p+=2,E=69):(p++,E=44);case 48:if(p+2<h&&(d.charCodeAt(p+1)===88||d.charCodeAt(p+1)===120))return p+=2,S=fe(1,!0),S||(K(f.Hexadecimal_digit_expected),S="0"),S="0x"+S,A|=64,E=_e();if(p+2<h&&(d.charCodeAt(p+1)===66||d.charCodeAt(p+1)===98))return p+=2,S=Oe(2),S||(K(f.Binary_digit_expected),S="0"),S="0b"+S,A|=128,E=_e();if(p+2<h&&(d.charCodeAt(p+1)===79||d.charCodeAt(p+1)===111))return p+=2,S=Oe(8),S||(K(f.Octal_digit_expected),S="0"),S="0o"+S,A|=256,E=_e();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return E=oe();case 58:return p++,E=59;case 59:return p++,E=27;case 60:if(QD(d,p)){if(p=PM(d,p,K),t)continue;return E=7}return d.charCodeAt(p+1)===60?d.charCodeAt(p+2)===61?(p+=3,E=71):(p+=2,E=48):d.charCodeAt(p+1)===61?(p+=2,E=33):r===1&&d.charCodeAt(p+1)===47&&d.charCodeAt(p+2)!==42?(p+=2,E=31):(p++,E=30);case 61:if(QD(d,p)){if(p=PM(d,p,K),t)continue;return E=7}return d.charCodeAt(p+1)===61?d.charCodeAt(p+2)===61?(p+=3,E=37):(p+=2,E=35):d.charCodeAt(p+1)===62?(p+=2,E=39):(p++,E=64);case 62:if(QD(d,p)){if(p=PM(d,p,K),t)continue;return E=7}return p++,E=32;case 63:return d.charCodeAt(p+1)===46&&!$D(d.charCodeAt(p+2))?(p+=2,E=29):d.charCodeAt(p+1)===63?d.charCodeAt(p+2)===61?(p+=3,E=78):(p+=2,E=61):(p++,E=58);case 91:return p++,E=23;case 93:return p++,E=24;case 94:return d.charCodeAt(p+1)===61?(p+=2,E=79):(p++,E=53);case 123:return p++,E=19;case 124:if(QD(d,p)){if(p=PM(d,p,K),t)continue;return E=7}return d.charCodeAt(p+1)===124?d.charCodeAt(p+2)===61?(p+=3,E=76):(p+=2,E=57):d.charCodeAt(p+1)===61?(p+=2,E=75):(p++,E=52);case 125:return p++,E=20;case 126:return p++,E=55;case 64:return p++,E=60;case 92:let ke=Z();if(ke>=0&&_h(ke,e))return p+=3,A|=8,S=Ee()+pe(),E=Ae();let nt=ce();return nt>=0&&_h(nt,e)?(p+=6,A|=1024,S=String.fromCharCode(nt)+pe(),E=Ae()):(K(f.Invalid_character),p++,E=0);case 35:if(p!==0&&d[p+1]==="!")return K(f.can_only_be_used_at_the_start_of_a_file),p++,E=0;let tt=Uv(d,p+1);if(tt===92){p++;let Ce=Z();if(Ce>=0&&_h(Ce,e))return p+=3,A|=8,S="#"+Ee()+pe(),E=81;let et=ce();if(et>=0&&_h(et,e))return p+=6,A|=1024,S="#"+String.fromCharCode(et)+pe(),E=81;p--}return _h(tt,e)?(p++,ft(tt,e)):(S="#",K(f.Invalid_character,p++,hb(Tn))),E=81;default:let yt=ft(Tn,e);if(yt)return E=yt;if(jm(Tn)){p+=hb(Tn);continue}else if(vd(Tn)){A|=1,p+=hb(Tn);continue}let re=hb(Tn);return K(f.Invalid_character,p,re),p+=re,E=0}}}function Te(){switch(G){case 0:return!0;case 1:return!1}return L!==3&&L!==4?!0:G===3?!1:Zve.test(d.slice(m,p))}function De(){x.assert(E===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),p=v=m,A=0;let ln=Uv(d,p),Tn=ft(ln,99);return Tn?E=Tn:(p+=hb(ln),E)}function ft(ln,Tn){let ke=ln;if(_h(ke,Tn)){for(p+=hb(ke);p<h&&_b(ke=Uv(d,p),Tn);)p+=hb(ke);return S=d.substring(v,p),ke===92&&(S+=pe()),Ae()}}function he(){if(E===32){if(d.charCodeAt(p)===62)return d.charCodeAt(p+1)===62?d.charCodeAt(p+2)===61?(p+=3,E=73):(p+=2,E=50):d.charCodeAt(p+1)===61?(p+=2,E=72):(p++,E=49);if(d.charCodeAt(p)===61)return p++,E=34}return E}function Le(){return x.assert(E===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),p=v+1,E=64}function Ke(){if(E===44||E===69){let ln=v+1,Tn=!1,ke=!1;for(;;){if(ln>=h){A|=4,K(f.Unterminated_regular_expression_literal);break}let nt=d.charCodeAt(ln);if(vd(nt)){A|=4,K(f.Unterminated_regular_expression_literal);break}if(Tn)Tn=!1;else if(nt===47&&!ke){ln++;break}else nt===91?ke=!0:nt===92?Tn=!0:nt===93&&(ke=!1);ln++}for(;ln<h&&_b(d.charCodeAt(ln),e);)ln++;p=ln,S=d.substring(v,p),E=14}return E}function Dt(ln,Tn,ke,nt){let tt=st(Tn.trimStart(),ke);return tt===void 0?ln:pn(ln,{range:{pos:nt,end:p},type:tt})}function st(ln,Tn){let ke=Tn.exec(ln);if(ke)switch(ke[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Ge(ln){return p=v,E=ee(!ln)}function ot(){return p=v,E=ee(!0)}function Vt(ln=!0){return p=v=m,E=en(ln)}function jt(){return E===48?(p=v+1,E=30):E}function gn(){return E===81?(p=v+1,E=63):E}function On(){return x.assert(E===61,"'reScanQuestionToken' should only be called on a '??'"),p=v+1,E=58}function en(ln=!0){if(m=v=p,p>=h)return E=1;let Tn=d.charCodeAt(p);if(Tn===60)return d.charCodeAt(p+1)===47?(p+=2,E=31):(p++,E=30);if(Tn===123)return p++,E=19;let ke=0;for(;p<h&&(Tn=d.charCodeAt(p),Tn!==123);){if(Tn===60){if(QD(d,p))return p=PM(d,p,K),E=7;break}if(Tn===62&&K(f.Unexpected_token_Did_you_mean_or_gt,p,1),Tn===125&&K(f.Unexpected_token_Did_you_mean_or_rbrace,p,1),vd(Tn)&&ke===0)ke=-1;else{if(!ln&&vd(Tn)&&ke>0)break;$h(Tn)||(ke=p)}p++}return S=d.substring(m,p),ke===-1?13:12}function zt(){if(Md(E)){for(;p<h;){if(d.charCodeAt(p)===45){S+="-",p++;continue}let Tn=p;if(S+=pe(),p===Tn)break}return Ae()}return E}function Wt(){switch(m=p,d.charCodeAt(p)){case 34:case 39:return S=H(!0),E=11;default:return be()}}function ei(){return p=v=m,Wt()}function Ki(ln){if(m=v=p,A=0,p>=h)return E=1;for(let Tn=d.charCodeAt(p);p<h&&!vd(Tn)&&Tn!==96;Tn=Uv(d,++p))if(!ln){if(Tn===123)break;if(Tn===64&&p-1>=0&&jm(d.charCodeAt(p-1))&&!(p+1<h&&$h(d.charCodeAt(p+1))))break}return p===v?gi():(S=d.substring(v,p),E=82)}function gi(){if(m=v=p,A=0,p>=h)return E=1;let ln=Uv(d,p);switch(p+=hb(ln),ln){case 9:case 11:case 12:case 32:for(;p<h&&jm(d.charCodeAt(p));)p++;return E=5;case 64:return E=60;case 13:d.charCodeAt(p)===10&&p++;case 10:return A|=1,E=4;case 42:return E=42;case 123:return E=19;case 125:return E=20;case 91:return E=23;case 93:return E=24;case 60:return E=30;case 62:return E=32;case 61:return E=64;case 44:return E=28;case 46:return E=25;case 96:return E=62;case 35:return E=63;case 92:p--;let Tn=Z();if(Tn>=0&&_h(Tn,e))return p+=3,A|=8,S=Ee()+pe(),E=Ae();let ke=ce();return ke>=0&&_h(ke,e)?(p+=6,A|=1024,S=String.fromCharCode(ke)+pe(),E=Ae()):(p++,E=0)}if(_h(ln,e)){let Tn=ln;for(;p<h&&_b(Tn=Uv(d,p),e)||d.charCodeAt(p)===45;)p+=hb(Tn);return S=d.substring(v,p),Tn===92&&(S+=pe()),E=Ae()}else return E=0}function io(ln,Tn){let ke=p,nt=m,tt=v,yt=E,re=S,Ce=A,et=ln();return(!et||Tn)&&(p=ke,m=nt,v=tt,E=yt,S=re,A=Ce),et}function Gn(ln,Tn,ke){let nt=h,tt=p,yt=m,re=v,Ce=E,et=S,z=A,Je=C;Rt(d,ln,Tn);let _t=ke();return h=nt,p=tt,m=yt,v=re,E=Ce,S=et,A=z,C=Je,_t}function Nr(ln){return io(ln,!0)}function cr(ln){return io(ln,!1)}function Jt(){return d}function Ue(){C=void 0}function Rt(ln,Tn,ke){d=ln||"",h=ke===void 0?d.length:Tn+ke,Jo(Tn||0)}function mn(ln){o=ln}function qr(ln){e=ln}function ni(ln){r=ln}function ki(ln){L=ln}function so(ln){G=ln}function Jo(ln){x.assert(ln>=0),p=ln,m=ln,v=ln,E=0,S=void 0,A=0}function ba(ln){R+=ln?1:-1}}function Uv(e,t){return e.codePointAt(t)}function hb(e){return e>=65536?2:1}function AFe(e){if(x.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}function F1(e){return tye(e)}var kM,Uve,yee,Hve,qve,Jve,Kve,Xve,Yve,$ve,Qve,Zve,eye,N8,kG,tye,IFe=pt({"src/compiler/scanner.ts"(){"use strict";wo(),kM={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},Uve=new Map(Object.entries(kM)),yee=new Map(Object.entries({...kM,"{":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})),Hve=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],qve=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Jve=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Kve=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Xve=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],Yve=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],$ve=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Qve=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Zve=/@(?:see|link)/i,eye=SFe(yee),N8=7,kG=/^#!.*/,tye=String.fromCodePoint?e=>String.fromCodePoint(e):AFe}});function Ic(e){return op(e)||Ou(e)}function z1(e){return zD(e,zC)}function OM(e){switch(Wa(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Al(e){return e.start+e.length}function bee(e){return e.length===0}function OG(e,t){return t>=e.start&&t<Al(e)}function wM(e,t){return t>=e.pos&&t<=e.end}function Eee(e,t){return t.start>=e.start&&Al(t)<=Al(e)}function nye(e,t){return See(e,t)!==void 0}function See(e,t){let r=Aee(e,t);return r&&r.length===0?void 0:r}function rye(e,t){return WM(e.start,e.length,t.start,t.length)}function P8(e,t,r){return WM(e.start,e.length,t,r)}function WM(e,t,r,i){let o=e+t,s=r+i;return r<=o&&s>=e}function Tee(e,t){return t<=Al(e)&&t>=e.start}function Aee(e,t){let r=Math.max(e.start,t.start),i=Math.min(Al(e),Al(t));return r<=i?Gl(r,i):void 0}function qc(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Gl(e,t){return qc(e,t-e)}function ZD(e){return qc(e.span.start,e.newLength)}function Iee(e){return bee(e.span)&&e.newLength===0}function FM(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function xee(e){if(e.length===0)return eL;if(e.length===1)return e[0];let t=e[0],r=t.span.start,i=Al(t.span),o=r+t.newLength;for(let s=1;s<e.length;s++){let l=e[s],d=r,p=i,h=o,m=l.span.start,v=Al(l.span),E=m+l.newLength;r=Math.min(d,m),i=Math.max(p,p+(v-h)),o=Math.max(E,E+(h-v))}return FM(Gl(r,i),o-r)}function iye(e){if(e&&e.kind===168){for(let t=e;t;t=t.parent)if(Lo(t)||Kr(t)||t.kind===264)return t}}function wu(e,t){return ao(e)&&Wr(e,31)&&t.kind===176}function Ree(e){return ko(e)?ji(e.elements,Dee):!1}function Dee(e){return vc(e)?!0:Ree(e.name)}function B1(e){let t=e.parent;for(;Na(t.parent);)t=t.parent.parent;return t.parent}function Cee(e,t){Na(e)&&(e=B1(e));let r=t(e);return e.kind===260&&(e=e.parent),e&&e.kind===261&&(r|=t(e),e=e.parent),e&&e.kind===243&&(r|=t(e)),r}function gb(e){return Cee(e,Wd)}function wG(e){return Cee(e,Tne)}function Xg(e){return Cee(e,xFe)}function xFe(e){return e.flags}function oye(e,t,r){let i=e.toLowerCase(),o=/^([a-z]+)([_-]([a-z]+))?$/.exec(i);if(!o){r&&r.push(bl(f.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1,"en","ja-jp"));return}let s=o[1],l=o[3];To(a9,i)&&!d(s,l,r)&&d(s,void 0,r),VZ(e);function d(p,h,m){let v=Yo(t.getExecutingFilePath()),E=Ur(v),S=wr(E,p);if(h&&(S=S+"-"+h),S=t.resolvePath(wr(S,"diagnosticMessages.generated.json")),!t.fileExists(S))return!1;let A="";try{A=t.readFile(S)}catch{return m&&m.push(bl(f.Unable_to_open_file_0,S)),!1}try{Une(JSON.parse(A))}catch{return m&&m.push(bl(f.Corrupted_locale_file_0,S)),!1}return!0}}function sl(e,t){if(e)for(;e.original!==void 0;)e=e.original;return!e||!t||t(e)?e:void 0}function Rn(e,t){for(;e;){let r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function eC(e){return(e.flags&16)===0}function uo(e,t){if(e===void 0||eC(e))return e;for(e=e.original;e;){if(eC(e))return!t||t(e)?e:void 0;e=e.original}}function Hs(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ii(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function ar(e){return Ii(e.escapedText)}function vb(e){let t=LE(e.escapedText);return t?Vr(t,du):void 0}function $s(e){return e.valueDeclaration&&kd(e.valueDeclaration)?ar(e.valueDeclaration.name):Ii(e.escapedName)}function aye(e){let t=e.parent.parent;if(t){if(bd(t))return WG(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return WG(t.declarationList.declarations[0]);break;case 244:let r=t.expression;switch(r.kind===226&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 211:return r.name;case 212:let i=r.argumentExpression;if(Me(i))return i}break;case 217:return WG(t.expression);case 256:{if(bd(t.statement)||lt(t.statement))return WG(t.statement);break}}}}function WG(e){let t=mo(e);return t&&Me(t)?t:void 0}function zM(e,t){return!!(Ld(e)&&Me(e.name)&&ar(e.name)===ar(t)||cl(e)&&ct(e.declarationList.declarations,r=>zM(r,t)))}function Nee(e){return e.name||aye(e)}function Ld(e){return!!e.name}function M8(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:r}=e;if(r.kind===166)return r.right;break}case 213:case 226:{let r=e;switch(hl(r)){case 1:case 4:case 5:case 3:return DW(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 353:return Nee(e);case 347:return aye(e);case 277:{let{expression:r}=e;return Me(r)?r:void 0}case 212:let t=e;if(RW(t))return t.argumentExpression}return e.name}function mo(e){if(e!==void 0)return M8(e)||(us(e)||hs(e)||Dc(e)?L8(e):void 0)}function L8(e){if(e.parent){if(Hl(e.parent)||Na(e.parent))return e.parent.name;if(Zn(e.parent)&&e===e.parent.right){if(Me(e.parent.left))return e.parent.left;if(ds(e.parent.left))return DW(e.parent.left)}else if(yi(e.parent)&&Me(e.parent.name))return e.parent.name}else return}function Hv(e){if(Hp(e))return Cr(e.modifiers,Xc)}function kE(e){if(Wr(e,98303))return Cr(e.modifiers,ia)}function sye(e,t){if(e.name)if(Me(e.name)){let r=e.name.escapedText;return GM(e.parent,t).filter(i=>Tm(i)&&Me(i.name)&&i.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);x.assert(r>-1,"Parameters should always be in their parents' parameter list");let i=GM(e.parent,t).filter(Tm);if(r<i.length)return[i[r]]}return je}function G1(e){return sye(e,!1)}function Pee(e){return sye(e,!0)}function lye(e,t){let r=e.name.escapedText;return GM(e.parent,t).filter(i=>Df(i)&&i.typeParameters.some(o=>o.name.escapedText===r))}function Mee(e){return lye(e,!1)}function Lee(e){return lye(e,!0)}function kee(e){return!!hf(e,Tm)}function Oee(e){return hf(e,_I)}function wee(e){return O8(e,A6)}function FG(e){return hf(e,sie)}function cye(e){return hf(e,Cj)}function Wee(e){return hf(e,Cj,!0)}function dye(e){return hf(e,Nj)}function Fee(e){return hf(e,Nj,!0)}function uye(e){return hf(e,Pj)}function zee(e){return hf(e,Pj,!0)}function pye(e){return hf(e,Mj)}function Bee(e){return hf(e,Mj,!0)}function Gee(e){return hf(e,S6,!0)}function zG(e){return hf(e,Lj)}function Vee(e){return hf(e,Lj,!0)}function BG(e){return hf(e,C2)}function k8(e){return hf(e,kj)}function jee(e){return hf(e,T6)}function fye(e){return hf(e,Df)}function GG(e){return hf(e,I6)}function yb(e){let t=hf(e,gN);if(t&&t.typeExpression&&t.typeExpression.type)return t}function bb(e){let t=hf(e,gN);return!t&&ao(e)&&(t=Dr(G1(e),r=>!!r.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function BM(e){let t=jee(e);if(t&&t.typeExpression)return t.typeExpression.type;let r=yb(e);if(r&&r.typeExpression){let i=r.typeExpression.type;if(ju(i)){let o=Dr(i.members,iI);return o&&o.type}if(B_(i)||Gx(i))return i.type}}function GM(e,t){var r;if(!CL(e))return je;let i=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(i===void 0||t){let o=W9(e,t);x.assert(o.length<2||o[0]!==o[1]),i=ta(o,s=>Sm(s)?s.tags:s),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function Eb(e){return GM(e,!1)}function mye(e){return GM(e,!0)}function hf(e,t,r){return Dr(GM(e,r),t)}function O8(e,t){return Eb(e).filter(t)}function _ye(e,t){return Eb(e).filter(r=>r.kind===t)}function VM(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:RFe(t)).join("")}function RFe(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",r=e.name?Wu(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${r}${i}${e.text}}`}function qv(e){if(wb(e)){if(Vx(e.parent)){let t=ux(e.parent);if(t&&yn(t.tags))return ta(t.tags,r=>Df(r)?r.typeParameters:void 0)}return je}if(bf(e))return x.assert(e.parent.kind===327),ta(e.parent.tags,t=>Df(t)?t.typeParameters:void 0);if(e.typeParameters||vie(e)&&e.typeParameters)return e.typeParameters;if(Jn(e)){let t=VW(e);if(t.length)return t;let r=bb(e);if(r&&B_(r)&&r.typeParameters)return r.typeParameters}return je}function V1(e){return e.constraint?e.constraint:Df(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function hh(e){return e.kind===80||e.kind===81}function w8(e){return e.kind===178||e.kind===177}function W8(e){return Er(e)&&!!(e.flags&64)}function VG(e){return Rs(e)&&!!(e.flags&64)}function gS(e){return Bo(e)&&!!(e.flags&64)}function yd(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function tC(e){return yd(e)&&!dI(e)&&!!e.questionDotToken}function F8(e){return tC(e.parent)&&e.parent.expression===e}function nC(e){return!yd(e.parent)||tC(e.parent)||e!==e.parent.expression}function jG(e){return e.kind===226&&e.operatorToken.kind===61}function Qh(e){return Yp(e)&&Me(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function jf(e){return Rl(e,8)}function z8(e){return dI(e)&&!!(e.flags&64)}function rC(e){return e.kind===252||e.kind===251}function UG(e){return e.kind===280||e.kind===279}function Uee(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function HG(e){return Uee(e)||e.kind===307||e.kind===311}function iC(e){return e.kind===355||e.kind===348}function hye(e){return jM(e.kind)}function jM(e){return e>=166}function qG(e){return e>=0&&e<=165}function xA(e){return qG(e.kind)}function OE(e){return rs(e,"pos")&&rs(e,"end")}function oC(e){return 9<=e&&e<=15}function wE(e){return oC(e.kind)}function JG(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Jv(e){return 15<=e&&e<=18}function Hee(e){return Jv(e.kind)}function B8(e){let t=e.kind;return t===17||t===18}function RA(e){return Iu(e)||Ed(e)}function UM(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 qee(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 Sb(e){return UM(e)||qee(e)}function KG(e){return e.kind===11||Jv(e.kind)}function Jee(e){return ca(e)||Me(e)}function ws(e){var t;return Me(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function vS(e){var t;return Ci(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function HM(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function kd(e){return(xo(e)||CA(e))&&Ci(e.name)}function j1(e){return Er(e)&&Ci(e.name)}function Yg(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 aC(e){return!!(GA(e)&31)}function XG(e){return aC(e)||e===126||e===164||e===129}function ia(e){return Yg(e.kind)}function Su(e){let t=e.kind;return t===166||t===80}function kl(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function yS(e){let t=e.kind;return t===80||t===206||t===207}function Lo(e){return!!e&&DA(e.kind)}function U1(e){return!!e&&(DA(e.kind)||nl(e))}function _s(e){return e&&gye(e.kind)}function sC(e){return e.kind===112||e.kind===97}function gye(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function DA(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return gye(e)}}function YG(e){return Li(e)||t_(e)||Do(e)&&Lo(e.parent)}function xc(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function Kr(e){return e&&(e.kind===263||e.kind===231)}function Kv(e){return e&&(e.kind===177||e.kind===178)}function su(e){return xo(e)&&Ym(e)}function Kee(e){return Jn(e)&&EF(e)?(!UE(e)||!ry(e.expression))&&!NS(e,!0):e.parent&&Kr(e.parent)&&xo(e)&&!Ym(e)}function CA(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function vye(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Ws(e){return ia(e)||Xc(e)}function bS(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function G8(e){return bS(e)||xc(e)}function Zh(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function xi(e){return bV(e.kind)}function Xee(e){switch(e.kind){case 184:case 185:return!0}return!1}function ko(e){if(e){let t=e.kind;return t===207||t===206}return!1}function lC(e){let t=e.kind;return t===209||t===210}function V8(e){let t=e.kind;return t===208||t===232}function qM(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function Yee(e){return yi(e)||ao(e)||KM(e)||XM(e)}function JM(e){return $G(e)||QG(e)}function $G(e){switch(e.kind){case 206:case 210:return!0}return!1}function KM(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function QG(e){switch(e.kind){case 207:case 209:return!0}return!1}function XM(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return lc(e,!0)}function $ee(e){let t=e.kind;return t===211||t===166||t===205}function Qee(e){let t=e.kind;return t===211||t===166}function ZG(e){return WE(e)||e0(e)}function WE(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Um(e){return e.kind===213||e.kind===214}function NA(e){let t=e.kind;return t===228||t===15}function Tu(e){return yye(jf(e).kind)}function yye(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 e9(e){return bye(jf(e).kind)}function bye(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return yye(e)}}function Zee(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function ete(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return wE(e)}}function lt(e){return DFe(jf(e).kind)}function DFe(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return bye(e)}}function ES(e){let t=e.kind;return t===216||t===234}function Eye(e){return Ij(e)||v6(e)}function Xv(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&Xv(e.statement,t)}return!1}function tte(e){return dl(e)||xl(e)}function nte(e){return ct(e,tte)}function j8(e){return!oL(e)&&!dl(e)&&!Wr(e,32)&&!sd(e)}function YM(e){return oL(e)||dl(e)||Wr(e,32)}function H1(e){return e.kind===249||e.kind===250}function U8(e){return Do(e)||lt(e)}function t9(e){return Do(e)}function Up(e){return yc(e)||lt(e)}function rte(e){let t=e.kind;return t===268||t===267||t===80}function Sye(e){let t=e.kind;return t===268||t===267}function Tye(e){let t=e.kind;return t===80||t===267}function n9(e){let t=e.kind;return t===275||t===274}function $M(e){return e.kind===267||e.kind===266}function Hm(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function M_(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function CFe(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function ite(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function ote(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function bd(e){return e.kind===168?e.parent&&e.parent.kind!==352||Jn(e):CFe(e.kind)}function ate(e){return ite(e.kind)}function QM(e){return ote(e.kind)}function Di(e){let t=e.kind;return ote(t)||ite(t)||NFe(e)}function NFe(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!VE(e)}function ste(e){let t=e.kind;return ote(t)||ite(t)||t===241}function lte(e){let t=e.kind;return t===283||t===166||t===80}function cC(e){let t=e.kind;return t===110||t===80||t===211||t===295}function ZM(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function H8(e){let t=e.kind;return t===291||t===293}function cte(e){let t=e.kind;return t===11||t===294}function Od(e){let t=e.kind;return t===286||t===285}function q8(e){let t=e.kind;return t===296||t===297}function q1(e){return e.kind>=316&&e.kind<=357}function J8(e){return e.kind===327||e.kind===326||e.kind===328||PA(e)||J1(e)||YS(e)||wb(e)}function J1(e){return e.kind>=334&&e.kind<=357}function $g(e){return e.kind===178}function Yv(e){return e.kind===177}function ap(e){if(!CL(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function K8(e){return!!e.type}function $v(e){return!!e.initializer}function SS(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function r9(e){return e.kind===291||e.kind===293||Zh(e)}function X8(e){return e.kind===183||e.kind===233}function dte(e){let t=ute;for(let r of e){if(!r.length)continue;let i=0;for(;i<r.length&&i<t&&$h(r.charCodeAt(i));i++);if(i<t&&(t=i),t===0)return 0}return t===ute?void 0:t}function Ga(e){return e.kind===11||e.kind===15}function PA(e){return e.kind===331||e.kind===332||e.kind===333}function i9(e){let t=Ns(e.parameters);return!!t&&gh(t)}function gh(e){let t=Tm(e)?e.typeExpression&&e.typeExpression.type:e.type;return e.dotDotDotToken!==void 0||!!t&&t.kind===325}function Aye(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function o9(e,t){t??(t=Nn(e));let r=uo(e);if(r&&r.kind===169){let o=r.parent.parameters.indexOf(r),s=o>0?r.parent.parameters[o-1]:void 0,l=t.text,d=s?ro(mb(l,ua(l,s.end+1,!1,!0)),mh(l,e.pos)):mb(l,ua(l,e.pos,!1,!0));return ct(d)&&Aye(Da(d),t)}let i=r&&A9(r,t);return!!an(i,o=>Aye(o,t))}var eL,a9,ute,PFe=pt({"src/compiler/utilitiesPublic.ts"(){"use strict";wo(),eL=FM(qc(0,0),0),a9=["cs","de","es","fr","it","ja","ko","pl","pt-br","ru","tr","zh-cn","zh-tw"],ute=1073741823}});function Vs(e,t){let r=e.declarations;if(r){for(let i of r)if(i.kind===t)return i}}function pte(e,t){return Cr(e.declarations||je,r=>r.kind===t)}function Vo(e){let t=new Map;if(e)for(let r of e)t.set(r.escapedName,r);return t}function L_(e){return(e.flags&33554432)!==0}function MFe(){var e="";let t=r=>e+=r;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(r,i)=>t(r),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&$h(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Ca,decreaseIndent:Ca,clear:()=>e=""}}function Y8(e,t){return e.configFilePath!==t.configFilePath||fte(e,t)}function fte(e,t){return K1(e,t,V6)}function mte(e,t){return K1(e,t,_U)}function K1(e,t,r){return e!==t&&r.some(i=>!_F(iF(e,i),iF(t,i)))}function _te(e,t){for(;;){let r=t(e);if(r==="quit")return;if(r!==void 0)return r;if(Li(e))return;e=e.parent}}function hc(e,t){let r=e.entries();for(let[i,o]of r){let s=t(o,i);if(s)return s}}function k_(e,t){let r=e.keys();for(let i of r){let o=t(i);if(o)return o}}function $8(e,t){e.forEach((r,i)=>{t.set(i,r)})}function dC(e){let t=o2.getText();try{return e(o2),o2.getText()}finally{o2.clear(),o2.writeKeyword(t)}}function tL(e){return e.end-e.pos}function s9(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function hte(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&&LFe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.alternateResult===t.alternateResult}function Q8(e,t,r,i,o){var s;let l=(s=t.getResolvedModule(e,r,i))==null?void 0:s.alternateResult,d=l&&(zd(t.getCompilerOptions())===2?[f.There_are_types_at_0_but_this_result_could_not_be_resolved_under_your_current_moduleResolution_setting_Consider_updating_to_node16_nodenext_or_bundler,[l]]:[f.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,[l,l.includes(H_+"@types/")?`@types/${tR(o)}`:o]]),p=d?So(void 0,d[0],...d[1]):t.typesPackageExists(o)?So(void 0,f.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,o,tR(o)):t.packageBundlesTypes(o)?So(void 0,f.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o,r):So(void 0,f.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,r,tR(o));return p&&(p.repopulateInfo=()=>({moduleReference:r,mode:i,packageName:o===r?void 0:o})),p}function LFe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function Z8({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Qv(e){return`${Z8(e)}@${e.version}`}function gte(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 l9(e,t,r,i){x.assert(e.length===t.length);for(let o=0;o<e.length;o++){let s=t[o],l=e[o],d=r(l);if(d?!s||!i(d,s):s)return!0}return!1}function X1(e){return kFe(e),(e.flags&1048576)!==0}function kFe(e){e.flags&2097152||((e.flags&262144||Ao(e,X1))&&(e.flags|=1048576),e.flags|=2097152)}function Nn(e){for(;e&&e.kind!==312;)e=e.parent;return e}function eW(e){return Nn(e.valueDeclaration||h9(e))}function nL(e,t){return!!e&&(e.scriptKind===1||e.scriptKind===2)&&!e.checkJsDirective&&t===void 0}function vte(e){switch(e.kind){case 241:case 269:case 248:case 249:case 250:return!0}return!1}function Zv(e,t){return x.assert(e>=0),Yh(t)[e]}function Iye(e){let t=Nn(e),r=$a(t,e.pos);return`${t.fileName}(${r.line+1},${r.character+1})`}function rL(e,t){x.assert(e>=0);let r=Yh(t),i=e,o=t.text;if(i+1===r.length)return o.length-1;{let s=r[i],l=r[i+1]-1;for(x.assert(vd(o.charCodeAt(l)));s<=l&&vd(o.charCodeAt(l));)l--;return l}}function tW(e,t,r){return!(r&&r(t))&&!e.identifiers.has(t)}function _l(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function gf(e){return!_l(e)}function yte(e,t){return qs(e)?t===e.expression:nl(e)?t===e.modifiers:Gu(e)?t===e.initializer:xo(e)?t===e.questionToken&&su(e):Hl(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||iL(e.modifiers,t,Ws):xu(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||iL(e.modifiers,t,Ws):El(e)?t===e.exclamationToken:ll(e)?t===e.typeParameters||t===e.type||iL(e.typeParameters,t,qs):Ap(e)?t===e.typeParameters||iL(e.typeParameters,t,qs):Vu(e)?t===e.typeParameters||t===e.type||iL(e.typeParameters,t,qs):D2(e)?t===e.modifiers||iL(e.modifiers,t,Ws):!1}function iL(e,t,r){return!e||oo(t)||!r(t)?!1:To(e,t)}function xye(e,t,r){if(t===void 0||t.length===0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,...t),e}function Rye(e,t,r){if(t===void 0)return e;let i=0;for(;i<e.length&&r(e[i]);++i);return e.splice(i,0,t),e}function Dye(e){return Hf(e)||!!(ya(e)&2097152)}function vh(e,t){return xye(e,t,Hf)}function c9(e,t){return xye(e,t,Dye)}function Cye(e,t){return Rye(e,t,Hf)}function TS(e,t){return Rye(e,t,Dye)}function d9(e,t,r){if(e.charCodeAt(t+1)===47&&t+2<r&&e.charCodeAt(t+2)===47){let i=e.substring(t,r);return!!(BV.test(i)||GV.test(i)||hbe.test(i)||mbe.test(i)||_be.test(i)||gbe.test(i))}return!1}function nW(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===33}function bte(e,t){let r=new Map(t.map(l=>[`${$a(e,l.range.end).line}`,l])),i=new Map;return{getUnusedExpectations:o,markUsed:s};function o(){return bo(r.entries()).filter(([l,d])=>d.type===0&&!i.get(l)).map(([l,d])=>d)}function s(l){return r.has(`${l}`)?(i.set(`${l}`,!0),!0):!1}}function Tb(e,t,r){return _l(e)?e.pos:q1(e)||e.kind===12?ua((t||Nn(e)).text,e.pos,!1,!0):r&&ap(e)?Tb(e.jsDoc[0],t):e.kind===358&&e._children.length>0?Tb(e._children[0],t,r):ua((t||Nn(e)).text,e.pos,!1,!1,hL(e))}function u9(e,t){let r=!_l(e)&&Yf(e)?hA(e.modifiers,Xc):void 0;return r?ua((t||Nn(e)).text,r.end):Tb(e,t)}function FE(e,t,r=!1){return uC(e.text,t,r)}function OFe(e){return!!Rn(e,f0)}function rW(e){return!!(xl(e)&&e.exportClause&&V_(e.exportClause)&&e.exportClause.name.escapedText==="default")}function uC(e,t,r=!1){if(_l(t))return"";let i=e.substring(r?t.pos:ua(e,t.pos),t.end);return OFe(t)&&(i=i.split(/\r\n|\n|\r/).map(o=>o.replace(/^\s*\*/,"").trimStart()).join(`
`)),i}function Vl(e,t=!1){return FE(Nn(e),e,t)}function wFe(e){return e.pos}function Y1(e,t){return Vg(e,t,wFe,Ms)}function ya(e){let t=e.emitNode;return t&&t.flags||0}function Uf(e){let t=e.emitNode;return t&&t.internalFlags||0}function Ete(e,t,r){if(t&&WFe(e,r))return FE(t,e);switch(e.kind){case 11:{let i=r&2?tV:r&1||ya(e)&16777216?Th:BL;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=r&1||ya(e)&16777216?Th:BL,o=e.rawText??Z9(i(e.text,96));switch(e.kind){case 15:return"`"+o+"`";case 16:return"`"+o+"${";case 17:return"}"+o+"${";case 18:return"}"+o+"`"}break}case 9:case 10:return e.text;case 14:return r&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return x.fail(`Literal kind '${e.kind}' not accounted for.`)}function WFe(e,t){if(xs(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(Bu(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!c6(e)}function Ste(e){return fo(e)?'"'+BL(e)+'"':""+e}function Tte(e){return Ll(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function p9(e){return(Xg(e)&7)!==0||f9(e)}function f9(e){let t=Xm(e);return t.kind===260&&t.parent.kind===299}function sd(e){return Il(e)&&(e.name.kind===11||qm(e))}function iW(e){return Il(e)&&e.name.kind===11}function m9(e){return Il(e)&&ca(e.name)}function Ate(e){return Il(e)||Me(e)}function pC(e){return FFe(e.valueDeclaration)}function FFe(e){return!!e&&e.kind===267&&!e.body}function Ite(e){return e.kind===312||e.kind===267||U1(e)}function qm(e){return!!(e.flags&2048)}function zE(e){return sd(e)&&_9(e)}function _9(e){switch(e.parent.kind){case 312:return wl(e.parent);case 268:return sd(e.parent.parent)&&Li(e.parent.parent.parent)&&!wl(e.parent.parent.parent)}return!1}function h9(e){var t;return(t=e.declarations)==null?void 0:t.find(r=>!zE(r)&&!(Il(r)&&qm(r)))}function zFe(e){return e===1||e===100||e===199}function MA(e,t){return wl(e)||zFe(ld(t))&&!!e.commonJsModuleIndicator}function g9(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:Fd(t,"alwaysStrict")||mie(e.statements)?!0:wl(e)||xf(t)?ld(t)>=5?!0:!t.noImplicitUseStrict:!1}function v9(e){return!!(e.flags&33554432)||Wr(e,128)}function y9(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!U1(t)}return!1}function b9(e){switch(x.type(e),e.kind){case 345:case 353:case 330:return!0;default:return E9(e)}}function E9(e){switch(x.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function AS(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function xte(e){return AS(e)||jE(e)}function oW(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 Rte(e){return oL(e)||Il(e)||Dh(e)||lp(e)}function oL(e){return AS(e)||xl(e)}function S9(e){return Rn(e.parent,t=>!!(kU(t)&1))}function O_(e){return Rn(e.parent,t=>y9(t,t.parent))}function Dte(e,t){let r=O_(e);for(;r;)t(r),r=O_(r)}function is(e){return!e||tL(e)===0?"(Missing)":Vl(e)}function Cte(e){return e.declaration?is(e.declaration.parameters[0].name):void 0}function aL(e){return e.kind===167&&!Tp(e.expression)}function fC(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Hs(e.text);case 167:return Tp(e.expression)?Hs(e.expression.text):void 0;case 295:return JA(e);default:return x.assertNever(e)}}function $1(e){return x.checkDefined(fC(e))}function Wu(e){switch(e.kind){case 110:return"this";case 81:case 80:return tL(e)===0?ar(e):Vl(e);case 166:return Wu(e.left)+"."+Wu(e.right);case 211:return Me(e.name)||Ci(e.name)?Wu(e.expression)+"."+Wu(e.name):x.assertNever(e.name);case 318:return Wu(e.left)+Wu(e.right);case 295:return Wu(e.namespace)+":"+Wu(e.name);default:return x.assertNever(e)}}function vr(e,t,...r){let i=Nn(e);return vf(i,e,t,...r)}function Q1(e,t,r,...i){let o=ua(e.text,t.pos);return Rc(e,o,t.end-o,r,...i)}function vf(e,t,r,...i){let o=IS(e,t);return Rc(e,o.start,o.length,r,...i)}function eg(e,t,r,i){let o=IS(e,t);return aW(e,o.start,o.length,r,i)}function sL(e,t,r,i){let o=ua(e.text,t.pos);return aW(e,o,t.end-o,r,i)}function Nte(e,t,r){x.assertGreaterThanOrEqual(t,0),x.assertGreaterThanOrEqual(r,0),x.assertLessThanOrEqual(t,e.length),x.assertLessThanOrEqual(t+r,e.length)}function aW(e,t,r,i,o){return Nte(e.text,t,r),{file:e,start:t,length:r,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:o}}function T9(e,t,r){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:r}}function Pte(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function Mte(e,t,r){return{file:e,start:t.pos,length:t.end-t.pos,code:r.code,category:r.category,messageText:r.message}}function w_(e,t){let r=Kg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);r.scan();let i=r.getTokenStart();return Gl(i,r.getTokenEnd())}function Lte(e,t){let r=Kg(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return r.scan(),r.getToken()}function BFe(e,t){let r=ua(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=$a(e,t.body.pos),{line:o}=$a(e,t.body.end);if(i<o)return qc(r,rL(i,e)-r+1)}return Gl(r,t.end)}function IS(e,t){let r=t;switch(t.kind){case 312:{let s=ua(e.text,0,!1);return s===e.text.length?qc(0,0):w_(e,s)}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:r=t.name;break;case 219:return BFe(e,t);case 296:case 297:{let s=ua(e.text,t.pos),l=t.statements.length>0?t.statements[0].pos:t.end;return Gl(s,l)}case 253:case 229:{let s=ua(e.text,t.pos);return w_(e,s)}case 238:{let s=ua(e.text,t.expression.end);return w_(e,s)}case 357:{let s=ua(e.text,t.tagName.pos);return w_(e,s)}}if(r===void 0)return w_(e,t.pos);x.assert(!Sm(r));let i=_l(r),o=i||ZA(t)?r.pos:ua(e.text,r.pos);return i?(x.assert(o===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),x.assert(o===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(x.assert(o>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),x.assert(o<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Gl(o,r.end)}function sp(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function yf(e){return e.scriptKind===6}function BE(e){return!!(gb(e)&4096)}function sW(e){return!!(gb(e)&8&&!wu(e,e.parent))}function lL(e){return(Xg(e)&7)===6}function cL(e){return(Xg(e)&7)===4}function Z1(e){return(Xg(e)&7)===2}function lW(e){return(Xg(e)&7)===1}function xS(e){return e.kind===213&&e.expression.kind===108}function lp(e){return e.kind===213&&e.expression.kind===102}function ex(e){return cN(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function ey(e){return Dh(e)&&uy(e.argument)&&ca(e.argument.literal)}function Hf(e){return e.kind===244&&e.expression.kind===11}function dL(e){return!!(ya(e)&2097152)}function cW(e){return dL(e)&&Ql(e)}function GFe(e){return Me(e.name)&&!e.initializer}function dW(e){return dL(e)&&cl(e)&&ji(e.declarationList.declarations,GFe)}function A9(e,t){return e.kind!==12?mh(t.text,e.pos):void 0}function I9(e,t){let r=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?ro(mb(t,e.pos),mh(t,e.pos)):mh(t,e.pos);return Cr(r,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function yh(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return Nye(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),x.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return Nye(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return To(t.typeArguments,e)}}}return!1}function Nye(e){return A6(e.parent)||_I(e.parent)||Ip(e.parent)&&!HW(e)}function Pye(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function GE(e,t){return r(e);function r(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return Ao(i,r)}}}function kte(e,t){return r(e);function r(i){switch(i.kind){case 229:t(i);let o=i.expression;o&&r(o);return;case 266:case 264:case 267:case 265:return;default:if(Lo(i)){if(i.name&&i.name.kind===167){r(i.name.expression);return}}else yh(i)||Ao(i,r)}}}function x9(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?x_(e.typeArguments):void 0}function Ote(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function tx(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function wte(e){return tx(e)||Kv(e)}function mC(e){return e.parent.kind===261&&e.parent.parent.kind===243}function Wte(e){return Jn(e)?fa(e.parent)&&Zn(e.parent.parent)&&hl(e.parent.parent)===2||uW(e.parent):!1}function uW(e){return Jn(e)?Zn(e)&&hl(e)===1:!1}function Fte(e){return(yi(e)?Z1(e)&&Me(e.name)&&mC(e):xo(e)?NC(e)&&jl(e):Gu(e)&&NC(e))||uW(e)}function zte(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function R9(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function VE(e){return e&&e.kind===241&&Lo(e.parent)}function qf(e){return e&&e.kind===174&&e.parent.kind===210}function pW(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function Bte(e){return e&&e.kind===1}function Mye(e){return e&&e.kind===0}function nx(e,t,r,i){return an(e?.properties,o=>{if(!Hl(o))return;let s=fC(o.name);return t===s||i&&i===s?r(o):void 0})}function Gte(e,t,r){return nx(e,t,i=>Bd(i.initializer)?Dr(i.initializer.elements,o=>ca(o)&&o.text===r):void 0)}function _C(e){if(e&&e.statements.length){let t=e.statements[0].expression;return Vr(t,fa)}}function fW(e,t,r){return uL(e,t,i=>Bd(i.initializer)?Dr(i.initializer.elements,o=>ca(o)&&o.text===r):void 0)}function uL(e,t,r){return nx(_C(e),t,r)}function cp(e){return Rn(e.parent,Lo)}function Vte(e){return Rn(e.parent,_s)}function Oc(e){return Rn(e.parent,Kr)}function jte(e){return Rn(e.parent,t=>Kr(t)||Lo(t)?"quit":nl(t))}function mW(e){return Rn(e.parent,U1)}function _W(e){let t=Rn(e.parent,r=>Kr(r)?"quit":Xc(r));return t&&Kr(t.parent)?Oc(t.parent):Oc(t??e)}function lu(e,t,r){for(x.assert(e.kind!==312);;){if(e=e.parent,!e)return x.fail();switch(e.kind){case 167:if(r&&Kr(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&xc(e.parent.parent)?e=e.parent.parent:xc(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function Ute(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 hW(e){Me(e)&&(Zl(e.parent)||Ql(e.parent))&&e.parent.name===e&&(e=e.parent);let t=lu(e,!0,!1);return Li(t)}function Hte(e){let t=lu(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function pL(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&xc(e.parent.parent)?e=e.parent.parent:xc(e.parent)&&(e=e.parent);break}}}function RS(e){if(e.kind===218||e.kind===219){let t=e,r=e.parent;for(;r.kind===217;)t=r,r=r.parent;if(r.kind===213&&r.expression===t)return r}}function Lye(e){return e.kind===108||cu(e)}function cu(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function fL(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function gW(e){var t;return!!e&&yi(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function qte(e){return!!e&&(xu(e)||Hl(e))&&Zn(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function mL(e){switch(e.kind){case 183:return e.typeName;case 233:return gl(e.expression)?e.expression:void 0;case 80:case 166:return e}}function vW(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 yW(e,t,r,i){if(e&&Ld(t)&&Ci(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return r!==void 0&&(e?Zl(r):Kr(r)&&!$E(t)&&!sV(t));case 177:case 178:case 174:return t.body!==void 0&&r!==void 0&&(e?Zl(r):Kr(r));case 169:return e?r!==void 0&&r.body!==void 0&&(r.kind===176||r.kind===174||r.kind===178)&&KE(r)!==t&&i!==void 0&&i.kind===263:!1}return!1}function rx(e,t,r,i){return Hp(t)&&yW(e,t,r,i)}function _L(e,t,r,i){return rx(e,t,r,i)||hC(e,t,r)}function hC(e,t,r){switch(t.kind){case 263:return ct(t.members,i=>_L(e,i,t,r));case 231:return!e&&ct(t.members,i=>_L(e,i,t,r));case 174:case 178:case 176:return ct(t.parameters,i=>rx(e,i,t,r));default:return!1}}function Qg(e,t){if(rx(e,t))return!0;let r=Ah(t);return!!r&&hC(e,r,t)}function D9(e,t,r){let i;if(Kv(t)){let{firstAccessor:o,secondAccessor:s,setAccessor:l}=wS(r.members,t),d=Hp(o)?o:s&&Hp(s)?s:void 0;if(!d||t!==d)return!1;i=l?.parameters}else El(t)&&(i=t.parameters);if(rx(e,t,r))return!0;if(i){for(let o of i)if(!XE(o)&&rx(e,o,t,r))return!0}return!1}function C9(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return C9(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function ix(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function bh(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!Ip(e.parent)&&!_I(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||PA(e.parent)||hN(e.parent)||Ob(e.parent)||ix(e);case 318:for(;Ob(e.parent);)e=e.parent;return e.parent.kind===186||PA(e.parent)||hN(e.parent)||Ob(e.parent)||ix(e);case 81:return Zn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||PA(e.parent)||hN(e.parent)||Ob(e.parent)||ix(e))return!0;case 9:case 10:case 11:case 15:case 110:return bW(e);default:return!1}}function bW(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let r=t;return r.initializer===e&&r.initializer.kind!==261||r.condition===e||r.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!yh(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return bh(t)}}function EW(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function Jte(e){return V_(e)&&!!e.parent.moduleSpecifier}function Ab(e){return e.kind===271&&e.moduleReference.kind===283}function gC(e){return x.assert(Ab(e)),e.moduleReference.expression}function N9(e){return jE(e)&&Tx(e.initializer).arguments[0]}function ox(e){return e.kind===271&&e.moduleReference.kind!==283}function wd(e){return Jn(e)}function kye(e){return!Jn(e)}function Jn(e){return!!e&&!!(e.flags&524288)}function SW(e){return!!e&&!!(e.flags&134217728)}function P9(e){return!yf(e)}function hL(e){return!!e&&!!(e.flags&16777216)}function TW(e){return Yp(e)&&Me(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function Xd(e,t){if(e.kind!==213)return!1;let{expression:r,arguments:i}=e;if(r.kind!==80||r.escapedText!=="require"||i.length!==1)return!1;let o=i[0];return!t||Ga(o)}function AW(e){return Oye(e,!1)}function jE(e){return Oye(e,!0)}function Kte(e){return Na(e)&&jE(e.parent.parent)}function Oye(e,t){return yi(e)&&!!e.initializer&&Xd(t?Tx(e.initializer):e.initializer,!0)}function M9(e){return cl(e)&&e.declarationList.declarations.length>0&&ji(e.declarationList.declarations,t=>AW(t))}function gL(e){return e===39||e===34}function IW(e,t){return FE(t,e).charCodeAt(0)===34}function vC(e){return Zn(e)||ds(e)||Me(e)||Bo(e)}function vL(e){return Jn(e)&&e.initializer&&Zn(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&gl(e.name)&&ax(e.name,e.initializer.left)?e.initializer.right:e.initializer}function yL(e){let t=vL(e);return t&&Ib(t,ry(e.name))}function VFe(e,t){return an(e.properties,r=>Hl(r)&&Me(r.name)&&r.name.escapedText==="value"&&r.initializer&&Ib(r.initializer,t))}function LA(e){if(e&&e.parent&&Zn(e.parent)&&e.parent.operatorToken.kind===64){let t=ry(e.parent.left);return Ib(e.parent.right,t)||jFe(e.parent.left,e.parent.right,t)}if(e&&Bo(e)&&CS(e)){let t=VFe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function Ib(e,t){if(Bo(e)){let r=Ka(e.expression);return r.kind===218||r.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||fa(e)&&(e.properties.length===0||t))return e}function jFe(e,t,r){let i=Zn(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&Ib(t.right,r);if(i&&ax(e,t.left))return i}function Xte(e){let t=yi(e.parent)?e.parent.name:Zn(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&Ib(e.right,ry(t))&&gl(t)&&ax(t,e.left)}function L9(e){if(Zn(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Zn(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Me(t.left))return t.left}else if(yi(e.parent))return e.parent.name}function ax(e,t){return Km(e)&&Km(t)?Ef(e)===Ef(t):hh(e)&&xW(t)&&(t.expression.kind===110||Me(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?ax(e,SL(t)):xW(e)&&xW(t)?tg(e)===tg(t)&&ax(e.expression,t.expression):!1}function bL(e){for(;lc(e,!0);)e=e.right;return e}function DS(e){return Me(e)&&e.escapedText==="exports"}function k9(e){return Me(e)&&e.escapedText==="module"}function Eh(e){return(Er(e)||EL(e))&&k9(e.expression)&&tg(e)==="exports"}function hl(e){let t=UFe(e);return t===5||Jn(e)?t:0}function CS(e){return yn(e.arguments)===3&&Er(e.expression)&&Me(e.expression.expression)&&ar(e.expression.expression)==="Object"&&ar(e.expression.name)==="defineProperty"&&Tp(e.arguments[1])&&NS(e.arguments[0],!0)}function xW(e){return Er(e)||EL(e)}function EL(e){return Rs(e)&&Tp(e.argumentExpression)}function UE(e,t){return Er(e)&&(!t&&e.expression.kind===110||Me(e.name)&&NS(e.expression,!0))||RW(e,t)}function RW(e,t){return EL(e)&&(!t&&e.expression.kind===110||gl(e.expression)||UE(e.expression,!0))}function NS(e,t){return gl(e)||UE(e,t)}function SL(e){return Er(e)?e.name:e.argumentExpression}function UFe(e){if(Bo(e)){if(!CS(e))return 0;let t=e.arguments[0];return DS(t)||Eh(t)?8:UE(t)&&tg(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!ds(e.left)||HFe(bL(e))?0:NS(e.left.expression,!0)&&tg(e.left)==="prototype"&&fa(O9(e))?6:TL(e.left)}function HFe(e){return cI(e)&&Bu(e.expression)&&e.expression.text==="0"}function DW(e){if(Er(e))return e.name;let t=Ka(e.argumentExpression);return Bu(t)||Ga(t)?t:e}function tg(e){let t=DW(e);if(t){if(Me(t))return t.escapedText;if(Ga(t)||Bu(t))return Hs(t.text)}}function TL(e){if(e.expression.kind===110)return 4;if(Eh(e))return 2;if(NS(e.expression,!0)){if(ry(e.expression))return 3;let t=e;for(;!Me(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&tg(t)==="exports")&&UE(e))return 1;if(NS(e,!0)||Rs(e)&&kW(e))return 5}return 0}function O9(e){for(;Zn(e.right);)e=e.right;return e.right}function AL(e){return Zn(e)&&hl(e)===3}function Yte(e){return Jn(e)&&e.parent&&e.parent.kind===244&&(!Rs(e)||EL(e))&&!!yb(e.parent)}function IL(e,t){let{valueDeclaration:r}=e;(!r||!(t.flags&33554432&&!Jn(t)&&!(r.flags&33554432))&&vC(r)&&!vC(t)||r.kind!==t.kind&&Ate(r))&&(e.valueDeclaration=t)}function $te(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||yi(t)&&t.initializer&&Lo(t.initializer)}function sx(e){var t,r;switch(e.kind){case 260:case 208:return(t=Rn(e.initializer,i=>Xd(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return Vr(e.moduleSpecifier,Ga);case 271:return Vr((r=Vr(e.moduleReference,j_))==null?void 0:r.expression,Ga);case 273:case 280:return Vr(e.parent.moduleSpecifier,Ga);case 274:case 281:return Vr(e.parent.parent.moduleSpecifier,Ga);case 276:return Vr(e.parent.parent.parent.moduleSpecifier,Ga);case 205:return ey(e)?e.argument.literal:void 0;default:x.assertNever(e)}}function yC(e){return xL(e)||x.failBadSyntaxKind(e.parent)}function xL(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return lp(e.parent)||Xd(e.parent,!1)?e.parent:void 0;case 201:return x.assert(ca(e)),Vr(e.parent.parent,Dh);default:return}}function lx(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return ey(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return x.assertNever(e)}}function cx(e){switch(e.kind){case 272:return e.importClause&&Vr(e.importClause.namedBindings,my);case 271:return e;case 278:return e.exportClause&&Vr(e.exportClause,V_);default:return x.assertNever(e)}}function kA(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function CW(e,t){if(e.name){let r=t(e);if(r)return r}if(e.namedBindings){let r=my(e.namedBindings)?t(e.namedBindings):an(e.namedBindings.elements,t);if(r)return r}}function OA(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function dx(e){let t=Gx(e)?Ac(e.parameters):void 0,r=Vr(t&&t.name,Me);return!!r&&r.escapedText==="new"}function bf(e){return e.kind===353||e.kind===345||e.kind===347}function RL(e){return bf(e)||Xf(e)}function qFe(e){return Cc(e)&&Zn(e.expression)&&e.expression.operatorToken.kind===64?bL(e.expression):void 0}function wye(e){return Cc(e)&&Zn(e.expression)&&hl(e.expression)!==0&&Zn(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function w9(e){switch(e.kind){case 243:let t=wA(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function wA(e){return cl(e)?Ac(e.declarationList.declarations):void 0}function Wye(e){return Il(e)&&e.body&&e.body.kind===267?e.body:void 0}function DL(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 CL(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function W9(e,t){let r;tx(e)&&$v(e)&&ap(e.initializer)&&(r=Pr(r,Fye(e,e.initializer.jsDoc)));let i=e;for(;i&&i.parent;){if(ap(i)&&(r=Pr(r,Fye(e,i.jsDoc))),i.kind===169){r=Pr(r,(t?Pee:G1)(i));break}if(i.kind===168){r=Pr(r,(t?Lee:Mee)(i));break}i=F9(i)}return r||je}function Fye(e,t){let r=Da(t);return ta(t,i=>{if(i===r){let o=Cr(i.tags,s=>JFe(e,s));return i.tags===o?[i]:o}else return Cr(i.tags,Vx)})}function JFe(e,t){return!(gN(t)||I6(t))||!t.parent||!Sm(t.parent)||!uu(t.parent.parent)||t.parent.parent===e}function F9(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||Wye(t)||lc(e))return t;if(t.parent&&(wA(t.parent)===e||lc(t)))return t.parent;if(t.parent&&t.parent.parent&&(wA(t.parent.parent)||w9(t.parent.parent)===e||wye(t.parent.parent)))return t.parent.parent}function NL(e){if(e.symbol)return e.symbol;if(!Me(e.name))return;let t=e.name.escapedText,r=xb(e);if(!r)return;let i=Dr(r.parameters,o=>o.name.kind===80&&o.name.escapedText===t);return i&&i.symbol}function NW(e){if(Sm(e.parent)&&e.parent.tags){let t=Dr(e.parent.tags,bf);if(t)return t}return xb(e)}function z9(e){return O8(e,Vx)}function xb(e){let t=Rb(e);if(t)return Gu(t)&&t.type&&Lo(t.type)?t.type:Lo(t)?t:void 0}function Rb(e){let t=PS(e);if(t)return wye(t)||qFe(t)||w9(t)||wA(t)||Wye(t)||t}function PS(e){let t=ux(e);if(!t)return;let r=t.parent;if(r&&r.jsDoc&&t===Ns(r.jsDoc))return r}function ux(e){return Rn(e.parent,Sm)}function Qte(e){let t=e.name.escapedText,{typeParameters:r}=e.parent.parent.parent;return r&&Dr(r,i=>i.name.escapedText===t)}function zye(e){return!!e.typeArguments}function Zte(e){let t=e.parent;for(;;){switch(t.kind){case 226:let r=t,i=r.operatorToken.kind;return tv(i)&&r.left===e?r:void 0;case 224:case 225:let o=t,s=o.operator;return s===46||s===47?o:void 0;case 249:case 250:let l=t;return l.initializer===e?l:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function WA(e){let t=Zte(e);if(!t)return 0;switch(t.kind){case 226:let r=t.operatorToken.kind;return r===64||PC(r)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Sh(e){return!!Zte(e)}function KFe(e){let t=Ka(e.right);return t.kind===226&&Uj(t.operatorToken.kind)}function B9(e){let t=Zte(e);return!!t&&lc(t,!0)&&KFe(t)}function ene(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 tne(e){return us(e)||hs(e)||CA(e)||Ql(e)||ll(e)}function Bye(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function PL(e){return Bye(e,196)}function Zg(e){return Bye(e,217)}function nne(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function ML(e){for(;VS(e);)e=e.type;return e}function Ka(e,t){return Rl(e,t?17:1)}function G9(e){return e.kind!==211&&e.kind!==212?!1:(e=Zg(e.parent),e&&e.kind===220)}function HE(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function ng(e){return!Li(e)&&!ko(e)&&bd(e.parent)&&e.parent.name===e}function bC(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Pa(t))return t.parent;case 80:if(bd(t))return t.name===e?t:void 0;if($d(t)){let r=t.parent;return Tm(r)&&r.name===t?r:void 0}else{let r=t.parent;return Zn(r)&&hl(r)!==0&&(r.left.symbol||r.symbol)&&mo(r)===e?r:void 0}case 81:return bd(t)&&t.name===e?t:void 0;default:return}}function LL(e){return Tp(e)&&e.parent.kind===167&&bd(e.parent.parent)}function rne(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function Gye(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&px(e)?!0:Jn(e)&&(Zn(e)&&hl(e)===2&&px(e)||Er(e)&&Zn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&kL(e.parent.right))}function V9(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return V9(e)}}function kL(e){return gl(e)||Dc(e)}function px(e){let t=j9(e);return kL(t)}function j9(e){return dl(e)?e.expression:e.right}function ine(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Jm(e){let t=qE(e);if(t&&Jn(e)){let r=Oee(e);if(r)return r.class}return t}function qE(e){let t=OL(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function fx(e){if(Jn(e))return wee(e).map(t=>t.class);{let t=OL(e.heritageClauses,119);return t?.types}}function EC(e){return Gd(e)?SC(e)||je:Kr(e)&&ro(EA(Jm(e)),fx(e))||je}function SC(e){let t=OL(e.heritageClauses,96);return t?t.types:void 0}function OL(e,t){if(e){for(let r of e)if(r.token===t)return r}}function Db(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function du(e){return 83<=e&&e<=165}function U9(e){return 19<=e&&e<=79}function PW(e){return du(e)||U9(e)}function MW(e){return 128<=e&&e<=165}function H9(e){return du(e)&&!MW(e)}function Vye(e){return 119<=e&&e<=127}function FA(e){let t=LE(e);return t!==void 0&&H9(t)}function jye(e){let t=LE(e);return t!==void 0&&du(t)}function q9(e){let t=vb(e);return!!t&&!MW(t)}function mx(e){return 2<=e&&e<=7}function gc(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Wr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function TC(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Wr(e,1024)}return!1}function Tp(e){return Ga(e)||Bu(e)}function LW(e){return fy(e)&&(e.operator===40||e.operator===41)&&Bu(e.operand)}function ty(e){let t=mo(e);return!!t&&kW(t)}function kW(e){if(!(e.kind===167||e.kind===212))return!1;let t=Rs(e)?Ka(e.argumentExpression):e.expression;return!Tp(t)&&!LW(t)}function MS(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Hs(e.text);case 167:let t=e.expression;return Tp(t)?Hs(t.text):LW(t)?t.operator===41?qo(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return JA(e);default:return x.assertNever(e)}}function Km(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function Ef(e){return hh(e)?ar(e):Em(e)?ZC(e):e.text}function AC(e){return hh(e)?e.escapedText:Em(e)?JA(e):Hs(e.text)}function Uye(e){return`__@${na(e)}@${e.escapedName}`}function wL(e,t){return`__#${na(e)}@${t}`}function WL(e){return Ui(e.escapedName,"__@")}function one(e){return Ui(e.escapedName,"__#")}function Hye(e){return e.kind===80&&e.escapedText==="Symbol"}function ane(e){return Me(e)?ar(e)==="__proto__":ca(e)&&e.text==="__proto__"}function IC(e,t){switch(e=Rl(e),e.kind){case 231:if(nH(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function J9(e){switch(e.kind){case 303:return!ane(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Me(e.name)&&!!e.initializer;case 169:return Me(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Me(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 Me(e.left)}break;case 277:return!0}return!1}function Fu(e,t){if(!J9(e))return!1;switch(e.kind){case 303:return IC(e.initializer,t);case 304:return IC(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return IC(e.initializer,t);case 226:return IC(e.right,t);case 277:return IC(e.expression,t)}}function K9(e){return e.escapedText==="push"||e.escapedText==="unshift"}function JE(e){return Xm(e).kind===169}function Xm(e){for(;e.kind===208;)e=e.parent.parent;return e}function X9(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function xs(e){return ym(e.pos)||ym(e.end)}function qye(e){return uo(e,Li)||e}function Y9(e){let t=Q9(e),r=e.kind===214&&e.arguments!==void 0;return $9(e.kind,t,r)}function $9(e,t,r){switch(e){case 214:return r?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function xC(e){let t=Q9(e),r=e.kind===214&&e.arguments!==void 0;return FL(e.kind,t,r)}function Q9(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function FL(e,t,r){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return zL(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return r?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function zL(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 _x(e){return Cr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function hx(){let e=[],t=[],r=new Map,i=!1;return{add:s,lookup:o,getGlobalDiagnostics:l,getDiagnostics:d};function o(p){let h;if(p.file?h=r.get(p.file.fileName):h=e,!h)return;let m=Vg(h,p,Ps,tF);if(m>=0)return h[m]}function s(p){let h;p.file?(h=r.get(p.file.fileName),h||(h=[],r.set(p.file.fileName,h),Fv(t,p.file.fileName,gd))):(i&&(i=!1,e=e.slice()),h=e),Fv(h,p,tF)}function l(){return i=!0,e}function d(p){if(p)return r.get(p)||[];let h=wD(t,m=>r.get(m));return e.length&&h.unshift(...e),h}}function Z9(e){return e.replace(vbe,"\\${")}function sne(e){return!!((e.templateFlags||0)&2048)}function eV(e){return e&&!!(eI(e)?sne(e):sne(e.head)||ct(e.templateSpans,t=>sne(t.literal)))}function Jye(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function XFe(e,t,r){if(e.charCodeAt(0)===0){let i=r.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return Sbe.get(e)||Jye(e.charCodeAt(0))}function Th(e,t){let r=t===96?Ebe:t===39?bbe:ybe;return e.replace(r,XFe)}function BL(e,t){return e=Th(e,t),gre.test(e)?e.replace(gre,r=>Jye(r.charCodeAt(0))):e}function YFe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $Fe(e){return e.charCodeAt(0)===0?"�":Ibe.get(e)||YFe(e.charCodeAt(0))}function tV(e,t){let r=t===39?Abe:Tbe;return e.replace(r,$Fe)}function Sf(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&QFe(e.charCodeAt(0))?e.substring(1,t-1):e}function QFe(e){return e===39||e===34||e===96}function gx(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function OW(e){let t=eN[1];for(let r=eN.length;r<=e;r++)eN.push(eN[r-1]+t);return eN[e]}function vx(){return eN[1].length}function GL(e){var t,r,i,o,s,l=!1;function d(R){let L=IA(R);L.length>1?(o=o+L.length-1,s=t.length-R.length+Da(L),i=s-t.length===0):i=!1}function p(R){R&&R.length&&(i&&(R=OW(r)+R,i=!1),t+=R,d(R))}function h(R){R&&(l=!1),p(R)}function m(R){R&&(l=!0),p(R)}function v(){t="",r=0,i=!0,o=0,s=0,l=!1}function E(R){R!==void 0&&(t+=R,d(R),l=!1)}function S(R){R&&R.length&&h(R)}function A(R){(!i||R)&&(t+=e,o++,s=t.length,i=!0,l=!1)}function C(){return i?t.length:t.length+e.length}return v(),{write:h,rawWrite:E,writeLiteral:S,writeLine:A,increaseIndent:()=>{r++},decreaseIndent:()=>{r--},getIndent:()=>r,getTextPos:()=>t.length,getLine:()=>o,getColumn:()=>i?r*vx():t.length-s,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>l,hasTrailingWhitespace:()=>!!t.length&&$h(t.charCodeAt(t.length-1)),clear:v,writeKeyword:h,writeOperator:h,writeParameter:h,writeProperty:h,writePunctuation:h,writeSpace:h,writeStringLiteral:h,writeSymbol:(R,L)=>h(R),writeTrailingSemicolon:h,writeComment:m,getTextPosWithWriteLine:C}}function nV(e){let t=!1;function r(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){r(),e.writeLiteral(i)},writeStringLiteral(i){r(),e.writeStringLiteral(i)},writeSymbol(i,o){r(),e.writeSymbol(i,o)},writePunctuation(i){r(),e.writePunctuation(i)},writeKeyword(i){r(),e.writeKeyword(i)},writeOperator(i){r(),e.writeOperator(i)},writeParameter(i){r(),e.writeParameter(i)},writeSpace(i){r(),e.writeSpace(i)},writeProperty(i){r(),e.writeProperty(i)},writeComment(i){r(),e.writeComment(i)},writeLine(){r(),e.writeLine()},increaseIndent(){r(),e.increaseIndent()},decreaseIndent(){r(),e.decreaseIndent()}}}function yx(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function ev(e){return od(yx(e))}function wW(e,t,r){return t.moduleName||rV(e,t.fileName,r&&r.fileName)}function Kye(e,t){return e.getCanonicalFileName(Qi(t,e.getCurrentDirectory()))}function lne(e,t,r){let i=t.getExternalModuleFileFromDeclaration(r);if(!i||i.isDeclarationFile)return;let o=lx(r);if(!(o&&Ga(o)&&!op(o.text)&&!Kye(e,i.path).includes(Kye(e,_c(e.getCommonSourceDirectory())))))return wW(e,i)}function rV(e,t,r){let i=p=>e.getCanonicalFileName(p),o=ks(r?Ur(r):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),s=Qi(t,e.getCurrentDirectory()),l=AA(o,s,o,i,!1),d=Yd(l);return r?ME(d):d}function cne(e,t,r){let i=t.getCompilerOptions(),o;return i.outDir?o=Yd(BW(e,t,i.outDir)):o=Yd(e),o+r}function dne(e,t){return WW(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),r=>t.getCanonicalFileName(r))}function WW(e,t,r,i,o){let s=t.declarationDir||t.outDir,l=s?GW(e,s,r,i,o):e,d=FW(l);return Yd(l)+d}function FW(e){return $l(e,[".mjs",".mts"])?".d.mts":$l(e,[".cjs",".cts"])?".d.cts":$l(e,[".json"])?".d.json.ts":".d.ts"}function une(e){return $l(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:$l(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:$l(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function ss(e){return e.outFile||e.out}function zW(e,t){var r;if(e.paths)return e.baseUrl??x.checkDefined(e.pathsBasePath||((r=t.getCurrentDirectory)==null?void 0:r.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function iV(e,t,r){let i=e.getCompilerOptions();if(ss(i)){let o=ld(i),s=i.emitDeclarationOnly||o===2||o===4;return Cr(e.getSourceFiles(),l=>(s||!wl(l))&&LS(l,e,r))}else{let o=t===void 0?e.getSourceFiles():[t];return Cr(o,s=>LS(s,e,r))}}function LS(e,t,r){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&wd(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(r)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!yf(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(ss(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let o=Qi(VN(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),s=GW(e.fileName,i.outDir,t.getCurrentDirectory(),o,t.getCanonicalFileName);if(Xh(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function BW(e,t,r){return GW(e,r,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function GW(e,t,r,i,o){let s=Qi(e,r);return s=o(s).indexOf(o(i))===0?s.substring(i.length):s,wr(t,s)}function RC(e,t,r,i,o,s,l){e.writeFile(r,i,o,d=>{t.add(bl(f.Could_not_write_file_0_Colon_1,r,d))},s,l)}function Xye(e,t,r){if(e.length>P_(e)&&!r(e)){let i=Ur(e);Xye(i,t,r),t(e)}}function oV(e,t,r,i,o,s){try{i(e,t,r)}catch{Xye(Ur(Yo(e)),o,s),i(e,t,r)}}function DC(e,t){let r=Yh(e);return XD(r,t)}function kS(e,t){return XD(e,t)}function Ah(e){return Dr(e.members,t=>ll(t)&&gf(t.body))}function CC(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&XE(e.parameters[0]);return e.parameters[t?1:0]}}function pne(e){let t=CC(e);return t&&t.type}function KE(e){if(e.parameters.length&&!wb(e)){let t=e.parameters[0];if(XE(t))return t}}function XE(e){return YE(e.name)}function YE(e){return!!e&&e.kind===80&&aV(e)}function OS(e){return!!Rn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function zA(e){if(!YE(e))return!1;for(;$d(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function aV(e){return e.escapedText==="this"}function wS(e,t){let r,i,o,s;return ty(t)?(r=t,t.kind===177?o=t:t.kind===178?s=t:x.fail("Accessor has wrong kind")):an(e,l=>{if(Kv(l)&&zo(l)===zo(t)){let d=MS(l.name),p=MS(t.name);d===p&&(r?i||(i=l):r=l,l.kind===177&&!o&&(o=l),l.kind===178&&!s&&(s=l))}}),{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}}function Jc(e){if(!Jn(e)&&Ql(e))return;let t=e.type;return t||!Jn(e)?t:iC(e)?e.typeExpression&&e.typeExpression.type:bb(e)}function fne(e){return e.type}function Tf(e){return wb(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Jn(e)?BM(e):void 0)}function VW(e){return ta(Eb(e),t=>ZFe(t)?t.typeParameters:void 0)}function ZFe(e){return Df(e)&&!(e.parent.kind===327&&(e.parent.tags.some(bf)||e.parent.tags.some(Vx)))}function mne(e){let t=CC(e);return t&&Jc(t)}function _ne(e,t,r,i){hne(e,t,r.pos,i)}function hne(e,t,r,i){i&&i.length&&r!==i[0].pos&&kS(e,r)!==kS(e,i[0].pos)&&t.writeLine()}function gne(e,t,r,i){r!==i&&kS(e,r)!==kS(e,i)&&t.writeLine()}function vne(e,t,r,i,o,s,l,d){if(i&&i.length>0){o&&r.writeSpace(" ");let p=!1;for(let h of i)p&&(r.writeSpace(" "),p=!1),d(e,t,r,h.pos,h.end,l),h.hasTrailingNewLine?r.writeLine():p=!0;p&&s&&r.writeSpace(" ")}}function yne(e,t,r,i,o,s,l){let d,p;if(l?o.pos===0&&(d=Cr(mh(e,o.pos),h)):d=mh(e,o.pos),d){let m=[],v;for(let E of d){if(v){let S=kS(t,v.end);if(kS(t,E.pos)>=S+2)break}m.push(E),v=E}if(m.length){let E=kS(t,Da(m).end);kS(t,ua(e,o.pos))>=E+2&&(_ne(t,r,o,d),vne(e,t,r,m,!1,!0,s,i),p={nodePos:o.pos,detachedCommentEndPos:Da(m).end})}}return p;function h(m){return nW(e,m.pos)}}function bx(e,t,r,i,o,s){if(e.charCodeAt(i+1)===42){let l=W1(t,i),d=t.length,p;for(let h=i,m=l.line;h<o;m++){let v=m+1===d?e.length+1:t[m+1];if(h!==i){p===void 0&&(p=Yye(e,t[l.line],i));let S=r.getIndent()*vx()-p+Yye(e,h,v);if(S>0){let A=S%vx(),C=OW((S-A)/vx());for(r.rawWrite(C);A;)r.rawWrite(" "),A--}else r.rawWrite("")}e6e(e,o,r,s,h,v),h=v}}else r.writeComment(e.substring(i,o))}function e6e(e,t,r,i,o,s){let l=Math.min(t,s-1),d=e.substring(o,l).trim();d?(r.writeComment(d),l!==t&&r.writeLine()):r.rawWrite(i)}function Yye(e,t,r){let i=0;for(;t<r&&jm(e.charCodeAt(t));t++)e.charCodeAt(t)===9?i+=vx()-i%vx():i++;return i}function jW(e){return Wd(e)!==0}function bne(e){return ny(e)!==0}function zu(e,t){return!!BA(e,t)}function Wr(e,t){return!!Ene(e,t)}function zo(e){return xc(e)&&jl(e)||nl(e)}function jl(e){return Wr(e,256)}function UW(e){return zu(e,16)}function $E(e){return Wr(e,64)}function sV(e){return Wr(e,128)}function Ym(e){return Wr(e,512)}function NC(e){return zu(e,8)}function Hp(e){return Wr(e,32768)}function BA(e,t){return Wd(e)&t}function Ene(e,t){return ny(e)&t}function Sne(e,t,r){return e.kind>=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=lV(e)|536870912),r||t&&Jn(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=$ye(e)|268435456),Qye(e.modifierFlagsCache)):t6e(e.modifierFlagsCache))}function Wd(e){return Sne(e,!0)}function Tne(e){return Sne(e,!0,!0)}function ny(e){return Sne(e,!1)}function $ye(e){let t=0;return e.parent&&!ao(e)&&(Jn(e)&&(Wee(e)&&(t|=8388608),Fee(e)&&(t|=16777216),zee(e)&&(t|=33554432),Bee(e)&&(t|=67108864),Gee(e)&&(t|=134217728)),Vee(e)&&(t|=65536)),t}function t6e(e){return e&65535}function Qye(e){return e&131071|(e&260046848)>>>23}function n6e(e){return Qye($ye(e))}function Ane(e){return lV(e)|n6e(e)}function lV(e){let t=Yf(e)?$m(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function $m(e){let t=0;if(e)for(let r of e)t|=GA(r.kind);return t}function GA(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 Zye(e){return e===57||e===56}function Ine(e){return Zye(e)||e===54}function PC(e){return e===76||e===77||e===78}function cV(e){return Zn(e)&&PC(e.operatorToken.kind)}function VL(e){return Zye(e)||e===61}function jL(e){return Zn(e)&&VL(e.operatorToken.kind)}function tv(e){return e>=64&&e<=79}function dV(e){let t=uV(e);return t&&!t.isImplements?t.class:void 0}function uV(e){if(sv(e)){if(Ip(e.parent)&&Kr(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(_I(e.parent)){let t=Rb(e.parent);if(t&&Kr(t))return{class:t,isImplements:!1}}}}function lc(e,t){return Zn(e)&&(t?e.operatorToken.kind===64:tv(e.operatorToken.kind))&&Tu(e.left)}function ebe(e){return lc(e.parent)&&e.parent.left===e}function nv(e){if(lc(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function HW(e){return dV(e)!==void 0}function gl(e){return e.kind===80||UL(e)}function dp(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function MC(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&MC(e.expression)||e.kind===217&&MC(e.expression)}function UL(e){return Er(e)&&Me(e.name)&&gl(e.expression)}function HL(e){if(Er(e)){let t=HL(e.expression);if(t!==void 0)return t+"."+Wu(e.name)}else if(Rs(e)){let t=HL(e.expression);if(t!==void 0&&kl(e.argumentExpression))return t+"."+MS(e.argumentExpression)}else{if(Me(e))return Ii(e.escapedText);if(Em(e))return ZC(e)}}function ry(e){return UE(e)&&tg(e)==="prototype"}function LC(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function pV(e){return!!e.parent&&(Er(e.parent)&&e.parent.name===e||Rs(e.parent)&&e.parent.argumentExpression===e)}function xne(e){return $d(e.parent)&&e.parent.right===e||Er(e.parent)&&e.parent.name===e||Ob(e.parent)&&e.parent.right===e}function qW(e){return Zn(e)&&e.operatorToken.kind===104}function Rne(e){return qW(e.parent)&&e===e.parent.right}function fV(e){return e.kind===210&&e.properties.length===0}function Dne(e){return e.kind===209&&e.elements.length===0}function Ex(e){if(!(!r6e(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function r6e(e){return e&&yn(e.declarations)>0&&Wr(e.declarations[0],2048)}function JW(e){return Dr(Nbe,t=>el(e,t))}function i6e(e){let t=[],r=e.length;for(let i=0;i<r;i++){let o=e.charCodeAt(i);o<128?t.push(o):o<2048?(t.push(o>>6|192),t.push(o&63|128)):o<65536?(t.push(o>>12|224),t.push(o>>6&63|128),t.push(o&63|128)):o<131072?(t.push(o>>18|240),t.push(o>>12&63|128),t.push(o>>6&63|128),t.push(o&63|128)):x.assert(!1,"Unexpected code point")}return t}function Cne(e){let t="",r=i6e(e),i=0,o=r.length,s,l,d,p;for(;i<o;)s=r[i]>>2,l=(r[i]&3)<<4|r[i+1]>>4,d=(r[i+1]&15)<<2|r[i+2]>>6,p=r[i+2]&63,i+1>=o?d=p=64:i+2>=o&&(p=64),t+=FS.charAt(s)+FS.charAt(l)+FS.charAt(d)+FS.charAt(p),i+=3;return t}function o6e(e){let t="",r=0,i=e.length;for(;r<i;){let o=e[r];if(o<128)t+=String.fromCharCode(o),r++;else if((o&192)===192){let s=o&63;r++;let l=e[r];for(;(l&192)===128;)s=s<<6|l&63,r++,l=e[r];t+=String.fromCharCode(s)}else t+=String.fromCharCode(o),r++}return t}function Nne(e,t){return e&&e.base64encode?e.base64encode(t):Cne(t)}function Pne(e,t){if(e&&e.base64decode)return e.base64decode(t);let r=t.length,i=[],o=0;for(;o<r&&t.charCodeAt(o)!==FS.charCodeAt(64);){let s=FS.indexOf(t[o]),l=FS.indexOf(t[o+1]),d=FS.indexOf(t[o+2]),p=FS.indexOf(t[o+3]),h=(s&63)<<2|l>>4&3,m=(l&15)<<4|d>>2&15,v=(d&3)<<6|p&63;m===0&&d!==0?i.push(h):v===0&&p!==0?i.push(h,m):i.push(h,m,v),o+=4}return o6e(i)}function mV(e,t){let r=fo(t)?t:t.readFile(e);if(!r)return;let i=rU(e,r);return i.error?void 0:i.config}function kC(e,t){return mV(e,t)||{}}function KW(e){try{return JSON.parse(e)}catch{return}}function gm(e,t){return!t.directoryExists||t.directoryExists(e)}function rv(e){switch(e.newLine){case 0:return xbe;case 1:case void 0:return Rbe}}function qp(e,t=e){return x.assert(t>=e||t===-1),{pos:e,end:t}}function XW(e,t){return qp(e.pos,t)}function Cb(e,t){return qp(t,e.end)}function rg(e){let t=Yf(e)?hA(e.modifiers,Xc):void 0;return t&&!ym(t.end)?Cb(e,t.end):e}function Qm(e){if(xo(e)||El(e))return Cb(e,e.name.pos);let t=Yf(e)?Ns(e.modifiers):void 0;return t&&!ym(t.end)?Cb(e,t.end):rg(e)}function tbe(e){return e.pos===e.end}function _V(e,t){return qp(e,e+qo(t).length)}function WS(e,t){return Lne(e,e,t)}function YW(e,t,r){return Jp(OC(e,r,!1),OC(t,r,!1),r)}function Mne(e,t,r){return Jp(e.end,t.end,r)}function Lne(e,t,r){return Jp(OC(e,r,!1),t.end,r)}function qL(e,t,r){return Jp(e.end,OC(t,r,!1),r)}function hV(e,t,r,i){let o=OC(t,r,i);return YD(r,e.end,o)}function nbe(e,t,r){return YD(r,e.end,t.end)}function kne(e,t){return!Jp(e.pos,e.end,t)}function Jp(e,t,r){return YD(r,e,t)===0}function OC(e,t,r){return ym(e.pos)?-1:ua(t.text,e.pos,!1,r)}function One(e,t,r,i){let o=ua(r.text,e,!1,i),s=a6e(o,t,r);return YD(r,s??t,o)}function wne(e,t,r,i){let o=ua(r.text,e,!1,i);return YD(r,e,Math.min(t,o))}function a6e(e,t=0,r){for(;e-- >t;)if(!$h(r.text.charCodeAt(e)))return e}function gV(e){let t=uo(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function wC(e){return Cr(e.declarations,JL)}function JL(e){return yi(e)&&e.initializer!==void 0}function rbe(e){return e.watch&&rs(e,"watch")}function vm(e){e.close()}function tl(e){return e.flags&33554432?e.links.checkFlags:0}function Kp(e,t=!1){if(e.valueDeclaration){let r=t&&e.declarations&&Dr(e.declarations,Vu)||e.flags&32768&&Dr(e.declarations,Ap)||e.valueDeclaration,i=gb(r);return e.parent&&e.parent.flags&32?i:i&-8}if(tl(e)&6){let r=e.links.checkFlags,i=r&1024?2:r&256?1:4,o=r&2048?256:0;return i|o}return e.flags&4194304?257:0}function Kc(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function Sx(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function $W(e){return WC(e)===1}function VA(e){return WC(e)!==0}function WC(e){let{parent:t}=e;switch(t?.kind){case 217:return WC(t);case 225:case 224:let{operator:r}=t;return r===46||r===47?2:0;case 226:let{left:i,operatorToken:o}=t;return i===e&&tv(o.kind)?o.kind===64?1:2:0;case 211:return t.name!==e?0:WC(t);case 303:{let s=WC(t.parent);return e===t.name?s6e(s):s}case 304:return e===t.objectAssignmentInitializer?0:WC(t.parent);case 209:return WC(t);default:return 0}}function s6e(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return x.assertNever(e)}}function vV(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(typeof e[r]=="object"){if(!vV(e[r],t[r]))return!1}else if(typeof e[r]!="function"&&e[r]!==t[r])return!1;return!0}function Au(e,t){e.forEach(t),e.clear()}function Ih(e,t,r){let{onDeleteValue:i,onExistingValue:o}=r;e.forEach((s,l)=>{var d;t?.has(l)?o&&o(s,(d=t.get)==null?void 0:d.call(t,l),l):(e.delete(l),i(s,l))})}function FC(e,t,r){Ih(e,t,r);let{createNewValue:i}=r;t?.forEach((o,s)=>{e.has(s)||e.set(s,i(s,o))})}function Wne(e){if(e.flags&32){let t=ig(e);return!!t&&Wr(t,64)}return!1}function ig(e){var t;return(t=e.declarations)==null?void 0:t.find(Kr)}function br(e){return e.flags&3899393?e.objectFlags:0}function ibe(e,t){return!!Vf(e,r=>t(r)?!0:void 0)}function QW(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&D2(e.declarations[0])}function Fne({moduleSpecifier:e}){return ca(e)?e.text:Vl(e)}function yV(e){let t;return Ao(e,r=>{gf(r)&&(t=r)},r=>{for(let i=r.length-1;i>=0;i--)if(gf(r[i])){t=r[i];break}}),t}function Jf(e,t,r=!0){return e.has(t)?!1:(e.set(t,r),!0)}function jA(e){return Kr(e)||Gd(e)||ju(e)}function bV(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function ds(e){return e.kind===211||e.kind===212}function EV(e){return e.kind===211?e.name:(x.assert(e.kind===212),e.argumentExpression)}function zne(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function ZW(e){return e.kind===275||e.kind===279}function Tx(e){for(;ds(e);)e=e.expression;return e}function Bne(e,t){if(ds(e.parent)&&pV(e))return r(e.parent);function r(i){if(i.kind===211){let o=t(i.name);if(o!==void 0)return o}else if(i.kind===212)if(Me(i.argumentExpression)||Ga(i.argumentExpression)){let o=t(i.argumentExpression);if(o!==void 0)return o}else return;if(ds(i.expression))return r(i.expression);if(Me(i.expression))return t(i.expression)}}function Ax(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function l6e(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 c6e(e,t){this.flags=t,(x.isDebugging||qn)&&(this.checker=e)}function d6e(e,t){this.flags=t,x.isDebugging&&(this.checker=e)}function Gne(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function u6e(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function p6e(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function f6e(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(i=>i)}function Vne(e){vre.push(e),e(wc)}function jne(e){Object.assign(wc,e),an(vre,t=>t(wc))}function xh(e,t){return e.replace(/{(\d+)}/g,(r,i)=>""+x.checkDefined(t[+i]))}function Une(e){xF=e}function Hne(e){!xF&&e&&(xF=e())}function vo(e){return xF&&xF[e.key]||e.message}function Ix(e,t,r,i,o,...s){r+i>t.length&&(i=t.length-r),Nte(t,r,i);let l=vo(o);return ct(s)&&(l=xh(l,s)),{file:void 0,start:r,length:i,messageText:l,category:o.category,code:o.code,reportsUnnecessary:o.reportsUnnecessary,fileName:e}}function m6e(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function obe(e,t){let r=t.fileName||"",i=t.text.length;x.assertEqual(e.fileName,r),x.assertLessThanOrEqual(e.start,i),x.assertLessThanOrEqual(e.start+e.length,i);let o={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){o.relatedInformation=[];for(let s of e.relatedInformation)m6e(s)&&s.fileName===r?(x.assertLessThanOrEqual(s.start,i),x.assertLessThanOrEqual(s.start+s.length,i),o.relatedInformation.push(obe(s,t))):o.relatedInformation.push(s)}return o}function UA(e,t){let r=[];for(let i of e)r.push(obe(i,t));return r}function Rc(e,t,r,i,...o){Nte(e.text,t,r);let s=vo(i);return ct(o)&&(s=xh(s,o)),{file:e,start:t,length:r,messageText:s,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function SV(e,...t){let r=vo(e);return ct(t)&&(r=xh(r,t)),r}function bl(e,...t){let r=vo(e);return ct(t)&&(r=xh(r,t)),{file:void 0,start:void 0,length:void 0,messageText:r,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function eF(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 So(e,t,...r){let i=vo(t);return ct(r)&&(i=xh(i,r)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function qne(e,t){let r=e;for(;r.next;)r=r.next[0];r.next=[t]}function abe(e){return e.file?e.file.path:void 0}function zC(e,t){return tF(e,t)||_6e(e,t)||0}function tF(e,t){return gd(abe(e),abe(t))||Ms(e.start,t.start)||Ms(e.length,t.length)||Ms(e.code,t.code)||sbe(e.messageText,t.messageText)||0}function _6e(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Ms(e.relatedInformation.length,t.relatedInformation.length)||an(e.relatedInformation,(r,i)=>{let o=t.relatedInformation[i];return zC(r,o)})||0:e.relatedInformation?-1:1}function sbe(e,t){if(typeof e=="string"&&typeof t=="string")return gd(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let r=gd(e.messageText,t.messageText);if(r)return r;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let o=0;o<i;o++)if(r=sbe(e.next[o],t.next[o]),r)return r;return e.next.length<t.next.length?-1:e.next.length>t.next.length?1:0}function KL(e){return e===4||e===2||e===1||e===6?1:0}function lbe(e){if(e.transformFlags&2)return Od(e)||c0(e)?e:Ao(e,lbe)}function h6e(e){return e.isDeclarationFile?void 0:lbe(e)}function g6e(e){return(e.impliedNodeFormat===99||$l(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function XL(e){switch(qV(e)){case 3:return o=>{o.externalModuleIndicator=z2(o)||!o.isDeclarationFile||void 0};case 1:return o=>{o.externalModuleIndicator=z2(o)};case 2:let t=[z2];(e.jsx===4||e.jsx===5)&&t.push(h6e),t.push(g6e);let r=hm(...t);return o=>void(o.externalModuleIndicator=r(o))}}function ift(e){return e}function nF(e){return e>=5&&e<=99}function rF(e){switch(ld(e)){case 0:case 4:case 3:return!1}return!0}function TV(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function Jne(e){return e.allowUnreachableCode===!1}function Kne(e){return e.allowUnusedLabels===!1}function HA(e){return e>=3&&e<=99||e===100}function Fd(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function Xne(e){return e.useDefineForClassFields!==!1&&Wa(e)>=9}function Yne(e,t){return K1(t,e,pU)}function $ne(e,t){return K1(t,e,fU)}function Qne(e,t){return K1(t,e,mU)}function iF(e,t){return t.strictFlag?Fd(e,t.name):t.allowJsFlag?sy(e):e[t.name]}function oF(e){let t=e.jsx;return t===2||t===4||t===5}function aF(e,t){let r=t?.pragmas.get("jsximportsource"),i=oo(r)?r[r.length-1]:r;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function sF(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function AV(e){let t=!1;for(let r=0;r<e.length;r++)if(e.charCodeAt(r)===42)if(!t)t=!0;else return!1;return!0}function IV(e,t){let r,i,o,s=!1;return{getSymlinkedFiles:()=>o,getSymlinkedDirectories:()=>r,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(d,p)=>(o||(o=new Map)).set(d,p),setSymlinkedDirectory:(d,p)=>{let h=ks(d,e,t);KC(h)||(h=_c(h),p!==!1&&!r?.has(h)&&(i||(i=bp())).add(p.realPath,d),(r||(r=new Map)).set(h,p))},setSymlinksFromResolutions(d,p,h){x.assert(!s),s=!0,d(m=>l(this,m.resolvedModule)),p(m=>l(this,m.resolvedTypeReferenceDirective)),h.forEach(m=>l(this,m.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>s};function l(d,p){if(!p||!p.originalPath||!p.resolvedFileName)return;let{resolvedFileName:h,originalPath:m}=p;d.setSymlinkedFile(ks(m,e,t),h);let[v,E]=v6e(h,m,e,t)||je;v&&E&&d.setSymlinkedDirectory(E,{real:_c(v),realPath:_c(ks(v,e,t))})}}function v6e(e,t,r,i){let o=mc(Qi(e,r)),s=mc(Qi(t,r)),l=!1;for(;o.length>=2&&s.length>=2&&!cbe(o[o.length-2],i)&&!cbe(s[s.length-2],i)&&i(o[o.length-1])===i(s[s.length-1]);)o.pop(),s.pop(),l=!0;return l?[Vv(o),Vv(s)]:void 0}function cbe(e,t){return e!==void 0&&(t(e)==="node_modules"||Ui(e,"@"))}function y6e(e){return IG(e.charCodeAt(0))?e.slice(1):void 0}function xV(e,t,r){let i=fB(e,t,r);return i===void 0?void 0:y6e(i)}function dbe(e){return e.replace(JV,b6e)}function b6e(e){return"\\"+e}function BC(e,t,r){let i=lF(e,t,r);return!i||!i.length?void 0:`^(${i.map(l=>`(${l})`).join("|")})${r==="exclude"?"($|/)":"$"}`}function lF(e,t,r){if(!(e===void 0||e.length===0))return ta(e,i=>i&&cF(i,t,r,YV[r]))}function RV(e){return!/[.*?]/.test(e)}function Zne(e,t,r){let i=e&&cF(e,t,r,YV[r]);return i&&`^(${i})${r==="exclude"?"($|/)":"$"}`}function cF(e,t,r,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:o,replaceWildcardCharacter:s}=YV[r]){let l="",d=!1,p=IM(e,t),h=Da(p);if(r!=="exclude"&&h==="**")return;p[0]=fb(p[0]),RV(h)&&p.push("**","*");let m=0;for(let v of p){if(v==="**")l+=o;else if(r==="directories"&&(l+="(",m++),d&&(l+=Os),r!=="exclude"){let E="";v.charCodeAt(0)===42?(E+="([^./]"+i+")?",v=v.substr(1)):v.charCodeAt(0)===63&&(E+="[^./]",v=v.substr(1)),E+=v.replace(JV,s),E!==v&&(l+=XV),l+=E}else l+=v.replace(JV,s);d=!0}for(;m>0;)l+=")?",m--;return l}function ere(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function dF(e,t,r,i,o){e=Yo(e),o=Yo(o);let s=wr(o,e);return{includeFilePatterns:nn(lF(r,s,"files"),l=>`^${l}$`),includeFilePattern:BC(r,s,"files"),includeDirectoryPattern:BC(r,s,"directories"),excludePattern:BC(t,s,"exclude"),basePaths:E6e(e,r,i)}}function iy(e,t){return new RegExp(e,t?"":"i")}function DV(e,t,r,i,o,s,l,d,p){e=Yo(e),s=Yo(s);let h=dF(e,r,i,o,s),m=h.includeFilePatterns&&h.includeFilePatterns.map(L=>iy(L,o)),v=h.includeDirectoryPattern&&iy(h.includeDirectoryPattern,o),E=h.excludePattern&&iy(h.excludePattern,o),S=m?m.map(()=>[]):[[]],A=new Map,C=od(o);for(let L of h.basePaths)R(L,wr(s,L),l);return Ff(S);function R(L,G,U){let K=C(p(G));if(A.has(K))return;A.set(K,!0);let{files:F,directories:oe}=d(L);for(let W of uS(F,gd)){let $=wr(L,W),de=wr(G,W);if(!(t&&!$l($,t))&&!(E&&E.test(de)))if(!m)S[0].push($);else{let fe=Tl(m,q=>q.test(de));fe!==-1&&S[fe].push($)}}if(!(U!==void 0&&(U--,U===0)))for(let W of uS(oe,gd)){let $=wr(L,W),de=wr(G,W);(!v||v.test(de))&&(!E||!E.test(de))&&R($,de,U)}}}function E6e(e,t,r){let i=[e];if(t){let o=[];for(let s of t){let l=Ou(s)?s:Yo(wr(e,s));o.push(S6e(l))}o.sort(D1(!r));for(let s of o)ji(i,l=>!Bf(l,s,e,!r))&&i.push(s)}return i}function S6e(e){let t=DZ(e,Dbe);return t<0?TA(e)?fb(Ur(e)):e:e.substring(0,e.lastIndexOf(Os,t))}function uF(e,t){return t||pF(e)||3}function pF(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function GC(e,t){let r=e&&sy(e);if(!t||t.length===0)return r?CF:Nx;let i=r?CF:Nx,o=Ff(i);return[...i,...Fi(t,l=>l.scriptKind===7||r&&T6e(l.scriptKind)&&!o.includes(l.extension)?[l.extension]:void 0)]}function YL(e,t){return!e||!Mb(e)?t:t===CF?Pbe:t===Nx?Cbe:[...t,[".json"]]}function T6e(e){return e===1||e===2}function QE(e){return ct(Px,t=>el(e,t))}function qA(e){return ct($V,t=>el(e,t))}function tre({imports:e},t=hm(QE,qA)){return ml(e,({text:r})=>op(r)&&!$l(r,c2)?t(r):void 0)||!1}function nre(e,t,r,i){let o=zd(r),s=3<=o&&o<=99;if(e==="js"||t===99&&s)return nR(r)&&l()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!nR(r))return tre(i)?2:0;return l();function l(){let d=!1,p=i.imports.length?i.imports:wd(i)?A6e(i).map(h=>h.arguments[0]):je;for(let h of p)if(op(h.text)){if(s&&t===1&&DH(i,h,r)===99||$l(h.text,c2))continue;if(qA(h.text))return 3;QE(h.text)&&(d=!0)}return d?2:0}}function A6e(e){let t=0,r;for(let i of e.statements){if(t>3)break;M9(i)?r=ro(r,i.declarationList.declarations.map(o=>o.initializer)):Cc(i)&&Xd(i.expression,!0)?r=pn(r,i.expression):t++}return r||je}function rre(e,t,r){if(!e)return!1;let i=GC(t,r);for(let o of Ff(YL(t,i)))if(el(e,o))return!0;return!1}function ube(e){let t=e.match(/\//g);return t?t.length:0}function $L(e,t){return Ms(ube(e),ube(t))}function Yd(e){for(let t of ej){let r=ire(e,t);if(r!==void 0)return r}return e}function ire(e,t){return el(e,t)?QL(e,t):void 0}function QL(e,t){return e.substring(0,e.length-t.length)}function Nb(e,t){return xM(e,t,ej,!1)}function xx(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function fF(e){return Fi(fh(e),t=>xx(t))}function ym(e){return!(e>=0)}function mF(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||Ui(e,".d.")&&Zs(e,".ts")}function VC(e){return mF(e)||e===".json"}function jC(e){let t=og(e);return t!==void 0?t:x.fail(`File ${e} has unknown extension.`)}function pbe(e){return og(e)!==void 0}function og(e){return Dr(ej,t=>el(e,t))}function ZL(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function CV(e,t){let r=[];for(let i of e){if(i===t)return t;fo(i)||r.push(i)}return pB(r,i=>i,t)}function NV(e,t){let r=e.indexOf(t);return x.assert(r!==-1),e.slice(r)}function pa(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),x.assert(e.relatedInformation!==je,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function ore(e,t){x.assert(e.length!==0);let r=t(e[0]),i=r;for(let o=1;o<e.length;o++){let s=t(e[o]);s<r?r=s:s>i&&(i=s)}return{min:r,max:i}}function PV(e){return{pos:Tb(e),end:e.end}}function MV(e,t){let r=t.pos-1,i=Math.min(e.text.length,ua(e.text,t.end)+1);return{pos:r,end:i}}function UC(e,t,r){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||r.isSourceOfProjectReferenceRedirect(e.fileName)}function _F(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&wZ(e,t,_F)}function HC(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let h=e.length-1,m=0;for(;e.charCodeAt(m)===48;)m++;return e.slice(m,h)||"0"}let r=2,i=e.length-1,o=(i-r)*t,s=new Uint16Array((o>>>4)+(o&15?1:0));for(let h=i-1,m=0;h>=r;h--,m+=t){let v=m>>>4,E=e.charCodeAt(h),A=(E<=57?E-48:10+E-(E<=70?65:97))<<(m&15);s[v]|=A;let C=A>>>16;C&&(s[v+1]|=C)}let l="",d=s.length-1,p=!0;for(;p;){let h=0;p=!1;for(let m=d;m>=0;m--){let v=h<<16|s[m],E=v/10|0;s[m]=E,h=v-E*10,E&&!p&&(d=m,p=!0)}l=h+l}return l}function ZE({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function are(e){if(hF(e,!1))return LV(e)}function LV(e){let t=e.startsWith("-"),r=HC(`${t?e.slice(1):e}n`);return{negative:t,base10Value:r}}function hF(e,t){if(e==="")return!1;let r=Kg(99,!1),i=!0;r.setOnError(()=>i=!1),r.setText(e+"n");let o=r.scan(),s=o===41;s&&(o=r.scan());let l=r.getTokenFlags();return i&&o===10&&r.getTokenEnd()===e.length+1&&!(l&512)&&(!t||e===ZE({negative:s,base10Value:HC(r.getTokenValue())}))}function Pb(e){return!!(e.flags&33554432)||EW(e)||R6e(e)||x6e(e)||!(bh(e)||I6e(e))}function I6e(e){return Me(e)&&xu(e.parent)&&e.parent.name===e}function x6e(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Wr(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function R6e(e){if(e.kind!==80)return!1;let t=Rn(e.parent,r=>{switch(r.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function sre(e){return Yp(e)&&Me(e.typeName)}function lre(e,t=Hg){if(e.length<2)return!0;let r=e[0];for(let i=1,o=e.length;i<o;i++){let s=e[i];if(!t(r,s))return!1}return!0}function qC(e,t){return e.pos=t,e}function Rx(e,t){return e.end=t,e}function W_(e,t,r){return Rx(qC(e,t),r)}function JC(e,t,r){return W_(e,t,t+r)}function cre(e,t){return e&&(e.flags=t),e}function Ta(e,t){return e&&t&&(e.parent=t),e}function Dx(e,t){if(e)for(let r of e)Ta(r,t);return e}function oy(e,t){if(!e)return e;return EN(e,q1(e)?r:o),e;function r(s,l){if(t&&s.parent===l)return"skip";Ta(s,l)}function i(s){if(ap(s))for(let l of s.jsDoc)r(l,s),EN(l,r)}function o(s,l){return r(s,l)||i(s)}}function D6e(e){return!vc(e)}function kV(e){return Bd(e)&&ji(e.elements,D6e)}function dre(e){for(x.assertIsDefined(e.parent);;){let t=e.parent;if(uu(t)){e=t;continue}if(Cc(t)||cI(t)||qS(t)&&(t.initializer===e||t.incrementor===e))return!0;if(dN(t)){if(e!==Da(t.elements))return!0;e=t;continue}if(Zn(t)&&t.operatorToken.kind===28){if(e===t.left)return!0;e=t;continue}return!1}}function KC(e){return ct(AM,t=>e.includes(t))}function ure(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:r}=e;return r.kind===195?void 0:r.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return ZS(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(J1(e))return YS(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return bS(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return xi(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return ZM(e)?t.children:void 0;case 286:case 285:return xi(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return xc(e)?t.members:void 0;case 266:return p0(e)?t.members:void 0;case 312:return t.statements}}function gF(e){if(!e.typeParameters){if(ct(e.parameters,t=>!Jc(t)))return!0;if(e.kind!==219){let t=Ac(e.parameters);if(!(t&&XE(t)))return!0}}return!1}function XC(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function pre(e){return e.kind===260&&e.parent.kind===299}function e0(e){return e.kind===218||e.kind===219}function t0(e){return e.replace(/\$/gm,()=>"\\$")}function Rh(e){return(+e).toString()===e}function vF(e,t,r,i,o){let s=o&&e==="new";return!s&&Sp(e,t)?P.createIdentifier(e):!i&&!s&&Rh(e)&&+e>=0?P.createNumericLiteral(+e):P.createStringLiteral(e,!!r)}function YC(e){return!!(e.flags&262144&&e.isThisType)}function yF(e){let t=0,r=0,i=0,o=0,s;(h=>{h[h.BeforeNodeModules=0]="BeforeNodeModules",h[h.NodeModules=1]="NodeModules",h[h.Scope=2]="Scope",h[h.PackageContent=3]="PackageContent"})(s||(s={}));let l=0,d=0,p=0;for(;d>=0;)switch(l=d,d=e.indexOf("/",l+1),p){case 0:e.indexOf(H_,l)===l&&(t=l,r=d,p=1);break;case 1:case 2:p===1&&e.charAt(l+1)==="@"?p=2:(i=d,p=3);break;case 3:e.indexOf(H_,l)===l?p=1:p=3;break}return o=l,p>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:r,packageRootIndex:i,fileNameIndex:o}:void 0}function fbe(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function Cx(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function e2(e){return kb(e)||cl(e)||Ql(e)||Zl(e)||Gd(e)||Cx(e)||Il(e)&&!zE(e)&&!qm(e)}function t2(e){if(!iC(e))return!1;let{isBracketed:t,typeExpression:r}=e;return t||!!r&&r.type.kind===323}function OV(e,t){if(e.length===0)return!1;let r=e.charCodeAt(0);return r===35?e.length>1&&_h(e.charCodeAt(1),t):_h(r,t)}function fre(e){var t;return((t=cj(e))==null?void 0:t.kind)===0}function n2(e){return Jn(e)&&(e.type&&e.type.kind===323||G1(e).some(({isBracketed:t,typeExpression:r})=>t||!!r&&r.type.kind===323))}function $C(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||n2(e);case 355:case 348:return t2(e);default:return!1}}function mre(e){let t=e.kind;return(t===211||t===212)&&dI(e.expression)}function wV(e){return Jn(e)&&uu(e)&&ap(e)&&!!GG(e)}function WV(e){return x.checkDefined(bF(e))}function bF(e){let t=GG(e);return t&&t.typeExpression&&t.typeExpression.type}function QC(e){return Me(e)?e.escapedText:JA(e)}function r2(e){return Me(e)?ar(e):ZC(e)}function _re(e){let t=e.kind;return t===80||t===295}function JA(e){return`${e.namespace.escapedText}:${ar(e.name)}`}function ZC(e){return`${ar(e.namespace)}:${ar(e.name)}`}function FV(e){return Me(e)?ar(e):ZC(e)}function Af(e){return!!(e.flags&8576)}function If(e){return e.flags&8192?e.escapedName:e.flags&384?Hs(""+e.value):x.fail()}function EF(e){return!!e&&(Er(e)||Rs(e)||Zn(e))}function hre(e){return e===void 0?!1:!!oR(e.attributes)}function KA(e,t){return Mbe.call(e,"*",t)}function SF(e){return Me(e.name)?e.name.escapedText:Hs(e.name.text)}var TF,ay,i2,AF,o2,IF,zV,BV,mbe,_be,GV,hbe,gbe,VV,jV,UV,HV,vbe,ybe,bbe,Ebe,Sbe,gre,Tbe,Abe,Ibe,eN,FS,xbe,Rbe,wc,vre,xF,Ul,Wa,ld,zd,qV,xf,F_,zS,RF,DF,Mb,Xp,n0,tN,a2,sy,nN,JV,Dbe,KV,XV,yre,bre,Ere,YV,Nx,$V,Cbe,Nbe,QV,Px,CF,Pbe,s2,l2,c2,ZV,ej,NF,Mbe,C6e=pt({"src/compiler/utilities.ts"(){"use strict";wo(),TF=[],ay="tslib",i2=160,AF=1e6,o2=MFe(),IF=Kd(()=>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:je})),AsyncIterator:new Map(Object.entries({es2015:je})),Atomics:new Map(Object.entries({es2017:je})),SharedArrayBuffer:new Map(Object.entries({es2017:je})),AsyncIterable:new Map(Object.entries({es2018:je})),AsyncIterableIterator:new Map(Object.entries({es2018:je})),AsyncGenerator:new Map(Object.entries({es2018:je})),AsyncGeneratorFunction:new Map(Object.entries({es2018:je})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:je,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:je})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),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:je,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:je,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),zV=(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))(zV||{}),BV=/^(\/\/\/\s*<reference\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,mbe=/^(\/\/\/\s*<reference\s+types\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,_be=/^(\/\/\/\s*<reference\s+lib\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,GV=/^(\/\/\/\s*<amd-dependency\s+path\s*=\s*)(('[^']*')|("[^"]*")).*?\/>/,hbe=/^\/\/\/\s*<amd-module\s+.*?\/>/,gbe=/^(\/\/\/\s*<reference\s+no-default-lib\s*=\s*)(('[^']*')|("[^"]*"))\s*\/>/,VV=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(VV||{}),jV=(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))(jV||{}),UV=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(UV||{}),HV=(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))(HV||{}),vbe=/\$\{/g,ybe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,bbe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ebe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Sbe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),gre=/[^\u0000-\u007F]/g,Tbe=/["\u0000-\u001f\u2028\u2029\u0085]/g,Abe=/['\u0000-\u001f\u2028\u2029\u0085]/g,Ibe=new Map(Object.entries({'"':""","'":"'"})),eN=[""," "],FS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xbe=`\r
`,Rbe=`
`,wc={getNodeConstructor:()=>Gne,getTokenConstructor:()=>u6e,getIdentifierConstructor:()=>p6e,getPrivateIdentifierConstructor:()=>Gne,getSourceFileConstructor:()=>Gne,getSymbolConstructor:()=>l6e,getTypeConstructor:()=>c6e,getSignatureConstructor:()=>d6e,getSourceMapSourceConstructor:()=>f6e},vre=[],Ul={target:{dependencies:["module"],computeValue:e=>e.target??(e.module===100&&9||e.module===199&&99||1)},module:{dependencies:["target"],computeValue:e=>typeof e.module=="number"?e.module:Ul.target.computeValue(e)>=2?5:1},moduleResolution:{dependencies:["module","target"],computeValue:e=>{let t=e.moduleResolution;if(t===void 0)switch(Ul.module.computeValue(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;case 200:t=100;break;default:t=1;break}return t}},moduleDetection:{dependencies:["module","target"],computeValue:e=>e.moduleDetection||(Ul.module.computeValue(e)===100||Ul.module.computeValue(e)===199?3:2)},isolatedModules:{dependencies:["verbatimModuleSyntax"],computeValue:e=>!!(e.isolatedModules||e.verbatimModuleSyntax)},esModuleInterop:{dependencies:["module","target"],computeValue:e=>{if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Ul.module.computeValue(e)){case 100:case 199:case 200:return!0}return!1}},allowSyntheticDefaultImports:{dependencies:["module","target","moduleResolution"],computeValue:e=>e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Ul.esModuleInterop.computeValue(e)||Ul.module.computeValue(e)===4||Ul.moduleResolution.computeValue(e)===100},resolvePackageJsonExports:{dependencies:["moduleResolution"],computeValue:e=>{let t=Ul.moduleResolution.computeValue(e);if(!HA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolvePackageJsonImports:{dependencies:["moduleResolution","resolvePackageJsonExports"],computeValue:e=>{let t=Ul.moduleResolution.computeValue(e);if(!HA(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}},resolveJsonModule:{dependencies:["moduleResolution","module","target"],computeValue:e=>e.resolveJsonModule!==void 0?e.resolveJsonModule:Ul.moduleResolution.computeValue(e)===100},declaration:{dependencies:["composite"],computeValue:e=>!!(e.declaration||e.composite)},preserveConstEnums:{dependencies:["isolatedModules","verbatimModuleSyntax"],computeValue:e=>!!(e.preserveConstEnums||Ul.isolatedModules.computeValue(e))},incremental:{dependencies:["composite"],computeValue:e=>!!(e.incremental||e.composite)},declarationMap:{dependencies:["declaration","composite"],computeValue:e=>!!(e.declarationMap&&Ul.declaration.computeValue(e))},allowJs:{dependencies:["checkJs"],computeValue:e=>e.allowJs===void 0?!!e.checkJs:e.allowJs},useDefineForClassFields:{dependencies:["target","module"],computeValue:e=>e.useDefineForClassFields===void 0?Ul.target.computeValue(e)>=9:e.useDefineForClassFields},noImplicitAny:{dependencies:["strict"],computeValue:e=>Fd(e,"noImplicitAny")},noImplicitThis:{dependencies:["strict"],computeValue:e=>Fd(e,"noImplicitThis")},strictNullChecks:{dependencies:["strict"],computeValue:e=>Fd(e,"strictNullChecks")},strictFunctionTypes:{dependencies:["strict"],computeValue:e=>Fd(e,"strictFunctionTypes")},strictBindCallApply:{dependencies:["strict"],computeValue:e=>Fd(e,"strictBindCallApply")},strictPropertyInitialization:{dependencies:["strict"],computeValue:e=>Fd(e,"strictPropertyInitialization")},alwaysStrict:{dependencies:["strict"],computeValue:e=>Fd(e,"alwaysStrict")},useUnknownInCatchVariables:{dependencies:["strict"],computeValue:e=>Fd(e,"useUnknownInCatchVariables")}},Wa=Ul.target.computeValue,ld=Ul.module.computeValue,zd=Ul.moduleResolution.computeValue,qV=Ul.moduleDetection.computeValue,xf=Ul.isolatedModules.computeValue,F_=Ul.esModuleInterop.computeValue,zS=Ul.allowSyntheticDefaultImports.computeValue,RF=Ul.resolvePackageJsonExports.computeValue,DF=Ul.resolvePackageJsonImports.computeValue,Mb=Ul.resolveJsonModule.computeValue,Xp=Ul.declaration.computeValue,n0=Ul.preserveConstEnums.computeValue,tN=Ul.incremental.computeValue,a2=Ul.declarationMap.computeValue,sy=Ul.allowJs.computeValue,nN=Ul.useDefineForClassFields.computeValue,JV=/[^\w\s/]/g,Dbe=[42,63],KV=["node_modules","bower_components","jspm_packages"],XV=`(?!(${KV.join("|")})(/|$))`,yre={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${XV}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>ere(e,yre.singleAsteriskRegexFragment)},bre={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${XV}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>ere(e,bre.singleAsteriskRegexFragment)},Ere={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>ere(e,Ere.singleAsteriskRegexFragment)},YV={files:yre,directories:bre,exclude:Ere},Nx=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],$V=Ff(Nx),Cbe=[...Nx,[".json"]],Nbe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],QV=[[".js",".jsx"],[".mjs"],[".cjs"]],Px=Ff(QV),CF=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Pbe=[...CF,[".json"]],s2=[".d.ts",".d.cts",".d.mts"],l2=[".ts",".cts",".mts",".tsx"],c2=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],ZV=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(ZV||{}),ej=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],NF={files:je,directories:je},Mbe=String.prototype.replace}});function Sre(){let e,t,r,i,o;return{createBaseSourceFileNode:s,createBaseIdentifierNode:l,createBasePrivateIdentifierNode:d,createBaseTokenNode:p,createBaseNode:h};function s(m){return new(o||(o=wc.getSourceFileConstructor()))(m,-1,-1)}function l(m){return new(r||(r=wc.getIdentifierConstructor()))(m,-1,-1)}function d(m){return new(i||(i=wc.getPrivateIdentifierConstructor()))(m,-1,-1)}function p(m){return new(t||(t=wc.getTokenConstructor()))(m,-1,-1)}function h(m){return new(e||(e=wc.getNodeConstructor()))(m,-1,-1)}}var N6e=pt({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";wo()}});function Tre(e){let t,r;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:o,parenthesizeLeftSideOfBinary:h,parenthesizeRightSideOfBinary:m,parenthesizeExpressionOfComputedPropertyName:v,parenthesizeConditionOfConditionalExpression:E,parenthesizeBranchOfConditionalExpression:S,parenthesizeExpressionOfExportDefault:A,parenthesizeExpressionOfNew:C,parenthesizeLeftSideOfAccess:R,parenthesizeOperandOfPostfixUnary:L,parenthesizeOperandOfPrefixUnary:G,parenthesizeExpressionsOfCommaDelimitedList:U,parenthesizeExpressionForDisallowedComma:K,parenthesizeExpressionOfExpressionStatement:F,parenthesizeConciseBodyOfArrowFunction:oe,parenthesizeCheckTypeOfConditionalType:W,parenthesizeExtendsTypeOfConditionalType:$,parenthesizeConstituentTypesOfUnionType:fe,parenthesizeConstituentTypeOfUnionType:de,parenthesizeConstituentTypesOfIntersectionType:H,parenthesizeConstituentTypeOfIntersectionType:q,parenthesizeOperandOfTypeOperator:ee,parenthesizeOperandOfReadonlyTypeOperator:le,parenthesizeNonArrayTypeOfPostfixType:Ee,parenthesizeElementTypesOfTupleType:ce,parenthesizeElementTypeOfTupleType:Z,parenthesizeTypeOfOptionalType:Ae,parenthesizeTypeArguments:be,parenthesizeLeadingTypeArgument:Oe};function i(Te){t||(t=new Map);let De=t.get(Te);return De||(De=ft=>h(Te,ft),t.set(Te,De)),De}function o(Te){r||(r=new Map);let De=r.get(Te);return De||(De=ft=>m(Te,void 0,ft),r.set(Te,De)),De}function s(Te,De,ft,he){let Le=FL(226,Te),Ke=$9(226,Te),Dt=jf(De);if(!ft&&De.kind===219&&Le>3)return!0;let st=xC(Dt);switch(Ms(st,Le)){case-1:return!(!ft&&Ke===1&&De.kind===229);case 1:return!1;case 0:if(ft)return Ke===1;if(Zn(Dt)&&Dt.operatorToken.kind===Te){if(l(Te))return!1;if(Te===40){let ot=he?d(he):0;if(oC(ot)&&ot===d(Dt))return!1}}return Y9(Dt)===0}}function l(Te){return Te===42||Te===52||Te===51||Te===53||Te===28}function d(Te){if(Te=jf(Te),oC(Te.kind))return Te.kind;if(Te.kind===226&&Te.operatorToken.kind===40){if(Te.cachedLiteralKind!==void 0)return Te.cachedLiteralKind;let De=d(Te.left),ft=oC(De)&&De===d(Te.right)?De:0;return Te.cachedLiteralKind=ft,ft}return 0}function p(Te,De,ft,he){return jf(De).kind===217?De:s(Te,De,ft,he)?e.createParenthesizedExpression(De):De}function h(Te,De){return p(Te,De,!0)}function m(Te,De,ft){return p(Te,ft,!1,De)}function v(Te){return vN(Te)?e.createParenthesizedExpression(Te):Te}function E(Te){let De=FL(227,58),ft=jf(Te),he=xC(ft);return Ms(he,De)!==1?e.createParenthesizedExpression(Te):Te}function S(Te){let De=jf(Te);return vN(De)?e.createParenthesizedExpression(Te):Te}function A(Te){let De=jf(Te),ft=vN(De);if(!ft)switch(Ax(De,!1).kind){case 231:case 218:ft=!0}return ft?e.createParenthesizedExpression(Te):Te}function C(Te){let De=Ax(Te,!0);switch(De.kind){case 213:return e.createParenthesizedExpression(Te);case 214:return De.arguments?Te:e.createParenthesizedExpression(Te)}return R(Te)}function R(Te,De){let ft=jf(Te);return Tu(ft)&&(ft.kind!==214||ft.arguments)&&(De||!yd(ft))?Te:Ze(e.createParenthesizedExpression(Te),Te)}function L(Te){return Tu(Te)?Te:Ze(e.createParenthesizedExpression(Te),Te)}function G(Te){return e9(Te)?Te:Ze(e.createParenthesizedExpression(Te),Te)}function U(Te){let De=sc(Te,K);return Ze(e.createNodeArray(De,Te.hasTrailingComma),Te)}function K(Te){let De=jf(Te),ft=xC(De),he=FL(226,28);return ft>he?Te:Ze(e.createParenthesizedExpression(Te),Te)}function F(Te){let De=jf(Te);if(Bo(De)){let he=De.expression,Le=jf(he).kind;if(Le===218||Le===219){let Ke=e.updateCallExpression(De,Ze(e.createParenthesizedExpression(he),he),De.typeArguments,De.arguments);return e.restoreOuterExpressions(Te,Ke,8)}}let ft=Ax(De,!1).kind;return ft===210||ft===218?Ze(e.createParenthesizedExpression(Te),Te):Te}function oe(Te){return!Do(Te)&&(vN(Te)||Ax(Te,!1).kind===210)?Ze(e.createParenthesizedExpression(Te),Te):Te}function W(Te){switch(Te.kind){case 184:case 185:case 194:return e.createParenthesizedType(Te)}return Te}function $(Te){switch(Te.kind){case 194:return e.createParenthesizedType(Te)}return Te}function de(Te){switch(Te.kind){case 192:case 193:return e.createParenthesizedType(Te)}return W(Te)}function fe(Te){return e.createNodeArray(sc(Te,de))}function q(Te){switch(Te.kind){case 192:case 193:return e.createParenthesizedType(Te)}return de(Te)}function H(Te){return e.createNodeArray(sc(Te,q))}function ee(Te){switch(Te.kind){case 193:return e.createParenthesizedType(Te)}return q(Te)}function le(Te){switch(Te.kind){case 198:return e.createParenthesizedType(Te)}return ee(Te)}function Ee(Te){switch(Te.kind){case 195:case 198:case 186:return e.createParenthesizedType(Te)}return ee(Te)}function ce(Te){return e.createNodeArray(sc(Te,Z))}function Z(Te){return pe(Te)?e.createParenthesizedType(Te):Te}function pe(Te){return Bx(Te)?Te.postfix:Ox(Te)||B_(Te)||kx(Te)||jS(Te)?pe(Te.type):lI(Te)?pe(Te.falseType):dy(Te)||sI(Te)?pe(Da(Te.types)):GS(Te)?!!Te.typeParameter.constraint&&pe(Te.typeParameter.constraint):!1}function Ae(Te){return pe(Te)?e.createParenthesizedType(Te):Ee(Te)}function Oe(Te){return Xee(Te)&&Te.typeParameters?e.createParenthesizedType(Te):Te}function _e(Te,De){return De===0?Oe(Te):Te}function be(Te){if(ct(Te))return e.createNodeArray(sc(Te,_e))}}var tj,P6e=pt({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";wo(),tj={getParenthesizeLeftSideOfBinaryForOperator:e=>Ps,getParenthesizeRightSideOfBinaryForOperator:e=>Ps,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:Ps,parenthesizeConditionOfConditionalExpression:Ps,parenthesizeBranchOfConditionalExpression:Ps,parenthesizeExpressionOfExportDefault:Ps,parenthesizeExpressionOfNew:e=>Fo(e,Tu),parenthesizeLeftSideOfAccess:e=>Fo(e,Tu),parenthesizeOperandOfPostfixUnary:e=>Fo(e,Tu),parenthesizeOperandOfPrefixUnary:e=>Fo(e,e9),parenthesizeExpressionsOfCommaDelimitedList:e=>Fo(e,OE),parenthesizeExpressionForDisallowedComma:Ps,parenthesizeExpressionOfExpressionStatement:Ps,parenthesizeConciseBodyOfArrowFunction:Ps,parenthesizeCheckTypeOfConditionalType:Ps,parenthesizeExtendsTypeOfConditionalType:Ps,parenthesizeConstituentTypesOfUnionType:e=>Fo(e,OE),parenthesizeConstituentTypeOfUnionType:Ps,parenthesizeConstituentTypesOfIntersectionType:e=>Fo(e,OE),parenthesizeConstituentTypeOfIntersectionType:Ps,parenthesizeOperandOfTypeOperator:Ps,parenthesizeOperandOfReadonlyTypeOperator:Ps,parenthesizeNonArrayTypeOfPostfixType:Ps,parenthesizeElementTypesOfTupleType:e=>Fo(e,OE),parenthesizeElementTypeOfTupleType:Ps,parenthesizeTypeOfOptionalType:Ps,parenthesizeTypeArguments:e=>e&&Fo(e,OE),parenthesizeLeadingTypeArgument:Ps}}});function Are(e){return{convertToFunctionBlock:t,convertToFunctionExpression:r,convertToClassExpression:i,convertToArrayAssignmentElement:o,convertToObjectAssignmentElement:s,convertToAssignmentPattern:l,convertToObjectAssignmentPattern:d,convertToArrayAssignmentPattern:p,convertToAssignmentElementTarget:h};function t(m,v){if(Do(m))return m;let E=e.createReturnStatement(m);Ze(E,m);let S=e.createBlock([E],v);return Ze(S,m),S}function r(m){var v;if(!m.body)return x.fail("Cannot convert a FunctionDeclaration without a body");let E=e.createFunctionExpression((v=kE(m))==null?void 0:v.filter(S=>!nI(S)&&!f6(S)),m.asteriskToken,m.name,m.typeParameters,m.parameters,m.type,m.body);return mr(E,m),Ze(E,m),rN(m)&&LF(E,!0),E}function i(m){var v;let E=e.createClassExpression((v=m.modifiers)==null?void 0:v.filter(S=>!nI(S)&&!f6(S)),m.name,m.typeParameters,m.heritageClauses,m.members);return mr(E,m),Ze(E,m),rN(m)&&LF(E,!0),E}function o(m){if(Na(m)){if(m.dotDotDotToken)return x.assertNode(m.name,Me),mr(Ze(e.createSpreadElement(m.name),m),m);let v=h(m.name);return m.initializer?mr(Ze(e.createAssignment(v,m.initializer),m),m):v}return Fo(m,lt)}function s(m){if(Na(m)){if(m.dotDotDotToken)return x.assertNode(m.name,Me),mr(Ze(e.createSpreadAssignment(m.name),m),m);if(m.propertyName){let v=h(m.name);return mr(Ze(e.createPropertyAssignment(m.propertyName,m.initializer?e.createAssignment(v,m.initializer):v),m),m)}return x.assertNode(m.name,Me),mr(Ze(e.createShorthandPropertyAssignment(m.name,m.initializer),m),m)}return Fo(m,Zh)}function l(m){switch(m.kind){case 207:case 209:return p(m);case 206:case 210:return d(m)}}function d(m){return Rf(m)?mr(Ze(e.createObjectLiteralExpression(nn(m.elements,s)),m),m):Fo(m,fa)}function p(m){return i0(m)?mr(Ze(e.createArrayLiteralExpression(nn(m.elements,o)),m),m):Fo(m,Bd)}function h(m){return ko(m)?l(m):Fo(m,lt)}}var nj,M6e=pt({"src/compiler/factory/nodeConverters.ts"(){"use strict";wo(),nj={convertToFunctionBlock:Ro,convertToFunctionExpression:Ro,convertToClassExpression:Ro,convertToArrayAssignmentElement:Ro,convertToObjectAssignmentElement:Ro,convertToAssignmentPattern:Ro,convertToObjectAssignmentPattern:Ro,convertToArrayAssignmentPattern:Ro,convertToAssignmentElementTarget:Ro}}});function Lbe(e){xre.push(e)}function d2(e,t){let r=e&8?Ps:mr,i=Kd(()=>e&1?tj:Tre(L)),o=Kd(()=>e&2?nj:Are(L)),s=C_(y=>(D,w)=>ge(D,y,w)),l=C_(y=>D=>Ye(y,D)),d=C_(y=>D=>Nt(D,y)),p=C_(y=>()=>XR(y)),h=C_(y=>D=>xT(y,D)),m=C_(y=>(D,w)=>O0(y,D,w)),v=C_(y=>(D,w)=>YR(y,D,w)),E=C_(y=>(D,w)=>Ds(y,D,w)),S=C_(y=>(D,w)=>sE(y,D,w)),A=C_(y=>(D,w,ie)=>of(y,D,w,ie)),C=C_(y=>(D,w,ie)=>ky(y,D,w,ie)),R=C_(y=>(D,w,ie,Be)=>Oy(y,D,w,ie,Be)),L={get parenthesizer(){return i()},get converters(){return o()},baseFactory:t,flags:e,createNodeArray:G,createNumericLiteral:oe,createBigIntLiteral:W,createStringLiteral:de,createStringLiteralFromNode:fe,createRegularExpressionLiteral:q,createLiteralLikeNode:H,createIdentifier:Ee,createTempVariable:ce,createLoopVariable:Z,createUniqueName:pe,getGeneratedNameForNode:Ae,createPrivateIdentifier:_e,createUniquePrivateName:Te,getGeneratedPrivateNameForNode:De,createToken:he,createSuper:Le,createThis:Ke,createNull:Dt,createTrue:st,createFalse:Ge,createModifier:ot,createModifiersFromModifierFlags:Vt,createQualifiedName:jt,updateQualifiedName:gn,createComputedPropertyName:On,updateComputedPropertyName:en,createTypeParameterDeclaration:zt,updateTypeParameterDeclaration:Wt,createParameterDeclaration:ei,updateParameterDeclaration:Ki,createDecorator:gi,updateDecorator:io,createPropertySignature:Gn,updatePropertySignature:Nr,createPropertyDeclaration:Jt,updatePropertyDeclaration:Ue,createMethodSignature:Rt,updateMethodSignature:mn,createMethodDeclaration:qr,updateMethodDeclaration:ni,createConstructorDeclaration:ln,updateConstructorDeclaration:Tn,createGetAccessorDeclaration:nt,updateGetAccessorDeclaration:tt,createSetAccessorDeclaration:re,updateSetAccessorDeclaration:Ce,createCallSignature:z,updateCallSignature:Je,createConstructSignature:_t,updateConstructSignature:ze,createIndexSignature:it,updateIndexSignature:Ct,createClassStaticBlockDeclaration:so,updateClassStaticBlockDeclaration:Jo,createTemplateLiteralTypeSpan:on,updateTemplateLiteralTypeSpan:Qt,createKeywordTypeNode:Zt,createTypePredicateNode:V,updateTypePredicateNode:Re,createTypeReferenceNode:St,updateTypeReferenceNode:M,createFunctionTypeNode:te,updateFunctionTypeNode:j,createConstructorTypeNode:Pe,updateConstructorTypeNode:bt,createTypeQueryNode:An,updateTypeQueryNode:Cn,createTypeLiteralNode:ti,updateTypeLiteralNode:di,createArrayTypeNode:jn,updateArrayTypeNode:Ar,createTupleTypeNode:Zi,updateTupleTypeNode:_i,createNamedTupleMember:ui,updateNamedTupleMember:Mr,createOptionalTypeNode:lo,updateOptionalTypeNode:_n,createRestTypeNode:fs,updateRestTypeNode:Dl,createUnionTypeNode:gs,updateUnionTypeNode:Js,createIntersectionTypeNode:Fc,updateIntersectionTypeNode:$i,createConditionalTypeNode:Uo,updateConditionalTypeNode:zc,createInferTypeNode:ts,updateInferTypeNode:da,createImportTypeNode:Wl,updateImportTypeNode:il,createParenthesizedType:zs,updateParenthesizedType:ho,createThisTypeNode:Ut,createTypeOperatorNode:vs,updateTypeOperatorNode:Pc,createIndexedAccessTypeNode:Bc,updateIndexedAccessTypeNode:Ju,createMappedTypeNode:ls,updateMappedTypeNode:tc,createLiteralTypeNode:ae,updateLiteralTypeNode:X,createTemplateLiteralType:Us,updateTemplateLiteralType:tf,createObjectBindingPattern:xe,updateObjectBindingPattern:dt,createArrayBindingPattern:$t,updateArrayBindingPattern:sr,createBindingElement:tr,updateBindingElement:Ir,createArrayLiteralExpression:pi,updateArrayLiteralExpression:hr,createObjectLiteralExpression:No,updateObjectLiteralExpression:Qs,createPropertyAccessExpression:e&4?(y,D)=>$n(ys(y,D),262144):ys,updatePropertyAccessExpression:Jl,createPropertyAccessChain:e&4?(y,D,w)=>$n(Za(y,D,w),262144):Za,updatePropertyAccessChain:Ec,createElementAccessExpression:pc,updateElementAccessExpression:Nf,createElementAccessChain:Vd,updateElementAccessChain:Se,createCallExpression:Ln,updateCallExpression:eo,createCallChain:Po,updateCallChain:Oo,createNewExpression:Cl,updateNewExpression:Kl,createTaggedTemplateExpression:Bs,updateTaggedTemplateExpression:Ks,createTypeAssertion:vl,updateTypeAssertion:Nl,createParenthesizedExpression:Sc,updateParenthesizedExpression:Lp,createFunctionExpression:fu,updateFunctionExpression:tu,createArrowFunction:nf,updateArrowFunction:d_,createDeleteExpression:K_,updateDeleteExpression:fg,createTypeOfExpression:fd,updateTypeOfExpression:mg,createVoidExpression:Ku,updateVoidExpression:Lh,createAwaitExpression:mu,updateAwaitExpression:Y,createPrefixUnaryExpression:Ye,updatePrefixUnaryExpression:xt,createPostfixUnaryExpression:Nt,updatePostfixUnaryExpression:k,createBinaryExpression:ge,updateBinaryExpression:Mt,createConditionalExpression:Vn,updateConditionalExpression:jr,createTemplateExpression:Or,updateTemplateExpression:zi,createTemplateHead:Xu,createTemplateMiddle:_u,createTemplateTail:Ay,createNoSubstitutionTemplateLiteral:ja,createTemplateLiteralLikeNode:nc,createYieldExpression:em,updateYieldExpression:tm,createSpreadElement:Ri,updateSpreadElement:_g,createClassExpression:yv,updateClassExpression:nm,createOmittedExpression:D0,createExpressionWithTypeArguments:C0,updateExpressionWithTypeArguments:kp,createAsExpression:u_,updateAsExpression:Op,createNonNullExpression:hg,updateNonNullExpression:Ne,createSatisfiesExpression:Ve,updateSatisfiesExpression:Tt,createNonNullChain:Pt,updateNonNullChain:rn,createMetaProperty:wn,updateMetaProperty:tn,createTemplateSpan:Wn,updateTemplateSpan:Qr,createSemicolonClassElement:Kn,createBlock:Gr,updateBlock:Qn,createVariableStatement:Mo,updateVariableStatement:Ia,createEmptyStatement:xd,createExpressionStatement:Vc,updateExpressionStatement:gg,createIfStatement:$b,updateIfStatement:UI,createDoStatement:Qb,updateDoStatement:GR,createWhileStatement:VR,updateWhileStatement:jR,createForStatement:gT,updateForStatement:N0,createForInStatement:HI,updateForInStatement:UR,createForOfStatement:qI,updateForOfStatement:JI,createContinueStatement:KI,updateContinueStatement:XI,createBreakStatement:vT,updateBreakStatement:YI,createReturnStatement:P0,updateReturnStatement:M0,createWithStatement:Iy,updateWithStatement:xy,createSwitchStatement:kh,updateSwitchStatement:Zb,createLabeledStatement:La,updateLabeledStatement:yT,createThrowStatement:HR,updateThrowStatement:eE,createTryStatement:vg,updateTryStatement:X_,createDebuggerStatement:rf,createVariableDeclaration:hu,updateVariableDeclaration:Yu,createVariableDeclarationList:Cu,updateVariableDeclarationList:bv,createFunctionDeclaration:bT,updateFunctionDeclaration:qR,createClassDeclaration:Ry,updateClassDeclaration:tE,createInterfaceDeclaration:QI,updateInterfaceDeclaration:Xl,createTypeAliasDeclaration:Ev,updateTypeAliasDeclaration:ZI,createEnumDeclaration:xm,updateEnumDeclaration:ET,createModuleDeclaration:we,updateModuleDeclaration:Rm,createModuleBlock:jc,updateModuleBlock:nE,createCaseBlock:e1,updateCaseBlock:Dy,createNamespaceExportDeclaration:Sv,updateNamespaceExportDeclaration:Tv,createImportEqualsDeclaration:xa,updateImportEqualsDeclaration:Dm,createImportDeclaration:ST,updateImportDeclaration:TT,createImportClause:rE,updateImportClause:AT,createAssertClause:Pf,updateAssertClause:Mf,createAssertEntry:yg,updateAssertEntry:t1,createImportTypeAssertionContainer:Cm,updateImportTypeAssertionContainer:JR,createImportAttributes:L0,updateImportAttributes:Pi,createImportAttribute:Fr,updateImportAttribute:Y_,createNamespaceImport:gu,updateNamespaceImport:TP,createNamespaceExport:bg,updateNamespaceExport:AP,createNamedImports:Cy,updateNamedImports:Xs,createImportSpecifier:pp,updateImportSpecifier:Oh,createExportAssignment:Lf,updateExportAssignment:Ny,createExportDeclaration:rm,updateExportDeclaration:Eg,createNamedExports:IT,updateNamedExports:wh,createExportSpecifier:n1,updateExportSpecifier:Wh,createMissingDeclaration:p_,createExternalModuleReference:Av,updateExternalModuleReference:KR,get createJSDocAllType(){return p(319)},get createJSDocUnknownType(){return p(320)},get createJSDocNonNullableType(){return v(322)},get updateJSDocNonNullableType(){return E(322)},get createJSDocNullableType(){return v(321)},get updateJSDocNullableType(){return E(321)},get createJSDocOptionalType(){return h(323)},get updateJSDocOptionalType(){return m(323)},get createJSDocVariadicType(){return h(325)},get updateJSDocVariadicType(){return m(325)},get createJSDocNamepathType(){return h(326)},get updateJSDocNamepathType(){return m(326)},createJSDocFunctionType:RT,updateJSDocFunctionType:im,createJSDocTypeLiteral:Py,updateJSDocTypeLiteral:$R,createJSDocTypeExpression:DT,updateJSDocTypeExpression:IP,createJSDocSignature:nr,updateJSDocSignature:Mc,createJSDocTemplateTag:f_,updateJSDocTemplateTag:Xn,createJSDocTypedefTag:CT,updateJSDocTypedefTag:iE,createJSDocParameterTag:Tc,updateJSDocParameterTag:$_,createJSDocPropertyTag:om,updateJSDocPropertyTag:w0,createJSDocCallbackTag:W0,updateJSDocCallbackTag:My,createJSDocOverloadTag:Sg,updateJSDocOverloadTag:NT,createJSDocAugmentsTag:am,updateJSDocAugmentsTag:oE,createJSDocImplementsTag:Fh,updateJSDocImplementsTag:Nu,createJSDocSeeTag:Ly,updateJSDocSeeTag:r1,createJSDocNameReference:aE,updateJSDocNameReference:QR,createJSDocMemberName:F0,updateJSDocMemberName:PT,createJSDocLink:fp,updateJSDocLink:MT,createJSDocLinkCode:yl,updateJSDocLinkCode:fc,createJSDocLinkPlain:LT,updateJSDocLinkPlain:Qc,get createJSDocTypeTag(){return C(351)},get updateJSDocTypeTag(){return R(351)},get createJSDocReturnTag(){return C(349)},get updateJSDocReturnTag(){return R(349)},get createJSDocThisTag(){return C(350)},get updateJSDocThisTag(){return R(350)},get createJSDocAuthorTag(){return S(337)},get updateJSDocAuthorTag(){return A(337)},get createJSDocClassTag(){return S(339)},get updateJSDocClassTag(){return A(339)},get createJSDocPublicTag(){return S(340)},get updateJSDocPublicTag(){return A(340)},get createJSDocPrivateTag(){return S(341)},get updateJSDocPrivateTag(){return A(341)},get createJSDocProtectedTag(){return S(342)},get updateJSDocProtectedTag(){return A(342)},get createJSDocReadonlyTag(){return S(343)},get updateJSDocReadonlyTag(){return A(343)},get createJSDocOverrideTag(){return S(344)},get updateJSDocOverrideTag(){return A(344)},get createJSDocDeprecatedTag(){return S(338)},get updateJSDocDeprecatedTag(){return A(338)},get createJSDocThrowsTag(){return C(356)},get updateJSDocThrowsTag(){return R(356)},get createJSDocSatisfiesTag(){return C(357)},get updateJSDocSatisfiesTag(){return R(357)},createJSDocEnumTag:mp,updateJSDocEnumTag:kT,createJSDocUnknownTag:Lc,updateJSDocUnknownTag:i1,createJSDocText:OT,updateJSDocText:bs,createJSDocComment:ZR,updateJSDocComment:lE,createJsxElement:z0,updateJsxElement:xP,createJsxSelfClosingElement:jd,updateJsxSelfClosingElement:Tg,createJsxOpeningElement:m_,updateJsxOpeningElement:o1,createJsxClosingElement:$u,updateJsxClosingElement:a1,createJsxFragment:Pu,createJsxText:xv,updateJsxText:wT,createJsxOpeningFragment:eD,createJsxJsxClosingFragment:tD,updateJsxFragment:s1,createJsxAttribute:WT,updateJsxAttribute:nD,createJsxAttributes:wy,updateJsxAttributes:Qu,createJsxSpreadAttribute:Q_,updateJsxSpreadAttribute:rD,createJsxExpression:FT,updateJsxExpression:Oa,createJsxNamespacedName:dr,updateJsxNamespacedName:Wp,createCaseClause:nu,updateCaseClause:B0,createDefaultClause:iD,updateDefaultClause:cE,createHeritageClause:G0,updateHeritageClause:zT,createCatchClause:zh,updateCatchClause:Nm,createPropertyAssignment:Fp,updatePropertyAssignment:sm,createShorthandPropertyAssignment:Bh,updateShorthandPropertyAssignment:Gh,createSpreadAssignment:Fl,updateSpreadAssignment:oD,createEnumMember:af,updateEnumMember:Z_,createSourceFile:zp,updateSourceFile:cs,createRedirectedSourceFile:V0,createBundle:j0,updateBundle:U0,createUnparsedSource:Ig,createUnparsedPrologue:uE,createUnparsedPrepend:I,createUnparsedTextLike:ne,createUnparsedSyntheticReference:rt,createInputFiles:Ht,createSyntheticExpression:yr,createSyntaxList:vi,createNotEmittedStatement:ri,createPartiallyEmittedExpression:wi,updatePartiallyEmittedExpression:$o,createCommaListExpression:ru,updateCommaListExpression:sf,createSyntheticReferenceExpression:Fy,updateSyntheticReferenceExpression:ai,cloneNode:By,get createComma(){return s(28)},get createAssignment(){return s(64)},get createLogicalOr(){return s(57)},get createLogicalAnd(){return s(56)},get createBitwiseOr(){return s(52)},get createBitwiseXor(){return s(53)},get createBitwiseAnd(){return s(51)},get createStrictEquality(){return s(37)},get createStrictInequality(){return s(38)},get createEquality(){return s(35)},get createInequality(){return s(36)},get createLessThan(){return s(30)},get createLessThanEquals(){return s(33)},get createGreaterThan(){return s(32)},get createGreaterThanEquals(){return s(34)},get createLeftShift(){return s(48)},get createRightShift(){return s(49)},get createUnsignedRightShift(){return s(50)},get createAdd(){return s(40)},get createSubtract(){return s(41)},get createMultiply(){return s(42)},get createDivide(){return s(44)},get createModulo(){return s(45)},get createExponent(){return s(43)},get createPrefixPlus(){return l(40)},get createPrefixMinus(){return l(41)},get createPrefixIncrement(){return l(46)},get createPrefixDecrement(){return l(47)},get createBitwiseNot(){return l(55)},get createLogicalNot(){return l(54)},get createPostfixIncrement(){return d(46)},get createPostfixDecrement(){return d(47)},createImmediatelyInvokedFunctionExpression:GT,createImmediatelyInvokedArrowFunction:H0,createVoidZero:__,createExportDefault:th,createExternalModuleExport:aD,createTypeCheck:VT,createIsNotTypeCheck:S7,createMethodCall:Gy,createGlobalMethodCall:Pm,createFunctionBindCall:QO,createFunctionCallCall:ZO,createFunctionApplyCall:pE,createArraySliceCall:RP,createArrayConcatCall:nh,createObjectDefinePropertyCall:u1,createObjectGetOwnPropertyDescriptorCall:ew,createReflectGetCall:h_,createReflectSetCall:J,createPropertyDescriptor:Fe,createCallBinding:fi,createAssignmentTargetWrapper:Zr,inlineExpressions:Mi,getInternalName:os,getLocalName:Ma,getExportName:lf,getDeclarationName:g_,getNamespaceMemberName:Vh,getExternalModuleOrNamespaceExportName:xg,restoreOuterExpressions:Lt,restoreEnclosingLabel:Sr,createUseStrictPrologue:Mu,copyPrologue:Rg,copyStandardPrologue:jT,copyCustomPrologue:sD,ensureUseStrict:DP,liftToBlock:CP,mergeLexicalEnvironment:Dg,replaceModifiers:jy,replaceDecoratorsAndModifiers:lD,replacePropertyName:_p};return an(xre,y=>y(L)),L;function G(y,D){if(y===void 0||y===je)y=[];else if(OE(y)){if(D===void 0||y.hasTrailingComma===D)return y.transformFlags===void 0&&kbe(y),x.attachNodeArrayDebugInfo(y),y;let Be=y.slice();return Be.pos=y.pos,Be.end=y.end,Be.hasTrailingComma=D,Be.transformFlags=y.transformFlags,x.attachNodeArrayDebugInfo(Be),Be}let w=y.length,ie=w>=1&&w<=4?y.slice():y;return ie.pos=-1,ie.end=-1,ie.hasTrailingComma=!!D,ie.transformFlags=0,kbe(ie),x.attachNodeArrayDebugInfo(ie),ie}function U(y){return t.createBaseNode(y)}function K(y){let D=U(y);return D.symbol=void 0,D.localSymbol=void 0,D}function F(y,D){return y!==D&&(y.typeArguments=D.typeArguments),Un(y,D)}function oe(y,D=0){let w=typeof y=="number"?y+"":y;x.assert(w.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let ie=K(9);return ie.text=w,ie.numericLiteralFlags=D,D&384&&(ie.transformFlags|=1024),ie}function W(y){let D=ft(10);return D.text=typeof y=="string"?y:ZE(y)+"n",D.transformFlags|=32,D}function $(y,D){let w=K(11);return w.text=y,w.singleQuote=D,w}function de(y,D,w){let ie=$(y,D);return ie.hasExtendedUnicodeEscape=w,w&&(ie.transformFlags|=1024),ie}function fe(y){let D=$(Ef(y),void 0);return D.textSourceNode=y,D}function q(y){let D=ft(14);return D.text=y,D}function H(y,D){switch(y){case 9:return oe(D,0);case 10:return W(D);case 11:return de(D,void 0);case 12:return xv(D,!1);case 13:return xv(D,!0);case 14:return q(D);case 15:return nc(y,D,void 0,0)}}function ee(y){let D=t.createBaseIdentifierNode(80);return D.escapedText=y,D.jsDoc=void 0,D.flowNode=void 0,D.symbol=void 0,D}function le(y,D,w,ie){let Be=ee(Hs(y));return h2(Be,{flags:D,id:MF,prefix:w,suffix:ie}),MF++,Be}function Ee(y,D,w){D===void 0&&y&&(D=LE(y)),D===80&&(D=void 0);let ie=ee(Hs(y));return w&&(ie.flags|=256),ie.escapedText==="await"&&(ie.transformFlags|=67108864),ie.flags&256&&(ie.transformFlags|=1024),ie}function ce(y,D,w,ie){let Be=1;D&&(Be|=8);let kt=le("",Be,w,ie);return y&&y(kt),kt}function Z(y){let D=2;return y&&(D|=8),le("",D,void 0,void 0)}function pe(y,D=0,w,ie){return x.assert(!(D&7),"Argument out of range: flags"),x.assert((D&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),le(y,3|D,w,ie)}function Ae(y,D=0,w,ie){x.assert(!(D&7),"Argument out of range: flags");let Be=y?hh(y)?Wb(!1,w,y,ie,ar):`generated@${Fa(y)}`:"";(w||ie)&&(D|=16);let kt=le(Be,4|D,w,ie);return kt.original=y,kt}function Oe(y){let D=t.createBasePrivateIdentifierNode(81);return D.escapedText=y,D.transformFlags|=16777216,D}function _e(y){return Ui(y,"#")||x.fail("First character of private identifier must be #: "+y),Oe(Hs(y))}function be(y,D,w,ie){let Be=Oe(Hs(y));return h2(Be,{flags:D,id:MF,prefix:w,suffix:ie}),MF++,Be}function Te(y,D,w){y&&!Ui(y,"#")&&x.fail("First character of private identifier must be #: "+y);let ie=8|(y?3:1);return be(y??"",ie,D,w)}function De(y,D,w){let ie=hh(y)?Wb(!0,D,y,w,ar):`#generated@${Fa(y)}`,kt=be(ie,4|(D||w?16:0),D,w);return kt.original=y,kt}function ft(y){return t.createBaseTokenNode(y)}function he(y){x.assert(y>=0&&y<=165,"Invalid token"),x.assert(y<=15||y>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),x.assert(y<=9||y>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),x.assert(y!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let D=ft(y),w=0;switch(y){case 134:w=384;break;case 160:w=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:w=1;break;case 108:w=134218752,D.flowNode=void 0;break;case 126:w=1024;break;case 129:w=16777216;break;case 110:w=16384,D.flowNode=void 0;break}return w&&(D.transformFlags|=w),D}function Le(){return he(108)}function Ke(){return he(110)}function Dt(){return he(106)}function st(){return he(112)}function Ge(){return he(97)}function ot(y){return he(y)}function Vt(y){let D=[];return y&32&&D.push(ot(95)),y&128&&D.push(ot(138)),y&2048&&D.push(ot(90)),y&4096&&D.push(ot(87)),y&1&&D.push(ot(125)),y&2&&D.push(ot(123)),y&4&&D.push(ot(124)),y&64&&D.push(ot(128)),y&256&&D.push(ot(126)),y&16&&D.push(ot(164)),y&8&&D.push(ot(148)),y&512&&D.push(ot(129)),y&1024&&D.push(ot(134)),y&8192&&D.push(ot(103)),y&16384&&D.push(ot(147)),D.length?D:void 0}function jt(y,D){let w=U(166);return w.left=y,w.right=zl(D),w.transformFlags|=lr(w.left)|u2(w.right),w.flowNode=void 0,w}function gn(y,D,w){return y.left!==D||y.right!==w?Un(jt(D,w),y):y}function On(y){let D=U(167);return D.expression=i().parenthesizeExpressionOfComputedPropertyName(y),D.transformFlags|=lr(D.expression)|1024|131072,D}function en(y,D){return y.expression!==D?Un(On(D),y):y}function zt(y,D,w,ie){let Be=K(168);return Be.modifiers=Ea(y),Be.name=zl(D),Be.constraint=w,Be.default=ie,Be.transformFlags=1,Be.expression=void 0,Be.jsDoc=void 0,Be}function Wt(y,D,w,ie,Be){return y.modifiers!==D||y.name!==w||y.constraint!==ie||y.default!==Be?Un(zt(D,w,ie,Be),y):y}function ei(y,D,w,ie,Be,kt){let ir=K(169);return ir.modifiers=Ea(y),ir.dotDotDotToken=D,ir.name=zl(w),ir.questionToken=ie,ir.type=Be,ir.initializer=p1(kt),YE(ir.name)?ir.transformFlags=1:ir.transformFlags=Aa(ir.modifiers)|lr(ir.dotDotDotToken)|ly(ir.name)|lr(ir.questionToken)|lr(ir.initializer)|(ir.questionToken??ir.type?1:0)|(ir.dotDotDotToken??ir.initializer?1024:0)|($m(ir.modifiers)&31?8192:0),ir.jsDoc=void 0,ir}function Ki(y,D,w,ie,Be,kt,ir){return y.modifiers!==D||y.dotDotDotToken!==w||y.name!==ie||y.questionToken!==Be||y.type!==kt||y.initializer!==ir?Un(ei(D,w,ie,Be,kt,ir),y):y}function gi(y){let D=U(170);return D.expression=i().parenthesizeLeftSideOfAccess(y,!1),D.transformFlags|=lr(D.expression)|1|8192|33554432,D}function io(y,D){return y.expression!==D?Un(gi(D),y):y}function Gn(y,D,w,ie){let Be=K(171);return Be.modifiers=Ea(y),Be.name=zl(D),Be.type=ie,Be.questionToken=w,Be.transformFlags=1,Be.initializer=void 0,Be.jsDoc=void 0,Be}function Nr(y,D,w,ie,Be){return y.modifiers!==D||y.name!==w||y.questionToken!==ie||y.type!==Be?cr(Gn(D,w,ie,Be),y):y}function cr(y,D){return y!==D&&(y.initializer=D.initializer),Un(y,D)}function Jt(y,D,w,ie,Be){let kt=K(172);kt.modifiers=Ea(y),kt.name=zl(D),kt.questionToken=w&&cy(w)?w:void 0,kt.exclamationToken=w&&E2(w)?w:void 0,kt.type=ie,kt.initializer=p1(Be);let ir=kt.flags&33554432||$m(kt.modifiers)&128;return kt.transformFlags=Aa(kt.modifiers)|ly(kt.name)|lr(kt.initializer)|(ir||kt.questionToken||kt.exclamationToken||kt.type?1:0)|(Pa(kt.name)||$m(kt.modifiers)&256&&kt.initializer?8192:0)|16777216,kt.jsDoc=void 0,kt}function Ue(y,D,w,ie,Be,kt){return y.modifiers!==D||y.name!==w||y.questionToken!==(ie!==void 0&&cy(ie)?ie:void 0)||y.exclamationToken!==(ie!==void 0&&E2(ie)?ie:void 0)||y.type!==Be||y.initializer!==kt?Un(Jt(D,w,ie,Be,kt),y):y}function Rt(y,D,w,ie,Be,kt){let ir=K(173);return ir.modifiers=Ea(y),ir.name=zl(D),ir.questionToken=w,ir.typeParameters=Ea(ie),ir.parameters=Ea(Be),ir.type=kt,ir.transformFlags=1,ir.jsDoc=void 0,ir.locals=void 0,ir.nextContainer=void 0,ir.typeArguments=void 0,ir}function mn(y,D,w,ie,Be,kt,ir){return y.modifiers!==D||y.name!==w||y.questionToken!==ie||y.typeParameters!==Be||y.parameters!==kt||y.type!==ir?F(Rt(D,w,ie,Be,kt,ir),y):y}function qr(y,D,w,ie,Be,kt,ir,Wi){let Es=K(174);if(Es.modifiers=Ea(y),Es.asteriskToken=D,Es.name=zl(w),Es.questionToken=ie,Es.exclamationToken=void 0,Es.typeParameters=Ea(Be),Es.parameters=G(kt),Es.type=ir,Es.body=Wi,!Es.body)Es.transformFlags=1;else{let Mm=$m(Es.modifiers)&1024,Hy=!!Es.asteriskToken,lm=Mm&&Hy;Es.transformFlags=Aa(Es.modifiers)|lr(Es.asteriskToken)|ly(Es.name)|lr(Es.questionToken)|Aa(Es.typeParameters)|Aa(Es.parameters)|lr(Es.type)|lr(Es.body)&-67108865|(lm?128:Mm?256:Hy?2048:0)|(Es.questionToken||Es.typeParameters||Es.type?1:0)|1024}return Es.typeArguments=void 0,Es.jsDoc=void 0,Es.locals=void 0,Es.nextContainer=void 0,Es.flowNode=void 0,Es.endFlowNode=void 0,Es.returnFlowNode=void 0,Es}function ni(y,D,w,ie,Be,kt,ir,Wi,Es){return y.modifiers!==D||y.asteriskToken!==w||y.name!==ie||y.questionToken!==Be||y.typeParameters!==kt||y.parameters!==ir||y.type!==Wi||y.body!==Es?ki(qr(D,w,ie,Be,kt,ir,Wi,Es),y):y}function ki(y,D){return y!==D&&(y.exclamationToken=D.exclamationToken),Un(y,D)}function so(y){let D=K(175);return D.body=y,D.transformFlags=lr(y)|16777216,D.modifiers=void 0,D.jsDoc=void 0,D.locals=void 0,D.nextContainer=void 0,D.endFlowNode=void 0,D.returnFlowNode=void 0,D}function Jo(y,D){return y.body!==D?ba(so(D),y):y}function ba(y,D){return y!==D&&(y.modifiers=D.modifiers),Un(y,D)}function ln(y,D,w){let ie=K(176);return ie.modifiers=Ea(y),ie.parameters=G(D),ie.body=w,ie.transformFlags=Aa(ie.modifiers)|Aa(ie.parameters)|lr(ie.body)&-67108865|1024,ie.typeParameters=void 0,ie.type=void 0,ie.typeArguments=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.returnFlowNode=void 0,ie}function Tn(y,D,w,ie){return y.modifiers!==D||y.parameters!==w||y.body!==ie?ke(ln(D,w,ie),y):y}function ke(y,D){return y!==D&&(y.typeParameters=D.typeParameters,y.type=D.type),F(y,D)}function nt(y,D,w,ie,Be){let kt=K(177);return kt.modifiers=Ea(y),kt.name=zl(D),kt.parameters=G(w),kt.type=ie,kt.body=Be,kt.body?kt.transformFlags=Aa(kt.modifiers)|ly(kt.name)|Aa(kt.parameters)|lr(kt.type)|lr(kt.body)&-67108865|(kt.type?1:0):kt.transformFlags=1,kt.typeArguments=void 0,kt.typeParameters=void 0,kt.jsDoc=void 0,kt.locals=void 0,kt.nextContainer=void 0,kt.flowNode=void 0,kt.endFlowNode=void 0,kt.returnFlowNode=void 0,kt}function tt(y,D,w,ie,Be,kt){return y.modifiers!==D||y.name!==w||y.parameters!==ie||y.type!==Be||y.body!==kt?yt(nt(D,w,ie,Be,kt),y):y}function yt(y,D){return y!==D&&(y.typeParameters=D.typeParameters),F(y,D)}function re(y,D,w,ie){let Be=K(178);return Be.modifiers=Ea(y),Be.name=zl(D),Be.parameters=G(w),Be.body=ie,Be.body?Be.transformFlags=Aa(Be.modifiers)|ly(Be.name)|Aa(Be.parameters)|lr(Be.body)&-67108865|(Be.type?1:0):Be.transformFlags=1,Be.typeArguments=void 0,Be.typeParameters=void 0,Be.type=void 0,Be.jsDoc=void 0,Be.locals=void 0,Be.nextContainer=void 0,Be.flowNode=void 0,Be.endFlowNode=void 0,Be.returnFlowNode=void 0,Be}function Ce(y,D,w,ie,Be){return y.modifiers!==D||y.name!==w||y.parameters!==ie||y.body!==Be?et(re(D,w,ie,Be),y):y}function et(y,D){return y!==D&&(y.typeParameters=D.typeParameters,y.type=D.type),F(y,D)}function z(y,D,w){let ie=K(179);return ie.typeParameters=Ea(y),ie.parameters=Ea(D),ie.type=w,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Je(y,D,w,ie){return y.typeParameters!==D||y.parameters!==w||y.type!==ie?F(z(D,w,ie),y):y}function _t(y,D,w){let ie=K(180);return ie.typeParameters=Ea(y),ie.parameters=Ea(D),ie.type=w,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function ze(y,D,w,ie){return y.typeParameters!==D||y.parameters!==w||y.type!==ie?F(_t(D,w,ie),y):y}function it(y,D,w){let ie=K(181);return ie.modifiers=Ea(y),ie.parameters=Ea(D),ie.type=w,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Ct(y,D,w,ie){return y.parameters!==w||y.type!==ie||y.modifiers!==D?F(it(D,w,ie),y):y}function on(y,D){let w=U(204);return w.type=y,w.literal=D,w.transformFlags=1,w}function Qt(y,D,w){return y.type!==D||y.literal!==w?Un(on(D,w),y):y}function Zt(y){return he(y)}function V(y,D,w){let ie=U(182);return ie.assertsModifier=y,ie.parameterName=zl(D),ie.type=w,ie.transformFlags=1,ie}function Re(y,D,w,ie){return y.assertsModifier!==D||y.parameterName!==w||y.type!==ie?Un(V(D,w,ie),y):y}function St(y,D){let w=U(183);return w.typeName=zl(y),w.typeArguments=D&&i().parenthesizeTypeArguments(G(D)),w.transformFlags=1,w}function M(y,D,w){return y.typeName!==D||y.typeArguments!==w?Un(St(D,w),y):y}function te(y,D,w){let ie=K(184);return ie.typeParameters=Ea(y),ie.parameters=Ea(D),ie.type=w,ie.transformFlags=1,ie.modifiers=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function j(y,D,w,ie){return y.typeParameters!==D||y.parameters!==w||y.type!==ie?se(te(D,w,ie),y):y}function se(y,D){return y!==D&&(y.modifiers=D.modifiers),F(y,D)}function Pe(...y){return y.length===4?Ie(...y):y.length===3?gt(...y):x.fail("Incorrect number of arguments specified.")}function Ie(y,D,w,ie){let Be=K(185);return Be.modifiers=Ea(y),Be.typeParameters=Ea(D),Be.parameters=Ea(w),Be.type=ie,Be.transformFlags=1,Be.jsDoc=void 0,Be.locals=void 0,Be.nextContainer=void 0,Be.typeArguments=void 0,Be}function gt(y,D,w){return Ie(void 0,y,D,w)}function bt(...y){return y.length===5?Ot(...y):y.length===4?dn(...y):x.fail("Incorrect number of arguments specified.")}function Ot(y,D,w,ie,Be){return y.modifiers!==D||y.typeParameters!==w||y.parameters!==ie||y.type!==Be?F(Pe(D,w,ie,Be),y):y}function dn(y,D,w,ie){return Ot(y,y.modifiers,D,w,ie)}function An(y,D){let w=U(186);return w.exprName=y,w.typeArguments=D&&i().parenthesizeTypeArguments(D),w.transformFlags=1,w}function Cn(y,D,w){return y.exprName!==D||y.typeArguments!==w?Un(An(D,w),y):y}function ti(y){let D=K(187);return D.members=G(y),D.transformFlags=1,D}function di(y,D){return y.members!==D?Un(ti(D),y):y}function jn(y){let D=U(188);return D.elementType=i().parenthesizeNonArrayTypeOfPostfixType(y),D.transformFlags=1,D}function Ar(y,D){return y.elementType!==D?Un(jn(D),y):y}function Zi(y){let D=U(189);return D.elements=G(i().parenthesizeElementTypesOfTupleType(y)),D.transformFlags=1,D}function _i(y,D){return y.elements!==D?Un(Zi(D),y):y}function ui(y,D,w,ie){let Be=K(202);return Be.dotDotDotToken=y,Be.name=D,Be.questionToken=w,Be.type=ie,Be.transformFlags=1,Be.jsDoc=void 0,Be}function Mr(y,D,w,ie,Be){return y.dotDotDotToken!==D||y.name!==w||y.questionToken!==ie||y.type!==Be?Un(ui(D,w,ie,Be),y):y}function lo(y){let D=U(190);return D.type=i().parenthesizeTypeOfOptionalType(y),D.transformFlags=1,D}function _n(y,D){return y.type!==D?Un(lo(D),y):y}function fs(y){let D=U(191);return D.type=y,D.transformFlags=1,D}function Dl(y,D){return y.type!==D?Un(fs(D),y):y}function _o(y,D,w){let ie=U(y);return ie.types=L.createNodeArray(w(D)),ie.transformFlags=1,ie}function Va(y,D,w){return y.types!==D?Un(_o(y.kind,D,w),y):y}function gs(y){return _o(192,y,i().parenthesizeConstituentTypesOfUnionType)}function Js(y,D){return Va(y,D,i().parenthesizeConstituentTypesOfUnionType)}function Fc(y){return _o(193,y,i().parenthesizeConstituentTypesOfIntersectionType)}function $i(y,D){return Va(y,D,i().parenthesizeConstituentTypesOfIntersectionType)}function Uo(y,D,w,ie){let Be=U(194);return Be.checkType=i().parenthesizeCheckTypeOfConditionalType(y),Be.extendsType=i().parenthesizeExtendsTypeOfConditionalType(D),Be.trueType=w,Be.falseType=ie,Be.transformFlags=1,Be.locals=void 0,Be.nextContainer=void 0,Be}function zc(y,D,w,ie,Be){return y.checkType!==D||y.extendsType!==w||y.trueType!==ie||y.falseType!==Be?Un(Uo(D,w,ie,Be),y):y}function ts(y){let D=U(195);return D.typeParameter=y,D.transformFlags=1,D}function da(y,D){return y.typeParameter!==D?Un(ts(D),y):y}function Us(y,D){let w=U(203);return w.head=y,w.templateSpans=G(D),w.transformFlags=1,w}function tf(y,D,w){return y.head!==D||y.templateSpans!==w?Un(Us(D,w),y):y}function Wl(y,D,w,ie,Be=!1){let kt=U(205);return kt.argument=y,kt.attributes=D,kt.assertions&&kt.assertions.assertClause&&kt.attributes&&(kt.assertions.assertClause=kt.attributes),kt.qualifier=w,kt.typeArguments=ie&&i().parenthesizeTypeArguments(ie),kt.isTypeOf=Be,kt.transformFlags=1,kt}function il(y,D,w,ie,Be,kt=y.isTypeOf){return y.argument!==D||y.attributes!==w||y.qualifier!==ie||y.typeArguments!==Be||y.isTypeOf!==kt?Un(Wl(D,w,ie,Be,kt),y):y}function zs(y){let D=U(196);return D.type=y,D.transformFlags=1,D}function ho(y,D){return y.type!==D?Un(zs(D),y):y}function Ut(){let y=U(197);return y.transformFlags=1,y}function vs(y,D){let w=U(198);return w.operator=y,w.type=y===148?i().parenthesizeOperandOfReadonlyTypeOperator(D):i().parenthesizeOperandOfTypeOperator(D),w.transformFlags=1,w}function Pc(y,D){return y.type!==D?Un(vs(y.operator,D),y):y}function Bc(y,D){let w=U(199);return w.objectType=i().parenthesizeNonArrayTypeOfPostfixType(y),w.indexType=D,w.transformFlags=1,w}function Ju(y,D,w){return y.objectType!==D||y.indexType!==w?Un(Bc(D,w),y):y}function ls(y,D,w,ie,Be,kt){let ir=K(200);return ir.readonlyToken=y,ir.typeParameter=D,ir.nameType=w,ir.questionToken=ie,ir.type=Be,ir.members=kt&&G(kt),ir.transformFlags=1,ir.locals=void 0,ir.nextContainer=void 0,ir}function tc(y,D,w,ie,Be,kt,ir){return y.readonlyToken!==D||y.typeParameter!==w||y.nameType!==ie||y.questionToken!==Be||y.type!==kt||y.members!==ir?Un(ls(D,w,ie,Be,kt,ir),y):y}function ae(y){let D=U(201);return D.literal=y,D.transformFlags=1,D}function X(y,D){return y.literal!==D?Un(ae(D),y):y}function xe(y){let D=U(206);return D.elements=G(y),D.transformFlags|=Aa(D.elements)|1024|524288,D.transformFlags&32768&&(D.transformFlags|=65664),D}function dt(y,D){return y.elements!==D?Un(xe(D),y):y}function $t(y){let D=U(207);return D.elements=G(y),D.transformFlags|=Aa(D.elements)|1024|524288,D}function sr(y,D){return y.elements!==D?Un($t(D),y):y}function tr(y,D,w,ie){let Be=K(208);return Be.dotDotDotToken=y,Be.propertyName=zl(D),Be.name=zl(w),Be.initializer=p1(ie),Be.transformFlags|=lr(Be.dotDotDotToken)|ly(Be.propertyName)|ly(Be.name)|lr(Be.initializer)|(Be.dotDotDotToken?32768:0)|1024,Be.flowNode=void 0,Be}function Ir(y,D,w,ie,Be){return y.propertyName!==w||y.dotDotDotToken!==D||y.name!==ie||y.initializer!==Be?Un(tr(D,w,ie,Be),y):y}function pi(y,D){let w=U(209),ie=y&&Ns(y),Be=G(y,ie&&vc(ie)?!0:void 0);return w.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Be),w.multiLine=D,w.transformFlags|=Aa(w.elements),w}function hr(y,D){return y.elements!==D?Un(pi(D,y.multiLine),y):y}function No(y,D){let w=K(210);return w.properties=G(y),w.multiLine=D,w.transformFlags|=Aa(w.properties),w.jsDoc=void 0,w}function Qs(y,D){return y.properties!==D?Un(No(D,y.multiLine),y):y}function bc(y,D,w){let ie=K(211);return ie.expression=y,ie.questionDotToken=D,ie.name=w,ie.transformFlags=lr(ie.expression)|lr(ie.questionDotToken)|(Me(ie.name)?u2(ie.name):lr(ie.name)|536870912),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function ys(y,D){let w=bc(i().parenthesizeLeftSideOfAccess(y,!1),void 0,zl(D));return sN(y)&&(w.transformFlags|=384),w}function Jl(y,D,w){return W8(y)?Ec(y,D,y.questionDotToken,Fo(w,Me)):y.expression!==D||y.name!==w?Un(ys(D,w),y):y}function Za(y,D,w){let ie=bc(i().parenthesizeLeftSideOfAccess(y,!0),D,zl(w));return ie.flags|=64,ie.transformFlags|=32,ie}function Ec(y,D,w,ie){return x.assert(!!(y.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),y.expression!==D||y.questionDotToken!==w||y.name!==ie?Un(Za(D,w,ie),y):y}function Du(y,D,w){let ie=K(212);return ie.expression=y,ie.questionDotToken=D,ie.argumentExpression=w,ie.transformFlags|=lr(ie.expression)|lr(ie.questionDotToken)|lr(ie.argumentExpression),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function pc(y,D){let w=Du(i().parenthesizeLeftSideOfAccess(y,!1),void 0,mE(D));return sN(y)&&(w.transformFlags|=384),w}function Nf(y,D,w){return VG(y)?Se(y,D,y.questionDotToken,w):y.expression!==D||y.argumentExpression!==w?Un(pc(D,w),y):y}function Vd(y,D,w){let ie=Du(i().parenthesizeLeftSideOfAccess(y,!0),D,mE(w));return ie.flags|=64,ie.transformFlags|=32,ie}function Se(y,D,w,ie){return x.assert(!!(y.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),y.expression!==D||y.questionDotToken!==w||y.argumentExpression!==ie?Un(Vd(D,w,ie),y):y}function At(y,D,w,ie){let Be=K(213);return Be.expression=y,Be.questionDotToken=D,Be.typeArguments=w,Be.arguments=ie,Be.transformFlags|=lr(Be.expression)|lr(Be.questionDotToken)|Aa(Be.typeArguments)|Aa(Be.arguments),Be.typeArguments&&(Be.transformFlags|=1),cu(Be.expression)&&(Be.transformFlags|=16384),Be}function Ln(y,D,w){let ie=At(i().parenthesizeLeftSideOfAccess(y,!1),void 0,Ea(D),i().parenthesizeExpressionsOfCommaDelimitedList(G(w)));return lN(ie.expression)&&(ie.transformFlags|=8388608),ie}function eo(y,D,w,ie){return gS(y)?Oo(y,D,y.questionDotToken,w,ie):y.expression!==D||y.typeArguments!==w||y.arguments!==ie?Un(Ln(D,w,ie),y):y}function Po(y,D,w,ie){let Be=At(i().parenthesizeLeftSideOfAccess(y,!0),D,Ea(w),i().parenthesizeExpressionsOfCommaDelimitedList(G(ie)));return Be.flags|=64,Be.transformFlags|=32,Be}function Oo(y,D,w,ie,Be){return x.assert(!!(y.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),y.expression!==D||y.questionDotToken!==w||y.typeArguments!==ie||y.arguments!==Be?Un(Po(D,w,ie,Be),y):y}function Cl(y,D,w){let ie=K(214);return ie.expression=i().parenthesizeExpressionOfNew(y),ie.typeArguments=Ea(D),ie.arguments=w?i().parenthesizeExpressionsOfCommaDelimitedList(w):void 0,ie.transformFlags|=lr(ie.expression)|Aa(ie.typeArguments)|Aa(ie.arguments)|32,ie.typeArguments&&(ie.transformFlags|=1),ie}function Kl(y,D,w,ie){return y.expression!==D||y.typeArguments!==w||y.arguments!==ie?Un(Cl(D,w,ie),y):y}function Bs(y,D,w){let ie=U(215);return ie.tag=i().parenthesizeLeftSideOfAccess(y,!1),ie.typeArguments=Ea(D),ie.template=w,ie.transformFlags|=lr(ie.tag)|Aa(ie.typeArguments)|lr(ie.template)|1024,ie.typeArguments&&(ie.transformFlags|=1),eV(ie.template)&&(ie.transformFlags|=128),ie}function Ks(y,D,w,ie){return y.tag!==D||y.typeArguments!==w||y.template!==ie?Un(Bs(D,w,ie),y):y}function vl(y,D){let w=U(216);return w.expression=i().parenthesizeOperandOfPrefixUnary(D),w.type=y,w.transformFlags|=lr(w.expression)|lr(w.type)|1,w}function Nl(y,D,w){return y.type!==D||y.expression!==w?Un(vl(D,w),y):y}function Sc(y){let D=U(217);return D.expression=y,D.transformFlags=lr(D.expression),D.jsDoc=void 0,D}function Lp(y,D){return y.expression!==D?Un(Sc(D),y):y}function fu(y,D,w,ie,Be,kt,ir){let Wi=K(218);Wi.modifiers=Ea(y),Wi.asteriskToken=D,Wi.name=zl(w),Wi.typeParameters=Ea(ie),Wi.parameters=G(Be),Wi.type=kt,Wi.body=ir;let Es=$m(Wi.modifiers)&1024,Mm=!!Wi.asteriskToken,Hy=Es&&Mm;return Wi.transformFlags=Aa(Wi.modifiers)|lr(Wi.asteriskToken)|ly(Wi.name)|Aa(Wi.typeParameters)|Aa(Wi.parameters)|lr(Wi.type)|lr(Wi.body)&-67108865|(Hy?128:Es?256:Mm?2048:0)|(Wi.typeParameters||Wi.type?1:0)|4194304,Wi.typeArguments=void 0,Wi.jsDoc=void 0,Wi.locals=void 0,Wi.nextContainer=void 0,Wi.flowNode=void 0,Wi.endFlowNode=void 0,Wi.returnFlowNode=void 0,Wi}function tu(y,D,w,ie,Be,kt,ir,Wi){return y.name!==ie||y.modifiers!==D||y.asteriskToken!==w||y.typeParameters!==Be||y.parameters!==kt||y.type!==ir||y.body!==Wi?F(fu(D,w,ie,Be,kt,ir,Wi),y):y}function nf(y,D,w,ie,Be,kt){let ir=K(219);ir.modifiers=Ea(y),ir.typeParameters=Ea(D),ir.parameters=G(w),ir.type=ie,ir.equalsGreaterThanToken=Be??he(39),ir.body=i().parenthesizeConciseBodyOfArrowFunction(kt);let Wi=$m(ir.modifiers)&1024;return ir.transformFlags=Aa(ir.modifiers)|Aa(ir.typeParameters)|Aa(ir.parameters)|lr(ir.type)|lr(ir.equalsGreaterThanToken)|lr(ir.body)&-67108865|(ir.typeParameters||ir.type?1:0)|(Wi?16640:0)|1024,ir.typeArguments=void 0,ir.jsDoc=void 0,ir.locals=void 0,ir.nextContainer=void 0,ir.flowNode=void 0,ir.endFlowNode=void 0,ir.returnFlowNode=void 0,ir}function d_(y,D,w,ie,Be,kt,ir){return y.modifiers!==D||y.typeParameters!==w||y.parameters!==ie||y.type!==Be||y.equalsGreaterThanToken!==kt||y.body!==ir?F(nf(D,w,ie,Be,kt,ir),y):y}function K_(y){let D=U(220);return D.expression=i().parenthesizeOperandOfPrefixUnary(y),D.transformFlags|=lr(D.expression),D}function fg(y,D){return y.expression!==D?Un(K_(D),y):y}function fd(y){let D=U(221);return D.expression=i().parenthesizeOperandOfPrefixUnary(y),D.transformFlags|=lr(D.expression),D}function mg(y,D){return y.expression!==D?Un(fd(D),y):y}function Ku(y){let D=U(222);return D.expression=i().parenthesizeOperandOfPrefixUnary(y),D.transformFlags|=lr(D.expression),D}function Lh(y,D){return y.expression!==D?Un(Ku(D),y):y}function mu(y){let D=U(223);return D.expression=i().parenthesizeOperandOfPrefixUnary(y),D.transformFlags|=lr(D.expression)|256|128|2097152,D}function Y(y,D){return y.expression!==D?Un(mu(D),y):y}function Ye(y,D){let w=U(224);return w.operator=y,w.operand=i().parenthesizeOperandOfPrefixUnary(D),w.transformFlags|=lr(w.operand),(y===46||y===47)&&Me(w.operand)&&!ws(w.operand)&&!lg(w.operand)&&(w.transformFlags|=268435456),w}function xt(y,D){return y.operand!==D?Un(Ye(y.operator,D),y):y}function Nt(y,D){let w=U(225);return w.operator=D,w.operand=i().parenthesizeOperandOfPostfixUnary(y),w.transformFlags|=lr(w.operand),Me(w.operand)&&!ws(w.operand)&&!lg(w.operand)&&(w.transformFlags|=268435456),w}function k(y,D){return y.operand!==D?Un(Nt(D,y.operator),y):y}function ge(y,D,w){let ie=K(226),Be=NP(D),kt=Be.kind;return ie.left=i().parenthesizeLeftSideOfBinary(kt,y),ie.operatorToken=Be,ie.right=i().parenthesizeRightSideOfBinary(kt,ie.left,w),ie.transformFlags|=lr(ie.left)|lr(ie.operatorToken)|lr(ie.right),kt===61?ie.transformFlags|=32:kt===64?fa(ie.left)?ie.transformFlags|=5248|Xe(ie.left):Bd(ie.left)&&(ie.transformFlags|=5120|Xe(ie.left)):kt===43||kt===68?ie.transformFlags|=512:PC(kt)&&(ie.transformFlags|=16),kt===103&&Ci(ie.left)&&(ie.transformFlags|=536870912),ie.jsDoc=void 0,ie}function Xe(y){return F2(y)?65536:0}function Mt(y,D,w,ie){return y.left!==D||y.operatorToken!==w||y.right!==ie?Un(ge(D,w,ie),y):y}function Vn(y,D,w,ie,Be){let kt=U(227);return kt.condition=i().parenthesizeConditionOfConditionalExpression(y),kt.questionToken=D??he(58),kt.whenTrue=i().parenthesizeBranchOfConditionalExpression(w),kt.colonToken=ie??he(59),kt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Be),kt.transformFlags|=lr(kt.condition)|lr(kt.questionToken)|lr(kt.whenTrue)|lr(kt.colonToken)|lr(kt.whenFalse),kt}function jr(y,D,w,ie,Be,kt){return y.condition!==D||y.questionToken!==w||y.whenTrue!==ie||y.colonToken!==Be||y.whenFalse!==kt?Un(Vn(D,w,ie,Be,kt),y):y}function Or(y,D){let w=U(228);return w.head=y,w.templateSpans=G(D),w.transformFlags|=lr(w.head)|Aa(w.templateSpans)|1024,w}function zi(y,D,w){return y.head!==D||y.templateSpans!==w?Un(Or(D,w),y):y}function ma(y,D,w,ie=0){x.assert(!(ie&-7177),"Unsupported template flags.");let Be;if(w!==void 0&&w!==D&&(Be=L6e(y,w),typeof Be=="object"))return x.fail("Invalid raw text");if(D===void 0){if(Be===void 0)return x.fail("Arguments 'text' and 'rawText' may not both be undefined.");D=Be}else Be!==void 0&&x.assert(D===Be,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return D}function _a(y){let D=1024;return y&&(D|=128),D}function pl(y,D,w,ie){let Be=ft(y);return Be.text=D,Be.rawText=w,Be.templateFlags=ie&7176,Be.transformFlags=_a(Be.templateFlags),Be}function Gc(y,D,w,ie){let Be=K(y);return Be.text=D,Be.rawText=w,Be.templateFlags=ie&7176,Be.transformFlags=_a(Be.templateFlags),Be}function nc(y,D,w,ie){return y===15?Gc(y,D,w,ie):pl(y,D,w,ie)}function Xu(y,D,w){return y=ma(16,y,D,w),nc(16,y,D,w)}function _u(y,D,w){return y=ma(16,y,D,w),nc(17,y,D,w)}function Ay(y,D,w){return y=ma(16,y,D,w),nc(18,y,D,w)}function ja(y,D,w){return y=ma(16,y,D,w),Gc(15,y,D,w)}function em(y,D){x.assert(!y||!!D,"A `YieldExpression` with an asteriskToken must have an expression.");let w=U(229);return w.expression=D&&i().parenthesizeExpressionForDisallowedComma(D),w.asteriskToken=y,w.transformFlags|=lr(w.expression)|lr(w.asteriskToken)|1024|128|1048576,w}function tm(y,D,w){return y.expression!==w||y.asteriskToken!==D?Un(em(D,w),y):y}function Ri(y){let D=U(230);return D.expression=i().parenthesizeExpressionForDisallowedComma(y),D.transformFlags|=lr(D.expression)|1024|32768,D}function _g(y,D){return y.expression!==D?Un(Ri(D),y):y}function yv(y,D,w,ie,Be){let kt=K(231);return kt.modifiers=Ea(y),kt.name=zl(D),kt.typeParameters=Ea(w),kt.heritageClauses=Ea(ie),kt.members=G(Be),kt.transformFlags|=Aa(kt.modifiers)|ly(kt.name)|Aa(kt.typeParameters)|Aa(kt.heritageClauses)|Aa(kt.members)|(kt.typeParameters?1:0)|1024,kt.jsDoc=void 0,kt}function nm(y,D,w,ie,Be,kt){return y.modifiers!==D||y.name!==w||y.typeParameters!==ie||y.heritageClauses!==Be||y.members!==kt?Un(yv(D,w,ie,Be,kt),y):y}function D0(){return U(232)}function C0(y,D){let w=U(233);return w.expression=i().parenthesizeLeftSideOfAccess(y,!1),w.typeArguments=D&&i().parenthesizeTypeArguments(D),w.transformFlags|=lr(w.expression)|Aa(w.typeArguments)|1024,w}function kp(y,D,w){return y.expression!==D||y.typeArguments!==w?Un(C0(D,w),y):y}function u_(y,D){let w=U(234);return w.expression=y,w.type=D,w.transformFlags|=lr(w.expression)|lr(w.type)|1,w}function Op(y,D,w){return y.expression!==D||y.type!==w?Un(u_(D,w),y):y}function hg(y){let D=U(235);return D.expression=i().parenthesizeLeftSideOfAccess(y,!1),D.transformFlags|=lr(D.expression)|1,D}function Ne(y,D){return z8(y)?rn(y,D):y.expression!==D?Un(hg(D),y):y}function Ve(y,D){let w=U(238);return w.expression=y,w.type=D,w.transformFlags|=lr(w.expression)|lr(w.type)|1,w}function Tt(y,D,w){return y.expression!==D||y.type!==w?Un(Ve(D,w),y):y}function Pt(y){let D=U(235);return D.flags|=64,D.expression=i().parenthesizeLeftSideOfAccess(y,!0),D.transformFlags|=lr(D.expression)|1,D}function rn(y,D){return x.assert(!!(y.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),y.expression!==D?Un(Pt(D),y):y}function wn(y,D){let w=U(236);switch(w.keywordToken=y,w.name=D,w.transformFlags|=lr(w.name),y){case 105:w.transformFlags|=1024;break;case 102:w.transformFlags|=32;break;default:return x.assertNever(y)}return w.flowNode=void 0,w}function tn(y,D){return y.name!==D?Un(wn(y.keywordToken,D),y):y}function Wn(y,D){let w=U(239);return w.expression=y,w.literal=D,w.transformFlags|=lr(w.expression)|lr(w.literal)|1024,w}function Qr(y,D,w){return y.expression!==D||y.literal!==w?Un(Wn(D,w),y):y}function Kn(){let y=U(240);return y.transformFlags|=1024,y}function Gr(y,D){let w=U(241);return w.statements=G(y),w.multiLine=D,w.transformFlags|=Aa(w.statements),w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w}function Qn(y,D){return y.statements!==D?Un(Gr(D,y.multiLine),y):y}function Mo(y,D){let w=U(243);return w.modifiers=Ea(y),w.declarationList=oo(D)?Cu(D):D,w.transformFlags|=Aa(w.modifiers)|lr(w.declarationList),$m(w.modifiers)&128&&(w.transformFlags=1),w.jsDoc=void 0,w.flowNode=void 0,w}function Ia(y,D,w){return y.modifiers!==D||y.declarationList!==w?Un(Mo(D,w),y):y}function xd(){let y=U(242);return y.jsDoc=void 0,y}function Vc(y){let D=U(244);return D.expression=i().parenthesizeExpressionOfExpressionStatement(y),D.transformFlags|=lr(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function gg(y,D){return y.expression!==D?Un(Vc(D),y):y}function $b(y,D,w){let ie=U(245);return ie.expression=y,ie.thenStatement=Uy(D),ie.elseStatement=Uy(w),ie.transformFlags|=lr(ie.expression)|lr(ie.thenStatement)|lr(ie.elseStatement),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function UI(y,D,w,ie){return y.expression!==D||y.thenStatement!==w||y.elseStatement!==ie?Un($b(D,w,ie),y):y}function Qb(y,D){let w=U(246);return w.statement=Uy(y),w.expression=D,w.transformFlags|=lr(w.statement)|lr(w.expression),w.jsDoc=void 0,w.flowNode=void 0,w}function GR(y,D,w){return y.statement!==D||y.expression!==w?Un(Qb(D,w),y):y}function VR(y,D){let w=U(247);return w.expression=y,w.statement=Uy(D),w.transformFlags|=lr(w.expression)|lr(w.statement),w.jsDoc=void 0,w.flowNode=void 0,w}function jR(y,D,w){return y.expression!==D||y.statement!==w?Un(VR(D,w),y):y}function gT(y,D,w,ie){let Be=U(248);return Be.initializer=y,Be.condition=D,Be.incrementor=w,Be.statement=Uy(ie),Be.transformFlags|=lr(Be.initializer)|lr(Be.condition)|lr(Be.incrementor)|lr(Be.statement),Be.jsDoc=void 0,Be.locals=void 0,Be.nextContainer=void 0,Be.flowNode=void 0,Be}function N0(y,D,w,ie,Be){return y.initializer!==D||y.condition!==w||y.incrementor!==ie||y.statement!==Be?Un(gT(D,w,ie,Be),y):y}function HI(y,D,w){let ie=U(249);return ie.initializer=y,ie.expression=D,ie.statement=Uy(w),ie.transformFlags|=lr(ie.initializer)|lr(ie.expression)|lr(ie.statement),ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.flowNode=void 0,ie}function UR(y,D,w,ie){return y.initializer!==D||y.expression!==w||y.statement!==ie?Un(HI(D,w,ie),y):y}function qI(y,D,w,ie){let Be=U(250);return Be.awaitModifier=y,Be.initializer=D,Be.expression=i().parenthesizeExpressionForDisallowedComma(w),Be.statement=Uy(ie),Be.transformFlags|=lr(Be.awaitModifier)|lr(Be.initializer)|lr(Be.expression)|lr(Be.statement)|1024,y&&(Be.transformFlags|=128),Be.jsDoc=void 0,Be.locals=void 0,Be.nextContainer=void 0,Be.flowNode=void 0,Be}function JI(y,D,w,ie,Be){return y.awaitModifier!==D||y.initializer!==w||y.expression!==ie||y.statement!==Be?Un(qI(D,w,ie,Be),y):y}function KI(y){let D=U(251);return D.label=zl(y),D.transformFlags|=lr(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function XI(y,D){return y.label!==D?Un(KI(D),y):y}function vT(y){let D=U(252);return D.label=zl(y),D.transformFlags|=lr(D.label)|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function YI(y,D){return y.label!==D?Un(vT(D),y):y}function P0(y){let D=U(253);return D.expression=y,D.transformFlags|=lr(D.expression)|128|4194304,D.jsDoc=void 0,D.flowNode=void 0,D}function M0(y,D){return y.expression!==D?Un(P0(D),y):y}function Iy(y,D){let w=U(254);return w.expression=y,w.statement=Uy(D),w.transformFlags|=lr(w.expression)|lr(w.statement),w.jsDoc=void 0,w.flowNode=void 0,w}function xy(y,D,w){return y.expression!==D||y.statement!==w?Un(Iy(D,w),y):y}function kh(y,D){let w=U(255);return w.expression=i().parenthesizeExpressionForDisallowedComma(y),w.caseBlock=D,w.transformFlags|=lr(w.expression)|lr(w.caseBlock),w.jsDoc=void 0,w.flowNode=void 0,w.possiblyExhaustive=!1,w}function Zb(y,D,w){return y.expression!==D||y.caseBlock!==w?Un(kh(D,w),y):y}function La(y,D){let w=U(256);return w.label=zl(y),w.statement=Uy(D),w.transformFlags|=lr(w.label)|lr(w.statement),w.jsDoc=void 0,w.flowNode=void 0,w}function yT(y,D,w){return y.label!==D||y.statement!==w?Un(La(D,w),y):y}function HR(y){let D=U(257);return D.expression=y,D.transformFlags|=lr(D.expression),D.jsDoc=void 0,D.flowNode=void 0,D}function eE(y,D){return y.expression!==D?Un(HR(D),y):y}function vg(y,D,w){let ie=U(258);return ie.tryBlock=y,ie.catchClause=D,ie.finallyBlock=w,ie.transformFlags|=lr(ie.tryBlock)|lr(ie.catchClause)|lr(ie.finallyBlock),ie.jsDoc=void 0,ie.flowNode=void 0,ie}function X_(y,D,w,ie){return y.tryBlock!==D||y.catchClause!==w||y.finallyBlock!==ie?Un(vg(D,w,ie),y):y}function rf(){let y=U(259);return y.jsDoc=void 0,y.flowNode=void 0,y}function hu(y,D,w,ie){let Be=K(260);return Be.name=zl(y),Be.exclamationToken=D,Be.type=w,Be.initializer=p1(ie),Be.transformFlags|=ly(Be.name)|lr(Be.initializer)|(Be.exclamationToken??Be.type?1:0),Be.jsDoc=void 0,Be}function Yu(y,D,w,ie,Be){return y.name!==D||y.type!==ie||y.exclamationToken!==w||y.initializer!==Be?Un(hu(D,w,ie,Be),y):y}function Cu(y,D=0){let w=U(261);return w.flags|=D&7,w.declarations=G(y),w.transformFlags|=Aa(w.declarations)|4194304,D&7&&(w.transformFlags|=263168),D&4&&(w.transformFlags|=4),w}function bv(y,D){return y.declarations!==D?Un(Cu(D,y.flags),y):y}function bT(y,D,w,ie,Be,kt,ir){let Wi=K(262);if(Wi.modifiers=Ea(y),Wi.asteriskToken=D,Wi.name=zl(w),Wi.typeParameters=Ea(ie),Wi.parameters=G(Be),Wi.type=kt,Wi.body=ir,!Wi.body||$m(Wi.modifiers)&128)Wi.transformFlags=1;else{let Es=$m(Wi.modifiers)&1024,Mm=!!Wi.asteriskToken,Hy=Es&&Mm;Wi.transformFlags=Aa(Wi.modifiers)|lr(Wi.asteriskToken)|ly(Wi.name)|Aa(Wi.typeParameters)|Aa(Wi.parameters)|lr(Wi.type)|lr(Wi.body)&-67108865|(Hy?128:Es?256:Mm?2048:0)|(Wi.typeParameters||Wi.type?1:0)|4194304}return Wi.typeArguments=void 0,Wi.jsDoc=void 0,Wi.locals=void 0,Wi.nextContainer=void 0,Wi.endFlowNode=void 0,Wi.returnFlowNode=void 0,Wi}function qR(y,D,w,ie,Be,kt,ir,Wi){return y.modifiers!==D||y.asteriskToken!==w||y.name!==ie||y.typeParameters!==Be||y.parameters!==kt||y.type!==ir||y.body!==Wi?$I(bT(D,w,ie,Be,kt,ir,Wi),y):y}function $I(y,D){return y!==D&&y.modifiers===D.modifiers&&(y.modifiers=D.modifiers),F(y,D)}function Ry(y,D,w,ie,Be){let kt=K(263);return kt.modifiers=Ea(y),kt.name=zl(D),kt.typeParameters=Ea(w),kt.heritageClauses=Ea(ie),kt.members=G(Be),$m(kt.modifiers)&128?kt.transformFlags=1:(kt.transformFlags|=Aa(kt.modifiers)|ly(kt.name)|Aa(kt.typeParameters)|Aa(kt.heritageClauses)|Aa(kt.members)|(kt.typeParameters?1:0)|1024,kt.transformFlags&8192&&(kt.transformFlags|=1)),kt.jsDoc=void 0,kt}function tE(y,D,w,ie,Be,kt){return y.modifiers!==D||y.name!==w||y.typeParameters!==ie||y.heritageClauses!==Be||y.members!==kt?Un(Ry(D,w,ie,Be,kt),y):y}function QI(y,D,w,ie,Be){let kt=K(264);return kt.modifiers=Ea(y),kt.name=zl(D),kt.typeParameters=Ea(w),kt.heritageClauses=Ea(ie),kt.members=G(Be),kt.transformFlags=1,kt.jsDoc=void 0,kt}function Xl(y,D,w,ie,Be,kt){return y.modifiers!==D||y.name!==w||y.typeParameters!==ie||y.heritageClauses!==Be||y.members!==kt?Un(QI(D,w,ie,Be,kt),y):y}function Ev(y,D,w,ie){let Be=K(265);return Be.modifiers=Ea(y),Be.name=zl(D),Be.typeParameters=Ea(w),Be.type=ie,Be.transformFlags=1,Be.jsDoc=void 0,Be.locals=void 0,Be.nextContainer=void 0,Be}function ZI(y,D,w,ie,Be){return y.modifiers!==D||y.name!==w||y.typeParameters!==ie||y.type!==Be?Un(Ev(D,w,ie,Be),y):y}function xm(y,D,w){let ie=K(266);return ie.modifiers=Ea(y),ie.name=zl(D),ie.members=G(w),ie.transformFlags|=Aa(ie.modifiers)|lr(ie.name)|Aa(ie.members)|1,ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function ET(y,D,w,ie){return y.modifiers!==D||y.name!==w||y.members!==ie?Un(xm(D,w,ie),y):y}function we(y,D,w,ie=0){let Be=K(267);return Be.modifiers=Ea(y),Be.flags|=ie&2088,Be.name=D,Be.body=w,$m(Be.modifiers)&128?Be.transformFlags=1:Be.transformFlags|=Aa(Be.modifiers)|lr(Be.name)|lr(Be.body)|1,Be.transformFlags&=-67108865,Be.jsDoc=void 0,Be.locals=void 0,Be.nextContainer=void 0,Be}function Rm(y,D,w,ie){return y.modifiers!==D||y.name!==w||y.body!==ie?Un(we(D,w,ie,y.flags),y):y}function jc(y){let D=U(268);return D.statements=G(y),D.transformFlags|=Aa(D.statements),D.jsDoc=void 0,D}function nE(y,D){return y.statements!==D?Un(jc(D),y):y}function e1(y){let D=U(269);return D.clauses=G(y),D.transformFlags|=Aa(D.clauses),D.locals=void 0,D.nextContainer=void 0,D}function Dy(y,D){return y.clauses!==D?Un(e1(D),y):y}function Sv(y){let D=K(270);return D.name=zl(y),D.transformFlags|=u2(D.name)|1,D.modifiers=void 0,D.jsDoc=void 0,D}function Tv(y,D){return y.name!==D?SP(Sv(D),y):y}function SP(y,D){return y!==D&&(y.modifiers=D.modifiers),Un(y,D)}function xa(y,D,w,ie){let Be=K(271);return Be.modifiers=Ea(y),Be.name=zl(w),Be.isTypeOnly=D,Be.moduleReference=ie,Be.transformFlags|=Aa(Be.modifiers)|u2(Be.name)|lr(Be.moduleReference),j_(Be.moduleReference)||(Be.transformFlags|=1),Be.transformFlags&=-67108865,Be.jsDoc=void 0,Be}function Dm(y,D,w,ie,Be){return y.modifiers!==D||y.isTypeOnly!==w||y.name!==ie||y.moduleReference!==Be?Un(xa(D,w,ie,Be),y):y}function ST(y,D,w,ie){let Be=U(272);return Be.modifiers=Ea(y),Be.importClause=D,Be.moduleSpecifier=w,Be.attributes=Be.assertClause=ie,Be.transformFlags|=lr(Be.importClause)|lr(Be.moduleSpecifier),Be.transformFlags&=-67108865,Be.jsDoc=void 0,Be}function TT(y,D,w,ie,Be){return y.modifiers!==D||y.importClause!==w||y.moduleSpecifier!==ie||y.attributes!==Be?Un(ST(D,w,ie,Be),y):y}function rE(y,D,w){let ie=K(273);return ie.isTypeOnly=y,ie.name=D,ie.namedBindings=w,ie.transformFlags|=lr(ie.name)|lr(ie.namedBindings),y&&(ie.transformFlags|=1),ie.transformFlags&=-67108865,ie}function AT(y,D,w,ie){return y.isTypeOnly!==D||y.name!==w||y.namedBindings!==ie?Un(rE(D,w,ie),y):y}function Pf(y,D){let w=U(300);return w.elements=G(y),w.multiLine=D,w.token=132,w.transformFlags|=4,w}function Mf(y,D,w){return y.elements!==D||y.multiLine!==w?Un(Pf(D,w),y):y}function yg(y,D){let w=U(301);return w.name=y,w.value=D,w.transformFlags|=4,w}function t1(y,D,w){return y.name!==D||y.value!==w?Un(yg(D,w),y):y}function Cm(y,D){let w=U(302);return w.assertClause=y,w.multiLine=D,w}function JR(y,D,w){return y.assertClause!==D||y.multiLine!==w?Un(Cm(D,w),y):y}function L0(y,D,w){let ie=U(300);return ie.token=w??118,ie.elements=G(y),ie.multiLine=D,ie.transformFlags|=4,ie}function Pi(y,D,w){return y.elements!==D||y.multiLine!==w?Un(L0(D,w,y.token),y):y}function Fr(y,D){let w=U(301);return w.name=y,w.value=D,w.transformFlags|=4,w}function Y_(y,D,w){return y.name!==D||y.value!==w?Un(Fr(D,w),y):y}function gu(y){let D=K(274);return D.name=y,D.transformFlags|=lr(D.name),D.transformFlags&=-67108865,D}function TP(y,D){return y.name!==D?Un(gu(D),y):y}function bg(y){let D=K(280);return D.name=y,D.transformFlags|=lr(D.name)|32,D.transformFlags&=-67108865,D}function AP(y,D){return y.name!==D?Un(bg(D),y):y}function Cy(y){let D=U(275);return D.elements=G(y),D.transformFlags|=Aa(D.elements),D.transformFlags&=-67108865,D}function Xs(y,D){return y.elements!==D?Un(Cy(D),y):y}function pp(y,D,w){let ie=K(276);return ie.isTypeOnly=y,ie.propertyName=D,ie.name=w,ie.transformFlags|=lr(ie.propertyName)|lr(ie.name),ie.transformFlags&=-67108865,ie}function Oh(y,D,w,ie){return y.isTypeOnly!==D||y.propertyName!==w||y.name!==ie?Un(pp(D,w,ie),y):y}function Lf(y,D,w){let ie=K(277);return ie.modifiers=Ea(y),ie.isExportEquals=D,ie.expression=D?i().parenthesizeRightSideOfBinary(64,void 0,w):i().parenthesizeExpressionOfExportDefault(w),ie.transformFlags|=Aa(ie.modifiers)|lr(ie.expression),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Ny(y,D,w){return y.modifiers!==D||y.expression!==w?Un(Lf(D,y.isExportEquals,w),y):y}function rm(y,D,w,ie,Be){let kt=K(278);return kt.modifiers=Ea(y),kt.isTypeOnly=D,kt.exportClause=w,kt.moduleSpecifier=ie,kt.attributes=kt.assertClause=Be,kt.transformFlags|=Aa(kt.modifiers)|lr(kt.exportClause)|lr(kt.moduleSpecifier),kt.transformFlags&=-67108865,kt.jsDoc=void 0,kt}function Eg(y,D,w,ie,Be,kt){return y.modifiers!==D||y.isTypeOnly!==w||y.exportClause!==ie||y.moduleSpecifier!==Be||y.attributes!==kt?k0(rm(D,w,ie,Be,kt),y):y}function k0(y,D){return y!==D&&y.modifiers===D.modifiers&&(y.modifiers=D.modifiers),Un(y,D)}function IT(y){let D=U(279);return D.elements=G(y),D.transformFlags|=Aa(D.elements),D.transformFlags&=-67108865,D}function wh(y,D){return y.elements!==D?Un(IT(D),y):y}function n1(y,D,w){let ie=U(281);return ie.isTypeOnly=y,ie.propertyName=zl(D),ie.name=zl(w),ie.transformFlags|=lr(ie.propertyName)|lr(ie.name),ie.transformFlags&=-67108865,ie.jsDoc=void 0,ie}function Wh(y,D,w,ie){return y.isTypeOnly!==D||y.propertyName!==w||y.name!==ie?Un(n1(D,w,ie),y):y}function p_(){let y=K(282);return y.jsDoc=void 0,y}function Av(y){let D=U(283);return D.expression=y,D.transformFlags|=lr(D.expression),D.transformFlags&=-67108865,D}function KR(y,D){return y.expression!==D?Un(Av(D),y):y}function XR(y){return U(y)}function YR(y,D,w=!1){let ie=xT(y,w?D&&i().parenthesizeNonArrayTypeOfPostfixType(D):D);return ie.postfix=w,ie}function xT(y,D){let w=U(y);return w.type=D,w}function Ds(y,D,w){return D.type!==w?Un(YR(y,w,D.postfix),D):D}function O0(y,D,w){return D.type!==w?Un(xT(y,w),D):D}function RT(y,D){let w=K(324);return w.parameters=Ea(y),w.type=D,w.transformFlags=Aa(w.parameters)|(w.type?1:0),w.jsDoc=void 0,w.locals=void 0,w.nextContainer=void 0,w.typeArguments=void 0,w}function im(y,D,w){return y.parameters!==D||y.type!==w?Un(RT(D,w),y):y}function Py(y,D=!1){let w=K(329);return w.jsDocPropertyTags=Ea(y),w.isArrayType=D,w}function $R(y,D,w){return y.jsDocPropertyTags!==D||y.isArrayType!==w?Un(Py(D,w),y):y}function DT(y){let D=U(316);return D.type=y,D}function IP(y,D){return y.type!==D?Un(DT(D),y):y}function nr(y,D,w){let ie=K(330);return ie.typeParameters=Ea(y),ie.parameters=G(D),ie.type=w,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie}function Mc(y,D,w,ie){return y.typeParameters!==D||y.parameters!==w||y.type!==ie?Un(nr(D,w,ie),y):y}function Oi(y){let D=rj(y.kind);return y.tagName.escapedText===Hs(D)?y.tagName:Ee(D)}function wp(y,D,w){let ie=U(y);return ie.tagName=D,ie.comment=w,ie}function Iv(y,D,w){let ie=K(y);return ie.tagName=D,ie.comment=w,ie}function f_(y,D,w,ie){let Be=wp(352,y??Ee("template"),ie);return Be.constraint=D,Be.typeParameters=G(w),Be}function Xn(y,D=Oi(y),w,ie,Be){return y.tagName!==D||y.constraint!==w||y.typeParameters!==ie||y.comment!==Be?Un(f_(D,w,ie,Be),y):y}function CT(y,D,w,ie){let Be=Iv(353,y??Ee("typedef"),ie);return Be.typeExpression=D,Be.fullName=w,Be.name=Vj(w),Be.locals=void 0,Be.nextContainer=void 0,Be}function iE(y,D=Oi(y),w,ie,Be){return y.tagName!==D||y.typeExpression!==w||y.fullName!==ie||y.comment!==Be?Un(CT(D,w,ie,Be),y):y}function Tc(y,D,w,ie,Be,kt){let ir=Iv(348,y??Ee("param"),kt);return ir.typeExpression=ie,ir.name=D,ir.isNameFirst=!!Be,ir.isBracketed=w,ir}function $_(y,D=Oi(y),w,ie,Be,kt,ir){return y.tagName!==D||y.name!==w||y.isBracketed!==ie||y.typeExpression!==Be||y.isNameFirst!==kt||y.comment!==ir?Un(Tc(D,w,ie,Be,kt,ir),y):y}function om(y,D,w,ie,Be,kt){let ir=Iv(355,y??Ee("prop"),kt);return ir.typeExpression=ie,ir.name=D,ir.isNameFirst=!!Be,ir.isBracketed=w,ir}function w0(y,D=Oi(y),w,ie,Be,kt,ir){return y.tagName!==D||y.name!==w||y.isBracketed!==ie||y.typeExpression!==Be||y.isNameFirst!==kt||y.comment!==ir?Un(om(D,w,ie,Be,kt,ir),y):y}function W0(y,D,w,ie){let Be=Iv(345,y??Ee("callback"),ie);return Be.typeExpression=D,Be.fullName=w,Be.name=Vj(w),Be.locals=void 0,Be.nextContainer=void 0,Be}function My(y,D=Oi(y),w,ie,Be){return y.tagName!==D||y.typeExpression!==w||y.fullName!==ie||y.comment!==Be?Un(W0(D,w,ie,Be),y):y}function Sg(y,D,w){let ie=wp(346,y??Ee("overload"),w);return ie.typeExpression=D,ie}function NT(y,D=Oi(y),w,ie){return y.tagName!==D||y.typeExpression!==w||y.comment!==ie?Un(Sg(D,w,ie),y):y}function am(y,D,w){let ie=wp(335,y??Ee("augments"),w);return ie.class=D,ie}function oE(y,D=Oi(y),w,ie){return y.tagName!==D||y.class!==w||y.comment!==ie?Un(am(D,w,ie),y):y}function Fh(y,D,w){let ie=wp(336,y??Ee("implements"),w);return ie.class=D,ie}function Ly(y,D,w){let ie=wp(354,y??Ee("see"),w);return ie.name=D,ie}function r1(y,D,w,ie){return y.tagName!==D||y.name!==w||y.comment!==ie?Un(Ly(D,w,ie),y):y}function aE(y){let D=U(317);return D.name=y,D}function QR(y,D){return y.name!==D?Un(aE(D),y):y}function F0(y,D){let w=U(318);return w.left=y,w.right=D,w.transformFlags|=lr(w.left)|lr(w.right),w}function PT(y,D,w){return y.left!==D||y.right!==w?Un(F0(D,w),y):y}function fp(y,D){let w=U(331);return w.name=y,w.text=D,w}function MT(y,D,w){return y.name!==D?Un(fp(D,w),y):y}function yl(y,D){let w=U(332);return w.name=y,w.text=D,w}function fc(y,D,w){return y.name!==D?Un(yl(D,w),y):y}function LT(y,D){let w=U(333);return w.name=y,w.text=D,w}function Qc(y,D,w){return y.name!==D?Un(LT(D,w),y):y}function Nu(y,D=Oi(y),w,ie){return y.tagName!==D||y.class!==w||y.comment!==ie?Un(Fh(D,w,ie),y):y}function sE(y,D,w){return wp(y,D??Ee(rj(y)),w)}function of(y,D,w=Oi(D),ie){return D.tagName!==w||D.comment!==ie?Un(sE(y,w,ie),D):D}function ky(y,D,w,ie){let Be=wp(y,D??Ee(rj(y)),ie);return Be.typeExpression=w,Be}function Oy(y,D,w=Oi(D),ie,Be){return D.tagName!==w||D.typeExpression!==ie||D.comment!==Be?Un(ky(y,w,ie,Be),D):D}function Lc(y,D){return wp(334,y,D)}function i1(y,D,w){return y.tagName!==D||y.comment!==w?Un(Lc(D,w),y):y}function mp(y,D,w){let ie=Iv(347,y??Ee(rj(347)),w);return ie.typeExpression=D,ie.locals=void 0,ie.nextContainer=void 0,ie}function kT(y,D=Oi(y),w,ie){return y.tagName!==D||y.typeExpression!==w||y.comment!==ie?Un(mp(D,w,ie),y):y}function OT(y){let D=U(328);return D.text=y,D}function bs(y,D){return y.text!==D?Un(OT(D),y):y}function ZR(y,D){let w=U(327);return w.comment=y,w.tags=Ea(D),w}function lE(y,D,w){return y.comment!==D||y.tags!==w?Un(ZR(D,w),y):y}function z0(y,D,w){let ie=U(284);return ie.openingElement=y,ie.children=G(D),ie.closingElement=w,ie.transformFlags|=lr(ie.openingElement)|Aa(ie.children)|lr(ie.closingElement)|2,ie}function xP(y,D,w,ie){return y.openingElement!==D||y.children!==w||y.closingElement!==ie?Un(z0(D,w,ie),y):y}function jd(y,D,w){let ie=U(285);return ie.tagName=y,ie.typeArguments=Ea(D),ie.attributes=w,ie.transformFlags|=lr(ie.tagName)|Aa(ie.typeArguments)|lr(ie.attributes)|2,ie.typeArguments&&(ie.transformFlags|=1),ie}function Tg(y,D,w,ie){return y.tagName!==D||y.typeArguments!==w||y.attributes!==ie?Un(jd(D,w,ie),y):y}function m_(y,D,w){let ie=U(286);return ie.tagName=y,ie.typeArguments=Ea(D),ie.attributes=w,ie.transformFlags|=lr(ie.tagName)|Aa(ie.typeArguments)|lr(ie.attributes)|2,D&&(ie.transformFlags|=1),ie}function o1(y,D,w,ie){return y.tagName!==D||y.typeArguments!==w||y.attributes!==ie?Un(m_(D,w,ie),y):y}function $u(y){let D=U(287);return D.tagName=y,D.transformFlags|=lr(D.tagName)|2,D}function a1(y,D){return y.tagName!==D?Un($u(D),y):y}function Pu(y,D,w){let ie=U(288);return ie.openingFragment=y,ie.children=G(D),ie.closingFragment=w,ie.transformFlags|=lr(ie.openingFragment)|Aa(ie.children)|lr(ie.closingFragment)|2,ie}function s1(y,D,w,ie){return y.openingFragment!==D||y.children!==w||y.closingFragment!==ie?Un(Pu(D,w,ie),y):y}function xv(y,D){let w=U(12);return w.text=y,w.containsOnlyTriviaWhiteSpaces=!!D,w.transformFlags|=2,w}function wT(y,D,w){return y.text!==D||y.containsOnlyTriviaWhiteSpaces!==w?Un(xv(D,w),y):y}function eD(){let y=U(289);return y.transformFlags|=2,y}function tD(){let y=U(290);return y.transformFlags|=2,y}function WT(y,D){let w=K(291);return w.name=y,w.initializer=D,w.transformFlags|=lr(w.name)|lr(w.initializer)|2,w}function nD(y,D,w){return y.name!==D||y.initializer!==w?Un(WT(D,w),y):y}function wy(y){let D=K(292);return D.properties=G(y),D.transformFlags|=Aa(D.properties)|2,D}function Qu(y,D){return y.properties!==D?Un(wy(D),y):y}function Q_(y){let D=U(293);return D.expression=y,D.transformFlags|=lr(D.expression)|2,D}function rD(y,D){return y.expression!==D?Un(Q_(D),y):y}function FT(y,D){let w=U(294);return w.dotDotDotToken=y,w.expression=D,w.transformFlags|=lr(w.dotDotDotToken)|lr(w.expression)|2,w}function Oa(y,D){return y.expression!==D?Un(FT(y.dotDotDotToken,D),y):y}function dr(y,D){let w=U(295);return w.namespace=y,w.name=D,w.transformFlags|=lr(w.namespace)|lr(w.name)|2,w}function Wp(y,D,w){return y.namespace!==D||y.name!==w?Un(dr(D,w),y):y}function nu(y,D){let w=U(296);return w.expression=i().parenthesizeExpressionForDisallowedComma(y),w.statements=G(D),w.transformFlags|=lr(w.expression)|Aa(w.statements),w.jsDoc=void 0,w}function B0(y,D,w){return y.expression!==D||y.statements!==w?Un(nu(D,w),y):y}function iD(y){let D=U(297);return D.statements=G(y),D.transformFlags=Aa(D.statements),D}function cE(y,D){return y.statements!==D?Un(iD(D),y):y}function G0(y,D){let w=U(298);switch(w.token=y,w.types=G(D),w.transformFlags|=Aa(w.types),y){case 96:w.transformFlags|=1024;break;case 119:w.transformFlags|=1;break;default:return x.assertNever(y)}return w}function zT(y,D){return y.types!==D?Un(G0(y.token,D),y):y}function zh(y,D){let w=U(299);return w.variableDeclaration=PP(y),w.block=D,w.transformFlags|=lr(w.variableDeclaration)|lr(w.block)|(y?0:64),w.locals=void 0,w.nextContainer=void 0,w}function Nm(y,D,w){return y.variableDeclaration!==D||y.block!==w?Un(zh(D,w),y):y}function Fp(y,D){let w=K(303);return w.name=zl(y),w.initializer=i().parenthesizeExpressionForDisallowedComma(D),w.transformFlags|=ly(w.name)|lr(w.initializer),w.modifiers=void 0,w.questionToken=void 0,w.exclamationToken=void 0,w.jsDoc=void 0,w}function sm(y,D,w){return y.name!==D||y.initializer!==w?Ag(Fp(D,w),y):y}function Ag(y,D){return y!==D&&(y.modifiers=D.modifiers,y.questionToken=D.questionToken,y.exclamationToken=D.exclamationToken),Un(y,D)}function Bh(y,D){let w=K(304);return w.name=zl(y),w.objectAssignmentInitializer=D&&i().parenthesizeExpressionForDisallowedComma(D),w.transformFlags|=u2(w.name)|lr(w.objectAssignmentInitializer)|1024,w.equalsToken=void 0,w.modifiers=void 0,w.questionToken=void 0,w.exclamationToken=void 0,w.jsDoc=void 0,w}function Gh(y,D,w){return y.name!==D||y.objectAssignmentInitializer!==w?l1(Bh(D,w),y):y}function l1(y,D){return y!==D&&(y.modifiers=D.modifiers,y.questionToken=D.questionToken,y.exclamationToken=D.exclamationToken,y.equalsToken=D.equalsToken),Un(y,D)}function Fl(y){let D=K(305);return D.expression=i().parenthesizeExpressionForDisallowedComma(y),D.transformFlags|=lr(D.expression)|128|65536,D.jsDoc=void 0,D}function oD(y,D){return y.expression!==D?Un(Fl(D),y):y}function af(y,D){let w=K(306);return w.name=zl(y),w.initializer=D&&i().parenthesizeExpressionForDisallowedComma(D),w.transformFlags|=lr(w.name)|lr(w.initializer)|1,w.jsDoc=void 0,w}function Z_(y,D,w){return y.name!==D||y.initializer!==w?Un(af(D,w),y):y}function zp(y,D,w){let ie=t.createBaseSourceFileNode(312);return ie.statements=G(y),ie.endOfFileToken=D,ie.flags|=w,ie.text="",ie.fileName="",ie.path="",ie.resolvedPath="",ie.originalFileName="",ie.languageVersion=0,ie.languageVariant=0,ie.scriptKind=0,ie.isDeclarationFile=!1,ie.hasNoDefaultLib=!1,ie.transformFlags|=Aa(ie.statements)|lr(ie.endOfFileToken),ie.locals=void 0,ie.nextContainer=void 0,ie.endFlowNode=void 0,ie.nodeCount=0,ie.identifierCount=0,ie.symbolCount=0,ie.parseDiagnostics=void 0,ie.bindDiagnostics=void 0,ie.bindSuggestionDiagnostics=void 0,ie.lineMap=void 0,ie.externalModuleIndicator=void 0,ie.setExternalModuleIndicator=void 0,ie.pragmas=void 0,ie.checkJsDirective=void 0,ie.referencedFiles=void 0,ie.typeReferenceDirectives=void 0,ie.libReferenceDirectives=void 0,ie.amdDependencies=void 0,ie.commentDirectives=void 0,ie.identifiers=void 0,ie.packageJsonLocations=void 0,ie.packageJsonScope=void 0,ie.imports=void 0,ie.moduleAugmentations=void 0,ie.ambientModuleNames=void 0,ie.classifiableNames=void 0,ie.impliedNodeFormat=void 0,ie}function V0(y){let D=Object.create(y.redirectTarget);return Object.defineProperties(D,{id:{get(){return this.redirectInfo.redirectTarget.id},set(w){this.redirectInfo.redirectTarget.id=w}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(w){this.redirectInfo.redirectTarget.symbol=w}}}),D.redirectInfo=y,D}function dE(y){let D=V0(y.redirectInfo);return D.flags|=y.flags&-17,D.fileName=y.fileName,D.path=y.path,D.resolvedPath=y.resolvedPath,D.originalFileName=y.originalFileName,D.packageJsonLocations=y.packageJsonLocations,D.packageJsonScope=y.packageJsonScope,D.emitNode=void 0,D}function c1(y){let D=t.createBaseSourceFileNode(312);D.flags|=y.flags&-17;for(let w in y)if(!(rs(D,w)||!rs(y,w))){if(w==="emitNode"){D.emitNode=void 0;continue}D[w]=y[w]}return D}function BT(y){let D=y.redirectInfo?dE(y):c1(y);return r(D,y),D}function Bp(y,D,w,ie,Be,kt,ir){let Wi=BT(y);return Wi.statements=G(D),Wi.isDeclarationFile=w,Wi.referencedFiles=ie,Wi.typeReferenceDirectives=Be,Wi.hasNoDefaultLib=kt,Wi.libReferenceDirectives=ir,Wi.transformFlags=Aa(Wi.statements)|lr(Wi.endOfFileToken),Wi}function cs(y,D,w=y.isDeclarationFile,ie=y.referencedFiles,Be=y.typeReferenceDirectives,kt=y.hasNoDefaultLib,ir=y.libReferenceDirectives){return y.statements!==D||y.isDeclarationFile!==w||y.referencedFiles!==ie||y.typeReferenceDirectives!==Be||y.hasNoDefaultLib!==kt||y.libReferenceDirectives!==ir?Un(Bp(y,D,w,ie,Be,kt,ir),y):y}function j0(y,D=je){let w=U(313);return w.prepends=D,w.sourceFiles=y,w.syntheticFileReferences=void 0,w.syntheticTypeReferences=void 0,w.syntheticLibReferences=void 0,w.hasNoDefaultLib=void 0,w}function U0(y,D,w=je){return y.sourceFiles!==D||y.prepends!==w?Un(j0(D,w),y):y}function Ig(y,D,w){let ie=U(314);return ie.prologues=y,ie.syntheticReferences=D,ie.texts=w,ie.fileName="",ie.text="",ie.referencedFiles=je,ie.libReferenceDirectives=je,ie.getLineAndCharacterOfPosition=Be=>$a(ie,Be),ie}function Wy(y,D){let w=U(y);return w.data=D,w}function uE(y){return Wy(307,y)}function I(y,D){let w=Wy(308,y);return w.texts=D,w}function ne(y,D){return Wy(D?310:309,y)}function rt(y){let D=U(311);return D.data=y.data,D.section=y,D}function Ht(){let y=U(315);return y.javascriptText="",y.declarationText="",y}function yr(y,D=!1,w){let ie=U(237);return ie.type=y,ie.isSpread=D,ie.tupleNameSource=w,ie}function vi(y){let D=U(358);return D._children=y,D}function ri(y){let D=U(359);return D.original=y,Ze(D,y),D}function wi(y,D){let w=U(360);return w.expression=y,w.original=D,w.transformFlags|=lr(w.expression)|1,Ze(w,D),w}function $o(y,D){return y.expression!==D?Un(wi(D,y.original),y):y}function Rd(y){if(xs(y)&&!eC(y)&&!y.original&&!y.emitNode&&!y.id){if(dN(y))return y.elements;if(Zn(y)&&zre(y.operatorToken))return[y.left,y.right]}return y}function ru(y){let D=U(361);return D.elements=G(CZ(y,Rd)),D.transformFlags|=Aa(D.elements),D}function sf(y,D){return y.elements!==D?Un(ru(D),y):y}function Fy(y,D){let w=U(362);return w.expression=y,w.thisArg=D,w.transformFlags|=lr(w.expression)|lr(w.thisArg),w}function ai(y,D,w){return y.expression!==D||y.thisArg!==w?Un(Fy(D,w),y):y}function eh(y){let D=ee(y.escapedText);return D.flags|=y.flags&-17,D.transformFlags=y.transformFlags,r(D,y),h2(D,{...y.emitNode.autoGenerate}),D}function Pn(y){let D=ee(y.escapedText);D.flags|=y.flags&-17,D.jsDoc=y.jsDoc,D.flowNode=y.flowNode,D.symbol=y.symbol,D.transformFlags=y.transformFlags,r(D,y);let w=BS(y);return w&&av(D,w),D}function d1(y){let D=Oe(y.escapedText);return D.flags|=y.flags&-17,D.transformFlags=y.transformFlags,r(D,y),h2(D,{...y.emitNode.autoGenerate}),D}function zy(y){let D=Oe(y.escapedText);return D.flags|=y.flags&-17,D.transformFlags=y.transformFlags,r(D,y),D}function By(y){if(y===void 0)return y;if(Li(y))return BT(y);if(ws(y))return eh(y);if(Me(y))return Pn(y);if(vS(y))return d1(y);if(Ci(y))return zy(y);let D=jM(y.kind)?t.createBaseNode(y.kind):t.createBaseTokenNode(y.kind);D.flags|=y.flags&-17,D.transformFlags=y.transformFlags,r(D,y);for(let w in y)rs(D,w)||!rs(y,w)||(D[w]=y[w]);return D}function GT(y,D,w){return Ln(fu(void 0,void 0,void 0,void 0,D?[D]:[],void 0,Gr(y,!0)),void 0,w?[w]:[])}function H0(y,D,w){return Ln(nf(void 0,void 0,D?[D]:[],void 0,void 0,Gr(y,!0)),void 0,w?[w]:[])}function __(){return Ku(oe("0"))}function th(y){return Lf(void 0,!1,y)}function aD(y){return rm(void 0,!1,IT([n1(!1,void 0,y)]))}function VT(y,D){return D==="null"?L.createStrictEquality(y,Dt()):D==="undefined"?L.createStrictEquality(y,__()):L.createStrictEquality(fd(y),de(D))}function S7(y,D){return D==="null"?L.createStrictInequality(y,Dt()):D==="undefined"?L.createStrictInequality(y,__()):L.createStrictInequality(fd(y),de(D))}function Gy(y,D,w){return gS(y)?Po(Za(y,void 0,D),void 0,void 0,w):Ln(ys(y,D),void 0,w)}function QO(y,D,w){return Gy(y,"bind",[D,...w])}function ZO(y,D,w){return Gy(y,"call",[D,...w])}function pE(y,D,w){return Gy(y,"apply",[D,w])}function Pm(y,D,w){return Gy(Ee(y),D,w)}function RP(y,D){return Gy(y,"slice",D===void 0?[]:[mE(D)])}function nh(y,D){return Gy(y,"concat",D)}function u1(y,D,w){return Pm("Object","defineProperty",[y,mE(D),w])}function ew(y,D){return Pm("Object","getOwnPropertyDescriptor",[y,mE(D)])}function h_(y,D,w){return Pm("Reflect","get",w?[y,D,w]:[y,D])}function J(y,D,w,ie){return Pm("Reflect","set",ie?[y,D,w,ie]:[y,D,w])}function ye(y,D,w){return w?(y.push(Fp(D,w)),!0):!1}function Fe(y,D){let w=[];ye(w,"enumerable",mE(y.enumerable)),ye(w,"configurable",mE(y.configurable));let ie=ye(w,"writable",mE(y.writable));ie=ye(w,"value",y.value)||ie;let Be=ye(w,"get",y.get);return Be=ye(w,"set",y.set)||Be,x.assert(!(ie&&Be),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),No(w,!D)}function mt(y,D){switch(y.kind){case 217:return Lp(y,D);case 216:return Nl(y,y.type,D);case 234:return Op(y,D,y.type);case 238:return Tt(y,D,y.type);case 235:return Ne(y,D);case 360:return $o(y,D)}}function vt(y){return uu(y)&&xs(y)&&xs(ov(y))&&xs(e_(y))&&!ct(Mx(y))&&!ct(_2(y))}function Lt(y,D,w=15){return y&&C6(y,w)&&!vt(y)?mt(y,Lt(y.expression,D)):D}function Sr(y,D,w){if(!D)return y;let ie=yT(D,D.label,s0(D.statement)?Sr(y,D.statement):y);return w&&w(D),ie}function bi(y,D){let w=Ka(y);switch(w.kind){case 80:return D;case 110:case 9:case 10:case 11:return!1;case 209:return w.elements.length!==0;case 210:return w.properties.length>0;default:return!0}}function fi(y,D,w,ie=!1){let Be=Rl(y,15),kt,ir;return cu(Be)?(kt=Ke(),ir=Be):sN(Be)?(kt=Ke(),ir=w!==void 0&&w<2?Ze(Ee("_super"),Be):Be):ya(Be)&8192?(kt=__(),ir=i().parenthesizeLeftSideOfAccess(Be,!1)):Er(Be)?bi(Be.expression,ie)?(kt=ce(D),ir=ys(Ze(L.createAssignment(kt,Be.expression),Be.expression),Be.name),Ze(ir,Be)):(kt=Be.expression,ir=Be):Rs(Be)?bi(Be.expression,ie)?(kt=ce(D),ir=pc(Ze(L.createAssignment(kt,Be.expression),Be.expression),Be.argumentExpression),Ze(ir,Be)):(kt=Be.expression,ir=Be):(kt=__(),ir=i().parenthesizeLeftSideOfAccess(y,!1)),{target:ir,thisArg:kt}}function Zr(y,D){return ys(Sc(No([re(void 0,"value",[ei(void 0,void 0,y,void 0,void 0,void 0)],Gr([Vc(D)]))])),"value")}function Mi(y){return y.length>10?ru(y):Nd(y,L.createComma)}function Ua(y,D,w,ie=0,Be){let kt=Be?y&&M8(y):mo(y);if(kt&&Me(kt)&&!ws(kt)){let ir=Ta(Ze(By(kt),kt),kt.parent);return ie|=ya(kt),w||(ie|=96),D||(ie|=3072),ie&&$n(ir,ie),ir}return Ae(y)}function os(y,D,w){return Ua(y,D,w,98304)}function Ma(y,D,w,ie){return Ua(y,D,w,32768,ie)}function lf(y,D,w){return Ua(y,D,w,16384)}function g_(y,D,w){return Ua(y,D,w)}function Vh(y,D,w,ie){let Be=ys(y,xs(D)?D:By(D));Ze(Be,D);let kt=0;return ie||(kt|=96),w||(kt|=3072),kt&&$n(Be,kt),Be}function xg(y,D,w,ie){return y&&Wr(D,32)?Vh(y,Ua(D),w,ie):lf(D,w,ie)}function Rg(y,D,w,ie){let Be=jT(y,D,0,w);return sD(y,D,Be,ie)}function Vy(y){return ca(y.expression)&&y.expression.text==="use strict"}function Mu(){return Sd(Vc(de("use strict")))}function jT(y,D,w=0,ie){x.assert(D.length===0,"Prologue directives should be at the first statement in the target statements array");let Be=!1,kt=y.length;for(;w<kt;){let ir=y[w];if(Hf(ir))Vy(ir)&&(Be=!0),D.push(ir);else break;w++}return ie&&!Be&&D.push(Mu()),w}function sD(y,D,w,ie,Be=Ug){let kt=y.length;for(;w!==void 0&&w<kt;){let ir=y[w];if(ya(ir)&2097152&&Be(ir))pn(D,ie?He(ir,ie,Di):ir);else break;w++}return w}function DP(y){return zj(y)?y:Ze(G([Mu(),...y]),y)}function CP(y){return x.assert(ji(y,ste),"Cannot lift nodes to a Block."),x_(y)||Gr(y)}function fE(y,D,w){let ie=w;for(;ie<y.length&&D(y[ie]);)ie++;return ie}function Dg(y,D){if(!ct(D))return y;let w=fE(y,Hf,0),ie=fE(y,cW,w),Be=fE(y,dW,ie),kt=fE(D,Hf,0),ir=fE(D,cW,kt),Wi=fE(D,dW,ir),Es=fE(D,dL,Wi);x.assert(Es===D.length,"Expected declarations to be valid standard or custom prologues");let Mm=OE(y)?y.slice():y;if(Es>Wi&&Mm.splice(Be,0,...D.slice(Wi,Es)),Wi>ir&&Mm.splice(ie,0,...D.slice(ir,Wi)),ir>kt&&Mm.splice(w,0,...D.slice(kt,ir)),kt>0)if(w===0)Mm.splice(0,0,...D.slice(0,kt));else{let Hy=new Map;for(let lm=0;lm<w;lm++){let _E=y[lm];Hy.set(_E.expression.text,!0)}for(let lm=kt-1;lm>=0;lm--){let _E=D[lm];Hy.has(_E.expression.text)||Mm.unshift(_E)}}return OE(y)?Ze(G(Mm,y.hasTrailingComma),y):y}function jy(y,D){let w;return typeof D=="number"?w=Vt(D):w=D,qs(y)?Wt(y,w,y.name,y.constraint,y.default):ao(y)?Ki(y,w,y.dotDotDotToken,y.name,y.questionToken,y.type,y.initializer):kx(y)?Ot(y,w,y.typeParameters,y.parameters,y.type):Gu(y)?Nr(y,w,y.name,y.questionToken,y.type):xo(y)?Ue(y,w,y.name,y.questionToken??y.exclamationToken,y.type,y.initializer):z_(y)?mn(y,w,y.name,y.questionToken,y.typeParameters,y.parameters,y.type):El(y)?ni(y,w,y.asteriskToken,y.name,y.questionToken,y.typeParameters,y.parameters,y.type,y.body):ll(y)?Tn(y,w,y.parameters,y.body):Ap(y)?tt(y,w,y.name,y.parameters,y.type,y.body):Vu(y)?Ce(y,w,y.name,y.parameters,y.body):r0(y)?Ct(y,w,y.parameters,y.type):us(y)?tu(y,w,y.asteriskToken,y.name,y.typeParameters,y.parameters,y.type,y.body):hs(y)?d_(y,w,y.typeParameters,y.parameters,y.type,y.equalsGreaterThanToken,y.body):Dc(y)?nm(y,w,y.name,y.typeParameters,y.heritageClauses,y.members):cl(y)?Ia(y,w,y.declarationList):Ql(y)?qR(y,w,y.asteriskToken,y.name,y.typeParameters,y.parameters,y.type,y.body):Zl(y)?tE(y,w,y.name,y.typeParameters,y.heritageClauses,y.members):Gd(y)?Xl(y,w,y.name,y.typeParameters,y.heritageClauses,y.members):Xf(y)?ZI(y,w,y.name,y.typeParameters,y.type):kb(y)?ET(y,w,y.name,y.members):Il(y)?Rm(y,w,y.name,y.body):Nc(y)?Dm(y,w,y.isTypeOnly,y.name,y.moduleReference):cc(y)?TT(y,w,y.importClause,y.moduleSpecifier,y.attributes):dl(y)?Ny(y,w,y.expression):xl(y)?Eg(y,w,y.isTypeOnly,y.exportClause,y.moduleSpecifier,y.attributes):x.assertNever(y)}function lD(y,D){return ao(y)?Ki(y,D,y.dotDotDotToken,y.name,y.questionToken,y.type,y.initializer):xo(y)?Ue(y,D,y.name,y.questionToken??y.exclamationToken,y.type,y.initializer):El(y)?ni(y,D,y.asteriskToken,y.name,y.questionToken,y.typeParameters,y.parameters,y.type,y.body):Ap(y)?tt(y,D,y.name,y.parameters,y.type,y.body):Vu(y)?Ce(y,D,y.name,y.parameters,y.body):Dc(y)?nm(y,D,y.name,y.typeParameters,y.heritageClauses,y.members):Zl(y)?tE(y,D,y.name,y.typeParameters,y.heritageClauses,y.members):x.assertNever(y)}function _p(y,D){switch(y.kind){case 177:return tt(y,y.modifiers,D,y.parameters,y.type,y.body);case 178:return Ce(y,y.modifiers,D,y.parameters,y.body);case 174:return ni(y,y.modifiers,y.asteriskToken,D,y.questionToken,y.typeParameters,y.parameters,y.type,y.body);case 173:return mn(y,y.modifiers,D,y.questionToken,y.typeParameters,y.parameters,y.type);case 172:return Ue(y,y.modifiers,D,y.questionToken??y.exclamationToken,y.type,y.initializer);case 171:return Nr(y,y.modifiers,D,y.questionToken,y.type);case 303:return sm(y,D,y.initializer)}}function Ea(y){return y?G(y):void 0}function zl(y){return typeof y=="string"?Ee(y):y}function mE(y){return typeof y=="string"?de(y):typeof y=="number"?oe(y):typeof y=="boolean"?y?st():Ge():y}function p1(y){return y&&i().parenthesizeExpressionForDisallowedComma(y)}function NP(y){return typeof y=="number"?he(y):y}function Uy(y){return y&&Ij(y)?Ze(r(xd(),y),y):y}function PP(y){return typeof y=="string"||y&&!yi(y)?hu(y,void 0,void 0,void 0):y}function Un(y,D){return y!==D&&(r(y,D),Ze(y,D)),y}}function rj(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return x.fail(`Unsupported kind: ${x.formatSyntaxKind(e)}`)}}function L6e(e,t){switch(iv||(iv=Kg(99,!1,0)),e){case 15:iv.setText("`"+t+"`");break;case 16:iv.setText("`"+t+"${");break;case 17:iv.setText("}"+t+"${");break;case 18:iv.setText("}"+t+"`");break}let r=iv.scan();if(r===20&&(r=iv.reScanTemplateToken(!1)),iv.isUnterminated())return iv.setText(void 0),Rre;let i;switch(r){case 15:case 16:case 17:case 18:i=iv.getTokenValue();break}return i===void 0||iv.scan()!==1?(iv.setText(void 0),Rre):(iv.setText(void 0),i)}function ly(e){return e&&Me(e)?u2(e):lr(e)}function u2(e){return lr(e)&-67108865}function k6e(e,t){return t|e.transformFlags&134234112}function lr(e){if(!e)return 0;let t=e.transformFlags&~Ire(e.kind);return Ld(e)&&kl(e.name)?k6e(e.name,t):t}function Aa(e){return e?e.transformFlags:0}function kbe(e){let t=0;for(let r of e)t|=lr(r);e.transformFlags=t}function Ire(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function PF(e){return e.flags|=16,e}function ij(e,t,r){let i,o,s,l,d,p,h,m,v,E;fo(e)?(s="",l=e,d=e.length,p=t,h=r):(x.assert(t==="js"||t==="dts"),s=(t==="js"?e.javascriptPath:e.declarationPath)||"",p=t==="js"?e.javascriptMapPath:e.declarationMapPath,m=()=>t==="js"?e.javascriptText:e.declarationText,v=()=>t==="js"?e.javascriptMapText:e.declarationMapText,d=()=>m().length,e.buildInfo&&e.buildInfo.bundle&&(x.assert(r===void 0||typeof r=="boolean"),i=r,o=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,E=e.oldFileOfCurrentEmit));let S=E?w6e(x.checkDefined(o)):O6e(o,i,d);return S.fileName=s,S.sourceMapPath=p,S.oldFileOfCurrentEmit=E,m&&v?(Object.defineProperty(S,"text",{get:m}),Object.defineProperty(S,"sourceMapText",{get:v})):(x.assert(!E),S.text=l??"",S.sourceMapText=h),S}function O6e(e,t,r){let i,o,s,l,d,p,h,m;for(let E of e?e.sections:je)switch(E.kind){case"prologue":i=pn(i,Ze(P.createUnparsedPrologue(E.data),E));break;case"emitHelpers":o=pn(o,fj().get(E.data));break;case"no-default-lib":m=!0;break;case"reference":s=pn(s,{pos:-1,end:-1,fileName:E.data});break;case"type":l=pn(l,{pos:-1,end:-1,fileName:E.data});break;case"type-import":l=pn(l,{pos:-1,end:-1,fileName:E.data,resolutionMode:99});break;case"type-require":l=pn(l,{pos:-1,end:-1,fileName:E.data,resolutionMode:1});break;case"lib":d=pn(d,{pos:-1,end:-1,fileName:E.data});break;case"prepend":let S;for(let A of E.texts)(!t||A.kind!=="internal")&&(S=pn(S,Ze(P.createUnparsedTextLike(A.data,A.kind==="internal"),A)));p=Pr(p,S),h=pn(h,P.createUnparsedPrepend(E.data,S??je));break;case"internal":if(t){h||(h=[]);break}case"text":h=pn(h,Ze(P.createUnparsedTextLike(E.data,E.kind==="internal"),E));break;default:x.assertNever(E)}if(!h){let E=P.createUnparsedTextLike(void 0,!1);JC(E,0,typeof r=="function"?r():r),h=[E]}let v=U_.createUnparsedSource(i??je,void 0,h);return Dx(i,v),Dx(h,v),Dx(p,v),v.hasNoDefaultLib=m,v.helpers=o,v.referencedFiles=s||je,v.typeReferenceDirectives=l,v.libReferenceDirectives=d||je,v}function w6e(e){let t,r;for(let o of e.sections)switch(o.kind){case"internal":case"text":t=pn(t,Ze(P.createUnparsedTextLike(o.data,o.kind==="internal"),o));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":r=pn(r,Ze(P.createUnparsedSyntheticReference(o),o));break;case"prologue":case"emitHelpers":case"prepend":break;default:x.assertNever(o)}let i=P.createUnparsedSource(je,r,t??je);return Dx(r,i),Dx(t,i),i.helpers=nn(e.sources&&e.sources.helpers,o=>fj().get(o)),i}function Obe(e,t,r,i,o,s){return fo(e)?aj(void 0,e,r,i,void 0,t,o,s):oj(e,t,r,i,o,s)}function oj(e,t,r,i,o,s,l,d){let p=U_.createInputFiles();p.javascriptPath=t,p.javascriptMapPath=r,p.declarationPath=i,p.declarationMapPath=o,p.buildInfoPath=s;let h=new Map,m=A=>{if(A===void 0)return;let C=h.get(A);return C===void 0&&(C=e(A),h.set(A,C!==void 0?C:!1)),C!==!1?C:void 0},v=A=>{let C=m(A);return C!==void 0?C:`/* Input file ${A} was missing */\r
`},E;return Object.defineProperties(p,{javascriptText:{get:()=>v(t)},javascriptMapText:{get:()=>m(r)},declarationText:{get:()=>v(x.checkDefined(i))},declarationMapText:{get:()=>m(o)},buildInfo:{get:()=>{if(E===void 0&&s)if(l?.getBuildInfo)E=l.getBuildInfo(s,d.configFilePath)??!1;else{let A=m(s);E=A!==void 0?R4(s,A)??!1:!1}return E||void 0}}}),p}function aj(e,t,r,i,o,s,l,d,p,h,m){let v=U_.createInputFiles();return v.javascriptPath=e,v.javascriptText=t,v.javascriptMapPath=r,v.javascriptMapText=i,v.declarationPath=o,v.declarationText=s,v.declarationMapPath=l,v.declarationMapText=d,v.buildInfoPath=p,v.buildInfo=h,v.oldFileOfCurrentEmit=m,v}function wbe(e,t,r){return new(Fbe||(Fbe=wc.getSourceMapSourceConstructor()))(e,t,r)}function mr(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=W6e(r,e.emitNode))}return e}function W6e(e,t){let{flags:r,internalFlags:i,leadingComments:o,trailingComments:s,commentRange:l,sourceMapRange:d,tokenSourceMapRanges:p,constantValue:h,helpers:m,startsOnNewLine:v,snippetElement:E,classThis:S,assignedName:A}=e;if(t||(t={}),r&&(t.flags=r),i&&(t.internalFlags=i&-9),o&&(t.leadingComments=Pr(o.slice(),t.leadingComments)),s&&(t.trailingComments=Pr(s.slice(),t.trailingComments)),l&&(t.commentRange=l),d&&(t.sourceMapRange=d),p&&(t.tokenSourceMapRanges=F6e(p,t.tokenSourceMapRanges)),h!==void 0&&(t.constantValue=h),m)for(let C of m)t.helpers=Kh(t.helpers,C);return v!==void 0&&(t.startsOnNewLine=v),E!==void 0&&(t.snippetElement=E),S&&(t.classThis=S),A&&(t.assignedName=A),t}function F6e(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}var MF,sj,xre,iv,Rre,p2,Wbe,P,Fbe,z6e=pt({"src/compiler/factory/nodeFactory.ts"(){"use strict";wo(),MF=0,sj=(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))(sj||{}),xre=[],Rre={},p2=Sre(),Wbe={createBaseSourceFileNode:e=>PF(p2.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>PF(p2.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>PF(p2.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>PF(p2.createBaseTokenNode(e)),createBaseNode:e=>PF(p2.createBaseNode(e))},P=d2(4,Wbe)}});function cd(e){if(e.emitNode)x.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(eC(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Nn(uo(Nn(e)))??x.fail("Could not determine parsed source file.");cd(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function lj(e){var t,r;let i=(r=(t=Nn(uo(e)))==null?void 0:t.emitNode)==null?void 0:r.annotatedNodes;if(i)for(let o of i)o.emitNode=void 0}function f2(e){let t=cd(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function $n(e,t){return cd(e).flags=t,e}function Zm(e,t){let r=cd(e);return r.flags=r.flags|t,e}function m2(e,t){return cd(e).internalFlags=t,e}function XA(e,t){let r=cd(e);return r.internalFlags=r.internalFlags|t,e}function ov(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function la(e,t){return cd(e).sourceMapRange=t,e}function zbe(e,t){var r,i;return(i=(r=e.emitNode)==null?void 0:r.tokenSourceMapRanges)==null?void 0:i[t]}function Dre(e,t,r){let i=cd(e),o=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return o[t]=r,e}function rN(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function LF(e,t){return cd(e).startsOnNewLine=t,e}function e_(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function Ol(e,t){return cd(e).commentRange=t,e}function Mx(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function Lb(e,t){return cd(e).leadingComments=t,e}function iN(e,t,r,i){return Lb(e,pn(Mx(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function _2(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function YA(e,t){return cd(e).trailingComments=t,e}function kF(e,t,r,i){return YA(e,pn(_2(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:r}))}function Cre(e,t){Lb(e,Mx(t)),YA(e,_2(t));let r=cd(t);return r.leadingComments=void 0,r.trailingComments=void 0,e}function Nre(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function Pre(e,t){let r=cd(e);return r.constantValue=t,e}function $A(e,t){let r=cd(e);return r.helpers=pn(r.helpers,t),e}function ag(e,t){if(ct(t)){let r=cd(e);for(let i of t)r.helpers=Kh(r.helpers,i)}return e}function Bbe(e,t){var r;let i=(r=e.emitNode)==null?void 0:r.helpers;return i?N1(i,t):!1}function OF(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function Mre(e,t,r){let i=e.emitNode,o=i&&i.helpers;if(!ct(o))return;let s=cd(t),l=0;for(let d=0;d<o.length;d++){let p=o[d];r(p)?(l++,s.helpers=Kh(s.helpers,p)):l>0&&(o[d-l]=p)}l>0&&(o.length-=l)}function cj(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function dj(e,t){let r=cd(e);return r.snippetElement=t,e}function uj(e){return cd(e).internalFlags|=4,e}function Lre(e,t){let r=cd(e);return r.typeNode=t,e}function kre(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function av(e,t){return cd(e).identifierTypeArguments=t,e}function BS(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function h2(e,t){return cd(e).autoGenerate=t,e}function Gbe(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function Ore(e,t){return cd(e).generatedImportReference=t,e}function wre(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var B6e=pt({"src/compiler/factory/emitNode.ts"(){"use strict";wo()}});function Wre(e){let t=e.factory,r=Kd(()=>m2(t.createTrue(),8)),i=Kd(()=>m2(t.createFalse(),8));return{getUnscopedHelperName:o,createDecorateHelper:s,createMetadataHelper:l,createParamHelper:d,createESDecorateHelper:C,createRunInitializersHelper:R,createAssignHelper:L,createAwaitHelper:G,createAsyncGeneratorHelper:U,createAsyncDelegatorHelper:K,createAsyncValuesHelper:F,createRestHelper:oe,createAwaiterHelper:W,createExtendsHelper:$,createTemplateObjectHelper:de,createSpreadArrayHelper:fe,createPropKeyHelper:q,createSetFunctionNameHelper:H,createValuesHelper:ee,createReadHelper:le,createGeneratorHelper:Ee,createCreateBindingHelper:ce,createImportStarHelper:Z,createImportStarCallbackHelper:pe,createImportDefaultHelper:Ae,createExportStarHelper:Oe,createClassPrivateFieldGetHelper:_e,createClassPrivateFieldSetHelper:be,createClassPrivateFieldInHelper:Te,createAddDisposableResourceHelper:De,createDisposeResourcesHelper:ft};function o(he){return $n(t.createIdentifier(he),8196)}function s(he,Le,Ke,Dt){e.requestEmitHelper(wF);let st=[];return st.push(t.createArrayLiteralExpression(he,!0)),st.push(Le),Ke&&(st.push(Ke),Dt&&st.push(Dt)),t.createCallExpression(o("__decorate"),void 0,st)}function l(he,Le){return e.requestEmitHelper(WF),t.createCallExpression(o("__metadata"),void 0,[t.createStringLiteral(he),Le])}function d(he,Le,Ke){return e.requestEmitHelper(FF),Ze(t.createCallExpression(o("__param"),void 0,[t.createNumericLiteral(Le+""),he]),Ke)}function p(he){let Le=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),he.name),t.createPropertyAssignment(t.createIdentifier("metadata"),he.metadata)];return t.createObjectLiteralExpression(Le)}function h(he){let Le=he.computed?t.createElementAccessExpression(t.createIdentifier("obj"),he.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),he.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Le))}function m(he){let Le=he.computed?t.createElementAccessExpression(t.createIdentifier("obj"),he.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),he.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(Le,t.createIdentifier("value")))])))}function v(he){let Le=he.computed?he.name:Me(he.name)?t.createStringLiteralFromNode(he.name):he.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(Le,103,t.createIdentifier("obj"))))}function E(he,Le){let Ke=[];return Ke.push(v(he)),Le.get&&Ke.push(h(he)),Le.set&&Ke.push(m(he)),t.createObjectLiteralExpression(Ke)}function S(he){let Le=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(he.kind)),t.createPropertyAssignment(t.createIdentifier("name"),he.name.computed?he.name.name:t.createStringLiteralFromNode(he.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),he.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),he.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),E(he.name,he.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),he.metadata)];return t.createObjectLiteralExpression(Le)}function A(he){return he.kind==="class"?p(he):S(he)}function C(he,Le,Ke,Dt,st,Ge){return e.requestEmitHelper(zF),t.createCallExpression(o("__esDecorate"),void 0,[he??t.createNull(),Le??t.createNull(),Ke,A(Dt),st,Ge])}function R(he,Le,Ke){return e.requestEmitHelper(BF),t.createCallExpression(o("__runInitializers"),void 0,Ke?[he,Le,Ke]:[he,Le])}function L(he){return Wa(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,he):(e.requestEmitHelper(GF),t.createCallExpression(o("__assign"),void 0,he))}function G(he){return e.requestEmitHelper(QA),t.createCallExpression(o("__await"),void 0,[he])}function U(he,Le){return e.requestEmitHelper(QA),e.requestEmitHelper(VF),(he.emitNode||(he.emitNode={})).flags|=1572864,t.createCallExpression(o("__asyncGenerator"),void 0,[Le?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),he])}function K(he){return e.requestEmitHelper(QA),e.requestEmitHelper(jF),t.createCallExpression(o("__asyncDelegator"),void 0,[he])}function F(he){return e.requestEmitHelper(UF),t.createCallExpression(o("__asyncValues"),void 0,[he])}function oe(he,Le,Ke,Dt){e.requestEmitHelper(HF);let st=[],Ge=0;for(let ot=0;ot<Le.length-1;ot++){let Vt=Gj(Le[ot]);if(Vt)if(Pa(Vt)){x.assertIsDefined(Ke,"Encountered computed property name but 'computedTempVariables' argument was not provided.");let jt=Ke[Ge];Ge++,st.push(t.createConditionalExpression(t.createTypeCheck(jt,"symbol"),void 0,jt,void 0,t.createAdd(jt,t.createStringLiteral(""))))}else st.push(t.createStringLiteralFromNode(Vt))}return t.createCallExpression(o("__rest"),void 0,[he,Ze(t.createArrayLiteralExpression(st),Dt)])}function W(he,Le,Ke,Dt,st){e.requestEmitHelper(qF);let Ge=t.createFunctionExpression(void 0,t.createToken(42),void 0,void 0,Dt??[],void 0,st);return(Ge.emitNode||(Ge.emitNode={})).flags|=1572864,t.createCallExpression(o("__awaiter"),void 0,[he?t.createThis():t.createVoidZero(),Le??t.createVoidZero(),Ke?P2(t,Ke):t.createVoidZero(),Ge])}function $(he){return e.requestEmitHelper(JF),t.createCallExpression(o("__extends"),void 0,[he,t.createUniqueName("_super",48)])}function de(he,Le){return e.requestEmitHelper(KF),t.createCallExpression(o("__makeTemplateObject"),void 0,[he,Le])}function fe(he,Le,Ke){return e.requestEmitHelper(YF),t.createCallExpression(o("__spreadArray"),void 0,[he,Le,Ke?r():i()])}function q(he){return e.requestEmitHelper($F),t.createCallExpression(o("__propKey"),void 0,[he])}function H(he,Le,Ke){return e.requestEmitHelper(QF),e.factory.createCallExpression(o("__setFunctionName"),void 0,Ke?[he,Le,e.factory.createStringLiteral(Ke)]:[he,Le])}function ee(he){return e.requestEmitHelper(ZF),t.createCallExpression(o("__values"),void 0,[he])}function le(he,Le){return e.requestEmitHelper(XF),t.createCallExpression(o("__read"),void 0,Le!==void 0?[he,t.createNumericLiteral(Le+"")]:[he])}function Ee(he){return e.requestEmitHelper(e6),t.createCallExpression(o("__generator"),void 0,[t.createThis(),he])}function ce(he,Le,Ke){return e.requestEmitHelper(Lx),t.createCallExpression(o("__createBinding"),void 0,[t.createIdentifier("exports"),he,Le,...Ke?[Ke]:[]])}function Z(he){return e.requestEmitHelper(g2),t.createCallExpression(o("__importStar"),void 0,[he])}function pe(){return e.requestEmitHelper(g2),o("__importStar")}function Ae(he){return e.requestEmitHelper(n6),t.createCallExpression(o("__importDefault"),void 0,[he])}function Oe(he,Le=t.createIdentifier("exports")){return e.requestEmitHelper(r6),e.requestEmitHelper(Lx),t.createCallExpression(o("__exportStar"),void 0,[he,Le])}function _e(he,Le,Ke,Dt){e.requestEmitHelper(i6);let st;return Dt?st=[he,Le,t.createStringLiteral(Ke),Dt]:st=[he,Le,t.createStringLiteral(Ke)],t.createCallExpression(o("__classPrivateFieldGet"),void 0,st)}function be(he,Le,Ke,Dt,st){e.requestEmitHelper(o6);let Ge;return st?Ge=[he,Le,Ke,t.createStringLiteral(Dt),st]:Ge=[he,Le,Ke,t.createStringLiteral(Dt)],t.createCallExpression(o("__classPrivateFieldSet"),void 0,Ge)}function Te(he,Le){return e.requestEmitHelper(a6),t.createCallExpression(o("__classPrivateFieldIn"),void 0,[he,Le])}function De(he,Le,Ke){return e.requestEmitHelper(s6),t.createCallExpression(o("__addDisposableResource"),void 0,[he,Le,Ke?t.createTrue():t.createFalse()])}function ft(he){return e.requestEmitHelper(l6),t.createCallExpression(o("__disposeResources"),void 0,[he])}}function Fre(e,t){return e===t||e.priority===t.priority?0:e.priority===void 0?1:t.priority===void 0?-1:Ms(e.priority,t.priority)}function pj(e,...t){return r=>{let i="";for(let o=0;o<t.length;o++)i+=e[o],i+=r(t[o]);return i+=e[e.length-1],i}}function fj(){return Vbe||(Vbe=PE([wF,WF,FF,zF,BF,GF,QA,VF,jF,UF,HF,qF,JF,KF,YF,ZF,XF,$F,QF,e6,g2,n6,r6,i6,o6,a6,Lx,t6,s6,l6],e=>e.name))}function oN(e,t){return Bo(e)&&Me(e.expression)&&(ya(e.expression)&8192)!==0&&e.expression.escapedText===t}var mj,wF,WF,FF,zF,BF,GF,QA,VF,jF,UF,HF,qF,JF,KF,XF,YF,$F,QF,ZF,e6,Lx,t6,g2,n6,r6,i6,o6,a6,s6,l6,Vbe,v2,y2,G6e=pt({"src/compiler/factory/emitHelpers.ts"(){"use strict";wo(),mj=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(mj||{}),wF={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:`
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};`},WF={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:`
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};`},FF={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:`
var __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};`},zF={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:`
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
var _, done = false;
for (var i = decorators.length - 1; i >= 0; i--) {
var context = {};
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
if (kind === "accessor") {
if (result === void 0) continue;
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
if (_ = accept(result.get)) descriptor.get = _;
if (_ = accept(result.set)) descriptor.set = _;
if (_ = accept(result.init)) initializers.unshift(_);
}
else if (_ = accept(result)) {
if (kind === "field") initializers.unshift(_);
else descriptor[key] = _;
}
}
if (target) Object.defineProperty(target, contextIn.name, descriptor);
done = true;
};`},BF={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:`
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
var useValue = arguments.length > 2;
for (var i = 0; i < initializers.length; i++) {
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
}
return useValue ? value : void 0;
};`},GF={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:`
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};`},QA={name:"typescript:await",importName:"__await",scoped:!1,text:`
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},VF={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[QA],text:`
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
};`},jF={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[QA],text:`
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
};`},UF={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:`
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};`},HF={name:"typescript:rest",importName:"__rest",scoped:!1,text:`
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};`},qF={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:`
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};`},JF={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:`
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();`},KF={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:`
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};`},XF={name:"typescript:read",importName:"__read",scoped:!1,text:`
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};`},YF={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:`
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
if (ar || !(i in from)) {
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
ar[i] = from[i];
}
}
return to.concat(ar || Array.prototype.slice.call(from));
};`},$F={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:`
var __propKey = (this && this.__propKey) || function (x) {
return typeof x === "symbol" ? x : "".concat(x);
};`},QF={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:`
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
};`},ZF={name:"typescript:values",importName:"__values",scoped:!1,text:`
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};`},e6={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:`
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f) throw new TypeError("Generator is already executing.");
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
if (y = 0, t) op = [op[0] & 2, t.value];
switch (op[0]) {
case 0: case 1: t = op; break;
case 4: _.label++; return { value: op[1], done: false };
case 5: _.label++; y = op[1]; op = [0]; continue;
case 7: op = _.ops.pop(); _.trys.pop(); continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
if (t[2]) _.ops.pop();
_.trys.pop(); continue;
}
op = body.call(thisArg, _);
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
}
};`},Lx={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:`
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));`},t6={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:`
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});`},g2={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[Lx,t6],priority:2,text:`
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};`},n6={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:`
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};`},r6={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[Lx],priority:2,text:`
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};`},i6={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:`
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
};`},o6={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:`
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
if (kind === "m") throw new TypeError("Private method is not writable");
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
};`},a6={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:`
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
return typeof state === "function" ? receiver === state : state.has(receiver);
};`},s6={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:`
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
if (value !== null && value !== void 0) {
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
var dispose;
if (async) {
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
dispose = value[Symbol.asyncDispose];
}
if (dispose === void 0) {
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
dispose = value[Symbol.dispose];
}
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
env.stack.push({ value: value, dispose: dispose, async: async });
}
else if (async) {
env.stack.push({ async: true });
}
return value;
};`},l6={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:`
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
return function (env) {
function fail(e) {
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
env.hasError = true;
}
function next() {
while (env.stack.length) {
var rec = env.stack.pop();
try {
var result = rec.dispose && rec.dispose.call(rec.value);
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
}
catch (e) {
fail(e);
}
}
if (env.hasError) throw env.error;
}
return next();
};
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
var e = new Error(message);
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
});`},v2={name:"typescript:async-super",scoped:!0,text:pj`
const ${"_superIndex"} = name => super[name];`},y2={name:"typescript:advanced-async-super",scoped:!0,text:pj`
const ${"_superIndex"} = (function (geti, seti) {
const cache = Object.create(null);
return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
})(name => super[name], (name, value) => super[name] = value);`}}});function Bu(e){return e.kind===9}function c6(e){return e.kind===10}function ca(e){return e.kind===11}function ZA(e){return e.kind===12}function _j(e){return e.kind===14}function eI(e){return e.kind===15}function tI(e){return e.kind===16}function hj(e){return e.kind===17}function d6(e){return e.kind===18}function u6(e){return e.kind===26}function zre(e){return e.kind===28}function gj(e){return e.kind===40}function vj(e){return e.kind===41}function b2(e){return e.kind===42}function E2(e){return e.kind===54}function cy(e){return e.kind===58}function Bre(e){return e.kind===59}function p6(e){return e.kind===29}function Gre(e){return e.kind===39}function Me(e){return e.kind===80}function Ci(e){return e.kind===81}function nI(e){return e.kind===95}function f6(e){return e.kind===90}function aN(e){return e.kind===134}function Vre(e){return e.kind===131}function yj(e){return e.kind===135}function jre(e){return e.kind===148}function rI(e){return e.kind===126}function Ure(e){return e.kind===128}function Hre(e){return e.kind===164}function qre(e){return e.kind===129}function sN(e){return e.kind===108}function lN(e){return e.kind===102}function Jre(e){return e.kind===84}function $d(e){return e.kind===166}function Pa(e){return e.kind===167}function qs(e){return e.kind===168}function ao(e){return e.kind===169}function Xc(e){return e.kind===170}function Gu(e){return e.kind===171}function xo(e){return e.kind===172}function z_(e){return e.kind===173}function El(e){return e.kind===174}function nl(e){return e.kind===175}function ll(e){return e.kind===176}function Ap(e){return e.kind===177}function Vu(e){return e.kind===178}function iI(e){return e.kind===179}function S2(e){return e.kind===180}function r0(e){return e.kind===181}function T2(e){return e.kind===182}function Yp(e){return e.kind===183}function B_(e){return e.kind===184}function kx(e){return e.kind===185}function oI(e){return e.kind===186}function ju(e){return e.kind===187}function A2(e){return e.kind===188}function aI(e){return e.kind===189}function Ox(e){return e.kind===202}function m6(e){return e.kind===190}function _6(e){return e.kind===191}function dy(e){return e.kind===192}function sI(e){return e.kind===193}function lI(e){return e.kind===194}function GS(e){return e.kind===195}function VS(e){return e.kind===196}function I2(e){return e.kind===197}function jS(e){return e.kind===198}function US(e){return e.kind===199}function wx(e){return e.kind===200}function uy(e){return e.kind===201}function Dh(e){return e.kind===205}function bj(e){return e.kind===204}function Kre(e){return e.kind===203}function Rf(e){return e.kind===206}function i0(e){return e.kind===207}function Na(e){return e.kind===208}function Bd(e){return e.kind===209}function fa(e){return e.kind===210}function Er(e){return e.kind===211}function Rs(e){return e.kind===212}function Bo(e){return e.kind===213}function o0(e){return e.kind===214}function a0(e){return e.kind===215}function Xre(e){return e.kind===216}function uu(e){return e.kind===217}function us(e){return e.kind===218}function hs(e){return e.kind===219}function Yre(e){return e.kind===220}function Wx(e){return e.kind===221}function cI(e){return e.kind===222}function py(e){return e.kind===223}function fy(e){return e.kind===224}function Ej(e){return e.kind===225}function Zn(e){return e.kind===226}function Fx(e){return e.kind===227}function h6(e){return e.kind===228}function g6(e){return e.kind===229}function bm(e){return e.kind===230}function Dc(e){return e.kind===231}function vc(e){return e.kind===232}function sv(e){return e.kind===233}function x2(e){return e.kind===234}function Sj(e){return e.kind===238}function dI(e){return e.kind===235}function cN(e){return e.kind===236}function jbe(e){return e.kind===237}function v6(e){return e.kind===360}function dN(e){return e.kind===361}function uN(e){return e.kind===239}function $re(e){return e.kind===240}function Do(e){return e.kind===241}function cl(e){return e.kind===243}function Tj(e){return e.kind===242}function Cc(e){return e.kind===244}function HS(e){return e.kind===245}function Ube(e){return e.kind===246}function Hbe(e){return e.kind===247}function qS(e){return e.kind===248}function y6(e){return e.kind===249}function R2(e){return e.kind===250}function qbe(e){return e.kind===251}function Jbe(e){return e.kind===252}function Kf(e){return e.kind===253}function Qre(e){return e.kind===254}function pN(e){return e.kind===255}function s0(e){return e.kind===256}function Aj(e){return e.kind===257}function JS(e){return e.kind===258}function Kbe(e){return e.kind===259}function yi(e){return e.kind===260}function yc(e){return e.kind===261}function Ql(e){return e.kind===262}function Zl(e){return e.kind===263}function Gd(e){return e.kind===264}function Xf(e){return e.kind===265}function kb(e){return e.kind===266}function Il(e){return e.kind===267}function t_(e){return e.kind===268}function fN(e){return e.kind===269}function D2(e){return e.kind===270}function Nc(e){return e.kind===271}function cc(e){return e.kind===272}function G_(e){return e.kind===273}function Xbe(e){return e.kind===302}function Zre(e){return e.kind===300}function Ybe(e){return e.kind===301}function uI(e){return e.kind===300}function eie(e){return e.kind===301}function my(e){return e.kind===274}function V_(e){return e.kind===280}function sg(e){return e.kind===275}function Iu(e){return e.kind===276}function dl(e){return e.kind===277}function xl(e){return e.kind===278}function $p(e){return e.kind===279}function Ed(e){return e.kind===281}function $be(e){return e.kind===282}function Ij(e){return e.kind===359}function pI(e){return e.kind===362}function j_(e){return e.kind===283}function Ch(e){return e.kind===284}function KS(e){return e.kind===285}function n_(e){return e.kind===286}function l0(e){return e.kind===287}function c0(e){return e.kind===288}function fI(e){return e.kind===289}function tie(e){return e.kind===290}function r_(e){return e.kind===291}function d0(e){return e.kind===292}function mI(e){return e.kind===293}function mN(e){return e.kind===294}function Em(e){return e.kind===295}function zx(e){return e.kind===296}function _N(e){return e.kind===297}function Ip(e){return e.kind===298}function u0(e){return e.kind===299}function Hl(e){return e.kind===303}function xu(e){return e.kind===304}function lv(e){return e.kind===305}function p0(e){return e.kind===306}function nie(e){return e.kind===308}function Li(e){return e.kind===312}function xj(e){return e.kind===313}function XS(e){return e.kind===314}function f0(e){return e.kind===316}function hN(e){return e.kind===317}function Ob(e){return e.kind===318}function rie(e){return e.kind===331}function iie(e){return e.kind===332}function Qbe(e){return e.kind===333}function oie(e){return e.kind===319}function aie(e){return e.kind===320}function Bx(e){return e.kind===321}function b6(e){return e.kind===322}function Rj(e){return e.kind===323}function Gx(e){return e.kind===324}function E6(e){return e.kind===325}function Zbe(e){return e.kind===326}function Sm(e){return e.kind===327}function YS(e){return e.kind===329}function wb(e){return e.kind===330}function _I(e){return e.kind===335}function eEe(e){return e.kind===337}function sie(e){return e.kind===339}function Dj(e){return e.kind===345}function Cj(e){return e.kind===340}function Nj(e){return e.kind===341}function Pj(e){return e.kind===342}function Mj(e){return e.kind===343}function S6(e){return e.kind===344}function Vx(e){return e.kind===346}function Lj(e){return e.kind===338}function tEe(e){return e.kind===354}function C2(e){return e.kind===347}function Tm(e){return e.kind===348}function T6(e){return e.kind===349}function kj(e){return e.kind===350}function gN(e){return e.kind===351}function Df(e){return e.kind===352}function $S(e){return e.kind===353}function nEe(e){return e.kind===334}function lie(e){return e.kind===355}function A6(e){return e.kind===336}function I6(e){return e.kind===357}function rEe(e){return e.kind===356}function jx(e){return e.kind===358}var V6e=pt({"src/compiler/factory/nodeTests.ts"(){"use strict";wo()}});function N2(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function QS(e,t,r,i){if(Pa(r))return Ze(e.createElementAccessExpression(t,r.expression),i);{let o=Ze(hh(r)?e.createPropertyAccessExpression(t,r):e.createElementAccessExpression(t,r),r);return Zm(o,128),o}}function cie(e,t){let r=U_.createIdentifier(e||"React");return Ta(r,uo(t)),r}function die(e,t,r){if($d(t)){let i=die(e,t.left,r),o=e.createIdentifier(ar(t.right));return o.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,o)}else return cie(ar(t),r)}function Oj(e,t,r,i){return t?die(e,t,i):e.createPropertyAccessExpression(cie(r,i),"createElement")}function j6e(e,t,r,i){return t?die(e,t,i):e.createPropertyAccessExpression(cie(r,i),"Fragment")}function uie(e,t,r,i,o,s){let l=[r];if(i&&l.push(i),o&&o.length>0)if(i||l.push(e.createNull()),o.length>1)for(let d of o)Sd(d),l.push(d);else l.push(o[0]);return Ze(e.createCallExpression(t,void 0,l),s)}function pie(e,t,r,i,o,s,l){let p=[j6e(e,r,i,s),e.createNull()];if(o&&o.length>0)if(o.length>1)for(let h of o)Sd(h),p.push(h);else p.push(o[0]);return Ze(e.createCallExpression(Oj(e,t,i,s),void 0,p),l)}function wj(e,t,r){if(yc(t)){let i=Sa(t.declarations),o=e.updateVariableDeclaration(i,i.name,void 0,void 0,r);return Ze(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[o])),t)}else{let i=Ze(e.createAssignment(t,r),t);return Ze(e.createExpressionStatement(i),t)}}function iEe(e,t,r){return Do(t)?e.updateBlock(t,Ze(e.createNodeArray([r,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,r]),!0)}function P2(e,t){if($d(t)){let r=P2(e,t.left),i=Ta(Ze(e.cloneNode(t.right),t.right),t.right.parent);return Ze(e.createPropertyAccessExpression(r,i),t)}else return Ta(Ze(e.cloneNode(t),t),t.parent)}function Wj(e,t){return Me(t)?e.createStringLiteralFromNode(t):Pa(t)?Ta(Ze(e.cloneNode(t.expression),t.expression),t.expression.parent):Ta(Ze(e.cloneNode(t),t),t.parent)}function U6e(e,t,r,i,o){let{firstAccessor:s,getAccessor:l,setAccessor:d}=wS(t,r);if(r===s)return Ze(e.createObjectDefinePropertyCall(i,Wj(e,r.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:l&&Ze(mr(e.createFunctionExpression(kE(l),void 0,void 0,void 0,l.parameters,void 0,l.body),l),l),set:d&&Ze(mr(e.createFunctionExpression(kE(d),void 0,void 0,void 0,d.parameters,void 0,d.body),d),d)},!o)),s)}function H6e(e,t,r){return mr(Ze(e.createAssignment(QS(e,r,t.name,t.name),t.initializer),t),t)}function q6e(e,t,r){return mr(Ze(e.createAssignment(QS(e,r,t.name,t.name),e.cloneNode(t.name)),t),t)}function J6e(e,t,r){return mr(Ze(e.createAssignment(QS(e,r,t.name,t.name),mr(Ze(e.createFunctionExpression(kE(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function fie(e,t,r,i){switch(r.name&&Ci(r.name)&&x.failBadSyntaxKind(r.name,"Private identifiers are not allowed in object literals."),r.kind){case 177:case 178:return U6e(e,t.properties,r,i,!!t.multiLine);case 303:return H6e(e,r,i);case 304:return q6e(e,r,i);case 174:return J6e(e,r,i)}}function x6(e,t,r,i,o){let s=t.operator;x.assert(s===46||s===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let l=e.createTempVariable(i);r=e.createAssignment(l,r),Ze(r,t.operand);let d=fy(t)?e.createPrefixUnaryExpression(s,l):e.createPostfixUnaryExpression(l,s);return Ze(d,t),o&&(d=e.createAssignment(o,d),Ze(d,t)),r=e.createComma(r,d),Ze(r,t),Ej(t)&&(r=e.createComma(r,l),Ze(r,t)),r}function Fj(e){return(ya(e)&65536)!==0}function lg(e){return(ya(e)&32768)!==0}function R6(e){return(ya(e)&16384)!==0}function oEe(e){return ca(e.expression)&&e.expression.text==="use strict"}function zj(e){for(let t of e)if(Hf(t)){if(oEe(t))return t}else break}function mie(e){let t=Ac(e);return t!==void 0&&Hf(t)&&oEe(t)}function M2(e){return e.kind===226&&e.operatorToken.kind===28}function vN(e){return M2(e)||dN(e)}function Ux(e){return uu(e)&&Jn(e)&&!!yb(e)}function D6(e){let t=bb(e);return x.assertIsDefined(t),t}function C6(e,t=15){switch(e.kind){case 217:return t&16&&Ux(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function Rl(e,t=15){for(;C6(e,t);)e=e.expression;return e}function _ie(e,t=15){let r=e.parent;for(;C6(r,t);)r=r.parent,x.assert(r);return r}function aEe(e){return Rl(e,6)}function Sd(e){return LF(e,!0)}function L2(e){let t=sl(e,Li),r=t&&t.emitNode;return r&&r.externalHelpersModuleName}function hie(e){let t=sl(e,Li),r=t&&t.emitNode;return!!r&&(!!r.externalHelpersModuleName||!!r.externalHelpers)}function Bj(e,t,r,i,o,s,l){if(i.importHelpers&&MA(r,i)){let d,p=ld(i);if(p>=5&&p<=99||r.impliedNodeFormat===99){let h=OF(r);if(h){let m=[];for(let v of h)if(!v.scoped){let E=v.importName;E&&jp(m,E)}if(ct(m)){m.sort(gd),d=e.createNamedImports(nn(m,S=>tW(r,S)?e.createImportSpecifier(!1,void 0,e.createIdentifier(S)):e.createImportSpecifier(!1,e.createIdentifier(S),t.getUnscopedHelperName(S))));let v=sl(r,Li),E=cd(v);E.externalHelpers=!0}}}else{let h=gie(e,r,i,o,s||l);h&&(d=e.createNamespaceImport(h))}if(d){let h=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,d),e.createStringLiteral(ay),void 0);return XA(h,2),h}}}function gie(e,t,r,i,o){if(r.importHelpers&&MA(t,r)){let s=L2(t);if(s)return s;let l=ld(r),d=(i||F_(r)&&o)&&l!==4&&(l<5||t.impliedNodeFormat===1);if(!d){let p=OF(t);if(p){for(let h of p)if(!h.scoped){d=!0;break}}}if(d){let p=sl(t,Li),h=cd(p);return h.externalHelpersModuleName||(h.externalHelpersModuleName=e.createUniqueName(ay))}}}function Hx(e,t,r){let i=cx(t);if(i&&!kA(t)&&!rW(t)){let o=i.name;return ws(o)?o:e.createIdentifier(FE(r,o)||ar(o))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function hI(e,t,r,i,o,s){let l=lx(t);if(l&&ca(l))return X6e(t,i,e,o,s)||K6e(e,l,r)||e.cloneNode(l)}function K6e(e,t,r){let i=r.renamedDependencies&&r.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function k2(e,t,r,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&ss(i))return e.createStringLiteral(rV(r,t.fileName))}}function X6e(e,t,r,i,o){return k2(r,i.getExternalModuleFileFromDeclaration(e),t,o)}function O2(e){if(qM(e))return e.initializer;if(Hl(e)){let t=e.initializer;return lc(t,!0)?t.right:void 0}if(xu(e))return e.objectAssignmentInitializer;if(lc(e,!0))return e.right;if(bm(e))return O2(e.expression)}function _y(e){if(qM(e))return e.name;if(Zh(e)){switch(e.kind){case 303:return _y(e.initializer);case 304:return e.name;case 305:return _y(e.expression)}return}return lc(e,!0)?_y(e.left):bm(e)?_y(e.expression):e}function N6(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function Gj(e){let t=P6(e);return x.assert(!!t||lv(e),"Invalid property name for binding element."),t}function P6(e){switch(e.kind){case 208:if(e.propertyName){let r=e.propertyName;return Ci(r)?x.failBadSyntaxKind(r):Pa(r)&&sEe(r.expression)?r.expression:r}break;case 303:if(e.name){let r=e.name;return Ci(r)?x.failBadSyntaxKind(r):Pa(r)&&sEe(r.expression)?r.expression:r}break;case 305:return e.name&&Ci(e.name)?x.failBadSyntaxKind(e.name):e.name}let t=_y(e);if(t&&kl(t))return t}function sEe(e){let t=e.kind;return t===11||t===9}function qx(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function Vj(e){if(e){let t=e;for(;;){if(Me(t)||!t.body)return Me(t)?t:t.name;t=t.body}}}function lEe(e){let t=e.kind;return t===176||t===178}function vie(e){let t=e.kind;return t===176||t===177||t===178}function jj(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function yie(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function bie(e){return cy(e)||E2(e)}function Eie(e){return Me(e)||I2(e)}function Sie(e){return jre(e)||gj(e)||vj(e)}function Tie(e){return cy(e)||gj(e)||vj(e)}function Aie(e){return Me(e)||ca(e)}function cEe(e){let t=e.kind;return t===106||t===112||t===97||wE(e)||fy(e)}function Y6e(e){return e===43}function $6e(e){return e===42||e===44||e===45}function Q6e(e){return Y6e(e)||$6e(e)}function Z6e(e){return e===40||e===41}function e4e(e){return Z6e(e)||Q6e(e)}function t4e(e){return e===48||e===49||e===50}function Uj(e){return t4e(e)||e4e(e)}function n4e(e){return e===30||e===33||e===32||e===34||e===104||e===103}function r4e(e){return n4e(e)||Uj(e)}function i4e(e){return e===35||e===37||e===36||e===38}function o4e(e){return i4e(e)||r4e(e)}function a4e(e){return e===51||e===52||e===53}function s4e(e){return a4e(e)||o4e(e)}function l4e(e){return e===56||e===57}function c4e(e){return l4e(e)||s4e(e)}function d4e(e){return e===61||c4e(e)||tv(e)}function u4e(e){return d4e(e)||e===28}function Iie(e){return u4e(e.kind)}function M6(e,t,r,i,o,s){let l=new pEe(e,t,r,i,o,s);return d;function d(p,h){let m={value:void 0},v=[qj.enter],E=[p],S=[void 0],A=0;for(;v[A]!==qj.done;)A=v[A](l,A,v,E,S,m,h);return x.assertEqual(A,0),m.value}}function dEe(e){return e===95||e===90}function w2(e){let t=e.kind;return dEe(t)}function uEe(e){let t=e.kind;return Yg(t)&&!dEe(t)}function xie(e,t){if(t!==void 0)return t.length===0?t:Ze(e.createNodeArray([],t.hasTrailingComma),t)}function W2(e){var t;let r=e.emitNode.autoGenerate;if(r.flags&4){let i=r.id,o=e,s=o.original;for(;s;){o=s;let l=(t=o.emitNode)==null?void 0:t.autoGenerate;if(hh(o)&&(l===void 0||l.flags&4&&l.id!==i))break;s=o.original}return o}return e}function Jx(e,t){return typeof e=="object"?Wb(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function p4e(e,t){return typeof e=="string"?e:f4e(e,x.checkDefined(t))}function f4e(e,t){return vS(e)?t(e).slice(1):ws(e)?t(e):Ci(e)?e.escapedText.slice(1):ar(e)}function Wb(e,t,r,i,o){return t=Jx(t,o),i=Jx(i,o),r=p4e(r,o),`${e?"#":""}${t}${r}${i}`}function Hj(e,t,r,i){return e.updatePropertyDeclaration(t,r,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function Rie(e,t,r,i,o=e.createThis()){return e.createGetAccessorDeclaration(r,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function Die(e,t,r,i,o=e.createThis()){return e.createSetAccessorDeclaration(r,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(o,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function L6(e){let t=e.expression;for(;;){if(t=Rl(t),dN(t)){t=Da(t.elements);continue}if(M2(t)){t=t.right;continue}if(lc(t,!0)&&ws(t.left))return t;break}}function m4e(e){return uu(e)&&xs(e)&&!e.emitNode}function k6(e,t){if(m4e(e))k6(e.expression,t);else if(M2(e))k6(e.left,t),k6(e.right,t);else if(dN(e))for(let r of e.elements)k6(r,t);else t.push(e)}function Cie(e){let t=[];return k6(e,t),t}function F2(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of qx(e)){let r=_y(t);if(r&&lC(r)&&(r.transformFlags&65536||r.transformFlags&128&&F2(r)))return!0}return!1}var qj,pEe,_4e=pt({"src/compiler/factory/utilities.ts"(){"use strict";wo(),(e=>{function t(m,v,E,S,A,C,R){let L=v>0?A[v-1]:void 0;return x.assertEqual(E[v],t),A[v]=m.onEnter(S[v],L,R),E[v]=d(m,t),v}e.enter=t;function r(m,v,E,S,A,C,R){x.assertEqual(E[v],r),x.assertIsDefined(m.onLeft),E[v]=d(m,r);let L=m.onLeft(S[v].left,A[v],S[v]);return L?(h(v,S,L),p(v,E,S,A,L)):v}e.left=r;function i(m,v,E,S,A,C,R){return x.assertEqual(E[v],i),x.assertIsDefined(m.onOperator),E[v]=d(m,i),m.onOperator(S[v].operatorToken,A[v],S[v]),v}e.operator=i;function o(m,v,E,S,A,C,R){x.assertEqual(E[v],o),x.assertIsDefined(m.onRight),E[v]=d(m,o);let L=m.onRight(S[v].right,A[v],S[v]);return L?(h(v,S,L),p(v,E,S,A,L)):v}e.right=o;function s(m,v,E,S,A,C,R){x.assertEqual(E[v],s),E[v]=d(m,s);let L=m.onExit(S[v],A[v]);if(v>0){if(v--,m.foldState){let G=E[v]===s?"right":"left";A[v]=m.foldState(A[v],L,G)}}else C.value=L;return v}e.exit=s;function l(m,v,E,S,A,C,R){return x.assertEqual(E[v],l),v}e.done=l;function d(m,v){switch(v){case t:if(m.onLeft)return r;case r:if(m.onOperator)return i;case i:if(m.onRight)return o;case o:return s;case s:return l;case l:return l;default:x.fail("Invalid state")}}e.nextState=d;function p(m,v,E,S,A){return m++,v[m]=t,E[m]=A,S[m]=void 0,m}function h(m,v,E){if(x.shouldAssert(2))for(;m>=0;)x.assert(v[m]!==E,"Circular traversal detected."),m--}})(qj||(qj={})),pEe=class{constructor(e,t,r,i,o,s){this.onEnter=e,this.onLeft=t,this.onOperator=r,this.onRight=i,this.onExit=o,this.foldState=s}}}});function Ze(e,t){return t?W_(e,t.pos,t.end):e}function Yf(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function ZS(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var h4e=pt({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";wo()}});function wt(e,t){return t&&e(t)}function Ti(e,t,r){if(r){if(t)return t(r);for(let i of r){let o=e(i);if(o)return o}}}function Jj(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function z2(e){return an(e.statements,g4e)||v4e(e)}function g4e(e){return Yf(e)&&y4e(e,95)||Nc(e)&&j_(e.moduleReference)||cc(e)||dl(e)||xl(e)?e:void 0}function v4e(e){return e.flags&8388608?fEe(e):void 0}function fEe(e){return b4e(e)?e:Ao(e,fEe)}function y4e(e,t){return ct(e.modifiers,r=>r.kind===t)}function b4e(e){return cN(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function mEe(e,t,r){return Ti(t,r,e.typeParameters)||Ti(t,r,e.parameters)||wt(t,e.type)}function _Ee(e,t,r){return Ti(t,r,e.types)}function hEe(e,t,r){return wt(t,e.type)}function gEe(e,t,r){return Ti(t,r,e.elements)}function vEe(e,t,r){return wt(t,e.expression)||wt(t,e.questionDotToken)||Ti(t,r,e.typeArguments)||Ti(t,r,e.arguments)}function yEe(e,t,r){return Ti(t,r,e.statements)}function bEe(e,t,r){return wt(t,e.label)}function EEe(e,t,r){return Ti(t,r,e.modifiers)||wt(t,e.name)||Ti(t,r,e.typeParameters)||Ti(t,r,e.heritageClauses)||Ti(t,r,e.members)}function SEe(e,t,r){return Ti(t,r,e.elements)}function TEe(e,t,r){return wt(t,e.propertyName)||wt(t,e.name)}function AEe(e,t,r){return wt(t,e.tagName)||Ti(t,r,e.typeArguments)||wt(t,e.attributes)}function yN(e,t,r){return wt(t,e.type)}function IEe(e,t,r){return wt(t,e.tagName)||(e.isNameFirst?wt(t,e.name)||wt(t,e.typeExpression):wt(t,e.typeExpression)||wt(t,e.name))||(typeof e.comment=="string"?void 0:Ti(t,r,e.comment))}function bN(e,t,r){return wt(t,e.tagName)||wt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Ti(t,r,e.comment))}function Nie(e,t,r){return wt(t,e.name)}function Kx(e,t,r){return wt(t,e.tagName)||(typeof e.comment=="string"?void 0:Ti(t,r,e.comment))}function E4e(e,t,r){return wt(t,e.expression)}function Ao(e,t,r){if(e===void 0||e.kind<=165)return;let i=OEe[e.kind];return i===void 0?void 0:i(e,t,r)}function EN(e,t,r){let i=xEe(e),o=[];for(;o.length<i.length;)o.push(e);for(;i.length!==0;){let s=i.pop(),l=o.pop();if(oo(s)){if(r){let d=r(s,l);if(d){if(d==="skip")continue;return d}}for(let d=s.length-1;d>=0;--d)i.push(s[d]),o.push(l)}else{let d=t(s,l);if(d){if(d==="skip")continue;return d}if(s.kind>=166)for(let p of xEe(s))i.push(p),o.push(s)}}}function xEe(e){let t=[];return Ao(e,r,r),t;function r(i){t.unshift(i)}}function REe(e){e.externalModuleIndicator=z2(e)}function B2(e,t,r,i=!1,o){var s,l,d,p;(s=qn)==null||s.push(qn.Phase.Parse,"createSourceFile",{path:e},!0),Ls("beforeParse");let h;(l=Pd)==null||l.logStartParseSourceFile(e);let{languageVersion:m,setExternalModuleIndicator:v,impliedNodeFormat:E,jsDocParsingMode:S}=typeof r=="object"?r:{languageVersion:r};if(m===100)h=zb.parseSourceFile(e,t,m,void 0,i,6,Ca,S);else{let A=E===void 0?v:C=>(C.impliedNodeFormat=E,(v||REe)(C));h=zb.parseSourceFile(e,t,m,void 0,i,o,A,S)}return(d=Pd)==null||d.logStopParseSourceFile(),Ls("afterParse"),Ep("Parse","beforeParse","afterParse"),(p=qn)==null||p.pop(),h}function gI(e,t){return zb.parseIsolatedEntityName(e,t)}function G2(e,t){return zb.parseJsonText(e,t)}function wl(e){return e.externalModuleIndicator!==void 0}function Kj(e,t,r,i=!1){let o=Zj.updateSourceFile(e,t,r,i);return o.flags|=e.flags&12582912,o}function Pie(e,t,r){let i=zb.JSDocParser.parseIsolatedJSDocComment(e,t,r);return i&&i.jsDoc&&zb.fixupParentReferences(i.jsDoc),i}function DEe(e,t,r){return zb.JSDocParser.parseJSDocTypeExpressionForTests(e,t,r)}function Yc(e){return Xj(e)!==void 0}function Xj(e){let t=w1(e,s2,!1);if(t)return t;if(el(e,".ts")){let r=Ll(e).lastIndexOf(".d.");if(r>=0)return e.substring(r)}}function S4e(e,t,r,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,r-t,f.resolution_mode_should_be_either_require_or_import)}}function Yj(e,t){let r=[];for(let i of mh(t,0)||je){let o=t.substring(i.pos,i.end);A4e(r,i,o)}e.pragmas=new Map;for(let i of r){if(e.pragmas.has(i.name)){let o=e.pragmas.get(i.name);o instanceof Array?o.push(i.args):e.pragmas.set(i.name,[o,i.args]);continue}e.pragmas.set(i.name,i.args)}}function $j(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,i)=>{switch(i){case"reference":{let o=e.referencedFiles,s=e.typeReferenceDirectives,l=e.libReferenceDirectives;an(yA(r),d=>{let{types:p,lib:h,path:m,["resolution-mode"]:v}=d.arguments;if(d.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(p){let E=S4e(v,p.pos,p.end,t);s.push({pos:p.pos,end:p.end,fileName:p.value,...E?{resolutionMode:E}:{}})}else h?l.push({pos:h.pos,end:h.end,fileName:h.value}):m?o.push({pos:m.pos,end:m.end,fileName:m.value}):t(d.range.pos,d.range.end-d.range.pos,f.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=nn(yA(r),o=>({name:o.arguments.name,path:o.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let o of r)e.moduleName&&t(o.range.pos,o.range.end-o.range.pos,f.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=o.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{an(yA(r),o=>{(!e.checkJsDirective||o.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:o.range.end,pos:o.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:x.fail("Unhandled pragma kind")}})}function T4e(e){if(eU.has(e))return eU.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return eU.set(e,t),t}function A4e(e,t,r){let i=t.kind===2&&wEe.exec(r);if(i){let s=i[1].toLowerCase(),l=EM[s];if(!l||!(l.kind&1))return;if(l.args){let d={};for(let p of l.args){let m=T4e(p.name).exec(r);if(!m&&!p.optional)return;if(m){let v=m[2]||m[3];if(p.captureSpan){let E=t.pos+m.index+m[1].length+1;d[p.name]={value:v,pos:E,end:E+v.length}}else d[p.name]=v}}e.push({name:s,args:{arguments:d,range:t}})}else e.push({name:s,args:{arguments:{},range:t}});return}let o=t.kind===2&&WEe.exec(r);if(o)return CEe(e,t,2,o);if(t.kind===3){let s=/@(\S+)(\s+.*)?$/gim,l;for(;l=s.exec(r);)CEe(e,t,4,l)}}function CEe(e,t,r,i){if(!i)return;let o=i[1].toLowerCase(),s=EM[o];if(!s||!(s.kind&r))return;let l=i[2],d=I4e(s,l);d!=="fail"&&e.push({name:o,args:{arguments:d,range:t}})}function I4e(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),i={};for(let o=0;o<e.args.length;o++){let s=e.args[o];if(!r[o]&&!s.optional)return"fail";if(s.captureSpan)return x.fail("Capture spans not yet implemented for non-xml pragmas");i[s.name]=r[o]}return i}function Fb(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===295?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&Fb(e.expression,t.expression)}var NEe,PEe,MEe,LEe,kEe,Qj,U_,OEe,zb,Zj,eU,wEe,WEe,x4e=pt({"src/compiler/parser.ts"(){"use strict";wo(),mS(),Qj={createBaseSourceFileNode:e=>new(kEe||(kEe=wc.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(MEe||(MEe=wc.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(LEe||(LEe=wc.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(PEe||(PEe=wc.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(NEe||(NEe=wc.getNodeConstructor()))(e,-1,-1)},U_=d2(1,Qj),OEe={166:function(t,r,i){return wt(r,t.left)||wt(r,t.right)},168:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||wt(r,t.constraint)||wt(r,t.default)||wt(r,t.expression)},304:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||wt(r,t.questionToken)||wt(r,t.exclamationToken)||wt(r,t.equalsToken)||wt(r,t.objectAssignmentInitializer)},305:function(t,r,i){return wt(r,t.expression)},169:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.dotDotDotToken)||wt(r,t.name)||wt(r,t.questionToken)||wt(r,t.type)||wt(r,t.initializer)},172:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||wt(r,t.questionToken)||wt(r,t.exclamationToken)||wt(r,t.type)||wt(r,t.initializer)},171:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||wt(r,t.questionToken)||wt(r,t.type)||wt(r,t.initializer)},303:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||wt(r,t.questionToken)||wt(r,t.exclamationToken)||wt(r,t.initializer)},260:function(t,r,i){return wt(r,t.name)||wt(r,t.exclamationToken)||wt(r,t.type)||wt(r,t.initializer)},208:function(t,r,i){return wt(r,t.dotDotDotToken)||wt(r,t.propertyName)||wt(r,t.name)||wt(r,t.initializer)},181:function(t,r,i){return Ti(r,i,t.modifiers)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)},185:function(t,r,i){return Ti(r,i,t.modifiers)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)},184:function(t,r,i){return Ti(r,i,t.modifiers)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)},179:mEe,180:mEe,174:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.asteriskToken)||wt(r,t.name)||wt(r,t.questionToken)||wt(r,t.exclamationToken)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)||wt(r,t.body)},173:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||wt(r,t.questionToken)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)},176:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)||wt(r,t.body)},177:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)||wt(r,t.body)},178:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)||wt(r,t.body)},262:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.asteriskToken)||wt(r,t.name)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)||wt(r,t.body)},218:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.asteriskToken)||wt(r,t.name)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)||wt(r,t.body)},219:function(t,r,i){return Ti(r,i,t.modifiers)||Ti(r,i,t.typeParameters)||Ti(r,i,t.parameters)||wt(r,t.type)||wt(r,t.equalsGreaterThanToken)||wt(r,t.body)},175:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.body)},183:function(t,r,i){return wt(r,t.typeName)||Ti(r,i,t.typeArguments)},182:function(t,r,i){return wt(r,t.assertsModifier)||wt(r,t.parameterName)||wt(r,t.type)},186:function(t,r,i){return wt(r,t.exprName)||Ti(r,i,t.typeArguments)},187:function(t,r,i){return Ti(r,i,t.members)},188:function(t,r,i){return wt(r,t.elementType)},189:function(t,r,i){return Ti(r,i,t.elements)},192:_Ee,193:_Ee,194:function(t,r,i){return wt(r,t.checkType)||wt(r,t.extendsType)||wt(r,t.trueType)||wt(r,t.falseType)},195:function(t,r,i){return wt(r,t.typeParameter)},205:function(t,r,i){return wt(r,t.argument)||wt(r,t.attributes)||wt(r,t.qualifier)||Ti(r,i,t.typeArguments)},302:function(t,r,i){return wt(r,t.assertClause)},196:hEe,198:hEe,199:function(t,r,i){return wt(r,t.objectType)||wt(r,t.indexType)},200:function(t,r,i){return wt(r,t.readonlyToken)||wt(r,t.typeParameter)||wt(r,t.nameType)||wt(r,t.questionToken)||wt(r,t.type)||Ti(r,i,t.members)},201:function(t,r,i){return wt(r,t.literal)},202:function(t,r,i){return wt(r,t.dotDotDotToken)||wt(r,t.name)||wt(r,t.questionToken)||wt(r,t.type)},206:gEe,207:gEe,209:function(t,r,i){return Ti(r,i,t.elements)},210:function(t,r,i){return Ti(r,i,t.properties)},211:function(t,r,i){return wt(r,t.expression)||wt(r,t.questionDotToken)||wt(r,t.name)},212:function(t,r,i){return wt(r,t.expression)||wt(r,t.questionDotToken)||wt(r,t.argumentExpression)},213:vEe,214:vEe,215:function(t,r,i){return wt(r,t.tag)||wt(r,t.questionDotToken)||Ti(r,i,t.typeArguments)||wt(r,t.template)},216:function(t,r,i){return wt(r,t.type)||wt(r,t.expression)},217:function(t,r,i){return wt(r,t.expression)},220:function(t,r,i){return wt(r,t.expression)},221:function(t,r,i){return wt(r,t.expression)},222:function(t,r,i){return wt(r,t.expression)},224:function(t,r,i){return wt(r,t.operand)},229:function(t,r,i){return wt(r,t.asteriskToken)||wt(r,t.expression)},223:function(t,r,i){return wt(r,t.expression)},225:function(t,r,i){return wt(r,t.operand)},226:function(t,r,i){return wt(r,t.left)||wt(r,t.operatorToken)||wt(r,t.right)},234:function(t,r,i){return wt(r,t.expression)||wt(r,t.type)},235:function(t,r,i){return wt(r,t.expression)},238:function(t,r,i){return wt(r,t.expression)||wt(r,t.type)},236:function(t,r,i){return wt(r,t.name)},227:function(t,r,i){return wt(r,t.condition)||wt(r,t.questionToken)||wt(r,t.whenTrue)||wt(r,t.colonToken)||wt(r,t.whenFalse)},230:function(t,r,i){return wt(r,t.expression)},241:yEe,268:yEe,312:function(t,r,i){return Ti(r,i,t.statements)||wt(r,t.endOfFileToken)},243:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.declarationList)},261:function(t,r,i){return Ti(r,i,t.declarations)},244:function(t,r,i){return wt(r,t.expression)},245:function(t,r,i){return wt(r,t.expression)||wt(r,t.thenStatement)||wt(r,t.elseStatement)},246:function(t,r,i){return wt(r,t.statement)||wt(r,t.expression)},247:function(t,r,i){return wt(r,t.expression)||wt(r,t.statement)},248:function(t,r,i){return wt(r,t.initializer)||wt(r,t.condition)||wt(r,t.incrementor)||wt(r,t.statement)},249:function(t,r,i){return wt(r,t.initializer)||wt(r,t.expression)||wt(r,t.statement)},250:function(t,r,i){return wt(r,t.awaitModifier)||wt(r,t.initializer)||wt(r,t.expression)||wt(r,t.statement)},251:bEe,252:bEe,253:function(t,r,i){return wt(r,t.expression)},254:function(t,r,i){return wt(r,t.expression)||wt(r,t.statement)},255:function(t,r,i){return wt(r,t.expression)||wt(r,t.caseBlock)},269:function(t,r,i){return Ti(r,i,t.clauses)},296:function(t,r,i){return wt(r,t.expression)||Ti(r,i,t.statements)},297:function(t,r,i){return Ti(r,i,t.statements)},256:function(t,r,i){return wt(r,t.label)||wt(r,t.statement)},257:function(t,r,i){return wt(r,t.expression)},258:function(t,r,i){return wt(r,t.tryBlock)||wt(r,t.catchClause)||wt(r,t.finallyBlock)},299:function(t,r,i){return wt(r,t.variableDeclaration)||wt(r,t.block)},170:function(t,r,i){return wt(r,t.expression)},263:EEe,231:EEe,264:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||Ti(r,i,t.typeParameters)||Ti(r,i,t.heritageClauses)||Ti(r,i,t.members)},265:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||Ti(r,i,t.typeParameters)||wt(r,t.type)},266:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||Ti(r,i,t.members)},306:function(t,r,i){return wt(r,t.name)||wt(r,t.initializer)},267:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||wt(r,t.body)},271:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)||wt(r,t.moduleReference)},272:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.importClause)||wt(r,t.moduleSpecifier)||wt(r,t.attributes)},273:function(t,r,i){return wt(r,t.name)||wt(r,t.namedBindings)},300:function(t,r,i){return Ti(r,i,t.elements)},301:function(t,r,i){return wt(r,t.name)||wt(r,t.value)},270:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.name)},274:function(t,r,i){return wt(r,t.name)},280:function(t,r,i){return wt(r,t.name)},275:SEe,279:SEe,278:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.exportClause)||wt(r,t.moduleSpecifier)||wt(r,t.attributes)},276:TEe,281:TEe,277:function(t,r,i){return Ti(r,i,t.modifiers)||wt(r,t.expression)},228:function(t,r,i){return wt(r,t.head)||Ti(r,i,t.templateSpans)},239:function(t,r,i){return wt(r,t.expression)||wt(r,t.literal)},203:function(t,r,i){return wt(r,t.head)||Ti(r,i,t.templateSpans)},204:function(t,r,i){return wt(r,t.type)||wt(r,t.literal)},167:function(t,r,i){return wt(r,t.expression)},298:function(t,r,i){return Ti(r,i,t.types)},233:function(t,r,i){return wt(r,t.expression)||Ti(r,i,t.typeArguments)},283:function(t,r,i){return wt(r,t.expression)},282:function(t,r,i){return Ti(r,i,t.modifiers)},361:function(t,r,i){return Ti(r,i,t.elements)},284:function(t,r,i){return wt(r,t.openingElement)||Ti(r,i,t.children)||wt(r,t.closingElement)},288:function(t,r,i){return wt(r,t.openingFragment)||Ti(r,i,t.children)||wt(r,t.closingFragment)},285:AEe,286:AEe,292:function(t,r,i){return Ti(r,i,t.properties)},291:function(t,r,i){return wt(r,t.name)||wt(r,t.initializer)},293:function(t,r,i){return wt(r,t.expression)},294:function(t,r,i){return wt(r,t.dotDotDotToken)||wt(r,t.expression)},287:function(t,r,i){return wt(r,t.tagName)},295:function(t,r,i){return wt(r,t.namespace)||wt(r,t.name)},190:yN,191:yN,316:yN,322:yN,321:yN,323:yN,325:yN,324:function(t,r,i){return Ti(r,i,t.parameters)||wt(r,t.type)},327:function(t,r,i){return(typeof t.comment=="string"?void 0:Ti(r,i,t.comment))||Ti(r,i,t.tags)},354:function(t,r,i){return wt(r,t.tagName)||wt(r,t.name)||(typeof t.comment=="string"?void 0:Ti(r,i,t.comment))},317:function(t,r,i){return wt(r,t.name)},318:function(t,r,i){return wt(r,t.left)||wt(r,t.right)},348:IEe,355:IEe,337:function(t,r,i){return wt(r,t.tagName)||(typeof t.comment=="string"?void 0:Ti(r,i,t.comment))},336:function(t,r,i){return wt(r,t.tagName)||wt(r,t.class)||(typeof t.comment=="string"?void 0:Ti(r,i,t.comment))},335:function(t,r,i){return wt(r,t.tagName)||wt(r,t.class)||(typeof t.comment=="string"?void 0:Ti(r,i,t.comment))},352:function(t,r,i){return wt(r,t.tagName)||wt(r,t.constraint)||Ti(r,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Ti(r,i,t.comment))},353:function(t,r,i){return wt(r,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?wt(r,t.typeExpression)||wt(r,t.fullName)||(typeof t.comment=="string"?void 0:Ti(r,i,t.comment)):wt(r,t.fullName)||wt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Ti(r,i,t.comment)))},345:function(t,r,i){return wt(r,t.tagName)||wt(r,t.fullName)||wt(r,t.typeExpression)||(typeof t.comment=="string"?void 0:Ti(r,i,t.comment))},349:bN,351:bN,350:bN,347:bN,357:bN,356:bN,346:bN,330:function(t,r,i){return an(t.typeParameters,r)||an(t.parameters,r)||wt(r,t.type)},331:Nie,332:Nie,333:Nie,329:function(t,r,i){return an(t.jsDocPropertyTags,r)},334:Kx,339:Kx,340:Kx,341:Kx,342:Kx,343:Kx,338:Kx,344:Kx,360:E4e},(e=>{var t=Kg(99,!0),r=40960,i,o,s,l,d;function p(J){return Ge++,J}var h={createBaseSourceFileNode:J=>p(new d(J,0,0)),createBaseIdentifierNode:J=>p(new s(J,0,0)),createBasePrivateIdentifierNode:J=>p(new l(J,0,0)),createBaseTokenNode:J=>p(new o(J,0,0)),createBaseNode:J=>p(new i(J,0,0))},m=d2(11,h),{createNodeArray:v,createNumericLiteral:E,createStringLiteral:S,createLiteralLikeNode:A,createIdentifier:C,createPrivateIdentifier:R,createToken:L,createArrayLiteralExpression:G,createObjectLiteralExpression:U,createPropertyAccessExpression:K,createPropertyAccessChain:F,createElementAccessExpression:oe,createElementAccessChain:W,createCallExpression:$,createCallChain:de,createNewExpression:fe,createParenthesizedExpression:q,createBlock:H,createVariableStatement:ee,createExpressionStatement:le,createIfStatement:Ee,createWhileStatement:ce,createForStatement:Z,createForOfStatement:pe,createVariableDeclaration:Ae,createVariableDeclarationList:Oe}=m,_e,be,Te,De,ft,he,Le,Ke,Dt,st,Ge,ot,Vt,jt,gn,On,en=!0,zt=!1;function Wt(J,ye,Fe,mt,vt=!1,Lt,Sr,bi=0){var fi;if(Lt=uF(J,Lt),Lt===6){let Mi=Ki(J,ye,Fe,mt,vt);return U2(Mi,(fi=Mi.statements[0])==null?void 0:fi.expression,Mi.parseDiagnostics,!1,void 0),Mi.referencedFiles=je,Mi.typeReferenceDirectives=je,Mi.libReferenceDirectives=je,Mi.amdDependencies=je,Mi.hasNoDefaultLib=!1,Mi.pragmas=r8,Mi}gi(J,ye,Fe,mt,Lt,bi);let Zr=Gn(Fe,vt,Lt,Sr||REe,bi);return io(),Zr}e.parseSourceFile=Wt;function ei(J,ye){gi("",J,ye,void 0,1,0),Ie();let Fe=Y(!0),mt=j()===1&&!Le.length;return io(),mt?Fe:void 0}e.parseIsolatedEntityName=ei;function Ki(J,ye,Fe=2,mt,vt=!1){gi(J,ye,Fe,mt,6,0),be=On,Ie();let Lt=M(),Sr,bi;if(j()===1)Sr=ho([],Lt,Lt),bi=Us();else{let Mi;for(;j()!==1;){let Ma;switch(j()){case 23:Ma=W0();break;case 112:case 97:case 106:Ma=Us();break;case 41:_i(()=>Ie()===9&&Ie()!==59)?Ma=Fr():Ma=Sg();break;case 9:case 11:if(_i(()=>Ie()!==59)){Ma=Or();break}default:Ma=Sg();break}Mi&&oo(Mi)?Mi.push(Ma):Mi?Mi=[Mi,Ma]:(Mi=Ma,j()!==1&&Qt(f.Unexpected_token))}let Ua=oo(Mi)?Ut(G(Mi),Lt):x.checkDefined(Mi),os=le(Ua);Ut(os,Lt),Sr=ho([os],Lt),bi=ts(1,f.Unexpected_token)}let fi=Rt(J,2,6,!1,Sr,bi,be,Ca);vt&&Ue(fi),fi.nodeCount=Ge,fi.identifierCount=Vt,fi.identifiers=ot,fi.parseDiagnostics=UA(Le,fi),Ke&&(fi.jsDocDiagnostics=UA(Ke,fi));let Zr=fi;return io(),Zr}e.parseJsonText=Ki;function gi(J,ye,Fe,mt,vt,Lt){switch(i=wc.getNodeConstructor(),o=wc.getTokenConstructor(),s=wc.getIdentifierConstructor(),l=wc.getPrivateIdentifierConstructor(),d=wc.getSourceFileConstructor(),_e=Yo(J),Te=ye,De=Fe,Dt=mt,ft=vt,he=KL(vt),Le=[],jt=0,ot=new Map,Vt=0,Ge=0,be=0,en=!0,ft){case 1:case 2:On=524288;break;case 6:On=134742016;break;default:On=0;break}zt=!1,t.setText(Te),t.setOnError(St),t.setScriptTarget(De),t.setLanguageVariant(he),t.setScriptKind(ft),t.setJSDocParsingMode(Lt)}function io(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),Te=void 0,De=void 0,Dt=void 0,ft=void 0,he=void 0,be=0,Le=void 0,Ke=void 0,jt=0,ot=void 0,gn=void 0,en=!0}function Gn(J,ye,Fe,mt,vt){let Lt=Yc(_e);Lt&&(On|=33554432),be=On,Ie();let Sr=Oo(0,Pu);x.assert(j()===1);let bi=te(),fi=cr(Us(),bi),Zr=Rt(_e,J,Fe,Lt,Sr,fi,be,mt);return Yj(Zr,Te),$j(Zr,Mi),Zr.commentDirectives=t.getCommentDirectives(),Zr.nodeCount=Ge,Zr.identifierCount=Vt,Zr.identifiers=ot,Zr.parseDiagnostics=UA(Le,Zr),Zr.jsDocParsingMode=vt,Ke&&(Zr.jsDocDiagnostics=UA(Ke,Zr)),ye&&Ue(Zr),Zr;function Mi(Ua,os,Ma){Le.push(Ix(_e,Te,Ua,os,Ma))}}let Nr=!1;function cr(J,ye){if(!ye)return J;x.assert(!J.jsDoc);let Fe=Fi(I9(J,Te),mt=>h_.parseJSDocComment(J,mt.pos,mt.end-mt.pos));return Fe.length&&(J.jsDoc=Fe),Nr&&(Nr=!1,J.flags|=536870912),J}function Jt(J){let ye=Dt,Fe=Zj.createSyntaxCursor(J);Dt={currentNode:Mi};let mt=[],vt=Le;Le=[];let Lt=0,Sr=fi(J.statements,0);for(;Sr!==-1;){let Ua=J.statements[Lt],os=J.statements[Sr];Pr(mt,J.statements,Lt,Sr),Lt=Zr(J.statements,Sr);let Ma=Tl(vt,g_=>g_.start>=Ua.pos),lf=Ma>=0?Tl(vt,g_=>g_.start>=os.pos,Ma):-1;Ma>=0&&Pr(Le,vt,Ma,lf>=0?lf:void 0),Zi(()=>{let g_=On;for(On|=65536,t.resetTokenState(os.pos),Ie();j()!==1;){let Vh=t.getTokenFullStart(),xg=Cl(0,Pu);if(mt.push(xg),Vh===t.getTokenFullStart()&&Ie(),Lt>=0){let Rg=J.statements[Lt];if(xg.end===Rg.pos)break;xg.end>Rg.pos&&(Lt=Zr(J.statements,Lt+1))}}On=g_},2),Sr=Lt>=0?fi(J.statements,Lt):-1}if(Lt>=0){let Ua=J.statements[Lt];Pr(mt,J.statements,Lt);let os=Tl(vt,Ma=>Ma.start>=Ua.pos);os>=0&&Pr(Le,vt,os)}return Dt=ye,m.updateSourceFile(J,Ze(v(mt),J.statements));function bi(Ua){return!(Ua.flags&65536)&&!!(Ua.transformFlags&67108864)}function fi(Ua,os){for(let Ma=os;Ma<Ua.length;Ma++)if(bi(Ua[Ma]))return Ma;return-1}function Zr(Ua,os){for(let Ma=os;Ma<Ua.length;Ma++)if(!bi(Ua[Ma]))return Ma;return-1}function Mi(Ua){let os=Fe.currentNode(Ua);return en&&os&&bi(os)&&(os.intersectsChange=!0),os}}function Ue(J){oy(J,!0)}e.fixupParentReferences=Ue;function Rt(J,ye,Fe,mt,vt,Lt,Sr,bi){let fi=m.createSourceFile(vt,Lt,Sr);if(JC(fi,0,Te.length),Zr(fi),!mt&&wl(fi)&&fi.transformFlags&67108864){let Mi=fi;fi=Jt(fi),Mi!==fi&&Zr(fi)}return fi;function Zr(Mi){Mi.text=Te,Mi.bindDiagnostics=[],Mi.bindSuggestionDiagnostics=void 0,Mi.languageVersion=ye,Mi.fileName=J,Mi.languageVariant=KL(Fe),Mi.isDeclarationFile=mt,Mi.scriptKind=Fe,bi(Mi),Mi.setExternalModuleIndicator=bi}}function mn(J,ye){J?On|=ye:On&=~ye}function qr(J){mn(J,8192)}function ni(J){mn(J,16384)}function ki(J){mn(J,32768)}function so(J){mn(J,65536)}function Jo(J,ye){let Fe=J&On;if(Fe){mn(!1,Fe);let mt=ye();return mn(!0,Fe),mt}return ye()}function ba(J,ye){let Fe=J&~On;if(Fe){mn(!0,Fe);let mt=ye();return mn(!1,Fe),mt}return ye()}function ln(J){return Jo(8192,J)}function Tn(J){return ba(8192,J)}function ke(J){return Jo(131072,J)}function nt(J){return ba(131072,J)}function tt(J){return ba(16384,J)}function yt(J){return ba(32768,J)}function re(J){return ba(65536,J)}function Ce(J){return Jo(65536,J)}function et(J){return ba(81920,J)}function z(J){return Jo(81920,J)}function Je(J){return(On&J)!==0}function _t(){return Je(16384)}function ze(){return Je(8192)}function it(){return Je(131072)}function Ct(){return Je(32768)}function on(){return Je(65536)}function Qt(J,...ye){return V(t.getTokenStart(),t.getTokenEnd(),J,...ye)}function Zt(J,ye,Fe,...mt){let vt=Ns(Le),Lt;return(!vt||J!==vt.start)&&(Lt=Ix(_e,Te,J,ye,Fe,...mt),Le.push(Lt)),zt=!0,Lt}function V(J,ye,Fe,...mt){return Zt(J,ye-J,Fe,...mt)}function Re(J,ye,...Fe){V(J.pos,J.end,ye,...Fe)}function St(J,ye,Fe){Zt(t.getTokenEnd(),ye,J,Fe)}function M(){return t.getTokenFullStart()}function te(){return t.hasPrecedingJSDocComment()}function j(){return st}function se(){return st=t.scan()}function Pe(J){return Ie(),J()}function Ie(){return du(st)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&V(t.getTokenStart(),t.getTokenEnd(),f.Keywords_cannot_contain_escape_characters),se()}function gt(){return st=t.scanJsDocToken()}function bt(J){return st=t.scanJSDocCommentTextToken(J)}function Ot(){return st=t.reScanGreaterToken()}function dn(){return st=t.reScanSlashToken()}function An(J){return st=t.reScanTemplateToken(J)}function Cn(){return st=t.reScanLessThanToken()}function ti(){return st=t.reScanHashToken()}function di(){return st=t.scanJsxIdentifier()}function jn(){return st=t.scanJsxToken()}function Ar(){return st=t.scanJsxAttributeValue()}function Zi(J,ye){let Fe=st,mt=Le.length,vt=zt,Lt=On,Sr=ye!==0?t.lookAhead(J):t.tryScan(J);return x.assert(Lt===On),(!Sr||ye!==0)&&(st=Fe,ye!==2&&(Le.length=mt),zt=vt),Sr}function _i(J){return Zi(J,1)}function ui(J){return Zi(J,0)}function Mr(){return j()===80?!0:j()>118}function lo(){return j()===80?!0:j()===127&&_t()||j()===135&&on()?!1:j()>118}function _n(J,ye,Fe=!0){return j()===J?(Fe&&Ie(),!0):(ye?Qt(ye):Qt(f._0_expected,qo(J)),!1)}let fs=Object.keys(kM).filter(J=>J.length>2);function Dl(J){if(a0(J)){V(ua(Te,J.template.pos),J.template.end,f.Module_declaration_names_may_only_use_or_quoted_strings);return}let ye=Me(J)?ar(J):void 0;if(!ye||!Sp(ye,De)){Qt(f._0_expected,qo(27));return}let Fe=ua(Te,J.pos);switch(ye){case"const":case"let":case"var":V(Fe,J.end,f.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":_o(f.Interface_name_cannot_be_0,f.Interface_must_be_given_a_name,19);return;case"is":V(Fe,t.getTokenStart(),f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":_o(f.Namespace_name_cannot_be_0,f.Namespace_must_be_given_a_name,19);return;case"type":_o(f.Type_alias_name_cannot_be_0,f.Type_alias_must_be_given_a_name,64);return}let mt=VD(ye,fs,vt=>vt)??Va(ye);if(mt){V(Fe,J.end,f.Unknown_keyword_or_identifier_Did_you_mean_0,mt);return}j()!==0&&V(Fe,J.end,f.Unexpected_keyword_or_identifier)}function _o(J,ye,Fe){j()===Fe?Qt(ye):Qt(J,t.getTokenValue())}function Va(J){for(let ye of fs)if(J.length>ye.length+2&&Ui(J,ye))return`${ye} ${J.slice(ye.length)}`}function gs(J,ye,Fe){if(j()===60&&!t.hasPrecedingLineBreak()){Qt(f.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(j()===21){Qt(f.Cannot_start_a_function_call_in_a_type_annotation),Ie();return}if(ye&&!Wl()){Fe?Qt(f._0_expected,qo(27)):Qt(f.Expected_for_property_initializer);return}if(!il()){if(Fe){Qt(f._0_expected,qo(27));return}Dl(J)}}function Js(J){return j()===J?(gt(),!0):(x.assert(PW(J)),Qt(f._0_expected,qo(J)),!1)}function Fc(J,ye,Fe,mt){if(j()===ye){Ie();return}let vt=Qt(f._0_expected,qo(ye));Fe&&vt&&pa(vt,Ix(_e,Te,mt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,qo(J),qo(ye)))}function $i(J){return j()===J?(Ie(),!0):!1}function Uo(J){if(j()===J)return Us()}function zc(J){if(j()===J)return tf()}function ts(J,ye,Fe){return Uo(J)||vs(J,!1,ye||f._0_expected,Fe||qo(J))}function da(J){let ye=zc(J);return ye||(x.assert(PW(J)),vs(J,!1,f._0_expected,qo(J)))}function Us(){let J=M(),ye=j();return Ie(),Ut(L(ye),J)}function tf(){let J=M(),ye=j();return gt(),Ut(L(ye),J)}function Wl(){return j()===27?!0:j()===20||j()===1||t.hasPrecedingLineBreak()}function il(){return Wl()?(j()===27&&Ie(),!0):!1}function zs(){return il()||_n(27)}function ho(J,ye,Fe,mt){let vt=v(J,mt);return W_(vt,ye,Fe??t.getTokenFullStart()),vt}function Ut(J,ye,Fe){return W_(J,ye,Fe??t.getTokenFullStart()),On&&(J.flags|=On),zt&&(zt=!1,J.flags|=262144),J}function vs(J,ye,Fe,...mt){ye?Zt(t.getTokenFullStart(),0,Fe,...mt):Fe&&Qt(Fe,...mt);let vt=M(),Lt=J===80?C("",void 0):Jv(J)?m.createTemplateLiteralLikeNode(J,"","",void 0):J===9?E("",void 0):J===11?S("",void 0):J===282?m.createMissingDeclaration():L(J);return Ut(Lt,vt)}function Pc(J){let ye=ot.get(J);return ye===void 0&&ot.set(J,ye=J),ye}function Bc(J,ye,Fe){if(J){Vt++;let bi=M(),fi=j(),Zr=Pc(t.getTokenValue()),Mi=t.hasExtendedUnicodeEscape();return se(),Ut(C(Zr,fi,Mi),bi)}if(j()===81)return Qt(Fe||f.Private_identifiers_are_not_allowed_outside_class_bodies),Bc(!0);if(j()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return Bc(!0);Vt++;let mt=j()===1,vt=t.isReservedWord(),Lt=t.getTokenText(),Sr=vt?f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:f.Identifier_expected;return vs(80,mt,ye||Sr,Lt)}function Ju(J){return Bc(Mr(),void 0,J)}function ls(J,ye){return Bc(lo(),J,ye)}function tc(J){return Bc(Md(j()),J)}function ae(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Qt(f.Unicode_escape_sequence_cannot_appear_here),Bc(Md(j()))}function X(){return Md(j())||j()===11||j()===9}function xe(){return Md(j())||j()===11}function dt(J){if(j()===11||j()===9){let ye=Or();return ye.text=Pc(ye.text),ye}return J&&j()===23?sr():j()===81?tr():tc()}function $t(){return dt(!0)}function sr(){let J=M();_n(23);let ye=ln(we);return _n(24),Ut(m.createComputedPropertyName(ye),J)}function tr(){let J=M(),ye=R(Pc(t.getTokenValue()));return Ie(),Ut(ye,J)}function Ir(J){return j()===J&&ui(hr)}function pi(){return Ie(),t.hasPrecedingLineBreak()?!1:ys()}function hr(){switch(j()){case 87:return Ie()===94;case 95:return Ie(),j()===90?_i(Jl):j()===156?_i(Qs):No();case 90:return Jl();case 126:case 139:case 153:return Ie(),ys();default:return pi()}}function No(){return j()===60||j()!==42&&j()!==130&&j()!==19&&ys()}function Qs(){return Ie(),No()}function bc(){return Yg(j())&&ui(hr)}function ys(){return j()===23||j()===19||j()===42||j()===26||X()}function Jl(){return Ie(),j()===86||j()===100||j()===120||j()===60||j()===128&&_i(kT)||j()===134&&_i(OT)}function Za(J,ye){if(Kl(J))return!0;switch(J){case 0:case 1:case 3:return!(j()===27&&ye)&&z0();case 2:return j()===84||j()===90;case 4:return _i(Ia);case 5:return _i(Bh)||j()===27&&!ye;case 6:return j()===23||X();case 12:switch(j()){case 23:case 42:case 26:case 25:return!0;default:return X()}case 18:return X();case 9:return j()===23||j()===26||X();case 24:return xe();case 7:return j()===19?_i(Ec):ye?lo()&&!Vd():ZI()&&!Vd();case 8:return Oa();case 10:return j()===28||j()===26||Oa();case 19:return j()===103||j()===87||lo();case 15:switch(j()){case 28:case 25:return!0}case 11:return j()===26||xm();case 16:return u_(!1);case 17:return u_(!0);case 20:case 21:return j()===28||kh();case 22:return I();case 23:return j()===161&&_i(tD)?!1:Md(j());case 13:return Md(j())||j()===19;case 14:return!0;case 25:return!0;case 26:return x.fail("ParsingContext.Count used as a context");default:x.assertNever(J,"Non-exhaustive case in 'isListElement'.")}}function Ec(){if(x.assert(j()===19),Ie()===20){let J=Ie();return J===28||J===19||J===96||J===119}return!0}function Du(){return Ie(),lo()}function pc(){return Ie(),Md(j())}function Nf(){return Ie(),_ee(j())}function Vd(){return j()===119||j()===96?_i(Se):!1}function Se(){return Ie(),xm()}function At(){return Ie(),kh()}function Ln(J){if(j()===1)return!0;switch(J){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return j()===20;case 3:return j()===20||j()===84||j()===90;case 7:return j()===19||j()===96||j()===119;case 8:return eo();case 19:return j()===32||j()===21||j()===19||j()===96||j()===119;case 11:return j()===22||j()===27;case 15:case 21:case 10:return j()===24;case 17:case 16:case 18:return j()===22||j()===24;case 20:return j()!==28;case 22:return j()===19||j()===20;case 13:return j()===32||j()===44;case 14:return j()===30&&_i(ai);default:return!1}}function eo(){return!!(Wl()||yg(j())||j()===39)}function Po(){x.assert(jt,"Missing parsing context");for(let J=0;J<26;J++)if(jt&1<<J&&(Za(J,!0)||Ln(J)))return!0;return!1}function Oo(J,ye){let Fe=jt;jt|=1<<J;let mt=[],vt=M();for(;!Ln(J);){if(Za(J,!1)){mt.push(Cl(J,ye));continue}if(K_(J))break}return jt=Fe,ho(mt,vt)}function Cl(J,ye){let Fe=Kl(J);return Fe?Bs(Fe):ye()}function Kl(J,ye){var Fe;if(!Dt||!Ks(J)||zt)return;let mt=Dt.currentNode(ye??t.getTokenFullStart());if(!(_l(mt)||mt.intersectsChange||X1(mt)||(mt.flags&101441536)!==On)&&vl(mt,J))return CL(mt)&&((Fe=mt.jsDoc)!=null&&Fe.jsDocCache)&&(mt.jsDoc.jsDocCache=void 0),mt}function Bs(J){return t.resetTokenState(J.end),Ie(),J}function Ks(J){switch(J){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function vl(J,ye){switch(ye){case 5:return Nl(J);case 2:return Sc(J);case 0:case 1:case 3:return Lp(J);case 6:return fu(J);case 4:return tu(J);case 8:return nf(J);case 17:case 16:return d_(J)}return!1}function Nl(J){if(J)switch(J.kind){case 176:case 181:case 177:case 178:case 172:case 240:return!0;case 174:let ye=J;return!(ye.name.kind===80&&ye.name.escapedText==="constructor")}return!1}function Sc(J){if(J)switch(J.kind){case 296:case 297:return!0}return!1}function Lp(J){if(J)switch(J.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}function fu(J){return J.kind===306}function tu(J){if(J)switch(J.kind){case 180:case 173:case 181:case 171:case 179:return!0}return!1}function nf(J){return J.kind!==260?!1:J.initializer===void 0}function d_(J){return J.kind!==169?!1:J.initializer===void 0}function K_(J){return fg(J),Po()?!0:(Ie(),!1)}function fg(J){switch(J){case 0:return j()===90?Qt(f._0_expected,qo(95)):Qt(f.Declaration_or_statement_expected);case 1:return Qt(f.Declaration_or_statement_expected);case 2:return Qt(f.case_or_default_expected);case 3:return Qt(f.Statement_expected);case 18:case 4:return Qt(f.Property_or_signature_expected);case 5:return Qt(f.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Qt(f.Enum_member_expected);case 7:return Qt(f.Expression_expected);case 8:return du(j())?Qt(f._0_is_not_allowed_as_a_variable_declaration_name,qo(j())):Qt(f.Variable_declaration_expected);case 9:return Qt(f.Property_destructuring_pattern_expected);case 10:return Qt(f.Array_element_destructuring_pattern_expected);case 11:return Qt(f.Argument_expression_expected);case 12:return Qt(f.Property_assignment_expected);case 15:return Qt(f.Expression_or_comma_expected);case 17:return Qt(f.Parameter_declaration_expected);case 16:return du(j())?Qt(f._0_is_not_allowed_as_a_parameter_name,qo(j())):Qt(f.Parameter_declaration_expected);case 19:return Qt(f.Type_parameter_declaration_expected);case 20:return Qt(f.Type_argument_expected);case 21:return Qt(f.Type_expected);case 22:return Qt(f.Unexpected_token_expected);case 23:return j()===161?Qt(f._0_expected,"}"):Qt(f.Identifier_expected);case 13:return Qt(f.Identifier_expected);case 14:return Qt(f.Identifier_expected);case 24:return Qt(f.Identifier_or_string_literal_expected);case 25:return Qt(f.Identifier_expected);case 26:return x.fail("ParsingContext.Count used as a context");default:x.assertNever(J)}}function fd(J,ye,Fe){let mt=jt;jt|=1<<J;let vt=[],Lt=M(),Sr=-1;for(;;){if(Za(J,!1)){let bi=t.getTokenFullStart(),fi=Cl(J,ye);if(!fi){jt=mt;return}if(vt.push(fi),Sr=t.getTokenStart(),$i(28))continue;if(Sr=-1,Ln(J))break;_n(28,mg(J)),Fe&&j()===27&&!t.hasPrecedingLineBreak()&&Ie(),bi===t.getTokenFullStart()&&Ie();continue}if(Ln(J)||K_(J))break}return jt=mt,ho(vt,Lt,void 0,Sr>=0)}function mg(J){return J===6?f.An_enum_member_name_must_be_followed_by_a_or:void 0}function Ku(){let J=ho([],M());return J.isMissingList=!0,J}function Lh(J){return!!J.isMissingList}function mu(J,ye,Fe,mt){if(_n(Fe)){let vt=fd(J,ye);return _n(mt),vt}return Ku()}function Y(J,ye){let Fe=M(),mt=J?tc(ye):ls(ye);for(;$i(25)&&j()!==30;)mt=Ut(m.createQualifiedName(mt,xt(J,!1,!0)),Fe);return mt}function Ye(J,ye){return Ut(m.createQualifiedName(J,ye),J.pos)}function xt(J,ye,Fe){if(t.hasPrecedingLineBreak()&&Md(j())&&_i(mp))return vs(80,!0,f.Identifier_expected);if(j()===81){let mt=tr();return ye?mt:vs(80,!0,f.Identifier_expected)}return J?Fe?tc():ae():ls()}function Nt(J){let ye=M(),Fe=[],mt;do mt=jr(J),Fe.push(mt);while(mt.literal.kind===17);return ho(Fe,ye)}function k(J){let ye=M();return Ut(m.createTemplateExpression(zi(J),Nt(J)),ye)}function ge(){let J=M();return Ut(m.createTemplateLiteralType(zi(!1),Xe()),J)}function Xe(){let J=M(),ye=[],Fe;do Fe=Mt(),ye.push(Fe);while(Fe.literal.kind===17);return ho(ye,J)}function Mt(){let J=M();return Ut(m.createTemplateLiteralTypeSpan(Xl(),Vn(!1)),J)}function Vn(J){return j()===20?(An(J),ma()):ts(18,f._0_expected,qo(20))}function jr(J){let ye=M();return Ut(m.createTemplateSpan(ln(we),Vn(J)),ye)}function Or(){return pl(j())}function zi(J){!J&&t.getTokenFlags()&26656&&An(!1);let ye=pl(j());return x.assert(ye.kind===16,"Template head has wrong token kind"),ye}function ma(){let J=pl(j());return x.assert(J.kind===17||J.kind===18,"Template fragment has wrong token kind"),J}function _a(J){let ye=J===15||J===18,Fe=t.getTokenText();return Fe.substring(1,Fe.length-(t.isUnterminated()?0:ye?1:2))}function pl(J){let ye=M(),Fe=Jv(J)?m.createTemplateLiteralLikeNode(J,t.getTokenValue(),_a(J),t.getTokenFlags()&7176):J===9?E(t.getTokenValue(),t.getNumericLiteralFlags()):J===11?S(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):oC(J)?A(J,t.getTokenValue()):x.fail();return t.hasExtendedUnicodeEscape()&&(Fe.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Fe.isUnterminated=!0),Ie(),Ut(Fe,ye)}function Gc(){return Y(!0,f.Type_expected)}function nc(){if(!t.hasPrecedingLineBreak()&&Cn()===30)return mu(20,Xl,30,32)}function Xu(){let J=M();return Ut(m.createTypeReferenceNode(Gc(),nc()),J)}function _u(J){switch(J.kind){case 183:return _l(J.typeName);case 184:case 185:{let{parameters:ye,type:Fe}=J;return Lh(ye)||_u(Fe)}case 196:return _u(J.type);default:return!1}}function Ay(J){return Ie(),Ut(m.createTypePredicateNode(void 0,J,Xl()),J.pos)}function ja(){let J=M();return Ie(),Ut(m.createThisTypeNode(),J)}function em(){let J=M();return Ie(),Ut(m.createJSDocAllType(),J)}function tm(){let J=M();return Ie(),Ut(m.createJSDocNonNullableType(xy(),!1),J)}function Ri(){let J=M();return Ie(),j()===28||j()===20||j()===22||j()===32||j()===64||j()===52?Ut(m.createJSDocUnknownType(),J):Ut(m.createJSDocNullableType(Xl(),!1),J)}function _g(){let J=M(),ye=te();if(ui(sf)){let Fe=tn(36),mt=Pt(59,!1);return cr(Ut(m.createJSDocFunctionType(Fe,mt),J),ye)}return Ut(m.createTypeReferenceNode(tc(),void 0),J)}function yv(){let J=M(),ye;return(j()===110||j()===105)&&(ye=tc(),_n(59)),Ut(m.createParameterDeclaration(void 0,void 0,ye,void 0,nm(),void 0),J)}function nm(){t.setInJSDocType(!0);let J=M();if($i(144)){let mt=m.createJSDocNamepathType(void 0);e:for(;;)switch(j()){case 20:case 1:case 28:case 5:break e;default:gt()}return t.setInJSDocType(!1),Ut(mt,J)}let ye=$i(26),Fe=Ry();return t.setInJSDocType(!1),ye&&(Fe=Ut(m.createJSDocVariadicType(Fe),J)),j()===64?(Ie(),Ut(m.createJSDocOptionalType(Fe),J)):Fe}function D0(){let J=M();_n(114);let ye=Y(!0),Fe=t.hasPrecedingLineBreak()?void 0:uE();return Ut(m.createTypeQueryNode(ye,Fe),J)}function C0(){let J=M(),ye=Z_(!1,!0),Fe=ls(),mt,vt;$i(96)&&(kh()||!xm()?mt=Xl():vt=Cy());let Lt=$i(64)?Xl():void 0,Sr=m.createTypeParameterDeclaration(ye,Fe,mt,Lt);return Sr.expression=vt,Ut(Sr,J)}function kp(){if(j()===30)return mu(19,C0,30,32)}function u_(J){return j()===26||Oa()||Yg(j())||j()===60||kh(!J)}function Op(J){let ye=dr(f.Private_identifiers_cannot_be_used_as_parameters);return tL(ye)===0&&!ct(J)&&Yg(j())&&Ie(),ye}function hg(){return Mr()||j()===23||j()===19}function Ne(J){return Tt(J)}function Ve(J){return Tt(J,!1)}function Tt(J,ye=!0){let Fe=M(),mt=te(),vt=J?re(()=>Z_(!0)):Ce(()=>Z_(!0));if(j()===110){let fi=m.createParameterDeclaration(vt,void 0,Bc(!0),void 0,Ev(),void 0),Zr=Ac(vt);return Zr&&Re(Zr,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),cr(Ut(fi,Fe),mt)}let Lt=en;en=!1;let Sr=Uo(26);if(!ye&&!hg())return;let bi=cr(Ut(m.createParameterDeclaration(vt,Sr,Op(vt),Uo(58),Ev(),Rm()),Fe),mt);return en=Lt,bi}function Pt(J,ye){if(rn(J,ye))return ke(Ry)}function rn(J,ye){return J===39?(_n(J),!0):$i(59)?!0:ye&&j()===39?(Qt(f._0_expected,qo(59)),Ie(),!0):!1}function wn(J,ye){let Fe=_t(),mt=on();ni(!!(J&1)),so(!!(J&2));let vt=J&32?fd(17,yv):fd(16,()=>ye?Ne(mt):Ve(mt));return ni(Fe),so(mt),vt}function tn(J){if(!_n(21))return Ku();let ye=wn(J,!0);return _n(22),ye}function Wn(){$i(28)||zs()}function Qr(J){let ye=M(),Fe=te();J===180&&_n(105);let mt=kp(),vt=tn(4),Lt=Pt(59,!0);Wn();let Sr=J===179?m.createCallSignature(mt,vt,Lt):m.createConstructSignature(mt,vt,Lt);return cr(Ut(Sr,ye),Fe)}function Kn(){return j()===23&&_i(Gr)}function Gr(){if(Ie(),j()===26||j()===24)return!0;if(Yg(j())){if(Ie(),lo())return!0}else if(lo())Ie();else return!1;return j()===59||j()===28?!0:j()!==58?!1:(Ie(),j()===59||j()===28||j()===24)}function Qn(J,ye,Fe){let mt=mu(16,()=>Ne(!1),23,24),vt=Ev();Wn();let Lt=m.createIndexSignature(Fe,mt,vt);return cr(Ut(Lt,J),ye)}function Mo(J,ye,Fe){let mt=$t(),vt=Uo(58),Lt;if(j()===21||j()===30){let Sr=kp(),bi=tn(4),fi=Pt(59,!0);Lt=m.createMethodSignature(Fe,mt,vt,Sr,bi,fi)}else{let Sr=Ev();Lt=m.createPropertySignature(Fe,mt,vt,Sr),j()===64&&(Lt.initializer=Rm())}return Wn(),cr(Ut(Lt,J),ye)}function Ia(){if(j()===21||j()===30||j()===139||j()===153)return!0;let J=!1;for(;Yg(j());)J=!0,Ie();return j()===23?!0:(X()&&(J=!0,Ie()),J?j()===21||j()===30||j()===58||j()===59||j()===28||Wl():!1)}function xd(){if(j()===21||j()===30)return Qr(179);if(j()===105&&_i(Vc))return Qr(180);let J=M(),ye=te(),Fe=Z_(!1);return Ir(139)?Ag(J,ye,Fe,177,4):Ir(153)?Ag(J,ye,Fe,178,4):Kn()?Qn(J,ye,Fe):Mo(J,ye,Fe)}function Vc(){return Ie(),j()===21||j()===30}function gg(){return Ie()===25}function $b(){switch(Ie()){case 21:case 30:case 25:return!0}return!1}function UI(){let J=M();return Ut(m.createTypeLiteralNode(Qb()),J)}function Qb(){let J;return _n(19)?(J=Oo(4,xd),_n(20)):J=Ku(),J}function GR(){return Ie(),j()===40||j()===41?Ie()===148:(j()===148&&Ie(),j()===23&&Du()&&Ie()===103)}function VR(){let J=M(),ye=tc();_n(103);let Fe=Xl();return Ut(m.createTypeParameterDeclaration(void 0,ye,Fe,void 0),J)}function jR(){let J=M();_n(19);let ye;(j()===148||j()===40||j()===41)&&(ye=Us(),ye.kind!==148&&_n(148)),_n(23);let Fe=VR(),mt=$i(130)?Xl():void 0;_n(24);let vt;(j()===58||j()===40||j()===41)&&(vt=Us(),vt.kind!==58&&_n(58));let Lt=Ev();zs();let Sr=Oo(4,xd);return _n(20),Ut(m.createMappedTypeNode(ye,Fe,mt,vt,Lt,Sr),J)}function gT(){let J=M();if($i(26))return Ut(m.createRestTypeNode(Xl()),J);let ye=Xl();if(Bx(ye)&&ye.pos===ye.type.pos){let Fe=m.createOptionalTypeNode(ye.type);return Ze(Fe,ye),Fe.flags=ye.flags,Fe}return ye}function N0(){return Ie()===59||j()===58&&Ie()===59}function HI(){return j()===26?Md(Ie())&&N0():Md(j())&&N0()}function UR(){if(_i(HI)){let J=M(),ye=te(),Fe=Uo(26),mt=tc(),vt=Uo(58);_n(59);let Lt=gT(),Sr=m.createNamedTupleMember(Fe,mt,vt,Lt);return cr(Ut(Sr,J),ye)}return gT()}function qI(){let J=M();return Ut(m.createTupleTypeNode(mu(21,UR,23,24)),J)}function JI(){let J=M();_n(21);let ye=Xl();return _n(22),Ut(m.createParenthesizedType(ye),J)}function KI(){let J;if(j()===128){let ye=M();Ie();let Fe=Ut(L(128),ye);J=ho([Fe],ye)}return J}function XI(){let J=M(),ye=te(),Fe=KI(),mt=$i(105);x.assert(!Fe||mt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let vt=kp(),Lt=tn(4),Sr=Pt(39,!1),bi=mt?m.createConstructorTypeNode(Fe,vt,Lt,Sr):m.createFunctionTypeNode(vt,Lt,Sr);return cr(Ut(bi,J),ye)}function vT(){let J=Us();return j()===25?void 0:J}function YI(J){let ye=M();J&&Ie();let Fe=j()===112||j()===97||j()===106?Us():pl(j());return J&&(Fe=Ut(m.createPrefixUnaryExpression(41,Fe),ye)),Ut(m.createLiteralTypeNode(Fe),ye)}function P0(){return Ie(),j()===102}function M0(){be|=4194304;let J=M(),ye=$i(114);_n(102),_n(21);let Fe=Xl(),mt;if($i(28)){let Sr=t.getTokenStart();_n(19);let bi=j();if(bi===118||bi===132?Ie():Qt(f._0_expected,qo(118)),_n(59),mt=zy(bi,!0),!_n(20)){let fi=Ns(Le);fi&&fi.code===f._0_expected.code&&pa(fi,Ix(_e,Te,Sr,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}_n(22);let vt=$i(25)?Gc():void 0,Lt=nc();return Ut(m.createImportTypeNode(Fe,mt,vt,Lt,ye),J)}function Iy(){return Ie(),j()===9||j()===10}function xy(){switch(j()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return ui(vT)||Xu();case 67:t.reScanAsteriskEqualsToken();case 42:return em();case 61:t.reScanQuestionToken();case 58:return Ri();case 100:return _g();case 54:return tm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return YI();case 41:return _i(Iy)?YI(!0):Xu();case 116:return Us();case 110:{let J=ja();return j()===142&&!t.hasPrecedingLineBreak()?Ay(J):J}case 114:return _i(P0)?M0():D0();case 19:return _i(GR)?jR():UI();case 23:return qI();case 21:return JI();case 102:return M0();case 131:return _i(mp)?QI():Xu();case 16:return ge();default:return Xu()}}function kh(J){switch(j()){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!J;case 41:return!J&&_i(Iy);case 21:return!J&&_i(Zb);default:return lo()}}function Zb(){return Ie(),j()===22||u_(!1)||kh()}function La(){let J=M(),ye=xy();for(;!t.hasPrecedingLineBreak();)switch(j()){case 54:Ie(),ye=Ut(m.createJSDocNonNullableType(ye,!0),J);break;case 58:if(_i(At))return ye;Ie(),ye=Ut(m.createJSDocNullableType(ye,!0),J);break;case 23:if(_n(23),kh()){let Fe=Xl();_n(24),ye=Ut(m.createIndexedAccessTypeNode(ye,Fe),J)}else _n(24),ye=Ut(m.createArrayTypeNode(ye),J);break;default:return ye}return ye}function yT(J){let ye=M();return _n(J),Ut(m.createTypeOperatorNode(J,X_()),ye)}function HR(){if($i(96)){let J=nt(Xl);if(it()||j()!==58)return J}}function eE(){let J=M(),ye=ls(),Fe=ui(HR),mt=m.createTypeParameterDeclaration(void 0,ye,Fe);return Ut(mt,J)}function vg(){let J=M();return _n(140),Ut(m.createInferTypeNode(eE()),J)}function X_(){let J=j();switch(J){case 143:case 158:case 148:return yT(J);case 140:return vg()}return ke(La)}function rf(J){if(bT()){let ye=XI(),Fe;return B_(ye)?Fe=J?f.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Fe=J?f.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:f.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,Re(ye,Fe),ye}}function hu(J,ye,Fe){let mt=M(),vt=J===52,Lt=$i(J),Sr=Lt&&rf(vt)||ye();if(j()===J||Lt){let bi=[Sr];for(;$i(J);)bi.push(rf(vt)||ye());Sr=Ut(Fe(ho(bi,mt)),mt)}return Sr}function Yu(){return hu(51,X_,m.createIntersectionTypeNode)}function Cu(){return hu(52,Yu,m.createUnionTypeNode)}function bv(){return Ie(),j()===105}function bT(){return j()===30||j()===21&&_i($I)?!0:j()===105||j()===128&&_i(bv)}function qR(){if(Yg(j())&&Z_(!1),lo()||j()===110)return Ie(),!0;if(j()===23||j()===19){let J=Le.length;return dr(),J===Le.length}return!1}function $I(){return Ie(),!!(j()===22||j()===26||qR()&&(j()===59||j()===28||j()===58||j()===64||j()===22&&(Ie(),j()===39)))}function Ry(){let J=M(),ye=lo()&&ui(tE),Fe=Xl();return ye?Ut(m.createTypePredicateNode(void 0,ye,Fe),J):Fe}function tE(){let J=ls();if(j()===142&&!t.hasPrecedingLineBreak())return Ie(),J}function QI(){let J=M(),ye=ts(131),Fe=j()===110?ja():ls(),mt=$i(142)?Xl():void 0;return Ut(m.createTypePredicateNode(ye,Fe,mt),J)}function Xl(){if(On&81920)return Jo(81920,Xl);if(bT())return XI();let J=M(),ye=Cu();if(!it()&&!t.hasPrecedingLineBreak()&&$i(96)){let Fe=nt(Xl);_n(58);let mt=ke(Xl);_n(59);let vt=ke(Xl);return Ut(m.createConditionalTypeNode(ye,Fe,mt,vt),J)}return ye}function Ev(){return $i(59)?Xl():void 0}function ZI(){switch(j()){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 _i($b);default:return lo()}}function xm(){if(ZI())return!0;switch(j()){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 Cm()?!0:lo()}}function ET(){return j()!==19&&j()!==100&&j()!==86&&j()!==60&&xm()}function we(){let J=Ct();J&&ki(!1);let ye=M(),Fe=jc(!0),mt;for(;mt=Uo(28);)Fe=L0(Fe,mt,jc(!0),ye);return J&&ki(!0),Fe}function Rm(){return $i(64)?jc(!0):void 0}function jc(J){if(nE())return Dy();let ye=Tv(J)||ST(J);if(ye)return ye;let Fe=M(),mt=te(),vt=Mf(0);return vt.kind===80&&j()===39?Sv(Fe,vt,J,mt,void 0):Tu(vt)&&tv(Ot())?L0(vt,Us(),jc(J),Fe):Pf(vt,Fe,J)}function nE(){return j()===127?_t()?!0:_i(bs):!1}function e1(){return Ie(),!t.hasPrecedingLineBreak()&&lo()}function Dy(){let J=M();return Ie(),!t.hasPrecedingLineBreak()&&(j()===42||xm())?Ut(m.createYieldExpression(Uo(42),jc(!0)),J):Ut(m.createYieldExpression(void 0,void 0),J)}function Sv(J,ye,Fe,mt,vt){x.assert(j()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let Lt=m.createParameterDeclaration(void 0,void 0,ye,void 0,void 0,void 0);Ut(Lt,ye.pos);let Sr=ho([Lt],Lt.pos,Lt.end),bi=ts(39),fi=AT(!!vt,Fe),Zr=m.createArrowFunction(vt,void 0,Sr,void 0,bi,fi);return cr(Ut(Zr,J),mt)}function Tv(J){let ye=SP();if(ye!==0)return ye===1?rE(!0,!0):ui(()=>Dm(J))}function SP(){return j()===21||j()===30||j()===134?_i(xa):j()===39?1:0}function xa(){if(j()===134&&(Ie(),t.hasPrecedingLineBreak()||j()!==21&&j()!==30))return 0;let J=j(),ye=Ie();if(J===21){if(ye===22)switch(Ie()){case 39:case 59:case 19:return 1;default:return 0}if(ye===23||ye===19)return 2;if(ye===26)return 1;if(Yg(ye)&&ye!==134&&_i(Du))return Ie()===130?0:1;if(!lo()&&ye!==110)return 0;switch(Ie()){case 59:return 1;case 58:return Ie(),j()===59||j()===28||j()===64||j()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return x.assert(J===30),!lo()&&j()!==87?0:he===1?_i(()=>{$i(87);let mt=Ie();if(mt===96)switch(Ie()){case 64:case 32:case 44:return!1;default:return!0}else if(mt===28||mt===64)return!0;return!1})?1:0:2}function Dm(J){let ye=t.getTokenStart();if(gn?.has(ye))return;let Fe=rE(!1,J);return Fe||(gn||(gn=new Set)).add(ye),Fe}function ST(J){if(j()===134&&_i(TT)===1){let ye=M(),Fe=te(),mt=zp(),vt=Mf(0);return Sv(ye,vt,J,Fe,mt)}}function TT(){if(j()===134){if(Ie(),t.hasPrecedingLineBreak()||j()===39)return 0;let J=Mf(0);if(!t.hasPrecedingLineBreak()&&J.kind===80&&j()===39)return 1}return 0}function rE(J,ye){let Fe=M(),mt=te(),vt=zp(),Lt=ct(vt,aN)?2:0,Sr=kp(),bi;if(_n(21)){if(J)bi=wn(Lt,J);else{let Vh=wn(Lt,J);if(!Vh)return;bi=Vh}if(!_n(22)&&!J)return}else{if(!J)return;bi=Ku()}let fi=j()===59,Zr=Pt(59,!1);if(Zr&&!J&&_u(Zr))return;let Mi=Zr;for(;Mi?.kind===196;)Mi=Mi.type;let Ua=Mi&&Gx(Mi);if(!J&&j()!==39&&(Ua||j()!==19))return;let os=j(),Ma=ts(39),lf=os===39||os===19?AT(ct(vt,aN),ye):ls();if(!ye&&fi&&j()!==59)return;let g_=m.createArrowFunction(vt,Sr,bi,Zr,Ma,lf);return cr(Ut(g_,Fe),mt)}function AT(J,ye){if(j()===19)return Ly(J?2:0);if(j()!==27&&j()!==100&&j()!==86&&z0()&&!ET())return Ly(16|(J?2:0));let Fe=en;en=!1;let mt=J?re(()=>jc(ye)):Ce(()=>jc(ye));return en=Fe,mt}function Pf(J,ye,Fe){let mt=Uo(58);if(!mt)return J;let vt;return Ut(m.createConditionalExpression(J,mt,Jo(r,()=>jc(!1)),vt=ts(59),gf(vt)?jc(Fe):vs(80,!1,f._0_expected,qo(59))),ye)}function Mf(J){let ye=M(),Fe=Cy();return t1(J,Fe,ye)}function yg(J){return J===103||J===165}function t1(J,ye,Fe){for(;;){Ot();let mt=zL(j());if(!(j()===43?mt>=J:mt>J)||j()===103&&ze())break;if(j()===130||j()===152){if(t.hasPrecedingLineBreak())break;{let Lt=j();Ie(),ye=Lt===152?JR(ye,Xl()):Pi(ye,Xl())}}else ye=L0(ye,Us(),Mf(mt),Fe)}return ye}function Cm(){return ze()&&j()===103?!1:zL(j())>0}function JR(J,ye){return Ut(m.createSatisfiesExpression(J,ye),J.pos)}function L0(J,ye,Fe,mt){return Ut(m.createBinaryExpression(J,ye,Fe),mt)}function Pi(J,ye){return Ut(m.createAsExpression(J,ye),J.pos)}function Fr(){let J=M();return Ut(m.createPrefixUnaryExpression(j(),Pe(Xs)),J)}function Y_(){let J=M();return Ut(m.createDeleteExpression(Pe(Xs)),J)}function gu(){let J=M();return Ut(m.createTypeOfExpression(Pe(Xs)),J)}function TP(){let J=M();return Ut(m.createVoidExpression(Pe(Xs)),J)}function bg(){return j()===135?on()?!0:_i(bs):!1}function AP(){let J=M();return Ut(m.createAwaitExpression(Pe(Xs)),J)}function Cy(){if(pp()){let Fe=M(),mt=Oh();return j()===43?t1(zL(j()),mt,Fe):mt}let J=j(),ye=Xs();if(j()===43){let Fe=ua(Te,ye.pos),{end:mt}=ye;ye.kind===216?V(Fe,mt,f.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(x.assert(PW(J)),V(Fe,mt,f.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,qo(J)))}return ye}function Xs(){switch(j()){case 40:case 41:case 55:case 54:return Fr();case 91:return Y_();case 114:return gu();case 116:return TP();case 30:return he===1?Eg(!0,void 0,void 0,!0):im();case 135:if(bg())return AP();default:return Oh()}}function pp(){switch(j()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(he!==1)return!1;default:return!0}}function Oh(){if(j()===46||j()===47){let ye=M();return Ut(m.createPrefixUnaryExpression(j(),Pe(Lf)),ye)}else if(he===1&&j()===30&&_i(Nf))return Eg(!0);let J=Lf();if(x.assert(Tu(J)),(j()===46||j()===47)&&!t.hasPrecedingLineBreak()){let ye=j();return Ie(),Ut(m.createPostfixUnaryExpression(J,ye),J.pos)}return J}function Lf(){let J=M(),ye;return j()===102?_i(Vc)?(be|=4194304,ye=Us()):_i(gg)?(Ie(),Ie(),ye=Ut(m.createMetaProperty(102,tc()),J),be|=8388608):ye=Ny():ye=j()===108?rm():Ny(),Iv(J,ye)}function Ny(){let J=M(),ye=iE();return Mc(J,ye,!0)}function rm(){let J=M(),ye=Us();if(j()===30){let Fe=M(),mt=ui(Xn);mt!==void 0&&(V(Fe,M(),f.super_may_not_use_type_arguments),Oi()||(ye=m.createExpressionWithTypeArguments(ye,mt)))}return j()===21||j()===25||j()===23?ye:(ts(25,f.super_must_be_followed_by_an_argument_list_or_member_access),Ut(K(ye,xt(!0,!0,!0)),J))}function Eg(J,ye,Fe,mt=!1){let vt=M(),Lt=Wh(J),Sr;if(Lt.kind===286){let bi=wh(Lt),fi,Zr=bi[bi.length-1];if(Zr?.kind===284&&!Fb(Zr.openingElement.tagName,Zr.closingElement.tagName)&&Fb(Lt.tagName,Zr.closingElement.tagName)){let Mi=Zr.children.end,Ua=Ut(m.createJsxElement(Zr.openingElement,Zr.children,Ut(m.createJsxClosingElement(Ut(C(""),Mi,Mi)),Mi,Mi)),Zr.openingElement.pos,Mi);bi=ho([...bi.slice(0,bi.length-1),Ua],bi.pos,Mi),fi=Zr.closingElement}else fi=O0(Lt,J),Fb(Lt.tagName,fi.tagName)||(Fe&&n_(Fe)&&Fb(fi.tagName,Fe.tagName)?Re(Lt.tagName,f.JSX_element_0_has_no_corresponding_closing_tag,uC(Te,Lt.tagName)):Re(fi.tagName,f.Expected_corresponding_JSX_closing_tag_for_0,uC(Te,Lt.tagName)));Sr=Ut(m.createJsxElement(Lt,bi,fi),vt)}else Lt.kind===289?Sr=Ut(m.createJsxFragment(Lt,wh(Lt),RT(J)),vt):(x.assert(Lt.kind===285),Sr=Lt);if(!mt&&J&&j()===30){let bi=typeof ye>"u"?Sr.pos:ye,fi=ui(()=>Eg(!0,bi));if(fi){let Zr=vs(28,!1);return JC(Zr,fi.pos,0),V(ua(Te,bi),fi.end,f.JSX_expressions_must_have_one_parent_element),Ut(m.createBinaryExpression(Sr,Zr,fi),vt)}}return Sr}function k0(){let J=M(),ye=m.createJsxText(t.getTokenValue(),st===13);return st=t.scanJsxToken(),Ut(ye,J)}function IT(J,ye){switch(ye){case 1:if(fI(J))Re(J,f.JSX_fragment_has_no_corresponding_closing_tag);else{let Fe=J.tagName,mt=Math.min(ua(Te,Fe.pos),Fe.end);V(mt,Fe.end,f.JSX_element_0_has_no_corresponding_closing_tag,uC(Te,J.tagName))}return;case 31:case 7:return;case 12:case 13:return k0();case 19:return KR(!1);case 30:return Eg(!1,void 0,J);default:return x.assertNever(ye)}}function wh(J){let ye=[],Fe=M(),mt=jt;for(jt|=16384;;){let vt=IT(J,st=t.reScanJsxToken());if(!vt||(ye.push(vt),n_(J)&&vt?.kind===284&&!Fb(vt.openingElement.tagName,vt.closingElement.tagName)&&Fb(J.tagName,vt.closingElement.tagName)))break}return jt=mt,ho(ye,Fe)}function n1(){let J=M();return Ut(m.createJsxAttributes(Oo(13,XR)),J)}function Wh(J){let ye=M();if(_n(30),j()===32)return jn(),Ut(m.createJsxOpeningFragment(),ye);let Fe=p_(),mt=On&524288?void 0:uE(),vt=n1(),Lt;return j()===32?(jn(),Lt=m.createJsxOpeningElement(Fe,mt,vt)):(_n(44),_n(32,void 0,!1)&&(J?Ie():jn()),Lt=m.createJsxSelfClosingElement(Fe,mt,vt)),Ut(Lt,ye)}function p_(){let J=M(),ye=Av();if(Em(ye))return ye;let Fe=ye;for(;$i(25);)Fe=Ut(K(Fe,xt(!0,!1,!1)),J);return Fe}function Av(){let J=M();di();let ye=j()===110,Fe=ae();return $i(59)?(di(),Ut(m.createJsxNamespacedName(Fe,ae()),J)):ye?Ut(m.createToken(110),J):Fe}function KR(J){let ye=M();if(!_n(19))return;let Fe,mt;return j()!==20&&(J||(Fe=Uo(26)),mt=we()),J?_n(20):_n(20,void 0,!1)&&jn(),Ut(m.createJsxExpression(Fe,mt),ye)}function XR(){if(j()===19)return Ds();let J=M();return Ut(m.createJsxAttribute(xT(),YR()),J)}function YR(){if(j()===64){if(Ar()===11)return Or();if(j()===19)return KR(!0);if(j()===30)return Eg(!0);Qt(f.or_JSX_element_expected)}}function xT(){let J=M();di();let ye=ae();return $i(59)?(di(),Ut(m.createJsxNamespacedName(ye,ae()),J)):ye}function Ds(){let J=M();_n(19),_n(26);let ye=we();return _n(20),Ut(m.createJsxSpreadAttribute(ye),J)}function O0(J,ye){let Fe=M();_n(31);let mt=p_();return _n(32,void 0,!1)&&(ye||!Fb(J.tagName,mt)?Ie():jn()),Ut(m.createJsxClosingElement(mt),Fe)}function RT(J){let ye=M();return _n(31),_n(32,f.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(J?Ie():jn()),Ut(m.createJsxJsxClosingFragment(),ye)}function im(){x.assert(he!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let J=M();_n(30);let ye=Xl();_n(32);let Fe=Xs();return Ut(m.createTypeAssertion(ye,Fe),J)}function Py(){return Ie(),Md(j())||j()===23||Oi()}function $R(){return j()===29&&_i(Py)}function DT(J){if(J.flags&64)return!0;if(dI(J)){let ye=J.expression;for(;dI(ye)&&!(ye.flags&64);)ye=ye.expression;if(ye.flags&64){for(;dI(J);)J.flags|=64,J=J.expression;return!0}}return!1}function IP(J,ye,Fe){let mt=xt(!0,!0,!0),vt=Fe||DT(ye),Lt=vt?F(ye,Fe,mt):K(ye,mt);if(vt&&Ci(Lt.name)&&Re(Lt.name,f.An_optional_chain_cannot_contain_private_identifiers),sv(ye)&&ye.typeArguments){let Sr=ye.typeArguments.pos-1,bi=ua(Te,ye.typeArguments.end)+1;V(Sr,bi,f.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ut(Lt,J)}function nr(J,ye,Fe){let mt;if(j()===24)mt=vs(80,!0,f.An_element_access_expression_should_take_an_argument);else{let Lt=ln(we);Tp(Lt)&&(Lt.text=Pc(Lt.text)),mt=Lt}_n(24);let vt=Fe||DT(ye)?W(ye,Fe,mt):oe(ye,mt);return Ut(vt,J)}function Mc(J,ye,Fe){for(;;){let mt,vt=!1;if(Fe&&$R()?(mt=ts(29),vt=Md(j())):vt=$i(25),vt){ye=IP(J,ye,mt);continue}if((mt||!Ct())&&$i(23)){ye=nr(J,ye,mt);continue}if(Oi()){ye=!mt&&ye.kind===233?wp(J,ye.expression,mt,ye.typeArguments):wp(J,ye,mt,void 0);continue}if(!mt){if(j()===54&&!t.hasPrecedingLineBreak()){Ie(),ye=Ut(m.createNonNullExpression(ye),J);continue}let Lt=ui(Xn);if(Lt){ye=Ut(m.createExpressionWithTypeArguments(ye,Lt),J);continue}}return ye}}function Oi(){return j()===15||j()===16}function wp(J,ye,Fe,mt){let vt=m.createTaggedTemplateExpression(ye,mt,j()===15?(An(!0),Or()):k(!0));return(Fe||ye.flags&64)&&(vt.flags|=64),vt.questionDotToken=Fe,Ut(vt,J)}function Iv(J,ye){for(;;){ye=Mc(J,ye,!0);let Fe,mt=Uo(29);if(mt&&(Fe=ui(Xn),Oi())){ye=wp(J,ye,mt,Fe);continue}if(Fe||j()===21){!mt&&ye.kind===233&&(Fe=ye.typeArguments,ye=ye.expression);let vt=f_(),Lt=mt||DT(ye)?de(ye,mt,Fe,vt):$(ye,Fe,vt);ye=Ut(Lt,J);continue}if(mt){let vt=vs(80,!1,f.Identifier_expected);ye=Ut(F(ye,mt,vt),J)}break}return ye}function f_(){_n(21);let J=fd(11,w0);return _n(22),J}function Xn(){if(On&524288||Cn()!==30)return;Ie();let J=fd(20,Xl);if(Ot()===32)return Ie(),J&&CT()?J:void 0}function CT(){switch(j()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||Cm()||!xm()}function iE(){switch(j()){case 15:t.getTokenFlags()&26656&&An(!1);case 9:case 10:case 11:return Or();case 110:case 108:case 106:case 112:case 97:return Us();case 21:return Tc();case 23:return W0();case 19:return Sg();case 134:if(!_i(OT))break;return NT();case 60:return dE();case 86:return c1();case 100:return NT();case 105:return oE();case 44:case 69:if(dn()===14)return Or();break;case 16:return k(!1);case 81:return tr()}return ls(f.Expression_expected)}function Tc(){let J=M(),ye=te();_n(21);let Fe=ln(we);return _n(22),cr(Ut(q(Fe),J),ye)}function $_(){let J=M();_n(26);let ye=jc(!0);return Ut(m.createSpreadElement(ye),J)}function om(){return j()===26?$_():j()===28?Ut(m.createOmittedExpression(),M()):jc(!0)}function w0(){return Jo(r,om)}function W0(){let J=M(),ye=t.getTokenStart(),Fe=_n(23),mt=t.hasPrecedingLineBreak(),vt=fd(15,om);return Fc(23,24,Fe,ye),Ut(G(vt,mt),J)}function My(){let J=M(),ye=te();if(Uo(26)){let Mi=jc(!0);return cr(Ut(m.createSpreadAssignment(Mi),J),ye)}let Fe=Z_(!0);if(Ir(139))return Ag(J,ye,Fe,177,0);if(Ir(153))return Ag(J,ye,Fe,178,0);let mt=Uo(42),vt=lo(),Lt=$t(),Sr=Uo(58),bi=Uo(54);if(mt||j()===21||j()===30)return Nm(J,ye,Fe,mt,Lt,Sr,bi);let fi;if(vt&&j()!==59){let Mi=Uo(64),Ua=Mi?ln(()=>jc(!0)):void 0;fi=m.createShorthandPropertyAssignment(Lt,Ua),fi.equalsToken=Mi}else{_n(59);let Mi=ln(()=>jc(!0));fi=m.createPropertyAssignment(Lt,Mi)}return fi.modifiers=Fe,fi.questionToken=Sr,fi.exclamationToken=bi,cr(Ut(fi,J),ye)}function Sg(){let J=M(),ye=t.getTokenStart(),Fe=_n(19),mt=t.hasPrecedingLineBreak(),vt=fd(12,My,!0);return Fc(19,20,Fe,ye),Ut(U(vt,mt),J)}function NT(){let J=Ct();ki(!1);let ye=M(),Fe=te(),mt=Z_(!1);_n(100);let vt=Uo(42),Lt=vt?1:0,Sr=ct(mt,aN)?2:0,bi=Lt&&Sr?et(am):Lt?tt(am):Sr?re(am):am(),fi=kp(),Zr=tn(Lt|Sr),Mi=Pt(59,!1),Ua=Ly(Lt|Sr);ki(J);let os=m.createFunctionExpression(mt,vt,bi,fi,Zr,Mi,Ua);return cr(Ut(os,ye),Fe)}function am(){return Mr()?Ju():void 0}function oE(){let J=M();if(_n(105),$i(25)){let Lt=tc();return Ut(m.createMetaProperty(105,Lt),J)}let ye=M(),Fe=Mc(ye,iE(),!1),mt;Fe.kind===233&&(mt=Fe.typeArguments,Fe=Fe.expression),j()===29&&Qt(f.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,uC(Te,Fe));let vt=j()===21?f_():void 0;return Ut(fe(Fe,mt,vt),J)}function Fh(J,ye){let Fe=M(),mt=te(),vt=t.getTokenStart(),Lt=_n(19,ye);if(Lt||J){let Sr=t.hasPrecedingLineBreak(),bi=Oo(1,Pu);Fc(19,20,Lt,vt);let fi=cr(Ut(H(bi,Sr),Fe),mt);return j()===64&&(Qt(f.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),Ie()),fi}else{let Sr=Ku();return cr(Ut(H(Sr,void 0),Fe),mt)}}function Ly(J,ye){let Fe=_t();ni(!!(J&1));let mt=on();so(!!(J&2));let vt=en;en=!1;let Lt=Ct();Lt&&ki(!1);let Sr=Fh(!!(J&16),ye);return Lt&&ki(!0),en=vt,ni(Fe),so(mt),Sr}function r1(){let J=M(),ye=te();return _n(27),cr(Ut(m.createEmptyStatement(),J),ye)}function aE(){let J=M(),ye=te();_n(101);let Fe=t.getTokenStart(),mt=_n(21),vt=ln(we);Fc(21,22,mt,Fe);let Lt=Pu(),Sr=$i(93)?Pu():void 0;return cr(Ut(Ee(vt,Lt,Sr),J),ye)}function QR(){let J=M(),ye=te();_n(92);let Fe=Pu();_n(117);let mt=t.getTokenStart(),vt=_n(21),Lt=ln(we);return Fc(21,22,vt,mt),$i(27),cr(Ut(m.createDoStatement(Fe,Lt),J),ye)}function F0(){let J=M(),ye=te();_n(117);let Fe=t.getTokenStart(),mt=_n(21),vt=ln(we);Fc(21,22,mt,Fe);let Lt=Pu();return cr(Ut(ce(vt,Lt),J),ye)}function PT(){let J=M(),ye=te();_n(99);let Fe=Uo(135);_n(21);let mt;j()!==27&&(j()===115||j()===121||j()===87||j()===160&&_i(Tg)||j()===135&&_i($u)?mt=B0(!0):mt=Tn(we));let vt;if(Fe?_n(165):$i(165)){let Lt=ln(()=>jc(!0));_n(22),vt=pe(Fe,mt,Lt,Pu())}else if($i(103)){let Lt=ln(we);_n(22),vt=m.createForInStatement(mt,Lt,Pu())}else{_n(27);let Lt=j()!==27&&j()!==22?ln(we):void 0;_n(27);let Sr=j()!==22?ln(we):void 0;_n(22),vt=Z(mt,Lt,Sr,Pu())}return cr(Ut(vt,J),ye)}function fp(J){let ye=M(),Fe=te();_n(J===252?83:88);let mt=Wl()?void 0:ls();zs();let vt=J===252?m.createBreakStatement(mt):m.createContinueStatement(mt);return cr(Ut(vt,ye),Fe)}function MT(){let J=M(),ye=te();_n(107);let Fe=Wl()?void 0:ln(we);return zs(),cr(Ut(m.createReturnStatement(Fe),J),ye)}function yl(){let J=M(),ye=te();_n(118);let Fe=t.getTokenStart(),mt=_n(21),vt=ln(we);Fc(21,22,mt,Fe);let Lt=ba(67108864,Pu);return cr(Ut(m.createWithStatement(vt,Lt),J),ye)}function fc(){let J=M(),ye=te();_n(84);let Fe=ln(we);_n(59);let mt=Oo(3,Pu);return cr(Ut(m.createCaseClause(Fe,mt),J),ye)}function LT(){let J=M();_n(90),_n(59);let ye=Oo(3,Pu);return Ut(m.createDefaultClause(ye),J)}function Qc(){return j()===84?fc():LT()}function Nu(){let J=M();_n(19);let ye=Oo(2,Qc);return _n(20),Ut(m.createCaseBlock(ye),J)}function sE(){let J=M(),ye=te();_n(109),_n(21);let Fe=ln(we);_n(22);let mt=Nu();return cr(Ut(m.createSwitchStatement(Fe,mt),J),ye)}function of(){let J=M(),ye=te();_n(111);let Fe=t.hasPrecedingLineBreak()?void 0:ln(we);return Fe===void 0&&(Vt++,Fe=Ut(C(""),M())),il()||Dl(Fe),cr(Ut(m.createThrowStatement(Fe),J),ye)}function ky(){let J=M(),ye=te();_n(113);let Fe=Fh(!1),mt=j()===85?Oy():void 0,vt;return(!mt||j()===98)&&(_n(98,f.catch_or_finally_expected),vt=Fh(!1)),cr(Ut(m.createTryStatement(Fe,mt,vt),J),ye)}function Oy(){let J=M();_n(85);let ye;$i(21)?(ye=nu(),_n(22)):ye=void 0;let Fe=Fh(!1);return Ut(m.createCatchClause(ye,Fe),J)}function Lc(){let J=M(),ye=te();return _n(89),zs(),cr(Ut(m.createDebuggerStatement(),J),ye)}function i1(){let J=M(),ye=te(),Fe,mt=j()===21,vt=ln(we);return Me(vt)&&$i(59)?Fe=m.createLabeledStatement(vt,Pu()):(il()||Dl(vt),Fe=le(vt),mt&&(ye=!1)),cr(Ut(Fe,J),ye)}function mp(){return Ie(),Md(j())&&!t.hasPrecedingLineBreak()}function kT(){return Ie(),j()===86&&!t.hasPrecedingLineBreak()}function OT(){return Ie(),j()===100&&!t.hasPrecedingLineBreak()}function bs(){return Ie(),(Md(j())||j()===9||j()===10||j()===11)&&!t.hasPrecedingLineBreak()}function ZR(){for(;;)switch(j()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return o1();case 135:return a1();case 120:case 156:return e1();case 144:case 145:return nD();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let J=j();if(Ie(),t.hasPrecedingLineBreak())return!1;if(J===138&&j()===156)return!0;continue;case 162:return Ie(),j()===19||j()===80||j()===95;case 102:return Ie(),j()===11||j()===42||j()===19||Md(j());case 95:let ye=Ie();if(ye===156&&(ye=_i(Ie)),ye===64||ye===42||ye===19||ye===90||ye===130||ye===60)return!0;continue;case 126:Ie();continue;default:return!1}}function lE(){return _i(ZR)}function z0(){switch(j()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return lE()||_i($b);case 87:case 95:return lE();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return lE()||!_i(mp);default:return xm()}}function xP(){return Ie(),Mr()||j()===19||j()===23}function jd(){return _i(xP)}function Tg(){return m_(!0)}function m_(J){return Ie(),J&&j()===165?!1:(Mr()||j()===19)&&!t.hasPrecedingLineBreak()}function o1(){return _i(m_)}function $u(J){return Ie()===160?m_(J):!1}function a1(){return _i($u)}function Pu(){switch(j()){case 27:return r1();case 19:return Fh(!1);case 115:return cE(M(),te(),void 0);case 121:if(jd())return cE(M(),te(),void 0);break;case 135:if(a1())return cE(M(),te(),void 0);break;case 160:if(o1())return cE(M(),te(),void 0);break;case 100:return G0(M(),te(),void 0);case 86:return BT(M(),te(),void 0);case 101:return aE();case 92:return QR();case 117:return F0();case 99:return PT();case 88:return fp(251);case 83:return fp(252);case 107:return MT();case 118:return yl();case 109:return sE();case 111:return of();case 113:case 85:case 98:return ky();case 89:return Lc();case 60:return xv();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(lE())return xv();break}return i1()}function s1(J){return J.kind===138}function xv(){let J=M(),ye=te(),Fe=Z_(!0);if(ct(Fe,s1)){let vt=wT(J);if(vt)return vt;for(let Lt of Fe)Lt.flags|=33554432;return ba(33554432,()=>eD(J,ye,Fe))}else return eD(J,ye,Fe)}function wT(J){return ba(33554432,()=>{let ye=Kl(jt,J);if(ye)return Bs(ye)})}function eD(J,ye,Fe){switch(j()){case 115:case 121:case 87:case 160:case 135:return cE(J,ye,Fe);case 100:return G0(J,ye,Fe);case 86:return BT(J,ye,Fe);case 120:return rt(J,ye,Fe);case 156:return Ht(J,ye,Fe);case 94:return vi(J,ye,Fe);case 162:case 144:case 145:return Rd(J,ye,Fe);case 102:return Pn(J,ye,Fe);case 95:switch(Ie(),j()){case 90:case 64:return nh(J,ye,Fe);case 130:return eh(J,ye,Fe);default:return RP(J,ye,Fe)}default:if(Fe){let mt=vs(282,!0,f.Declaration_expected);return qC(mt,J),mt.modifiers=Fe,mt}return}}function tD(){return Ie()===11}function WT(){return Ie(),j()===161||j()===64}function nD(){return Ie(),!t.hasPrecedingLineBreak()&&(lo()||j()===11)}function wy(J,ye){if(j()!==19){if(J&4){Wn();return}if(Wl()){zs();return}}return Ly(J,ye)}function Qu(){let J=M();if(j()===28)return Ut(m.createOmittedExpression(),J);let ye=Uo(26),Fe=dr(),mt=Rm();return Ut(m.createBindingElement(ye,void 0,Fe,mt),J)}function Q_(){let J=M(),ye=Uo(26),Fe=Mr(),mt=$t(),vt;Fe&&j()!==59?(vt=mt,mt=void 0):(_n(59),vt=dr());let Lt=Rm();return Ut(m.createBindingElement(ye,mt,vt,Lt),J)}function rD(){let J=M();_n(19);let ye=ln(()=>fd(9,Q_));return _n(20),Ut(m.createObjectBindingPattern(ye),J)}function FT(){let J=M();_n(23);let ye=ln(()=>fd(10,Qu));return _n(24),Ut(m.createArrayBindingPattern(ye),J)}function Oa(){return j()===19||j()===23||j()===81||Mr()}function dr(J){return j()===23?FT():j()===19?rD():Ju(J)}function Wp(){return nu(!0)}function nu(J){let ye=M(),Fe=te(),mt=dr(f.Private_identifiers_are_not_allowed_in_variable_declarations),vt;J&&mt.kind===80&&j()===54&&!t.hasPrecedingLineBreak()&&(vt=Us());let Lt=Ev(),Sr=yg(j())?void 0:Rm(),bi=Ae(mt,vt,Lt,Sr);return cr(Ut(bi,ye),Fe)}function B0(J){let ye=M(),Fe=0;switch(j()){case 115:break;case 121:Fe|=1;break;case 87:Fe|=2;break;case 160:Fe|=4;break;case 135:x.assert(a1()),Fe|=6,Ie();break;default:x.fail()}Ie();let mt;if(j()===165&&_i(iD))mt=Ku();else{let vt=ze();qr(J),mt=fd(8,J?nu:Wp),qr(vt)}return Ut(Oe(mt,Fe),ye)}function iD(){return Du()&&Ie()===22}function cE(J,ye,Fe){let mt=B0(!1);zs();let vt=ee(Fe,mt);return cr(Ut(vt,J),ye)}function G0(J,ye,Fe){let mt=on(),vt=$m(Fe);_n(100);let Lt=Uo(42),Sr=vt&2048?am():Ju(),bi=Lt?1:0,fi=vt&1024?2:0,Zr=kp();vt&32&&so(!0);let Mi=tn(bi|fi),Ua=Pt(59,!1),os=wy(bi|fi,f.or_expected);so(mt);let Ma=m.createFunctionDeclaration(Fe,Lt,Sr,Zr,Mi,Ua,os);return cr(Ut(Ma,J),ye)}function zT(){if(j()===137)return _n(137);if(j()===11&&_i(Ie)===21)return ui(()=>{let J=Or();return J.text==="constructor"?J:void 0})}function zh(J,ye,Fe){return ui(()=>{if(zT()){let mt=kp(),vt=tn(0),Lt=Pt(59,!1),Sr=wy(0,f.or_expected),bi=m.createConstructorDeclaration(Fe,vt,Sr);return bi.typeParameters=mt,bi.type=Lt,cr(Ut(bi,J),ye)}})}function Nm(J,ye,Fe,mt,vt,Lt,Sr,bi){let fi=mt?1:0,Zr=ct(Fe,aN)?2:0,Mi=kp(),Ua=tn(fi|Zr),os=Pt(59,!1),Ma=wy(fi|Zr,bi),lf=m.createMethodDeclaration(Fe,mt,vt,Lt,Mi,Ua,os,Ma);return lf.exclamationToken=Sr,cr(Ut(lf,J),ye)}function Fp(J,ye,Fe,mt,vt){let Lt=!vt&&!t.hasPrecedingLineBreak()?Uo(54):void 0,Sr=Ev(),bi=Jo(90112,Rm);gs(mt,Sr,bi);let fi=m.createPropertyDeclaration(Fe,mt,vt||Lt,Sr,bi);return cr(Ut(fi,J),ye)}function sm(J,ye,Fe){let mt=Uo(42),vt=$t(),Lt=Uo(58);return mt||j()===21||j()===30?Nm(J,ye,Fe,mt,vt,Lt,void 0,f.or_expected):Fp(J,ye,Fe,vt,Lt)}function Ag(J,ye,Fe,mt,vt){let Lt=$t(),Sr=kp(),bi=tn(0),fi=Pt(59,!1),Zr=wy(vt),Mi=mt===177?m.createGetAccessorDeclaration(Fe,Lt,bi,fi,Zr):m.createSetAccessorDeclaration(Fe,Lt,bi,Zr);return Mi.typeParameters=Sr,Vu(Mi)&&(Mi.type=fi),cr(Ut(Mi,J),ye)}function Bh(){let J;if(j()===60)return!0;for(;Yg(j());){if(J=j(),XG(J))return!0;Ie()}if(j()===42||(X()&&(J=j(),Ie()),j()===23))return!0;if(J!==void 0){if(!du(J)||J===153||J===139)return!0;switch(j()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Wl()}}return!1}function Gh(J,ye,Fe){ts(126);let mt=l1(),vt=cr(Ut(m.createClassStaticBlockDeclaration(mt),J),ye);return vt.modifiers=Fe,vt}function l1(){let J=_t(),ye=on();ni(!1),so(!0);let Fe=Fh(!1);return ni(J),so(ye),Fe}function Fl(){if(on()&&j()===135){let J=M(),ye=ls(f.Expression_expected);Ie();let Fe=Mc(J,ye,!0);return Iv(J,Fe)}return Lf()}function oD(){let J=M();if(!$i(60))return;let ye=yt(Fl);return Ut(m.createDecorator(ye),J)}function af(J,ye,Fe){let mt=M(),vt=j();if(j()===87&&ye){if(!ui(pi))return}else{if(Fe&&j()===126&&_i(Fy))return;if(J&&j()===126)return;if(!bc())return}return Ut(L(vt),mt)}function Z_(J,ye,Fe){let mt=M(),vt,Lt,Sr,bi=!1,fi=!1,Zr=!1;if(J&&j()===60)for(;Lt=oD();)vt=pn(vt,Lt);for(;Sr=af(bi,ye,Fe);)Sr.kind===126&&(bi=!0),vt=pn(vt,Sr),fi=!0;if(fi&&J&&j()===60)for(;Lt=oD();)vt=pn(vt,Lt),Zr=!0;if(Zr)for(;Sr=af(bi,ye,Fe);)Sr.kind===126&&(bi=!0),vt=pn(vt,Sr);return vt&&ho(vt,mt)}function zp(){let J;if(j()===134){let ye=M();Ie();let Fe=Ut(L(134),ye);J=ho([Fe],ye)}return J}function V0(){let J=M(),ye=te();if(j()===27)return Ie(),cr(Ut(m.createSemicolonClassElement(),J),ye);let Fe=Z_(!0,!0,!0);if(j()===126&&_i(Fy))return Gh(J,ye,Fe);if(Ir(139))return Ag(J,ye,Fe,177,0);if(Ir(153))return Ag(J,ye,Fe,178,0);if(j()===137||j()===11){let mt=zh(J,ye,Fe);if(mt)return mt}if(Kn())return Qn(J,ye,Fe);if(Md(j())||j()===11||j()===9||j()===42||j()===23)if(ct(Fe,s1)){for(let vt of Fe)vt.flags|=33554432;return ba(33554432,()=>sm(J,ye,Fe))}else return sm(J,ye,Fe);if(Fe){let mt=vs(80,!0,f.Declaration_expected);return Fp(J,ye,Fe,mt,void 0)}return x.fail("Should not have attempted to parse class member declaration.")}function dE(){let J=M(),ye=te(),Fe=Z_(!0);if(j()===86)return Bp(J,ye,Fe,231);let mt=vs(282,!0,f.Expression_expected);return qC(mt,J),mt.modifiers=Fe,mt}function c1(){return Bp(M(),te(),void 0,231)}function BT(J,ye,Fe){return Bp(J,ye,Fe,263)}function Bp(J,ye,Fe,mt){let vt=on();_n(86);let Lt=cs(),Sr=kp();ct(Fe,nI)&&so(!0);let bi=U0(),fi;_n(19)?(fi=ne(),_n(20)):fi=Ku(),so(vt);let Zr=mt===263?m.createClassDeclaration(Fe,Lt,Sr,bi,fi):m.createClassExpression(Fe,Lt,Sr,bi,fi);return cr(Ut(Zr,J),ye)}function cs(){return Mr()&&!j0()?Bc(Mr()):void 0}function j0(){return j()===119&&_i(pc)}function U0(){if(I())return Oo(22,Ig)}function Ig(){let J=M(),ye=j();x.assert(ye===96||ye===119),Ie();let Fe=fd(7,Wy);return Ut(m.createHeritageClause(ye,Fe),J)}function Wy(){let J=M(),ye=Lf();if(ye.kind===233)return ye;let Fe=uE();return Ut(m.createExpressionWithTypeArguments(ye,Fe),J)}function uE(){return j()===30?mu(20,Xl,30,32):void 0}function I(){return j()===96||j()===119}function ne(){return Oo(5,V0)}function rt(J,ye,Fe){_n(120);let mt=ls(),vt=kp(),Lt=U0(),Sr=Qb(),bi=m.createInterfaceDeclaration(Fe,mt,vt,Lt,Sr);return cr(Ut(bi,J),ye)}function Ht(J,ye,Fe){_n(156),t.hasPrecedingLineBreak()&&Qt(f.Line_break_not_permitted_here);let mt=ls(),vt=kp();_n(64);let Lt=j()===141&&ui(vT)||Xl();zs();let Sr=m.createTypeAliasDeclaration(Fe,mt,vt,Lt);return cr(Ut(Sr,J),ye)}function yr(){let J=M(),ye=te(),Fe=$t(),mt=ln(Rm);return cr(Ut(m.createEnumMember(Fe,mt),J),ye)}function vi(J,ye,Fe){_n(94);let mt=ls(),vt;_n(19)?(vt=z(()=>fd(6,yr)),_n(20)):vt=Ku();let Lt=m.createEnumDeclaration(Fe,mt,vt);return cr(Ut(Lt,J),ye)}function ri(){let J=M(),ye;return _n(19)?(ye=Oo(1,Pu),_n(20)):ye=Ku(),Ut(m.createModuleBlock(ye),J)}function wi(J,ye,Fe,mt){let vt=mt&32,Lt=mt&8?tc():ls(),Sr=$i(25)?wi(M(),!1,void 0,8|vt):ri(),bi=m.createModuleDeclaration(Fe,Lt,Sr,mt);return cr(Ut(bi,J),ye)}function $o(J,ye,Fe){let mt=0,vt;j()===162?(vt=ls(),mt|=2048):(vt=Or(),vt.text=Pc(vt.text));let Lt;j()===19?Lt=ri():zs();let Sr=m.createModuleDeclaration(Fe,vt,Lt,mt);return cr(Ut(Sr,J),ye)}function Rd(J,ye,Fe){let mt=0;if(j()===162)return $o(J,ye,Fe);if($i(145))mt|=32;else if(_n(144),j()===11)return $o(J,ye,Fe);return wi(J,ye,Fe,mt)}function ru(){return j()===149&&_i(sf)}function sf(){return Ie()===21}function Fy(){return Ie()===19}function ai(){return Ie()===44}function eh(J,ye,Fe){_n(130),_n(145);let mt=ls();zs();let vt=m.createNamespaceExportDeclaration(mt);return vt.modifiers=Fe,cr(Ut(vt,J),ye)}function Pn(J,ye,Fe){_n(102);let mt=t.getTokenFullStart(),vt;lo()&&(vt=ls());let Lt=!1;if(vt?.escapedText==="type"&&(j()!==161||lo()&&_i(WT))&&(lo()||By())&&(Lt=!0,vt=lo()?ls():void 0),vt&&!GT())return H0(J,ye,Fe,vt,Lt);let Sr;(vt||j()===42||j()===19)&&(Sr=__(vt,mt,Lt),_n(161));let bi=VT(),fi=j(),Zr;(fi===118||fi===132)&&!t.hasPrecedingLineBreak()&&(Zr=zy(fi)),zs();let Mi=m.createImportDeclaration(Fe,Sr,bi,Zr);return cr(Ut(Mi,J),ye)}function d1(){let J=M(),ye=Md(j())?tc():pl(11);_n(59);let Fe=jc(!0);return Ut(m.createImportAttribute(ye,Fe),J)}function zy(J,ye){let Fe=M();ye||_n(J);let mt=t.getTokenStart();if(_n(19)){let vt=t.hasPrecedingLineBreak(),Lt=fd(24,d1,!0);if(!_n(20)){let Sr=Ns(Le);Sr&&Sr.code===f._0_expected.code&&pa(Sr,Ix(_e,Te,mt,1,f.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ut(m.createImportAttributes(Lt,vt,J),Fe)}else{let vt=ho([],M(),void 0,!1);return Ut(m.createImportAttributes(vt,!1,J),Fe)}}function By(){return j()===42||j()===19}function GT(){return j()===28||j()===161}function H0(J,ye,Fe,mt,vt){_n(64);let Lt=th();zs();let Sr=m.createImportEqualsDeclaration(Fe,vt,mt,Lt);return cr(Ut(Sr,J),ye)}function __(J,ye,Fe){let mt;return(!J||$i(28))&&(mt=j()===42?S7():Gy(275)),Ut(m.createImportClause(Fe,J,mt),ye)}function th(){return ru()?aD():Y(!1)}function aD(){let J=M();_n(149),_n(21);let ye=VT();return _n(22),Ut(m.createExternalModuleReference(ye),J)}function VT(){if(j()===11){let J=Or();return J.text=Pc(J.text),J}else return we()}function S7(){let J=M();_n(42),_n(130);let ye=ls();return Ut(m.createNamespaceImport(ye),J)}function Gy(J){let ye=M(),Fe=J===275?m.createNamedImports(mu(23,ZO,19,20)):m.createNamedExports(mu(23,QO,19,20));return Ut(Fe,ye)}function QO(){let J=te();return cr(pE(281),J)}function ZO(){return pE(276)}function pE(J){let ye=M(),Fe=du(j())&&!lo(),mt=t.getTokenStart(),vt=t.getTokenEnd(),Lt=!1,Sr,bi=!0,fi=tc();if(fi.escapedText==="type")if(j()===130){let Ua=tc();if(j()===130){let os=tc();Md(j())?(Lt=!0,Sr=Ua,fi=Mi(),bi=!1):(Sr=fi,fi=os,bi=!1)}else Md(j())?(Sr=fi,bi=!1,fi=Mi()):(Lt=!0,fi=Ua)}else Md(j())&&(Lt=!0,fi=Mi());bi&&j()===130&&(Sr=fi,_n(130),fi=Mi()),J===276&&Fe&&V(mt,vt,f.Identifier_expected);let Zr=J===276?m.createImportSpecifier(Lt,Sr,fi):m.createExportSpecifier(Lt,Sr,fi);return Ut(Zr,ye);function Mi(){return Fe=du(j())&&!lo(),mt=t.getTokenStart(),vt=t.getTokenEnd(),tc()}}function Pm(J){return Ut(m.createNamespaceExport(tc()),J)}function RP(J,ye,Fe){let mt=on();so(!0);let vt,Lt,Sr,bi=$i(156),fi=M();$i(42)?($i(130)&&(vt=Pm(fi)),_n(161),Lt=VT()):(vt=Gy(279),(j()===161||j()===11&&!t.hasPrecedingLineBreak())&&(_n(161),Lt=VT()));let Zr=j();Lt&&(Zr===118||Zr===132)&&!t.hasPrecedingLineBreak()&&(Sr=zy(Zr)),zs(),so(mt);let Mi=m.createExportDeclaration(Fe,bi,vt,Lt,Sr);return cr(Ut(Mi,J),ye)}function nh(J,ye,Fe){let mt=on();so(!0);let vt;$i(64)?vt=!0:_n(90);let Lt=jc(!0);zs(),so(mt);let Sr=m.createExportAssignment(Fe,vt,Lt);return cr(Ut(Sr,J),ye)}let u1;(J=>{J[J.SourceElements=0]="SourceElements",J[J.BlockStatements=1]="BlockStatements",J[J.SwitchClauses=2]="SwitchClauses",J[J.SwitchClauseStatements=3]="SwitchClauseStatements",J[J.TypeMembers=4]="TypeMembers",J[J.ClassMembers=5]="ClassMembers",J[J.EnumMembers=6]="EnumMembers",J[J.HeritageClauseElement=7]="HeritageClauseElement",J[J.VariableDeclarations=8]="VariableDeclarations",J[J.ObjectBindingElements=9]="ObjectBindingElements",J[J.ArrayBindingElements=10]="ArrayBindingElements",J[J.ArgumentExpressions=11]="ArgumentExpressions",J[J.ObjectLiteralMembers=12]="ObjectLiteralMembers",J[J.JsxAttributes=13]="JsxAttributes",J[J.JsxChildren=14]="JsxChildren",J[J.ArrayLiteralMembers=15]="ArrayLiteralMembers",J[J.Parameters=16]="Parameters",J[J.JSDocParameters=17]="JSDocParameters",J[J.RestProperties=18]="RestProperties",J[J.TypeParameters=19]="TypeParameters",J[J.TypeArguments=20]="TypeArguments",J[J.TupleElementTypes=21]="TupleElementTypes",J[J.HeritageClauses=22]="HeritageClauses",J[J.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",J[J.ImportAttributes=24]="ImportAttributes",J[J.JSDocComment=25]="JSDocComment",J[J.Count=26]="Count"})(u1||(u1={}));let ew;(J=>{J[J.False=0]="False",J[J.True=1]="True",J[J.Unknown=2]="Unknown"})(ew||(ew={}));let h_;(J=>{function ye(Zr,Mi,Ua){gi("file.js",Zr,99,void 0,1,0),t.setText(Zr,Mi,Ua),st=t.scan();let os=Fe(),Ma=Rt("file.js",99,1,!1,[],L(1),0,Ca),lf=UA(Le,Ma);return Ke&&(Ma.jsDocDiagnostics=UA(Ke,Ma)),io(),os?{jsDocTypeExpression:os,diagnostics:lf}:void 0}J.parseJSDocTypeExpressionForTests=ye;function Fe(Zr){let Mi=M(),Ua=(Zr?$i:_n)(19),os=ba(16777216,nm);(!Zr||Ua)&&Js(20);let Ma=m.createJSDocTypeExpression(os);return Ue(Ma),Ut(Ma,Mi)}J.parseJSDocTypeExpression=Fe;function mt(){let Zr=M(),Mi=$i(19),Ua=M(),os=Y(!1);for(;j()===81;)ti(),gt(),os=Ut(m.createJSDocMemberName(os,ls()),Ua);Mi&&Js(20);let Ma=m.createJSDocNameReference(os);return Ue(Ma),Ut(Ma,Zr)}J.parseJSDocNameReference=mt;function vt(Zr,Mi,Ua){gi("",Zr,99,void 0,1,0);let os=ba(16777216,()=>fi(Mi,Ua)),lf=UA(Le,{languageVariant:0,text:Zr});return io(),os?{jsDoc:os,diagnostics:lf}:void 0}J.parseIsolatedJSDocComment=vt;function Lt(Zr,Mi,Ua){let os=st,Ma=Le.length,lf=zt,g_=ba(16777216,()=>fi(Mi,Ua));return Ta(g_,Zr),On&524288&&(Ke||(Ke=[]),Pr(Ke,Le,Ma)),st=os,Le.length=Ma,zt=lf,g_}J.parseJSDocComment=Lt;let Sr;(Zr=>{Zr[Zr.BeginningOfLine=0]="BeginningOfLine",Zr[Zr.SawAsterisk=1]="SawAsterisk",Zr[Zr.SavingComments=2]="SavingComments",Zr[Zr.SavingBackticks=3]="SavingBackticks"})(Sr||(Sr={}));let bi;(Zr=>{Zr[Zr.Property=1]="Property",Zr[Zr.Parameter=2]="Parameter",Zr[Zr.CallbackParameter=4]="CallbackParameter"})(bi||(bi={}));function fi(Zr=0,Mi){let Ua=Te,os=Mi===void 0?Ua.length:Zr+Mi;if(Mi=os-Zr,x.assert(Zr>=0),x.assert(Zr<=os),x.assert(os<=Ua.length),!Jj(Ua,Zr))return;let Ma,lf,g_,Vh,xg,Rg=[],Vy=[],Mu=jt;jt|=1<<25;let jT=t.scanRange(Zr+3,Mi-5,sD);return jt=Mu,jT;function sD(){let hn=1,Tr,gr=Zr-(Ua.lastIndexOf(`
`,Zr)+1)+4;function Ei(ns){Tr||(Tr=gr),Rg.push(ns),gr+=ns.length}for(gt();Rv(5););Rv(4)&&(hn=0,gr=0);e:for(;;){switch(j()){case 60:CP(Rg),xg||(xg=M()),PP(lD(gr)),hn=0,Tr=void 0;break;case 4:Rg.push(t.getTokenText()),hn=0,gr=0;break;case 42:let ns=t.getTokenText();hn===1?(hn=2,Ei(ns)):(x.assert(hn===0),hn=1,gr+=ns.length);break;case 5:x.assert(hn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let Dd=t.getTokenText();Tr!==void 0&&gr+Dd.length>Tr&&Rg.push(Dd.slice(Tr-gr)),gr+=Dd.length;break;case 1:break e;case 82:hn=2,Ei(t.getTokenValue());break;case 19:hn=2;let rh=t.getTokenFullStart(),Zu=t.getTokenEnd()-1,Lm=zl(Zu);if(Lm){Vh||DP(Rg),Vy.push(Ut(m.createJSDocText(Rg.join("")),Vh??Zr,rh)),Vy.push(Lm),Rg=[],Vh=t.getTokenEnd();break}default:hn=2,Ei(t.getTokenText());break}hn===2?bt(!1):gt()}let hi=Rg.join("").trimEnd();Vy.length&&hi.length&&Vy.push(Ut(m.createJSDocText(hi),Vh??Zr,xg)),Vy.length&&Ma&&x.assertIsDefined(xg,"having parsed tags implies that the end of the comment span should be set");let wa=Ma&&ho(Ma,lf,g_);return Ut(m.createJSDocComment(Vy.length?ho(Vy,Zr,xg):hi.length?hi:void 0,wa),Zr,os)}function DP(hn){for(;hn.length&&(hn[0]===`
`||hn[0]==="\r");)hn.shift()}function CP(hn){for(;hn.length;){let Tr=hn[hn.length-1].trimEnd();if(Tr==="")hn.pop();else if(Tr.length<hn[hn.length-1].length){hn[hn.length-1]=Tr;break}else break}}function fE(){for(;;){if(gt(),j()===1)return!0;if(!(j()===5||j()===4))return!1}}function Dg(){if(!((j()===5||j()===4)&&_i(fE)))for(;j()===5||j()===4;)gt()}function jy(){if((j()===5||j()===4)&&_i(fE))return"";let hn=t.hasPrecedingLineBreak(),Tr=!1,gr="";for(;hn&&j()===42||j()===5||j()===4;)gr+=t.getTokenText(),j()===4?(hn=!0,Tr=!0,gr=""):j()===42&&(hn=!1),gt();return Tr?gr:""}function lD(hn){x.assert(j()===60);let Tr=t.getTokenStart();gt();let gr=gE(void 0),Ei=jy(),hi;switch(gr.escapedText){case"author":hi=Es(Tr,gr,hn,Ei);break;case"implements":hi=Hy(Tr,gr,hn,Ei);break;case"augments":case"extends":hi=lm(Tr,gr,hn,Ei);break;case"class":case"constructor":hi=hE(Tr,m.createJSDocClassTag,gr,hn,Ei);break;case"public":hi=hE(Tr,m.createJSDocPublicTag,gr,hn,Ei);break;case"private":hi=hE(Tr,m.createJSDocPrivateTag,gr,hn,Ei);break;case"protected":hi=hE(Tr,m.createJSDocProtectedTag,gr,hn,Ei);break;case"readonly":hi=hE(Tr,m.createJSDocReadonlyTag,gr,hn,Ei);break;case"override":hi=hE(Tr,m.createJSDocOverrideTag,gr,hn,Ei);break;case"deprecated":Nr=!0,hi=hE(Tr,m.createJSDocDeprecatedTag,gr,hn,Ei);break;case"this":hi=T7(Tr,gr,hn,Ei);break;case"enum":hi=D$(Tr,gr,hn,Ei);break;case"arg":case"argument":case"param":return w(Tr,gr,2,hn);case"return":case"returns":hi=Be(Tr,gr,hn,Ei);break;case"template":hi=Jy(Tr,gr,hn,Ei);break;case"type":hi=kt(Tr,gr,hn,Ei);break;case"typedef":hi=MP(Tr,gr,hn,Ei);break;case"callback":hi=Ame(Tr,gr,hn,Ei);break;case"overload":hi=Ime(Tr,gr,hn,Ei);break;case"satisfies":hi=_E(Tr,gr,hn,Ei);break;case"see":hi=ir(Tr,gr,hn,Ei);break;case"exception":case"throws":hi=Wi(Tr,gr,hn,Ei);break;default:hi=Uy(Tr,gr,hn,Ei);break}return hi}function _p(hn,Tr,gr,Ei){return Ei||(gr+=Tr-hn),Ea(gr,Ei.slice(gr))}function Ea(hn,Tr){let gr=M(),Ei=[],hi=[],wa,ns=0,Dd;function rh(Cg){Dd||(Dd=hn),Ei.push(Cg),hn+=Cg.length}Tr!==void 0&&(Tr!==""&&rh(Tr),ns=1);let Zu=j();e:for(;;){switch(Zu){case 4:ns=0,Ei.push(t.getTokenText()),hn=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:x.assert(ns!==2&&ns!==3,"whitespace shouldn't come from the scanner while saving comment text");let Cg=t.getTokenText();Dd!==void 0&&hn+Cg.length>Dd&&(Ei.push(Cg.slice(Dd-hn)),ns=2),hn+=Cg.length;break;case 19:ns=2;let ep=t.getTokenFullStart(),uD=t.getTokenEnd()-1,tw=zl(uD);tw?(hi.push(Ut(m.createJSDocText(Ei.join("")),wa??gr,ep)),hi.push(tw),Ei=[],wa=t.getTokenEnd()):rh(t.getTokenText());break;case 62:ns===3?ns=2:ns=3,rh(t.getTokenText());break;case 82:ns!==3&&(ns=2),rh(t.getTokenValue());break;case 42:if(ns===0){ns=1,hn+=1;break}default:ns!==3&&(ns=2),rh(t.getTokenText());break}ns===2||ns===3?Zu=bt(ns===3):Zu=gt()}DP(Ei);let Lm=Ei.join("").trimEnd();if(hi.length)return Lm.length&&hi.push(Ut(m.createJSDocText(Lm),wa??gr)),ho(hi,gr,t.getTokenEnd());if(Lm.length)return Lm}function zl(hn){let Tr=ui(p1);if(!Tr)return;gt(),Dg();let gr=mE(),Ei=[];for(;j()!==20&&j()!==4&&j()!==1;)Ei.push(t.getTokenText()),gt();let hi=Tr==="link"?m.createJSDocLink:Tr==="linkcode"?m.createJSDocLinkCode:m.createJSDocLinkPlain;return Ut(hi(gr,Ei.join("")),hn,t.getTokenEnd())}function mE(){if(Md(j())){let hn=M(),Tr=tc();for(;$i(25);)Tr=Ut(m.createQualifiedName(Tr,j()===81?vs(80,!1):ls()),hn);for(;j()===81;)ti(),gt(),Tr=Ut(m.createJSDocMemberName(Tr,ls()),hn);return Tr}}function p1(){if(jy(),j()===19&>()===60&&Md(gt())){let hn=t.getTokenValue();if(NP(hn))return hn}}function NP(hn){return hn==="link"||hn==="linkcode"||hn==="linkplain"}function Uy(hn,Tr,gr,Ei){return Ut(m.createJSDocUnknownTag(Tr,_p(hn,M(),gr,Ei)),hn)}function PP(hn){hn&&(Ma?Ma.push(hn):(Ma=[hn],lf=hn.pos),g_=hn.end)}function Un(){return jy(),j()===19?Fe():void 0}function y(){let hn=Rv(23);hn&&Dg();let Tr=Rv(62),gr=dD();return Tr&&da(62),hn&&(Dg(),Uo(64)&&we(),_n(24)),{name:gr,isBracketed:hn}}function D(hn){switch(hn.kind){case 151:return!0;case 188:return D(hn.elementType);default:return Yp(hn)&&Me(hn.typeName)&&hn.typeName.escapedText==="Object"&&!hn.typeArguments}}function w(hn,Tr,gr,Ei){let hi=Un(),wa=!hi;jy();let{name:ns,isBracketed:Dd}=y(),rh=jy();wa&&!_i(p1)&&(hi=Un());let Zu=_p(hn,M(),Ei,rh),Lm=ie(hi,ns,gr,Ei);Lm&&(hi=Lm,wa=!0);let Cg=gr===1?m.createJSDocPropertyTag(Tr,ns,Dd,hi,wa,Zu):m.createJSDocParameterTag(Tr,ns,Dd,hi,wa,Zu);return Ut(Cg,hn)}function ie(hn,Tr,gr,Ei){if(hn&&D(hn.type)){let hi=M(),wa,ns;for(;wa=ui(()=>I7(gr,Ei,Tr));)wa.kind===348||wa.kind===355?ns=pn(ns,wa):wa.kind===352&&Re(wa.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ns){let Dd=Ut(m.createJSDocTypeLiteral(ns,hn.type.kind===188),hi);return Ut(m.createJSDocTypeExpression(Dd),hi)}}}function Be(hn,Tr,gr,Ei){ct(Ma,T6)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Un();return Ut(m.createJSDocReturnTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function kt(hn,Tr,gr,Ei){ct(Ma,gN)&&V(Tr.pos,t.getTokenStart(),f._0_tag_already_specified,Ii(Tr.escapedText));let hi=Fe(!0),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocTypeTag(Tr,hi,wa),hn)}function ir(hn,Tr,gr,Ei){let wa=j()===23||_i(()=>gt()===60&&Md(gt())&&NP(t.getTokenValue()))?void 0:mt(),ns=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSeeTag(Tr,wa,ns),hn)}function Wi(hn,Tr,gr,Ei){let hi=Un(),wa=_p(hn,M(),gr,Ei);return Ut(m.createJSDocThrowsTag(Tr,hi,wa),hn)}function Es(hn,Tr,gr,Ei){let hi=M(),wa=Mm(),ns=t.getTokenFullStart(),Dd=_p(hn,ns,gr,Ei);Dd||(ns=t.getTokenFullStart());let rh=typeof Dd!="string"?ho(ro([Ut(wa,hi,ns)],Dd),hi):wa.text+Dd;return Ut(m.createJSDocAuthorTag(Tr,rh),hn)}function Mm(){let hn=[],Tr=!1,gr=t.getToken();for(;gr!==1&&gr!==4;){if(gr===30)Tr=!0;else{if(gr===60&&!Tr)break;if(gr===32&&Tr){hn.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}hn.push(t.getTokenText()),gr=gt()}return m.createJSDocText(hn.join(""))}function Hy(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocImplementsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function lm(hn,Tr,gr,Ei){let hi=R$();return Ut(m.createJSDocAugmentsTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function _E(hn,Tr,gr,Ei){let hi=Fe(!1),wa=gr!==void 0&&Ei!==void 0?_p(hn,M(),gr,Ei):void 0;return Ut(m.createJSDocSatisfiesTag(Tr,hi,wa),hn)}function R$(){let hn=$i(19),Tr=M(),gr=Tme();t.setInJSDocType(!0);let Ei=uE();t.setInJSDocType(!1);let hi=m.createExpressionWithTypeArguments(gr,Ei),wa=Ut(hi,Tr);return hn&&_n(20),wa}function Tme(){let hn=M(),Tr=gE();for(;$i(25);){let gr=gE();Tr=Ut(K(Tr,gr),hn)}return Tr}function hE(hn,Tr,gr,Ei,hi){return Ut(Tr(gr,_p(hn,M(),Ei,hi)),hn)}function T7(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocThisTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function D$(hn,Tr,gr,Ei){let hi=Fe(!0);return Dg(),Ut(m.createJSDocEnumTag(Tr,hi,_p(hn,M(),gr,Ei)),hn)}function MP(hn,Tr,gr,Ei){let hi=Un();jy();let wa=A7();Dg();let ns=Ea(gr),Dd;if(!hi||D(hi.type)){let Zu,Lm,Cg,ep=!1;for(;(Zu=ui(()=>P$(gr)))&&Zu.kind!==352;)if(ep=!0,Zu.kind===351)if(Lm){let uD=Qt(f.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);uD&&pa(uD,Ix(_e,Te,0,0,f.The_tag_was_first_specified_here));break}else Lm=Zu;else Cg=pn(Cg,Zu);if(ep){let uD=hi&&hi.type.kind===188,tw=m.createJSDocTypeLiteral(Cg,uD);hi=Lm&&Lm.typeExpression&&!D(Lm.typeExpression.type)?Lm.typeExpression:Ut(tw,hn),Dd=hi.end}}Dd=Dd||ns!==void 0?M():(wa??hi??Tr).end,ns||(ns=_p(hn,Dd,gr,Ei));let rh=m.createJSDocTypedefTag(Tr,hi,wa,ns);return Ut(rh,hn,Dd)}function A7(hn){let Tr=t.getTokenStart();if(!Md(j()))return;let gr=gE();if($i(25)){let Ei=A7(!0),hi=m.createModuleDeclaration(void 0,gr,Ei,hn?8:void 0);return Ut(hi,Tr)}return hn&&(gr.flags|=4096),gr}function C$(hn){let Tr=M(),gr,Ei;for(;gr=ui(()=>I7(4,hn));){if(gr.kind===352){Re(gr.tagName,f.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ei=pn(Ei,gr)}return ho(Ei||[],Tr)}function N$(hn,Tr){let gr=C$(Tr),Ei=ui(()=>{if(Rv(60)){let hi=lD(Tr);if(hi&&hi.kind===349)return hi}});return Ut(m.createJSDocSignature(void 0,gr,Ei),hn)}function Ame(hn,Tr,gr,Ei){let hi=A7();Dg();let wa=Ea(gr),ns=N$(hn,gr);wa||(wa=_p(hn,M(),gr,Ei));let Dd=wa!==void 0?M():ns.end;return Ut(m.createJSDocCallbackTag(Tr,ns,hi,wa),hn,Dd)}function Ime(hn,Tr,gr,Ei){Dg();let hi=Ea(gr),wa=N$(hn,gr);hi||(hi=_p(hn,M(),gr,Ei));let ns=hi!==void 0?M():wa.end;return Ut(m.createJSDocOverloadTag(Tr,wa,hi),hn,ns)}function cD(hn,Tr){for(;!Me(hn)||!Me(Tr);)if(!Me(hn)&&!Me(Tr)&&hn.right.escapedText===Tr.right.escapedText)hn=hn.left,Tr=Tr.left;else return!1;return hn.escapedText===Tr.escapedText}function P$(hn){return I7(1,hn)}function I7(hn,Tr,gr){let Ei=!0,hi=!1;for(;;)switch(gt()){case 60:if(Ei){let wa=q0(hn,Tr);return wa&&(wa.kind===348||wa.kind===355)&&gr&&(Me(wa.name)||!cD(gr,wa.name.left))?!1:wa}hi=!1;break;case 4:Ei=!0,hi=!1;break;case 42:hi&&(Ei=!1),hi=!0;break;case 80:Ei=!1;break;case 1:return!1}}function q0(hn,Tr){x.assert(j()===60);let gr=t.getTokenFullStart();gt();let Ei=gE(),hi=jy(),wa;switch(Ei.escapedText){case"type":return hn===1&&kt(gr,Ei);case"prop":case"property":wa=1;break;case"arg":case"argument":case"param":wa=6;break;case"template":return Jy(gr,Ei,Tr,hi);case"this":return T7(gr,Ei,Tr,hi);default:return!1}return hn&wa?w(gr,Ei,hn,Tr):!1}function Yn(){let hn=M(),Tr=Rv(23);Tr&&Dg();let gr=Z_(!1,!0),Ei=gE(f.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),hi;if(Tr&&(Dg(),_n(64),hi=ba(16777216,nm),_n(24)),!_l(Ei))return Ut(m.createTypeParameterDeclaration(gr,Ei,void 0,hi),hn)}function qy(){let hn=M(),Tr=[];do{Dg();let gr=Yn();gr!==void 0&&Tr.push(gr),jy()}while(Rv(28));return ho(Tr,hn)}function Jy(hn,Tr,gr,Ei){let hi=j()===19?Fe():void 0,wa=qy();return Ut(m.createJSDocTemplateTag(Tr,hi,wa,_p(hn,M(),gr,Ei)),hn)}function Rv(hn){return j()===hn?(gt(),!0):!1}function dD(){let hn=gE();for($i(23)&&_n(24);$i(25);){let Tr=gE();$i(23)&&_n(24),hn=Ye(hn,Tr)}return hn}function gE(hn){if(!Md(j()))return vs(80,!hn,hn||f.Identifier_expected);Vt++;let Tr=t.getTokenStart(),gr=t.getTokenEnd(),Ei=j(),hi=Pc(t.getTokenValue()),wa=Ut(C(hi,Ei),Tr,gr);return gt(),wa}}})(h_=e.JSDocParser||(e.JSDocParser={}))})(zb||(zb={})),(e=>{function t(S,A,C,R){if(R=R||x.shouldAssert(2),m(S,A,C,R),Iee(C))return S;if(S.statements.length===0)return zb.parseSourceFile(S.fileName,A,S.languageVersion,void 0,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);let L=S;x.assert(!L.hasBeenIncrementallyParsed),L.hasBeenIncrementallyParsed=!0,zb.fixupParentReferences(L);let G=S.text,U=v(S),K=p(S,C);m(S,A,K,R),x.assert(K.span.start<=C.span.start),x.assert(Al(K.span)===Al(C.span)),x.assert(Al(ZD(K))===Al(ZD(C)));let F=ZD(K).length-K.span.length;d(L,K.span.start,Al(K.span),Al(ZD(K)),F,G,A,R);let oe=zb.parseSourceFile(S.fileName,A,S.languageVersion,U,!0,S.scriptKind,S.setExternalModuleIndicator,S.jsDocParsingMode);return oe.commentDirectives=r(S.commentDirectives,oe.commentDirectives,K.span.start,Al(K.span),F,G,A,R),oe.impliedNodeFormat=S.impliedNodeFormat,oe}e.updateSourceFile=t;function r(S,A,C,R,L,G,U,K){if(!S)return A;let F,oe=!1;for(let $ of S){let{range:de,type:fe}=$;if(de.end<C)F=pn(F,$);else if(de.pos>R){W();let q={range:{pos:de.pos+L,end:de.end+L},type:fe};F=pn(F,q),K&&x.assert(G.substring(de.pos,de.end)===U.substring(q.range.pos,q.range.end))}}return W(),F;function W(){oe||(oe=!0,F?A&&F.push(...A):F=A)}}function i(S,A,C,R,L,G){A?K(S):U(S);return;function U(F){let oe="";if(G&&o(F)&&(oe=R.substring(F.pos,F.end)),F._children&&(F._children=void 0),W_(F,F.pos+C,F.end+C),G&&o(F)&&x.assert(oe===L.substring(F.pos,F.end)),Ao(F,U,K),ap(F))for(let W of F.jsDoc)U(W);l(F,G)}function K(F){F._children=void 0,W_(F,F.pos+C,F.end+C);for(let oe of F)U(oe)}}function o(S){switch(S.kind){case 11:case 9:case 80:return!0}return!1}function s(S,A,C,R,L){x.assert(S.end>=A,"Adjusting an element that was entirely before the change range"),x.assert(S.pos<=C,"Adjusting an element that was entirely after the change range"),x.assert(S.pos<=S.end);let G=Math.min(S.pos,R),U=S.end>=C?S.end+L:Math.min(S.end,R);x.assert(G<=U),S.parent&&(x.assertGreaterThanOrEqual(G,S.parent.pos),x.assertLessThanOrEqual(U,S.parent.end)),W_(S,G,U)}function l(S,A){if(A){let C=S.pos,R=L=>{x.assert(L.pos>=C),C=L.end};if(ap(S))for(let L of S.jsDoc)R(L);Ao(S,R),x.assert(C<=S.end)}}function d(S,A,C,R,L,G,U,K){F(S);return;function F(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!1,L,G,U,K);return}let $=W.end;if($>=A){if(W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L),Ao(W,F,oe),ap(W))for(let de of W.jsDoc)F(de);l(W,K);return}x.assert($<A)}function oe(W){if(x.assert(W.pos<=W.end),W.pos>C){i(W,!0,L,G,U,K);return}let $=W.end;if($>=A){W.intersectsChange=!0,W._children=void 0,s(W,A,C,R,L);for(let de of W)F(de);return}x.assert($<A)}}function p(S,A){let R=A.span.start;for(let U=0;R>0&&U<=1;U++){let K=h(S,R);x.assert(K.pos<=R);let F=K.pos;R=Math.max(0,F-1)}let L=Gl(R,Al(A.span)),G=A.newLength+(A.span.start-R);return FM(L,G)}function h(S,A){let C=S,R;if(Ao(S,G),R){let U=L(R);U.pos>C.pos&&(C=U)}return C;function L(U){for(;;){let K=yV(U);if(K)U=K;else return U}}function G(U){if(!_l(U))if(U.pos<=A){if(U.pos>=C.pos&&(C=U),A<U.end)return Ao(U,G),!0;x.assert(U.end<=A),R=U}else return x.assert(U.pos>A),!0}}function m(S,A,C,R){let L=S.text;if(C&&(x.assert(L.length-C.span.length+C.newLength===A.length),R||x.shouldAssert(3))){let G=L.substr(0,C.span.start),U=A.substr(0,C.span.start);x.assert(G===U);let K=L.substring(Al(C.span),L.length),F=A.substring(Al(ZD(C)),A.length);x.assert(K===F)}}function v(S){let A=S.statements,C=0;x.assert(C<A.length);let R=A[C],L=-1;return{currentNode(U){return U!==L&&(R&&R.end===U&&C<A.length-1&&(C++,R=A[C]),(!R||R.pos!==U)&&G(U)),L=U,x.assert(!R||R.pos===U),R}};function G(U){A=void 0,C=-1,R=void 0,Ao(S,K,F);return;function K(oe){return U>=oe.pos&&U<oe.end?(Ao(oe,K,F),!0):!1}function F(oe){if(U>=oe.pos&&U<oe.end)for(let W=0;W<oe.length;W++){let $=oe[W];if($){if($.pos===U)return A=oe,C=W,R=$,!0;if($.pos<U&&U<$.end)return Ao($,K,F),!0}}return!1}}}e.createSyntaxCursor=v;let E;(S=>{S[S.Value=-1]="Value"})(E||(E={}))})(Zj||(Zj={})),eU=new Map,wEe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,WEe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function O6(e){let t=new Map,r=new Map;return an(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&r.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:r}}function Xx(){return E0e||(E0e=O6(Nh))}function Mie(e){return FEe(e,bl)}function FEe(e,t){let r=bo(e.type.keys()),i=(e.deprecatedKeys?r.filter(o=>!e.deprecatedKeys.has(o)):r).map(o=>`'${o}'`).join(", ");return t(f.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function w6(e,t,r){return h0e(e,(t??"").trim(),r)}function Lie(e,t="",r){if(t=t.trim(),Ui(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return vI(e,t,r);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Fi(i,o=>vI(e.element,parseInt(o),r));case"string":return Fi(i,o=>vI(e.element,o||"",r));case"boolean":case"object":return x.fail(`List of ${e.element.type} is not yet supported.`);default:return Fi(i,o=>w6(e.element,o,r))}}function zEe(e){return e.name}function kie(e,t,r,i,o){var s;if((s=t.alternateMode)!=null&&s.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return Bb(o,i,t.alternateMode.diagnostic,e);let l=VD(e,t.optionDeclarations,zEe);return l?Bb(o,i,t.unknownDidYouMeanDiagnostic,r||e,l.name):Bb(o,i,t.unknownOptionDiagnostic,r||e)}function tU(e,t,r){let i={},o,s=[],l=[];return d(t),{options:i,watchOptions:o,fileNames:s,errors:l};function d(h){let m=0;for(;m<h.length;){let v=h[m];if(m++,v.charCodeAt(0)===64)p(v.slice(1));else if(v.charCodeAt(0)===45){let E=v.slice(v.charCodeAt(1)===45?2:1),S=Oie(e.getOptionsNameMap,E,!0);if(S)m=BEe(h,m,e,S,i,l);else{let A=Oie(q6.getOptionsNameMap,E,!0);A?m=BEe(h,m,q6,A,o||(o={}),l):l.push(kie(E,e,v))}}else s.push(v)}}function p(h){let m=SN(h,r||(S=>Hc.readFile(S)));if(!fo(m)){l.push(m);return}let v=[],E=0;for(;;){for(;E<m.length&&m.charCodeAt(E)<=32;)E++;if(E>=m.length)break;let S=E;if(m.charCodeAt(S)===34){for(E++;E<m.length&&m.charCodeAt(E)!==34;)E++;E<m.length?(v.push(m.substring(S+1,E)),E++):l.push(bl(f.Unterminated_quoted_string_in_response_file_0,h))}else{for(;m.charCodeAt(E)>32;)E++;v.push(m.substring(S,E))}}d(v)}}function BEe(e,t,r,i,o,s){if(i.isTSConfigOnly){let l=e[t];l==="null"?(o[i.name]=void 0,t++):i.type==="boolean"?l==="false"?(o[i.name]=vI(i,!1,s),t++):(l==="true"&&t++,s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(s.push(bl(f.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),l&&!Ui(l,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&s.push(bl(r.optionTypeMismatchDiagnostic,i.name,oU(i))),e[t]!=="null")switch(i.type){case"number":o[i.name]=vI(i,parseInt(e[t]),s),t++;break;case"boolean":let l=e[t];o[i.name]=vI(i,l!=="false",s),(l==="false"||l==="true")&&t++;break;case"string":o[i.name]=vI(i,e[t]||"",s),t++;break;case"list":let d=Lie(i,e[t],s);o[i.name]=d||[],d&&t++;break;case"listOrElement":x.fail("listOrElement not supported here");break;default:o[i.name]=w6(i,e[t],s),t++;break}else o[i.name]=void 0,t++;return t}function GEe(e,t){return tU(Q2,e,t)}function nU(e,t){return Oie(Xx,e,t)}function Oie(e,t,r=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:o}=e();if(r){let s=o.get(t);s!==void 0&&(t=s)}return i.get(t)}function VEe(){return T0e||(T0e=O6(U6))}function jEe(e){let{options:t,watchOptions:r,fileNames:i,errors:o}=tU(I0e,e),s=t;return i.length===0&&i.push("."),s.clean&&s.force&&o.push(bl(f.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(bl(f.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(bl(f.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(bl(f.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:r,projects:i,errors:o}}function UEe(e,...t){return Fo(bl(e,...t).messageText,fo)}function V2(e,t,r,i,o,s){let l=SN(e,h=>r.readFile(h));if(!fo(l)){r.onUnRecoverableConfigFileDiagnostic(l);return}let d=G2(e,l),p=r.getCurrentDirectory();return d.path=ks(e,p,od(r.useCaseSensitiveFileNames)),d.resolvedPath=d.path,d.originalFileName=d.fileName,H2(d,r,Qi(Ur(e),p),t,Qi(e,p),void 0,s,i,o)}function j2(e,t){let r=SN(e,t);return fo(r)?rU(e,r):{config:{},error:r}}function rU(e,t){let r=G2(e,t);return{config:XEe(r,r.parseDiagnostics,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function wie(e,t){let r=SN(e,t);return fo(r)?G2(e,r):{fileName:e,parseDiagnostics:[r]}}function SN(e,t){let r;try{r=t(e)}catch(i){return bl(f.Cannot_read_file_0_Colon_1,e,i.message)}return r===void 0?bl(f.Cannot_read_file_0,e):r}function iU(e){return PE(e,zEe)}function HEe(){return x0e||(x0e=O6(Yx))}function qEe(){return R0e||(R0e=iU(Nh))}function JEe(){return D0e||(D0e=iU(Yx))}function KEe(){return C0e||(C0e=iU($2))}function R4e(){return $ie===void 0&&($ie={name:void 0,type:"object",elementOptions:iU([Kie,Xie,Yie,Z2,{name:"references",type:"list",element:{name:"references",type:"object"},category:f.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:f.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:f.File_Management,defaultValueDescription:f.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:f.File_Management,defaultValueDescription:f.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J2])}),$ie}function XEe(e,t,r){var i;let o=(i=e.statements[0])==null?void 0:i.expression;if(o&&o.kind!==210){if(t.push(vf(e,o,f.The_root_value_of_a_0_file_must_be_an_object,Ll(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Bd(o)){let s=Dr(o.elements,fa);if(s)return U2(e,s,t,!0,r)}return{}}return U2(e,o,t,!0,r)}function Wie(e,t){var r;return U2(e,(r=e.statements[0])==null?void 0:r.expression,t,!0,void 0)}function U2(e,t,r,i,o){if(!t)return i?{}:void 0;return d(t,o?.rootOptions);function s(h,m){var v;let E=i?{}:void 0;for(let S of h.properties){if(S.kind!==303){r.push(vf(e,S,f.Property_assignment_expected));continue}S.questionToken&&r.push(vf(e,S.questionToken,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),p(S.name)||r.push(vf(e,S.name,f.String_literal_with_double_quotes_expected));let A=aL(S.name)?void 0:$1(S.name),C=A&&Ii(A),R=C?(v=m?.elementOptions)==null?void 0:v.get(C):void 0,L=d(S.initializer,R);typeof C<"u"&&(i&&(E[C]=L),o?.onPropertySet(C,L,S,m,R))}return E}function l(h,m){if(!i){h.forEach(v=>d(v,m));return}return Cr(h.map(v=>d(v,m)),v=>v!==void 0)}function d(h,m){switch(h.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return p(h)||r.push(vf(e,h,f.String_literal_with_double_quotes_expected)),h.text;case 9:return Number(h.text);case 224:if(h.operator!==41||h.operand.kind!==9)break;return-Number(h.operand.text);case 210:return s(h,m);case 209:return l(h.elements,m&&m.element)}m?r.push(vf(e,h,f.Compiler_option_0_requires_a_value_of_type_1,m.name,oU(m))):r.push(vf(e,h,f.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function p(h){return ca(h)&&IW(h,e)}}function oU(e){return e.type==="listOrElement"?`${oU(e.element)} or Array`:e.type==="list"?"Array":fo(e.type)?e.type:"string"}function YEe(e,t){if(e){if(q2(t))return!e.disallowNullOrUndefined;if(e.type==="list")return oo(t);if(e.type==="listOrElement")return oo(t)||YEe(e.element,t);let r=fo(e.type)?e.type:"string";return typeof t===r}return!1}function $Ee(e,t,r){var i,o,s;let l=od(r.useCaseSensitiveFileNames),d=nn(Cr(e.fileNames,(o=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&o.validatedIncludeSpecs?C4e(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,r):Ug),A=>RM(Qi(t,r.getCurrentDirectory()),Qi(A,r.getCurrentDirectory()),l)),p={configFilePath:Qi(t,r.getCurrentDirectory()),useCaseSensitiveFileNames:r.useCaseSensitiveFileNames},h=F6(e.options,p),m=e.watchOptions&&N4e(e.watchOptions),v={compilerOptions:{...W6(h),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:m&&W6(m),references:nn(e.projectReferences,A=>({...A,path:A.originalPath?A.originalPath:"",originalPath:void 0})),files:yn(d)?d:void 0,...(s=e.options.configFile)!=null&&s.configFileSpecs?{include:D4e(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0},E=new Set(h.keys()),S={};for(let A in Ul)if(!E.has(A)&&ct(Ul[A].dependencies,C=>E.has(C))){let C=Ul[A].computeValue(e.options),R=Ul[A].computeValue({});C!==R&&(S[A]=Ul[A].computeValue(e.options))}return R1(v.compilerOptions,W6(F6(S,p))),v}function W6(e){return{...bo(e.entries()).reduce((t,r)=>({...t,[r[0]]:r[1]}),{})}}function D4e(e){if(yn(e)){if(yn(e)!==1)return e;if(e[0]!==J6)return e}}function C4e(e,t,r,i){if(!t)return Ug;let o=dF(e,r,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),s=o.excludePattern&&iy(o.excludePattern,i.useCaseSensitiveFileNames),l=o.includeFilePattern&&iy(o.includeFilePattern,i.useCaseSensitiveFileNames);return l?s?d=>!(l.test(d)&&!s.test(d)):d=>!l.test(d):s?d=>s.test(d):Ug}function QEe(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return QEe(e.element);default:return e.type}}function aU(e,t){return hc(t,(r,i)=>{if(r===e)return i})}function F6(e,t){return ZEe(e,Xx(),t)}function N4e(e){return ZEe(e,HEe())}function ZEe(e,{optionsNameMap:t},r){let i=new Map,o=r&&od(r.useCaseSensitiveFileNames);for(let s in e)if(rs(e,s)){if(t.has(s)&&(t.get(s).category===f.Command_line_Options||t.get(s).category===f.Output_Formatting))continue;let l=e[s],d=t.get(s.toLowerCase());if(d){x.assert(d.type!=="listOrElement");let p=QEe(d);p?d.type==="list"?i.set(s,l.map(h=>aU(h,p))):i.set(s,aU(l,p)):r&&d.isFilePath?i.set(s,RM(r.configFilePath,Qi(l,Ur(r.configFilePath)),o)):i.set(s,l)}}return i}function e0e(e,t){let r=t0e(e);return o();function i(s){return Array(s+1).join(" ")}function o(){let s=[],l=i(2);return uU.forEach(d=>{if(!r.has(d.name))return;let p=r.get(d.name),h=Uie(d);p!==h?s.push(`${l}${d.name}: ${p}`):rs(H6,d.name)&&s.push(`${l}${d.name}: ${h}`)}),s.join(t)+t}}function t0e(e){let t=Xw(e,H6);return F6(t)}function n0e(e,t,r){let i=t0e(e);return l();function o(d){return Array(d+1).join(" ")}function s({category:d,name:p,isCommandLineOnly:h}){let m=[f.Command_line_Options,f.Editor_Support,f.Compiler_Diagnostics,f.Backwards_Compatibility,f.Watch_and_Build_Modes,f.Output_Formatting];return!h&&d!==void 0&&(!m.includes(d)||i.has(p))}function l(){let d=new Map;d.set(f.Projects,[]),d.set(f.Language_and_Environment,[]),d.set(f.Modules,[]),d.set(f.JavaScript_Support,[]),d.set(f.Emit,[]),d.set(f.Interop_Constraints,[]),d.set(f.Type_Checking,[]),d.set(f.Completeness,[]);for(let S of Nh)if(s(S)){let A=d.get(S.category);A||d.set(S.category,A=[]),A.push(S)}let p=0,h=0,m=[];d.forEach((S,A)=>{m.length!==0&&m.push({value:""}),m.push({value:`/* ${vo(A)} */`});for(let C of S){let R;i.has(C.name)?R=`"${C.name}": ${JSON.stringify(i.get(C.name))}${(h+=1)===i.size?"":","}`:R=`// "${C.name}": ${JSON.stringify(Uie(C))},`,m.push({value:R,description:`/* ${C.description&&vo(C.description)||C.name} */`}),p=Math.max(R.length,p)}});let v=o(2),E=[];E.push("{"),E.push(`${v}"compilerOptions": {`),E.push(`${v}${v}/* ${vo(f.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),E.push("");for(let S of m){let{value:A,description:C=""}=S;E.push(A&&`${v}${v}${A}${C&&o(p-A.length+2)+C}`)}if(t.length){E.push(`${v}},`),E.push(`${v}"files": [`);for(let S=0;S<t.length;S++)E.push(`${v}${v}${JSON.stringify(t[S])}${S===t.length-1?"":","}`);E.push(`${v}]`)}else E.push(`${v}}`);return E.push("}"),E.join(r)+r}}function sU(e,t){let r={},i=Xx().optionsNameMap;for(let o in e)rs(e,o)&&(r[o]=P4e(i.get(o.toLowerCase()),e[o],t));return r.configFilePath&&(r.configFilePath=t(r.configFilePath)),r}function P4e(e,t,r){if(e&&!q2(t)){if(e.type==="list"){let i=t;if(e.element.isFilePath&&i.length)return i.map(r)}else if(e.isFilePath)return r(t);x.assert(e.type!=="listOrElement")}return t}function r0e(e,t,r,i,o,s,l,d,p){return o0e(e,void 0,t,r,i,p,o,s,l,d)}function H2(e,t,r,i,o,s,l,d,p){var h,m;(h=qn)==null||h.push(qn.Phase.Parse,"parseJsonSourceFileConfigFileContent",{path:e.fileName});let v=o0e(void 0,e,t,r,i,p,o,s,l,d);return(m=qn)==null||m.pop(),v}function lU(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function q2(e){return e==null}function i0e(e,t){return Ur(Qi(e,t))}function o0e(e,t,r,i,o={},s,l,d=[],p=[],h){x.assert(e===void 0&&t!==void 0||e!==void 0&&t===void 0);let m=[],v=l0e(e,t,r,i,l,d,m,h),{raw:E}=v,S=Xw(o,v.options||{}),A=s&&v.watchOptions?Xw(s,v.watchOptions):v.watchOptions||s;S.configFilePath=l&&ad(l);let C=L();t&&(t.configFileSpecs=C),lU(S,t);let R=Yo(l?i0e(l,i):i);return{options:S,watchOptions:A,fileNames:G(R),projectReferences:U(R),typeAcquisition:v.typeAcquisition||cU(),raw:E,errors:m,wildcardDirectories:B4e(C,R,r.useCaseSensitiveFileNames),compileOnSave:!!E.compileOnSave};function L(){let $=oe("references",ce=>typeof ce=="object","object"),de=K(F("files"));if(de){let ce=$==="no-prop"||oo($)&&$.length===0,Z=rs(E,"extends");if(de.length===0&&ce&&!Z)if(t){let pe=l||"tsconfig.json",Ae=f.The_files_list_in_config_file_0_is_empty,Oe=uL(t,"files",be=>be.initializer),_e=Bb(t,Oe,Ae,pe);m.push(_e)}else W(f.The_files_list_in_config_file_0_is_empty,l||"tsconfig.json")}let fe=K(F("include")),q=F("exclude"),H=!1,ee=K(q);if(q==="no-prop"&&E.compilerOptions){let ce=E.compilerOptions.outDir,Z=E.compilerOptions.declarationDir;(ce||Z)&&(ee=[ce,Z].filter(pe=>!!pe))}de===void 0&&fe===void 0&&(fe=[J6],H=!0);let le,Ee;return fe&&(le=b0e(fe,m,!0,t,"include")),ee&&(Ee=b0e(ee,m,!1,t,"exclude")),{filesSpecs:de,includeSpecs:fe,excludeSpecs:ee,validatedFilesSpec:Cr(de,fo),validatedIncludeSpecs:le,validatedExcludeSpecs:Ee,pathPatterns:void 0,isDefaultIncludeSpec:H}}function G($){let de=AN(C,$,S,r,p);return s0e(de,TN(E),d)&&m.push(a0e(C,l)),de}function U($){let de,fe=oe("references",q=>typeof q=="object","object");if(oo(fe))for(let q of fe)typeof q.path!="string"?W(f.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(de||(de=[])).push({path:Qi(q.path,$),originalPath:q.path,prepend:q.prepend,circular:q.circular});return de}function K($){return oo($)?$:void 0}function F($){return oe($,fo,"string")}function oe($,de,fe){if(rs(E,$)&&!q2(E[$]))if(oo(E[$])){let q=E[$];return!t&&!ji(q,de)&&m.push(bl(f.Compiler_option_0_requires_a_value_of_type_1,$,fe)),q}else return W(f.Compiler_option_0_requires_a_value_of_type_1,$,"Array"),"not-array";return"no-prop"}function W($,...de){t||m.push(bl($,...de))}}function M4e(e){return e.code===f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function a0e({includeSpecs:e,excludeSpecs:t},r){return bl(f.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,r||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function s0e(e,t,r){return e.length===0&&t&&(!r||r.length===0)}function TN(e){return!rs(e,"files")&&!rs(e,"references")}function z6(e,t,r,i,o){let s=i.length;return s0e(e,o)?i.push(a0e(r,t)):X5(i,l=>!M4e(l)),s!==i.length}function L4e(e){return!!e.options}function l0e(e,t,r,i,o,s,l,d){var p;i=ad(i);let h=Qi(o||"",i);if(s.includes(h))return l.push(bl(f.Circularity_detected_while_resolving_configuration_Colon_0,[...s,h].join(" -> "))),{raw:e||Wie(t,l)};let m=e?k4e(e,r,i,o,l):O4e(t,r,i,o,l);if((p=m.options)!=null&&p.paths&&(m.options.pathsBasePath=i),m.extendedConfigPath){s=s.concat([h]);let E={options:{}};fo(m.extendedConfigPath)?v(E,m.extendedConfigPath):m.extendedConfigPath.forEach(S=>v(E,S)),!m.raw.include&&E.include&&(m.raw.include=E.include),!m.raw.exclude&&E.exclude&&(m.raw.exclude=E.exclude),!m.raw.files&&E.files&&(m.raw.files=E.files),m.raw.compileOnSave===void 0&&E.compileOnSave&&(m.raw.compileOnSave=E.compileOnSave),t&&E.extendedSourceFiles&&(t.extendedSourceFiles=bo(E.extendedSourceFiles.keys())),m.options=R1(E.options,m.options),m.watchOptions=m.watchOptions&&E.watchOptions?R1(E.watchOptions,m.watchOptions):m.watchOptions||E.watchOptions}return m;function v(E,S){let A=w4e(t,S,r,s,l,d,E);if(A&&L4e(A)){let C=A.raw,R,L=G=>{C[G]&&(E[G]=nn(C[G],U=>Ou(U)?U:wr(R||(R=KD(Ur(S),i,od(r.useCaseSensitiveFileNames))),U)))};L("include"),L("exclude"),L("files"),C.compileOnSave!==void 0&&(E.compileOnSave=C.compileOnSave),R1(E.options,A.options),E.watchOptions=E.watchOptions&&A.watchOptions?R1({},E.watchOptions,A.watchOptions):E.watchOptions||A.watchOptions}}}function k4e(e,t,r,i,o){rs(e,"excludes")&&o.push(bl(f.Unknown_option_excludes_Did_you_mean_exclude));let s=m0e(e.compilerOptions,r,o,i),l=_0e(e.typeAcquisition,r,o,i),d=F4e(e.watchOptions,r,o);e.compileOnSave=W4e(e,r,o);let p=e.extends||e.extends===""?c0e(e.extends,t,r,i,o):void 0;return{raw:e,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p}}function c0e(e,t,r,i,o,s,l,d){let p,h=i?i0e(i,r):r;if(fo(e))p=d0e(e,t,h,o,l,d);else if(oo(e)){p=[];for(let m=0;m<e.length;m++){let v=e[m];fo(v)?p=pn(p,d0e(v,t,h,o,l?.elements[m],d)):eT(Z2.element,e,r,o,s,l?.elements[m],d)}}else eT(Z2,e,r,o,s,l,d);return p}function O4e(e,t,r,i,o){let s=f0e(i),l,d,p,h,m=R4e(),v=XEe(e,o,{rootOptions:m,onPropertySet:E});return l||(l=cU(i)),h&&v&&v.compilerOptions===void 0&&o.push(vf(e,h[0],f._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,$1(h[0]))),{raw:v,options:s,watchOptions:d,typeAcquisition:l,extendedConfigPath:p};function E(S,A,C,R,L){if(L&&L!==Z2&&(A=eT(L,A,r,o,C,C.initializer,e)),R?.name)if(L){let G;R===Kie?G=s:R===Xie?G=d??(d={}):R===Yie?G=l??(l=cU(i)):x.fail("Unknown option"),G[L.name]=A}else S&&R?.extraKeyDiagnostics&&(R.elementOptions?o.push(kie(S,R.extraKeyDiagnostics,void 0,C.name,e)):o.push(vf(e,C.name,R.extraKeyDiagnostics.unknownOptionDiagnostic,S)));else R===m&&(L===Z2?p=c0e(A,t,r,i,o,C,C.initializer,e):L||(S==="excludes"&&o.push(vf(e,C.name,f.Unknown_option_excludes_Did_you_mean_exclude)),Dr(uU,G=>G.name===S)&&(h=pn(h,C.name))))}}function d0e(e,t,r,i,o,s){if(e=ad(e),Ou(e)||Ui(e,"./")||Ui(e,"../")){let d=Qi(e,r);if(!t.fileExists(d)&&!Zs(d,".json")&&(d=`${d}.json`,!t.fileExists(d))){i.push(Bb(s,o,f.File_0_not_found,e));return}return d}let l=soe(e,wr(r,"tsconfig.json"),t);if(l.resolvedModule)return l.resolvedModule.resolvedFileName;e===""?i.push(Bb(s,o,f.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(Bb(s,o,f.File_0_not_found,e))}function w4e(e,t,r,i,o,s,l){let d=r.useCaseSensitiveFileNames?t:D_(t),p,h,m;if(s&&(p=s.get(d))?{extendedResult:h,extendedConfig:m}=p:(h=wie(t,v=>r.readFile(v)),h.parseDiagnostics.length||(m=l0e(void 0,h,r,Ur(t),Ll(t),i,o,s)),s&&s.set(d,{extendedResult:h,extendedConfig:m})),e&&((l.extendedSourceFiles??(l.extendedSourceFiles=new Set)).add(h.fileName),h.extendedSourceFiles))for(let v of h.extendedSourceFiles)l.extendedSourceFiles.add(v);if(h.parseDiagnostics.length){o.push(...h.parseDiagnostics);return}return m}function W4e(e,t,r){if(!rs(e,J2.name))return!1;let i=eT(J2,e.compileOnSave,t,r);return typeof i=="boolean"&&i}function u0e(e,t,r){let i=[];return{options:m0e(e,t,i,r),errors:i}}function p0e(e,t,r){let i=[];return{options:_0e(e,t,i,r),errors:i}}function f0e(e){return e&&Ll(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function m0e(e,t,r,i){let o=f0e(i);return Fie(qEe(),e,t,o,Q2,r),i&&(o.configFilePath=ad(i)),o}function cU(e){return{enable:!!e&&Ll(e)==="jsconfig.json",include:[],exclude:[]}}function _0e(e,t,r,i){let o=cU(i);return Fie(KEe(),e,t,o,Jie,r),o}function F4e(e,t,r){return Fie(JEe(),e,t,void 0,q6,r)}function Fie(e,t,r,i,o,s){if(t){for(let l in t){let d=e.get(l);d?(i||(i={}))[d.name]=eT(d,t[l],r,s):s.push(kie(l,o))}return i}}function Bb(e,t,r,...i){return e&&t?vf(e,t,r,...i):bl(r,...i)}function eT(e,t,r,i,o,s,l){if(e.isCommandLineOnly){i.push(Bb(l,o?.name,f.Option_0_can_only_be_specified_on_command_line,e.name));return}if(YEe(e,t)){let d=e.type;if(d==="list"&&oo(t))return g0e(e,t,r,i,o,s,l);if(d==="listOrElement")return oo(t)?g0e(e,t,r,i,o,s,l):eT(e.element,t,r,i,o,s,l);if(!fo(e.type))return h0e(e,t,i,s,l);let p=vI(e,t,i,s,l);return q2(p)?p:z4e(e,r,p)}else i.push(Bb(l,s,f.Compiler_option_0_requires_a_value_of_type_1,e.name,oU(e)))}function z4e(e,t,r){return e.isFilePath&&(r=Qi(r,t),r===""&&(r=".")),r}function vI(e,t,r,i,o){var s;if(q2(t))return;let l=(s=e.extraValidation)==null?void 0:s.call(e,t);if(!l)return t;r.push(Bb(o,i,...l))}function h0e(e,t,r,i,o){if(q2(t))return;let s=t.toLowerCase(),l=e.type.get(s);if(l!==void 0)return vI(e,l,r,i,o);r.push(FEe(e,(d,...p)=>Bb(o,i,d,...p)))}function g0e(e,t,r,i,o,s,l){return Cr(nn(t,(d,p)=>eT(e.element,d,r,i,o,s?.elements[p],l)),d=>e.listPreserveFalsyValues?!0:!!d)}function AN(e,t,r,i,o=je){t=Yo(t);let s=od(i.useCaseSensitiveFileNames),l=new Map,d=new Map,p=new Map,{validatedFilesSpec:h,validatedIncludeSpecs:m,validatedExcludeSpecs:v}=e,E=GC(r,o),S=YL(r,E);if(h)for(let L of h){let G=Qi(L,t);l.set(s(G),G)}let A;if(m&&m.length>0)for(let L of i.readDirectory(t,Ff(S),v,m,void 0)){if(el(L,".json")){if(!A){let K=m.filter(oe=>Zs(oe,".json")),F=nn(lF(K,t,"files"),oe=>`^${oe}$`);A=F?F.map(oe=>iy(oe,i.useCaseSensitiveFileNames)):je}if(Tl(A,K=>K.test(L))!==-1){let K=s(L);!l.has(K)&&!p.has(K)&&p.set(K,L)}continue}if(V4e(L,l,d,E,s))continue;j4e(L,d,E,s);let G=s(L);!l.has(G)&&!d.has(G)&&d.set(G,L)}let C=bo(l.values()),R=bo(d.values());return C.concat(R,bo(p.values()))}function zie(e,t,r,i,o){let{validatedFilesSpec:s,validatedIncludeSpecs:l,validatedExcludeSpecs:d}=t;if(!yn(l)||!yn(d))return!1;r=Yo(r);let p=od(i);if(s){for(let h of s)if(p(Qi(h,r))===e)return!1}return y0e(e,d,i,o,r)}function v0e(e){let t=Ui(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Zs(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function B6(e,t,r,i){return y0e(e,Cr(t,o=>!v0e(o)),r,i)}function y0e(e,t,r,i,o){let s=BC(t,wr(Yo(i),o),"exclude"),l=s&&iy(s,r);return l?l.test(e)?!0:!TA(e)&&l.test(_c(e)):!1}function b0e(e,t,r,i,o){return e.filter(l=>{if(!fo(l))return!1;let d=Bie(l,r);return d!==void 0&&t.push(s(...d)),d===void 0});function s(l,d){let p=fW(i,o,d);return Bb(i,p,l,d)}}function Bie(e,t){if(x.assert(typeof e=="string"),t&&N0e.test(e))return[f.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(v0e(e))return[f.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function B4e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},r,i){let o=BC(t,r,"exclude"),s=o&&new RegExp(o,i?"":"i"),l={},d=new Map;if(e!==void 0){let p=[];for(let h of e){let m=Yo(wr(r,h));if(s&&s.test(m))continue;let v=G4e(m,i);if(v){let{key:E,path:S,flags:A}=v,C=d.get(E),R=C!==void 0?l[C]:void 0;(R===void 0||R<A)&&(l[C!==void 0?C:S]=A,C===void 0&&d.set(E,S),A===1&&p.push(E))}}for(let h in l)if(rs(l,h))for(let m of p){let v=Gie(h,i);v!==m&&Bf(m,v,r,!i)&&delete l[h]}}return l}function Gie(e,t){return t?e:D_(e)}function G4e(e,t){let r=P0e.exec(e);if(r){let i=e.indexOf("?"),o=e.indexOf("*"),s=e.lastIndexOf(Os);return{key:Gie(r[0],t),path:r[0],flags:i!==-1&&i<s||o!==-1&&o<s?1:0}}if(RV(e.substring(e.lastIndexOf(Os)+1))){let i=fb(e);return{key:Gie(i,t),path:i,flags:1}}}function V4e(e,t,r,i,o){let s=an(i,l=>$l(e,l)?l:void 0);if(!s)return!1;for(let l of s){if(el(e,l)&&(l!==".ts"||!el(e,".d.ts")))return!1;let d=o(Nb(e,l));if(t.has(d)||r.has(d)){if(l===".d.ts"&&(el(e,".js")||el(e,".jsx")))continue;return!0}}return!1}function j4e(e,t,r,i){let o=an(r,s=>$l(e,s)?s:void 0);if(o)for(let s=o.length-1;s>=0;s--){let l=o[s];if(el(e,l))return;let d=i(Nb(e,l));t.delete(d)}}function Vie(e){let t={};for(let r in e)if(rs(e,r)){let i=nU(r);i!==void 0&&(t[r]=jie(e[r],i))}return t}function jie(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!oo(e))return jie(e,t.element);case"list":let r=t.element;return oo(e)?Fi(e,i=>jie(i,r)):"";default:return hc(t.type,(i,o)=>{if(i===e)return o})}}function Uie(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return Uie(e.element);case"object":return{};default:let r=qw(e.type.keys());return r!==void 0?r:x.fail("Expected 'option.type' to have entries.")}}var J2,Hie,IN,qie,K2,G6,Yx,X2,Y2,dU,uU,Nh,pU,fU,mU,V6,j6,_U,hU,gU,U6,$2,E0e,S0e,H6,Q2,T0e,A0e,I0e,Jie,x0e,q6,R0e,D0e,C0e,Z2,Kie,Xie,Yie,$ie,J6,N0e,P0e,U4e=pt({"src/compiler/commandLineParser.ts"(){"use strict";wo(),J2={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},Hie=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),IN=new Map(OD(Hie.entries(),([e,t])=>[""+t,e])),qie=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["dom.asynciterable","lib.dom.asynciterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["webworker.asynciterable","lib.webworker.asynciterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2016.intl","lib.es2016.intl.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.esnext.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.esnext.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["esnext.object","lib.esnext.object.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],K2=qie.map(e=>e[0]),G6=new Map(qie),Yx=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:f.Watch_and_Build_Modes,description:f.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:f.Watch_and_Build_Modes,description:f.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:f.Watch_and_Build_Modes,description:f.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:f.Watch_and_Build_Modes,description:f.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:Bie},category:f.Watch_and_Build_Modes,description:f.Remove_a_list_of_files_from_the_watch_mode_s_processing}],X2=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:f.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:f.Command_line_Options,description:f.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:f.Output_Formatting,description:f.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:f.Compiler_Diagnostics,description:f.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:f.Output_Formatting,description:f.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:f.Compiler_Diagnostics,description:f.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:f.Compiler_Diagnostics,description:f.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:f.FILE_OR_DIRECTORY,category:f.Compiler_Diagnostics,description:f.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:f.DIRECTORY,category:f.Compiler_Diagnostics,description:f.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:f.Projects,description:f.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:f.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:f.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:f.Emit,description:f.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Watch_and_Build_Modes,description:f.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:f.Platform_specific}],Y2={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,deprecatedKeys:new Set(["es3"]),paramType:f.VERSION,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},dU={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199,preserve:200})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_what_module_code_is_generated,defaultValueDescription:void 0},uU=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:f.Command_line_Options,paramType:f.FILE_OR_DIRECTORY,description:f.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:f.Command_line_Options,description:f.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:f.Command_line_Options,isCommandLineOnly:!0,description:f.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},Y2,dU,{name:"lib",type:"list",element:{name:"lib",type:G6,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.JavaScript_Support,description:f.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:Hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:f.KIND,showInSimplifiedHelpView:!0,category:f.Language_and_Environment,description:f.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.FILE,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,showInSimplifiedHelpView:!0,category:f.Emit,description:f.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.LOCATION,category:f.Modules,description:f.Specify_the_root_folder_within_your_source_files,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:f.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:f.FILE,category:f.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:f.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Emit,defaultValueDescription:!1,description:f.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:f.Emit,description:f.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:f.Interop_Constraints,description:f.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:f.Interop_Constraints,description:f.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Type_Checking,description:f.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:f.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:f.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:f.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:f.Type_Checking,description:f.Ensure_use_strict_is_always_emitted,defaultValueDescription:f.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:f.Type_Checking,description:f.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:f.STRATEGY,category:f.Modules,description:f.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:f.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:f.Modules,description:f.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:f.Modules,description:f.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:f.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:f.Modules,description:f.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:f.Modules,description:f.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Interop_Constraints,description:f.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:f.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:f.Interop_Constraints,description:f.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:f.Interop_Constraints,description:f.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:f.Modules,description:f.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Modules,description:f.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:f.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:f.Modules,description:f.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:f.LOCATION,category:f.Emit,description:f.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:f.Language_and_Environment,description:f.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:f.Language_and_Environment,description:f.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:f.Modules,description:f.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:f.Backwards_Compatibility,paramType:f.FILE,transpileOptionValue:void 0,description:f.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:f.Backwards_Compatibility,description:f.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:f.NEWLINE,category:f.Emit,description:f.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Output_Formatting,description:f.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:f.Language_and_Environment,affectsProgramStructure:!0,description:f.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:f.Modules,description:f.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:f.Editor_Support,description:f.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:f.Projects,description:f.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,transpileOptionValue:void 0,description:f.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:f.DIRECTORY,category:f.Emit,transpileOptionValue:void 0,description:f.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:f.Completeness,description:f.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Type_Checking,description:f.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:f.Interop_Constraints,description:f.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:f.JavaScript_Support,description:f.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:f.Backwards_Compatibility,description:f.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:f.Language_and_Environment,description:f.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:f.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:f.Emit,description:f.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:f.Backwards_Compatibility,description:f.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:f.Specify_a_list_of_language_service_plugins_to_include,category:f.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:f.Control_what_method_is_used_to_detect_module_format_JS_files,category:f.Language_and_Environment,defaultValueDescription:f.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Nh=[...X2,...uU],pU=Nh.filter(e=>!!e.affectsSemanticDiagnostics),fU=Nh.filter(e=>!!e.affectsEmit),mU=Nh.filter(e=>!!e.affectsDeclarationPath),V6=Nh.filter(e=>!!e.affectsModuleResolution),j6=Nh.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),_U=Nh.filter(e=>!!e.affectsProgramStructure),hU=Nh.filter(e=>rs(e,"transpileOptionValue")),gU=[{name:"verbose",shortName:"v",category:f.Command_line_Options,description:f.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:f.Command_line_Options,description:f.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:f.Command_line_Options,description:f.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:f.Command_line_Options,description:f.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],U6=[...X2,...gU],$2=[{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}],S0e={diagnostic:f.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:VEe},H6={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},Q2={alternateMode:S0e,getOptionsNameMap:Xx,optionDeclarations:Nh,unknownOptionDiagnostic:f.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:f.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Compiler_option_0_expects_an_argument},A0e={diagnostic:f.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:Xx},I0e={alternateMode:A0e,getOptionsNameMap:VEe,optionDeclarations:U6,unknownOptionDiagnostic:f.Unknown_build_option_0,unknownDidYouMeanDiagnostic:f.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Build_option_0_requires_a_value_of_type_1},Jie={optionDeclarations:$2,unknownOptionDiagnostic:f.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:f.Unknown_type_acquisition_option_0_Did_you_mean_1},q6={getOptionsNameMap:HEe,optionDeclarations:Yx,unknownOptionDiagnostic:f.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:f.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:f.Watch_option_0_requires_a_value_of_type_1},Z2={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:f.File_Management,disallowNullOrUndefined:!0},Kie={name:"compilerOptions",type:"object",elementOptions:qEe(),extraKeyDiagnostics:Q2},Xie={name:"watchOptions",type:"object",elementOptions:JEe(),extraKeyDiagnostics:q6},Yie={name:"typeAcquisition",type:"object",elementOptions:KEe(),extraKeyDiagnostics:Jie},J6="**/*",N0e=/(^|\/)\*\*\/?$/,P0e=/^[^*?]*(?=\/[^/]*[*?])/}});function to(e,t,...r){e.trace(SV(t,...r))}function cg(e,t){return!!e.traceResolution&&t.trace!==void 0}function yI(e,t){let r;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(r={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Os.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:r,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function vU(e){return yI(void 0,e)}function M0e(e){if(e)return x.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function K6(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function H4e(e){let t=[];return e&1&&t.push(...l2),e&2&&t.push(...Px),e&4&&t.push(...s2),e&8&&t.push(".json"),t}function Qie(e){if(e)return x.assert(mF(e.extension)),{fileName:e.path,packageId:e.packageId}}function L0e(e,t,r,i,o,s,l,d,p){if(!l.resultFromCache&&!l.compilerOptions.preserveSymlinks&&t&&r&&!t.originalPath&&!Ic(e)){let{resolvedFileName:h,originalPath:m}=w0e(t.path,l.host,l.traceEnabled);m&&(t={...t,path:h,originalPath:m})}return k0e(t,r,i,o,s,l.resultFromCache,d,p)}function k0e(e,t,r,i,o,s,l,d){return s?l?.isReadonly?{...s,failedLookupLocations:Zie(s.failedLookupLocations,r),affectingLocations:Zie(s.affectingLocations,i),resolutionDiagnostics:Zie(s.resolutionDiagnostics,o)}:(s.failedLookupLocations=$x(s.failedLookupLocations,r),s.affectingLocations=$x(s.affectingLocations,i),s.resolutionDiagnostics=$x(s.resolutionDiagnostics,o),s):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:xN(r),affectingLocations:xN(i),resolutionDiagnostics:xN(o),alternateResult:d}}function xN(e){return e.length?e:void 0}function $x(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Zie(e,t){return e?.length?t.length?[...e,...t]:e.slice():xN(t)}function O0e(e,t,r,i){if(!rs(e,t)){i.traceEnabled&&to(i.host,f.package_json_does_not_have_a_0_field,t);return}let o=e[t];if(typeof o!==r||o===null){i.traceEnabled&&to(i.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,r,o===null?"null":typeof o);return}return o}function yU(e,t,r,i){let o=O0e(e,t,"string",i);if(o===void 0)return;if(!o){i.traceEnabled&&to(i.host,f.package_json_had_a_falsy_0_field,t);return}let s=Yo(wr(r,o));return i.traceEnabled&&to(i.host,f.package_json_has_0_field_1_that_references_2,t,o,s),s}function q4e(e,t,r){return yU(e,"typings",t,r)||yU(e,"types",t,r)}function J4e(e,t,r){return yU(e,"tsconfig",t,r)}function K4e(e,t,r){return yU(e,"main",t,r)}function X4e(e,t){let r=O0e(e,"typesVersions","object",t);if(r!==void 0)return t.traceEnabled&&to(t.host,f.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),r}function Y4e(e,t){let r=X4e(e,t);if(r===void 0)return;if(t.traceEnabled)for(let l in r)rs(r,l)&&!hM.tryParse(l)&&to(t.host,f.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,l);let i=X6(r);if(!i){t.traceEnabled&&to(t.host,f.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,uh);return}let{version:o,paths:s}=i;if(typeof s!="object"){t.traceEnabled&&to(t.host,f.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${o}']`,"object",typeof s);return}return i}function X6(e){foe||(foe=new zf(yp));for(let t in e){if(!rs(e,t))continue;let r=hM.tryParse(t);if(r!==void 0&&r.test(foe))return{version:t,paths:e[t]}}}function RN(e,t){if(e.typeRoots)return e.typeRoots;let r;if(e.configFilePath?r=Ur(e.configFilePath):t.getCurrentDirectory&&(r=t.getCurrentDirectory()),r!==void 0)return $4e(r)}function $4e(e){let t;return Vf(Yo(e),r=>{let i=wr(r,iSe);(t??(t=[])).push(i)}),t}function Q4e(e,t,r){let i=typeof r.useCaseSensitiveFileNames=="function"?r.useCaseSensitiveFileNames():r.useCaseSensitiveFileNames;return Xh(e,t,!i)===0}function w0e(e,t,r){let i=d3e(e,t,r),o=Q4e(e,i,t);return{resolvedFileName:o?e:i,originalPath:o?void 0:e}}function W0e(e,t,r){let i=Zs(e,"/node_modules/@types")||Zs(e,"/node_modules/@types/")?tSe(t,r):t;return wr(e,i)}function eoe(e,t,r,i,o,s,l){x.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let d=cg(r,i);o&&(r=o.commandLine.options);let p=t?Ur(t):void 0,h=p?s?.getFromDirectoryCache(e,l,p,o):void 0;if(!h&&p&&!Ic(e)&&(h=s?.getFromNonRelativeNameCache(e,l,p,o)),h)return d&&(to(i,f.Resolving_type_reference_directive_0_containing_file_1,e,t),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName),to(i,f.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,p),F(h)),h;let m=RN(r,i);d&&(t===void 0?m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):to(i,f.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,m):m===void 0?to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):to(i,f.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,m),o&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let v=[],E=[],S=toe(r);l!==void 0&&(S|=30);let A=zd(r);l===99&&3<=A&&A<=99&&(S|=32);let C=S&8?hy(r,l):[],R=[],L={compilerOptions:r,host:i,traceEnabled:d,failedLookupLocations:v,affectingLocations:E,packageJsonInfoCache:s,features:S,conditions:C,requestContainingDirectory:p,reportDiagnostic:$=>void R.push($),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},G=oe(),U=!0;G||(G=W(),U=!1);let K;if(G){let{fileName:$,packageId:de}=G,fe=$,q;r.preserveSymlinks||({resolvedFileName:fe,originalPath:q}=w0e($,i,d)),K={primary:U,resolvedFileName:fe,originalPath:q,packageId:de,isExternalLibraryImport:Gb($)}}return h={resolvedTypeReferenceDirective:K,failedLookupLocations:xN(v),affectingLocations:xN(E),resolutionDiagnostics:xN(R)},p&&s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(p,o).set(e,l,h),Ic(e)||s.getOrCreateCacheForNonRelativeName(e,l,o).set(p,h)),d&&F(h),h;function F($){var de;(de=$.resolvedTypeReferenceDirective)!=null&&de.resolvedFileName?$.resolvedTypeReferenceDirective.packageId?to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,$.resolvedTypeReferenceDirective.resolvedFileName,Qv($.resolvedTypeReferenceDirective.packageId),$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,$.resolvedTypeReferenceDirective.resolvedFileName,$.resolvedTypeReferenceDirective.primary):to(i,f.Type_reference_directive_0_was_not_resolved,e)}function oe(){if(m&&m.length)return d&&to(i,f.Resolving_with_primary_search_path_0,m.join(", ")),ml(m,$=>{let de=W0e($,e,L),fe=gm($,i);if(!fe&&d&&to(i,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,$),r.typeRoots){let q=eR(4,de,!fe,L);if(q){let H=tk(q.path),ee=H?m0(H,!1,L):void 0;return Qie(yI(ee,q))}}return Qie(coe(4,de,!fe,L))});d&&to(i,f.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function W(){let $=t&&Ur(t);if($!==void 0){let de;if(!r.typeRoots||!Zs(t,lR))if(d&&to(i,f.Looking_up_in_node_modules_folder_initial_location_0,$),Ic(e)){let{path:fe}=j0e($,e);de=AU(4,fe,!1,L,!0)}else{let fe=$0e(4,e,$,L,void 0,void 0);de=fe&&fe.value}else d&&to(i,f.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return Qie(de)}else d&&to(i,f.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function toe(e){let t=0;switch(zd(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function hy(e,t){let r=zd(e);if(t===void 0){if(r===100)t=99;else if(r===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),r!==100&&i.push("node"),ro(i,e.customConditions)}function bU(e,t,r,i,o){let s=nk(o?.getPackageJsonInfoCache(),i,r);return Vf(t,l=>{if(Ll(l)!=="node_modules"){let d=wr(l,"node_modules"),p=wr(d,e);return m0(p,!1,s)}})}function Y6(e,t){if(e.types)return e.types;let r=[];if(t.directoryExists&&t.getDirectories){let i=RN(e,t);if(i){for(let o of i)if(t.directoryExists(o))for(let s of t.getDirectories(o)){let l=Yo(s),d=wr(o,l,"package.json");if(!(t.fileExists(d)&&kC(d,t).typings===null)){let h=Ll(l);h.charCodeAt(0)!==46&&r.push(h)}}}}return r}function $6(e){return!!e?.contents}function noe(e){return!!e&&!e.contents}function roe(e){var t;if(e===null||typeof e!="object")return""+e;if(oo(e))return`[${(t=e.map(i=>roe(i)))==null?void 0:t.join(",")}]`;let r="{";for(let i in e)rs(e,i)&&(r+=`${i}: ${roe(e[i])}`);return r+"}"}function EU(e,t){return t.map(r=>roe(iF(e,r))).join("|")+`|${e.pathsBasePath}`}function SU(e,t){let r=new Map,i=new Map,o=new Map;return e&&r.set(e,o),{getMapOfCacheRedirects:s,getOrCreateMapOfCacheRedirects:l,update:d,clear:h,getOwnMap:()=>o};function s(v){return v?p(v.commandLine.options,!1):o}function l(v){return v?p(v.commandLine.options,!0):o}function d(v){e!==v&&(e?o=p(v,!0):r.set(v,o),e=v)}function p(v,E){let S=r.get(v);if(S)return S;let A=m(v);if(S=i.get(A),!S){if(e){let C=m(e);C===A?S=o:i.has(C)||i.set(C,o)}E&&(S??(S=new Map)),S&&i.set(A,S)}return S&&r.set(v,S),S}function h(){let v=e&&t.get(e);o.clear(),r.clear(),t.clear(),i.clear(),e&&(v&&t.set(e,v),r.set(e,o))}function m(v){let E=t.get(v);return E||t.set(v,E=EU(v,V6)),E}}function Z4e(e,t){let r;return{getPackageJsonInfo:i,setPackageJsonInfo:o,clear:s,getInternalMap:l};function i(d){return r?.get(ks(d,e,t))}function o(d,p){(r||(r=new Map)).set(ks(d,e,t),p)}function s(){r=void 0}function l(){return r}}function F0e(e,t,r,i){let o=e.getOrCreateMapOfCacheRedirects(t),s=o.get(r);return s||(s=i(),o.set(r,s)),s}function e3e(e,t,r,i){let o=SU(r,i);return{getFromDirectoryCache:p,getOrCreateCacheForDirectory:d,clear:s,update:l,directoryToModuleNameMap:o};function s(){o.clear()}function l(h){o.update(h)}function d(h,m){let v=ks(h,e,t);return F0e(o,m,v,()=>bI())}function p(h,m,v,E){var S,A;let C=ks(v,e,t);return(A=(S=o.getMapOfCacheRedirects(E))==null?void 0:S.get(C))==null?void 0:A.get(h,m)}}function DN(e,t){return t===void 0?e:`${t}|${e}`}function bI(){let e=new Map,t=new Map,r={get(o,s){return e.get(i(o,s))},set(o,s,l){return e.set(i(o,s),l),r},delete(o,s){return e.delete(i(o,s)),r},has(o,s){return e.has(i(o,s))},forEach(o){return e.forEach((s,l)=>{let[d,p]=t.get(l);return o(s,d,p)})},size(){return e.size}};return r;function i(o,s){let l=DN(o,s);return t.set(l,[o,s]),l}}function t3e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function n3e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function r3e(e,t,r,i,o){let s=SU(r,o);return{getFromNonRelativeNameCache:p,getOrCreateCacheForNonRelativeName:h,clear:l,update:d};function l(){s.clear()}function d(v){s.update(v)}function p(v,E,S,A){var C,R;return x.assert(!Ic(v)),(R=(C=s.getMapOfCacheRedirects(A))==null?void 0:C.get(DN(v,E)))==null?void 0:R.get(S)}function h(v,E,S){return x.assert(!Ic(v)),F0e(s,S,DN(v,E),m)}function m(){let v=new Map;return{get:E,set:S};function E(C){return v.get(ks(C,e,t))}function S(C,R){let L=ks(C,e,t);if(v.has(L))return;v.set(L,R);let G=i(R),U=G&&A(L,G),K=L;for(;K!==U;){let F=Ur(K);if(F===K||v.has(F))break;v.set(F,R),K=F}}function A(C,R){let L=ks(Ur(R),e,t),G=0,U=Math.min(C.length,L.length);for(;G<U&&C.charCodeAt(G)===L.charCodeAt(G);)G++;if(G===C.length&&(L.length===G||L[G]===Os))return C;let K=P_(C);if(G<K)return;let F=C.lastIndexOf(Os,G-1);if(F!==-1)return C.substr(0,Math.max(F,K))}}}function z0e(e,t,r,i,o,s){s??(s=new Map);let l=e3e(e,t,r,s),d=r3e(e,t,r,o,s);return i??(i=Z4e(e,t)),{...i,...l,...d,clear:p,update:m,getPackageJsonInfoCache:()=>i,clearAllExceptPackageJsonInfoCache:h,optionsToRedirectsKey:s};function p(){h(),i.clear()}function h(){l.clear(),d.clear()}function m(v){l.update(v),d.update(v)}}function Qx(e,t,r,i,o){let s=z0e(e,t,r,i,t3e,o);return s.getOrCreateCacheForModuleName=(l,d,p)=>s.getOrCreateCacheForNonRelativeName(l,d,p),s}function Q6(e,t,r,i,o){return z0e(e,t,r,i,n3e,o)}function TU(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function Z6(e,t,r,i,o){return Zx(e,t,TU(r),i,o)}function B0e(e,t,r,i){let o=Ur(t);return r.getFromDirectoryCache(e,i,o,void 0)}function Zx(e,t,r,i,o,s,l){var d,p,h;let m=cg(r,i);s&&(r=s.commandLine.options),m&&(to(i,f.Resolving_module_0_from_1,e,t),s&&to(i,f.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let v=Ur(t),E=o?.getFromDirectoryCache(e,l,v,s);if(E)m&&to(i,f.Resolution_for_module_0_was_found_in_cache_from_location_1,e,v);else{let S=r.moduleResolution;switch(S===void 0?(S=zd(r),m&&to(i,f.Module_resolution_kind_is_not_specified_using_0,O1[S])):m&&to(i,f.Explicitly_specified_module_resolution_kind_Colon_0,O1[S]),(d=Pd)==null||d.logStartResolveModule(e),S){case 3:E=s3e(e,t,r,i,o,s,l);break;case 99:E=l3e(e,t,r,i,o,s,l);break;case 2:E=aoe(e,t,r,i,o,s,l?hy(r,l):void 0);break;case 1:E=uoe(e,t,r,i,o,s);break;case 100:E=ooe(e,t,r,i,o,s,l?hy(r,l):void 0);break;default:return x.fail(`Unexpected moduleResolution: ${S}`)}E&&E.resolvedModule&&((p=Pd)==null||p.logInfoEvent(`Module "${e}" resolved to "${E.resolvedModule.resolvedFileName}"`)),(h=Pd)==null||h.logStopResolveModule(E&&E.resolvedModule?""+E.resolvedModule.resolvedFileName:"null"),o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(v,s).set(e,l,E),Ic(e)||o.getOrCreateCacheForNonRelativeName(e,l,s).set(v,E))}return m&&(E.resolvedModule?E.resolvedModule.packageId?to(i,f.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,E.resolvedModule.resolvedFileName,Qv(E.resolvedModule.packageId)):to(i,f.Module_name_0_was_successfully_resolved_to_1,e,E.resolvedModule.resolvedFileName):to(i,f.Module_name_0_was_not_resolved,e)),E}function G0e(e,t,r,i,o){let s=i3e(e,t,i,o);return s?s.value:Ic(t)?o3e(e,t,r,i,o):a3e(e,t,i,o)}function i3e(e,t,r,i){var o;let{baseUrl:s,paths:l,configFile:d}=i.compilerOptions;if(l&&!op(t)){i.traceEnabled&&(s&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,s,t),to(i.host,f.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let p=zW(i.compilerOptions,i.host),h=d?.configFileSpecs?(o=d.configFileSpecs).pathPatterns||(o.pathPatterns=fF(l)):void 0;return doe(e,t,p,l,h,r,!1,i)}}function o3e(e,t,r,i,o){if(!o.compilerOptions.rootDirs)return;o.traceEnabled&&to(o.host,f.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let s=Yo(wr(r,t)),l,d;for(let p of o.compilerOptions.rootDirs){let h=Yo(p);Zs(h,Os)||(h+=Os);let m=Ui(s,h)&&(d===void 0||d.length<h.length);o.traceEnabled&&to(o.host,f.Checking_if_0_is_the_longest_matching_prefix_for_1_2,h,s,m),m&&(d=h,l=p)}if(d){o.traceEnabled&&to(o.host,f.Longest_matching_prefix_for_0_is_1,s,d);let p=s.substr(d.length);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,d,s);let h=i(e,s,!gm(r,o.host),o);if(h)return h;o.traceEnabled&&to(o.host,f.Trying_other_entries_in_rootDirs);for(let m of o.compilerOptions.rootDirs){if(m===l)continue;let v=wr(Yo(m),p);o.traceEnabled&&to(o.host,f.Loading_0_from_the_root_dir_1_candidate_location_2,p,m,v);let E=Ur(v),S=i(e,v,!gm(E,o.host),o);if(S)return S}o.traceEnabled&&to(o.host,f.Module_resolution_using_rootDirs_has_failed)}}function a3e(e,t,r,i){let{baseUrl:o}=i.compilerOptions;if(!o)return;i.traceEnabled&&to(i.host,f.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t);let s=Yo(wr(o,t));return i.traceEnabled&&to(i.host,f.Resolving_module_name_0_relative_to_base_url_1_2,t,o,s),r(e,s,!gm(Ur(s),i.host),i)}function ioe(e,t,r){let{resolvedModule:i,failedLookupLocations:o}=c3e(e,t,r);if(!i)throw new Error(`Could not resolve JS module '${e}' starting at '${t}'. Looked in: ${o?.join(", ")}`);return i.resolvedFileName}function s3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function l3e(e,t,r,i,o,s,l){return V0e(30,e,t,r,i,o,s,l)}function V0e(e,t,r,i,o,s,l,d,p){let h=Ur(r),m=d===99?32:0,v=i.noDtsResolution?3:7;return Mb(i)&&(v|=8),ek(e|m,t,h,i,o,s,v,!1,l,p)}function c3e(e,t,r){return ek(0,e,t,{moduleResolution:2,allowJs:!0},r,void 0,2,!1,void 0,void 0)}function ooe(e,t,r,i,o,s,l){let d=Ur(t),p=r.noDtsResolution?3:7;return Mb(r)&&(p|=8),ek(toe(r),e,d,r,i,o,p,!1,s,l)}function aoe(e,t,r,i,o,s,l,d){let p;return d?p=8:r.noDtsResolution?(p=3,Mb(r)&&(p|=8)):p=Mb(r)?15:7,ek(l?30:0,e,Ur(t),r,i,o,p,!!d,s,l)}function soe(e,t,r){return ek(30,e,Ur(t),{moduleResolution:99},r,void 0,8,!0,void 0,void 0)}function ek(e,t,r,i,o,s,l,d,p,h){var m,v,E,S,A;let C=cg(i,o),R=[],L=[],G=zd(i);h??(h=hy(i,G===100||G===2?void 0:e&32?99:1));let U=[],K={compilerOptions:i,host:o,traceEnabled:C,failedLookupLocations:R,affectingLocations:L,packageJsonInfoCache:s,features:e,conditions:h??je,requestContainingDirectory:r,reportDiagnostic:$=>void U.push($),isConfigLookup:d,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1};C&&HA(G)&&to(o,f.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",K.conditions.map($=>`'${$}'`).join(", "));let F;if(G===2){let $=l&5,de=l&-6;F=$&&W($,K)||de&&W(de,K)||void 0}else F=W(l,K);let oe;if(K.resolvedPackageDirectory&&!d&&!Ic(t)){let $=F?.value&&l&5&&!K0e(5,F.value.resolved.extension);if((m=F?.value)!=null&&m.isExternalLibraryImport&&$&&e&8&&h?.includes("import")){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let de={...K,features:K.features&-9,reportDiagnostic:Ca},fe=W(l&5,de);(v=fe?.value)!=null&&v.isExternalLibraryImport&&(oe=fe.value.resolved.path)}else if((!F?.value||$)&&G===2){gy(K,f.Resolution_of_non_relative_name_failed_trying_with_moduleResolution_bundler_to_see_if_project_may_need_configuration_update);let de={...K.compilerOptions,moduleResolution:100},fe={...K,compilerOptions:de,features:30,conditions:hy(de),reportDiagnostic:Ca},q=W(l&5,fe);(E=q?.value)!=null&&E.isExternalLibraryImport&&(oe=q.value.resolved.path)}}return L0e(t,(S=F?.value)==null?void 0:S.resolved,(A=F?.value)==null?void 0:A.isExternalLibraryImport,R,L,U,K,s,oe);function W($,de){let q=G0e($,t,r,(H,ee,le,Ee)=>AU(H,ee,le,Ee,!0),de);if(q)return xp({resolved:q,isExternalLibraryImport:Gb(q.path)});if(Ic(t)){let{path:H,parts:ee}=j0e(r,t),le=AU($,H,!1,de,!0);return le&&xp({resolved:le,isExternalLibraryImport:To(ee,"node_modules")})}else{let H;if(e&2&&Ui(t,"#")&&(H=m3e($,t,r,de,s,p)),!H&&e&4&&(H=f3e($,t,r,de,s,p)),!H){if(t.includes(":")){C&&to(o,f.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,K6($));return}C&&to(o,f.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,K6($)),H=$0e($,t,r,de,s,p)}return $&4&&(H??(H=rSe(t,de))),H&&{value:H.value&&{resolved:H.value,isExternalLibraryImport:!0}}}}}function j0e(e,t){let r=wr(e,t),i=mc(r),o=Ns(i);return{path:o==="."||o===".."?_c(Yo(r)):Yo(r),parts:i}}function d3e(e,t,r){if(!t.realpath)return e;let i=Yo(t.realpath(e));return r&&to(t,f.Resolving_real_path_for_0_result_1,e,i),i}function AU(e,t,r,i,o){if(i.traceEnabled&&to(i.host,f.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,K6(e)),!Jg(t)){if(!r){let l=Ur(t);gm(l,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),r=!0)}let s=eR(e,t,r,i);if(s){let l=o?tk(s.path):void 0,d=l?m0(l,!1,i):void 0;return yI(d,s)}}if(r||gm(t,i.host)||(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),r=!0),!(i.features&32))return coe(e,t,r,i,o)}function Gb(e){return e.includes(H_)}function tk(e,t){let r=Yo(e),i=r.lastIndexOf(H_);if(i===-1)return;let o=i+H_.length,s=U0e(r,o,t);return r.charCodeAt(o)===64&&(s=U0e(r,s,t)),r.slice(0,s)}function U0e(e,t,r){let i=e.indexOf(Os,t+1);return i===-1?r?e.length:t:i}function loe(e,t,r,i){return vU(eR(e,t,r,i))}function eR(e,t,r,i){let o=H0e(e,t,r,i);if(o)return o;if(!(i.features&32)){let s=q0e(t,e,"",r,i);if(s)return s}}function H0e(e,t,r,i){if(!Ll(t).includes("."))return;let s=Yd(t);s===t&&(s=t.substring(0,t.lastIndexOf(".")));let l=t.substring(s.length);return i.traceEnabled&&to(i.host,f.File_name_0_has_a_1_extension_stripping_it,t,l),q0e(s,e,l,r,i)}function IU(e,t,r,i){return e&1&&$l(t,l2)||e&4&&$l(t,s2)?xU(t,r,i)!==void 0?{path:t,ext:JW(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&el(t,".json")?xU(t,r,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:H0e(e,t,r,i)}function q0e(e,t,r,i,o){if(!i){let l=Ur(e);l&&(i=!gm(l,o.host))}switch(r){case".mjs":case".mts":case".d.mts":return t&1&&s(".mts",r===".mts"||r===".d.mts")||t&4&&s(".d.mts",r===".mts"||r===".d.mts")||t&2&&s(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&s(".cts",r===".cts"||r===".d.cts")||t&4&&s(".d.cts",r===".cts"||r===".d.cts")||t&2&&s(".cjs")||void 0;case".json":return t&4&&s(".d.json.ts")||t&8&&s(".json")||void 0;case".tsx":case".jsx":return t&1&&(s(".tsx",r===".tsx")||s(".ts",r===".tsx"))||t&4&&s(".d.ts",r===".tsx")||t&2&&(s(".jsx")||s(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(s(".ts",r===".ts"||r===".d.ts")||s(".tsx",r===".ts"||r===".d.ts"))||t&4&&s(".d.ts",r===".ts"||r===".d.ts")||t&2&&(s(".js")||s(".jsx"))||o.isConfigLookup&&s(".json")||void 0;default:return t&4&&!Yc(e+r)&&s(`.d${r}.ts`)||void 0}function s(l,d){let p=xU(e+l,i,o);return p===void 0?void 0:{path:p,ext:l,resolvedUsingTsExtension:!o.candidateIsFromPackageJsonField&&d}}}function xU(e,t,r){var i;if(!((i=r.compilerOptions.moduleSuffixes)!=null&&i.length))return J0e(e,t,r);let o=og(e)??"",s=o?QL(e,o):e;return an(r.compilerOptions.moduleSuffixes,l=>J0e(s+l+o,t,r))}function J0e(e,t,r){var i;if(!t){if(r.host.fileExists(e))return r.traceEnabled&&to(r.host,f.File_0_exists_use_it_as_a_name_resolution_result,e),e;r.traceEnabled&&to(r.host,f.File_0_does_not_exist,e)}(i=r.failedLookupLocations)==null||i.push(e)}function coe(e,t,r,i,o=!0){let s=o?m0(t,r,i):void 0,l=s&&s.contents.packageJsonContent,d=s&&e4(s,i);return yI(s,DU(e,t,r,i,l,d))}function RU(e,t,r,i,o){if(!o&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let s,l=5|(o?2:0),d=toe(t),p=nk(i?.getPackageJsonInfoCache(),r,t);p.conditions=hy(t),p.requestContainingDirectory=e.packageDirectory;let h=DU(l,e.packageDirectory,!1,p,e.contents.packageJsonContent,e4(e,p));if(s=pn(s,h?.path),d&8&&e.contents.packageJsonContent.exports){let m=NE([hy(t,99),hy(t,1)],mm);for(let v of m){let E={...p,failedLookupLocations:[],conditions:v,host:r},S=u3e(e,e.contents.packageJsonContent.exports,E,l);if(S)for(let A of S)s=Kh(s,A.path)}}return e.contents.resolvedEntrypoints=s||!1}function u3e(e,t,r,i){let o;if(oo(t))for(let l of t)s(l);else if(typeof t=="object"&&t!==null&&t4(t))for(let l in t)s(t[l]);else s(t);return o;function s(l){var d,p;if(typeof l=="string"&&Ui(l,"./"))if(l.includes("*")&&r.host.readDirectory){if(l.indexOf("*")!==l.lastIndexOf("*"))return!1;r.host.readDirectory(e.packageDirectory,H4e(i),void 0,[pee(KA(l,"**/*"),".*")]).forEach(h=>{o=Kh(o,{path:h,ext:w1(h),resolvedUsingTsExtension:void 0})})}else{let h=mc(l).slice(2);if(h.includes("..")||h.includes(".")||h.includes("node_modules"))return!1;let m=wr(e.packageDirectory,l),v=Qi(m,(p=(d=r.host).getCurrentDirectory)==null?void 0:p.call(d)),E=IU(i,v,!1,r);if(E)return o=Kh(o,E,(S,A)=>S.path===A.path),!0}else if(Array.isArray(l)){for(let h of l)if(s(h))return!0}else if(typeof l=="object"&&l!==null)return an(fh(l),h=>{if(h==="default"||To(r.conditions,h)||ok(r.conditions,h))return s(l[h]),!0})}}function nk(e,t,r){return{host:t,compilerOptions:r,traceEnabled:cg(r,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:je,requestContainingDirectory:void 0,reportDiagnostic:Ca,isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1}}function rk(e,t){let r=mc(e);for(r.pop();r.length>0;){let i=m0(Vv(r),!1,t);if(i)return i;r.pop()}}function e4(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=Y4e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function m0(e,t,r){var i,o,s,l,d,p;let{host:h,traceEnabled:m}=r,v=wr(e,"package.json");if(t){(i=r.failedLookupLocations)==null||i.push(v);return}let E=(o=r.packageJsonInfoCache)==null?void 0:o.getPackageJsonInfo(v);if(E!==void 0){if($6(E))return m&&to(h,f.File_0_exists_according_to_earlier_cached_lookups,v),(s=r.affectingLocations)==null||s.push(v),E.packageDirectory===e?E:{packageDirectory:e,contents:E.contents};E.directoryExists&&m&&to(h,f.File_0_does_not_exist_according_to_earlier_cached_lookups,v),(l=r.failedLookupLocations)==null||l.push(v);return}let S=gm(e,h);if(S&&h.fileExists(v)){let A=kC(v,h);m&&to(h,f.Found_package_json_at_0,v);let C={packageDirectory:e,contents:{packageJsonContent:A,versionPaths:void 0,resolvedEntrypoints:void 0}};return r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,C),(d=r.affectingLocations)==null||d.push(v),C}else S&&m&&to(h,f.File_0_does_not_exist,v),r.packageJsonInfoCache&&!r.packageJsonInfoCache.isReadonly&&r.packageJsonInfoCache.setPackageJsonInfo(v,{packageDirectory:e,directoryExists:S}),(p=r.failedLookupLocations)==null||p.push(v)}function DU(e,t,r,i,o,s){let l;o&&(i.isConfigLookup?l=J4e(o,t,i):l=e&4&&q4e(o,t,i)||e&7&&K4e(o,t,i)||void 0);let d=(E,S,A,C)=>{let R=IU(E,S,A,C);if(R)return vU(R);let L=E===4?5:E,G=C.features,U=C.candidateIsFromPackageJsonField;C.candidateIsFromPackageJsonField=!0,o?.type!=="module"&&(C.features&=-33);let K=AU(L,S,A,C,!1);return C.features=G,C.candidateIsFromPackageJsonField=U,K},p=l?!gm(Ur(l),i.host):void 0,h=r||!gm(t,i.host),m=wr(t,i.isConfigLookup?"tsconfig":"index");if(s&&(!l||Bf(t,l))){let E=Gf(t,l||m,!1);i.traceEnabled&&to(i.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,s.version,yp,E);let S=doe(e,E,t,s.paths,void 0,d,p||h,i);if(S)return M0e(S.value)}let v=l&&M0e(d(e,l,p,i));if(v)return v;if(!(i.features&32))return eR(e,m,h,i)}function K0e(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function ik(e){let t=e.indexOf(Os);return e[0]==="@"&&(t=e.indexOf(Os,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function t4(e){return ji(fh(e),t=>Ui(t,"."))}function p3e(e){return!ct(fh(e),t=>Ui(t,"."))}function f3e(e,t,r,i,o,s){var l,d;let p=Qi(wr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h||!h.contents.packageJsonContent.exports||typeof h.contents.packageJsonContent.name!="string")return;let m=mc(t),v=mc(h.contents.packageJsonContent.name);if(!ji(v,(R,L)=>m[L]===R))return;let E=m.slice(v.length),S=yn(E)?`.${Os}${E.join(Os)}`:".";if(sy(i.compilerOptions)&&!Gb(r))return CU(h,e,S,i,o,s);let A=e&5,C=e&-6;return CU(h,A,S,i,o,s)||CU(h,C,S,i,o,s)}function CU(e,t,r,i,o,s){if(e.contents.packageJsonContent.exports){if(r==="."){let l;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&p3e(e.contents.packageJsonContent.exports)?l=e.contents.packageJsonContent.exports:rs(e.contents.packageJsonContent.exports,".")&&(l=e.contents.packageJsonContent.exports["."]),l)return Y0e(t,i,o,s,r,e,!1)(l,"",!1,".")}else if(t4(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),xp(void 0);let l=X0e(t,i,o,s,r,e.contents.packageJsonContent.exports,e,!1);if(l)return l}return i.traceEnabled&&to(i.host,f.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,e.packageDirectory),xp(void 0)}}function m3e(e,t,r,i,o,s){var l,d;if(t==="#"||Ui(t,"#/"))return i.traceEnabled&&to(i.host,f.Invalid_import_specifier_0_has_no_possible_resolutions,t),xp(void 0);let p=Qi(wr(r,"dummy"),(d=(l=i.host).getCurrentDirectory)==null?void 0:d.call(l)),h=rk(p,i);if(!h)return i.traceEnabled&&to(i.host,f.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,p),xp(void 0);if(!h.contents.packageJsonContent.imports)return i.traceEnabled&&to(i.host,f.package_json_scope_0_has_no_imports_defined,h.packageDirectory),xp(void 0);let m=X0e(e,i,o,s,t,h.contents.packageJsonContent.imports,h,!0);return m||(i.traceEnabled&&to(i.host,f.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,h.packageDirectory),xp(void 0))}function NU(e,t){let r=e.indexOf("*"),i=t.indexOf("*"),o=r===-1?e.length:r+1,s=i===-1?t.length:i+1;return o>s?-1:s>o||r===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function X0e(e,t,r,i,o,s,l,d){let p=Y0e(e,t,r,i,o,l,d);if(!Zs(o,Os)&&!o.includes("*")&&rs(s,o)){let v=s[o];return p(v,"",!1,o)}let h=uS(Cr(fh(s),v=>v.includes("*")||Zs(v,"/")),NU);for(let v of h)if(t.features&16&&m(v,o)){let E=s[v],S=v.indexOf("*"),A=o.substring(v.substring(0,S).length,o.length-(v.length-1-S));return p(E,A,!0,v)}else if(Zs(v,"*")&&Ui(o,v.substring(0,v.length-1))){let E=s[v],S=o.substring(v.length-1);return p(E,S,!0,v)}else if(Ui(o,v)){let E=s[v],S=o.substring(v.length);return p(E,S,!1,v)}function m(v,E){if(Zs(v,"*"))return!1;let S=v.indexOf("*");return S===-1?!1:Ui(E,v.substring(0,S))&&Zs(E,v.substring(S+1))}}function Y0e(e,t,r,i,o,s,l){return d;function d(p,h,m,v){if(typeof p=="string"){if(!m&&h.length>0&&!Zs(p,"/"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),xp(void 0);if(!Ui(p,"./")){if(l&&!Ui(p,"../")&&!Ui(p,"/")&&!Ou(p)){let F=m?p.replace(/\*/g,h):p+h;gy(t,f.Using_0_subpath_1_with_target_2,"imports",v,F),gy(t,f.Resolving_module_0_from_1,F,s.packageDirectory+"/");let oe=ek(t.features,F,s.packageDirectory+"/",t.compilerOptions,t.host,r,e,!1,i,t.conditions);return xp(oe.resolvedModule?{path:oe.resolvedModule.resolvedFileName,extension:oe.resolvedModule.extension,packageId:oe.resolvedModule.packageId,originalPath:oe.resolvedModule.originalPath,resolvedUsingTsExtension:oe.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),xp(void 0)}let R=(op(p)?mc(p).slice(1):mc(p)).slice(1);if(R.includes("..")||R.includes(".")||R.includes("node_modules"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),xp(void 0);let L=wr(s.packageDirectory,p),G=mc(h);if(G.includes("..")||G.includes(".")||G.includes("node_modules"))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),xp(void 0);t.traceEnabled&&to(t.host,f.Using_0_subpath_1_with_target_2,l?"imports":"exports",v,m?p.replace(/\*/g,h):p+h);let U=E(m?L.replace(/\*/g,h):L+h),K=A(U,h,wr(s.packageDirectory,"package.json"),l);return K||xp(yI(s,IU(e,U,!1,t)))}else if(typeof p=="object"&&p!==null)if(Array.isArray(p)){if(!yn(p))return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),xp(void 0);for(let C of p){let R=d(C,h,m,v);if(R)return R}}else{gy(t,f.Entering_conditional_exports);for(let C of fh(p))if(C==="default"||t.conditions.includes(C)||ok(t.conditions,C)){gy(t,f.Matched_0_condition_1,l?"imports":"exports",C);let R=p[C],L=d(R,h,m,v);if(L)return gy(t,f.Resolved_under_condition_0,C),gy(t,f.Exiting_conditional_exports),L;gy(t,f.Failed_to_resolve_under_condition_0,C)}else gy(t,f.Saw_non_matching_condition_0,C);gy(t,f.Exiting_conditional_exports);return}else if(p===null)return t.traceEnabled&&to(t.host,f.package_json_scope_0_explicitly_maps_specifier_1_to_null,s.packageDirectory,o),xp(void 0);return t.traceEnabled&&to(t.host,f.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,s.packageDirectory,o),xp(void 0);function E(C){var R,L;return C===void 0?C:Qi(C,(L=(R=t.host).getCurrentDirectory)==null?void 0:L.call(R))}function S(C,R){return _c(wr(C,R))}function A(C,R,L,G){var U,K,F,oe;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!C.includes("/node_modules/")&&(!t.compilerOptions.configFile||Bf(s.packageDirectory,E(t.compilerOptions.configFile.fileName),!PU(t)))){let $=ev({useCaseSensitiveFileNames:()=>PU(t)}),de=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let fe=E(VN(t.compilerOptions,()=>[],((K=(U=t.host).getCurrentDirectory)==null?void 0:K.call(U))||"",$));de.push(fe)}else if(t.requestContainingDirectory){let fe=E(wr(t.requestContainingDirectory,"index.ts")),q=E(VN(t.compilerOptions,()=>[fe,E(L)],((oe=(F=t.host).getCurrentDirectory)==null?void 0:oe.call(F))||"",$));de.push(q);let H=_c(q);for(;H&&H.length>1;){let ee=mc(H);ee.pop();let le=Vv(ee);de.unshift(le),H=_c(le)}}de.length>1&&t.reportDiagnostic(bl(G?f.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:f.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,R===""?".":R,L));for(let fe of de){let q=W(fe);for(let H of q)if(Bf(H,C,!PU(t))){let ee=C.slice(H.length+1),le=wr(fe,ee),Ee=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let ce of Ee)if(el(le,ce)){let Z=une(le);for(let pe of Z){if(!K0e(e,pe))continue;let Ae=xM(le,pe,ce,!PU(t));if(t.host.fileExists(Ae))return xp(yI(s,IU(e,Ae,!1,t)))}}}}}return;function W($){var de,fe;let q=t.compilerOptions.configFile?((fe=(de=t.host).getCurrentDirectory)==null?void 0:fe.call(de))||"":$,H=[];return t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(E(S(q,t.compilerOptions.outDir))),H}}}}function ok(e,t){if(!e.includes("types")||!Ui(t,"types@"))return!1;let r=hM.tryParse(t.substring(6));return r?r.test(yp):!1}function $0e(e,t,r,i,o,s){return Q0e(e,t,r,i,!1,o,s)}function _3e(e,t,r){return Q0e(4,e,t,r,!0,void 0,void 0)}function Q0e(e,t,r,i,o,s,l){let d=i.features===0?void 0:i.features&32?99:1,p=e&5,h=e&-6;if(p){gy(i,f.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,K6(p));let v=m(p);if(v)return v}if(h&&!o)return gy(i,f.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,K6(h)),m(h);function m(v){return Vf(ad(r),E=>{if(Ll(E)!=="node_modules"){let S=nSe(s,t,d,E,l,i);return S||xp(Z0e(v,t,E,i,o,s,l))}})}}function Z0e(e,t,r,i,o,s,l){let d=wr(r,"node_modules"),p=gm(d,i.host);if(!p&&i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,d),!o){let h=eSe(e,t,d,p,i,s,l);if(h)return h}if(e&4){let h=wr(d,"@types"),m=p;return p&&!gm(h,i.host)&&(i.traceEnabled&&to(i.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,h),m=!1),eSe(4,tSe(t,i),h,m,i,s,l)}}function eSe(e,t,r,i,o,s,l){var d,p;let h=Yo(wr(r,t)),{packageName:m,rest:v}=ik(t),E=wr(r,m),S,A=m0(h,!i,o);if(v!==""&&A&&(!(o.features&8)||!rs(((d=S=m0(E,!i,o))==null?void 0:d.contents.packageJsonContent)??je,"exports"))){let L=eR(e,h,!i,o);if(L)return vU(L);let G=DU(e,h,!i,o,A.contents.packageJsonContent,e4(A,o));return yI(A,G)}let C=(L,G,U,K)=>{let F=(v||!(K.features&32))&&eR(L,G,U,K)||DU(L,G,U,K,A&&A.contents.packageJsonContent,A&&e4(A,K));return!F&&A&&(A.contents.packageJsonContent.exports===void 0||A.contents.packageJsonContent.exports===null)&&K.features&32&&(F=eR(L,wr(G,"index.js"),U,K)),yI(A,F)};if(v!==""&&(A=S??m0(E,!i,o)),A&&(o.resolvedPackageDirectory=!0),A&&A.contents.packageJsonContent.exports&&o.features&8)return(p=CU(A,e,wr(".",v),o,s,l))==null?void 0:p.value;let R=v!==""&&A?e4(A,o):void 0;if(R){o.traceEnabled&&to(o.host,f.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,R.version,yp,v);let L=i&&gm(E,o.host),G=doe(e,v,E,R.paths,void 0,C,!L,o);if(G)return G.value}return C(e,h,!i,o)}function doe(e,t,r,i,o,s,l,d){o||(o=fF(i));let p=CV(o,t);if(p){let h=fo(p)?void 0:qZ(p,t),m=fo(p)?p:HZ(p);return d.traceEnabled&&to(d.host,f.Module_name_0_matched_pattern_1,t,m),{value:an(i[m],E=>{let S=h?KA(E,h):E,A=Yo(wr(r,S));d.traceEnabled&&to(d.host,f.Trying_substitution_0_candidate_module_location_Colon_1,E,S);let C=og(E);if(C!==void 0){let R=xU(A,l,d);if(R!==void 0)return vU({path:R,ext:C,resolvedUsingTsExtension:void 0})}return s(e,A,l||!gm(Ur(A),d.host),d)})}}}function tSe(e,t){let r=tR(e);return t.traceEnabled&&r!==e&&to(t.host,f.Scoped_package_detected_looking_in_0,r),r}function n4(e){return`@types/${tR(e)}`}function tR(e){if(Ui(e,"@")){let t=e.replace(Os,LU);if(t!==e)return t.slice(1)}return e}function CN(e){let t=jD(e,"@types/");return t!==e?ak(t):e}function ak(e){return e.includes(LU)?"@"+e.replace(LU,Os):e}function nSe(e,t,r,i,o,s){let l=e&&e.getFromNonRelativeNameCache(t,r,i,o);if(l)return s.traceEnabled&&to(s.host,f.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),s.resultFromCache=l,{value:l.resolvedModule&&{path:l.resolvedModule.resolvedFileName,originalPath:l.resolvedModule.originalPath||!0,extension:l.resolvedModule.extension,packageId:l.resolvedModule.packageId,resolvedUsingTsExtension:l.resolvedModule.resolvedUsingTsExtension}}}function uoe(e,t,r,i,o,s){let l=cg(r,i),d=[],p=[],h=Ur(t),m=[],v={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:h,reportDiagnostic:A=>void m.push(A),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},E=S(5)||S(2|(r.resolveJsonModule?8:0));return L0e(e,E&&E.value,E?.value&&Gb(E.value.path),d,p,m,v,o);function S(A){let C=G0e(A,e,h,loe,v);if(C)return{value:C};if(Ic(e)){let R=Yo(wr(h,e));return xp(loe(A,R,!1,v))}else{let R=Vf(h,L=>{let G=nSe(o,e,void 0,L,s,v);if(G)return G;let U=Yo(wr(L,e));return xp(loe(A,U,!1,v))});if(R)return R;if(A&5){let L=_3e(e,h,v);return A&4&&(L??(L=rSe(e,v))),L}}}}function rSe(e,t){if(t.compilerOptions.typeRoots)for(let r of t.compilerOptions.typeRoots){let i=W0e(r,e,t),o=gm(r,t.host);!o&&t.traceEnabled&&to(t.host,f.Directory_0_does_not_exist_skipping_all_lookups_in_it,r);let s=eR(4,i,!o,t);if(s){let d=tk(s.path),p=d?m0(d,!1,t):void 0;return xp(yI(p,s))}let l=coe(4,i,!o,t);if(l)return xp(l)}}function nR(e,t){return!!e.allowImportingTsExtensions||t&&Yc(t)}function poe(e,t,r,i,o,s){let l=cg(r,i);l&&to(i,f.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,o);let d=[],p=[],h=[],m={compilerOptions:r,host:i,traceEnabled:l,failedLookupLocations:d,affectingLocations:p,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:E=>void h.push(E),isConfigLookup:!1,candidateIsFromPackageJsonField:!1,resolvedPackageDirectory:!1},v=Z0e(4,e,o,m,!1,void 0,void 0);return k0e(v,!0,d,p,h,m.resultFromCache,void 0)}function xp(e){return e!==void 0?{value:e}:void 0}function gy(e,t,...r){e.traceEnabled&&to(e.host,t,...r)}function PU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var foe,iSe,MU,H_,LU,h3e=pt({"src/compiler/moduleNameResolver.ts"(){"use strict";wo(),iSe=wr("node_modules","@types"),MU=(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))(MU||{}),H_="/node_modules/",LU="__"}});function dg(e,t){return e.body&&!e.body.parent&&(Ta(e.body,e),oy(e.body,!1)),e.body?moe(e.body,t):1}function moe(e,t=new Map){let r=Fa(e);if(t.has(r))return t.get(r)||0;t.set(r,void 0);let i=g3e(e,t);return t.set(r,i),i}function g3e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(BE(e))return 2;break;case 272:case 271:if(!Wr(e,32))return 0;break;case 278:let r=e;if(!r.moduleSpecifier&&r.exportClause&&r.exportClause.kind===279){let i=0;for(let o of r.exportClause.elements){let s=v3e(o,t);if(s>i&&(i=s),i===1)return i}return i}break;case 268:{let i=0;return Ao(e,o=>{let s=moe(o,t);switch(s){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:x.assertNever(s)}}),i}case 267:return dg(e,t);case 80:if(e.flags&4096)return 0}return 1}function v3e(e,t){let r=e.propertyName||e.name,i=e.parent;for(;i;){if(Do(i)||t_(i)||Li(i)){let o=i.statements,s;for(let l of o)if(zM(l,r)){l.parent||(Ta(l,i),oy(l,!1));let d=moe(l,t);if((s===void 0||d>s)&&(s=d),s===1)return s;l.kind===271&&(s=1)}if(s!==void 0)return s}i=i.parent}return 1}function EI(e){return x.attachFlowNodeDebugInfo(e),e}function _oe(e,t){var r,i;Ls("beforeBind"),(r=Pd)==null||r.logStartBindFile(""+e.fileName),aSe(e,t),(i=Pd)==null||i.logStopBindFile(),Ls("afterBind"),Ep("Bind","beforeBind","afterBind")}function y3e(){var e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe=!1,W=0,$,de,fe={flags:1},q={flags:1},H=V();return le;function ee(k,ge,...Xe){return vf(Nn(k)||e,k,ge,...Xe)}function le(k,ge){var Xe,Mt;e=k,t=ge,r=Wa(t),F=Ee(e,ge),de=new Set,W=0,$=wc.getSymbolConstructor(),x.attachFlowNodeDebugInfo(fe),x.attachFlowNodeDebugInfo(q),e.locals||((Xe=qn)==null||Xe.push(qn.Phase.Bind,"bindSourceFile",{path:e.path},!0),xe(e),(Mt=qn)==null||Mt.pop(),e.symbolCount=W,e.classifiableNames=de,Fc()),e=void 0,t=void 0,r=void 0,i=void 0,o=void 0,s=void 0,l=void 0,d=void 0,p=void 0,h=!1,m=void 0,v=void 0,E=void 0,S=void 0,A=void 0,C=void 0,R=void 0,G=void 0,U=!1,oe=!1,K=0}function Ee(k,ge){return Fd(ge,"alwaysStrict")&&!k.isDeclarationFile?!0:!!k.externalModuleIndicator}function ce(k,ge){return W++,new $(k,ge)}function Z(k,ge,Xe){k.flags|=Xe,ge.symbol=k,k.declarations=Kh(k.declarations,ge),Xe&1955&&!k.exports&&(k.exports=Vo()),Xe&6240&&!k.members&&(k.members=Vo()),k.constEnumOnlyModule&&k.flags&304&&(k.constEnumOnlyModule=!1),Xe&111551&&IL(k,ge)}function pe(k){if(k.kind===277)return k.isExportEquals?"export=":"default";let ge=mo(k);if(ge){if(sd(k)){let Xe=Ef(ge);return qm(k)?"__global":`"${Xe}"`}if(ge.kind===167){let Xe=ge.expression;if(Tp(Xe))return Hs(Xe.text);if(LW(Xe))return qo(Xe.operator)+Xe.operand.text;x.fail("Only computed properties with literal names have declaration names")}if(Ci(ge)){let Xe=Oc(k);if(!Xe)return;let Mt=Xe.symbol;return wL(Mt,ge.escapedText)}return Em(ge)?JA(ge):Km(ge)?AC(ge):void 0}switch(k.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(hl(k)===2)return"export=";x.fail("Unknown binary declaration kind");break;case 324:return dx(k)?"__new":"__call";case 169:return x.assert(k.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${x.formatSyntaxKind(k.parent.kind)}, expected JSDocFunctionType`),"arg"+k.parent.parameters.indexOf(k)}}function Ae(k){return Ld(k)?is(k.name):Ii(x.checkDefined(pe(k)))}function Oe(k,ge,Xe,Mt,Vn,jr,Or){x.assert(Or||!ty(Xe));let zi=Wr(Xe,2048)||Ed(Xe)&&Xe.name.escapedText==="default",ma=Or?"__computed":zi&&ge?"default":pe(Xe),_a;if(ma===void 0)_a=ce(0,"__missing");else if(_a=k.get(ma),Mt&2885600&&de.add(ma),!_a)k.set(ma,_a=ce(0,ma)),jr&&(_a.isReplaceableByMethod=!0);else{if(jr&&!_a.isReplaceableByMethod)return _a;if(_a.flags&Vn){if(_a.isReplaceableByMethod)k.set(ma,_a=ce(0,ma));else if(!(Mt&3&&_a.flags&67108864)){Ld(Xe)&&Ta(Xe.name,Xe);let pl=_a.flags&2?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,Gc=!0;(_a.flags&384||Mt&384)&&(pl=f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,Gc=!1);let nc=!1;yn(_a.declarations)&&(zi||_a.declarations&&_a.declarations.length&&Xe.kind===277&&!Xe.isExportEquals)&&(pl=f.A_module_cannot_have_multiple_default_exports,Gc=!1,nc=!0);let Xu=[];Xf(Xe)&&_l(Xe.type)&&Wr(Xe,32)&&_a.flags&2887656&&Xu.push(ee(Xe,f.Did_you_mean_0,`export type { ${Ii(Xe.name.escapedText)} }`));let _u=mo(Xe)||Xe;an(_a.declarations,(ja,em)=>{let tm=mo(ja)||ja,Ri=Gc?ee(tm,pl,Ae(ja)):ee(tm,pl);e.bindDiagnostics.push(nc?pa(Ri,ee(_u,em===0?f.Another_export_default_is_here:f.and_here)):Ri),nc&&Xu.push(ee(tm,f.The_first_export_default_is_here))});let Ay=Gc?ee(_u,pl,Ae(Xe)):ee(_u,pl);e.bindDiagnostics.push(pa(Ay,...Xu)),_a=ce(0,ma)}}}return Z(_a,Xe,Mt),_a.parent?x.assert(_a.parent===ge,"Existing symbol parent should match new one"):_a.parent=ge,_a}function _e(k,ge,Xe){let Mt=!!(gb(k)&32)||be(k);if(ge&2097152)return k.kind===281||k.kind===271&&Mt?Oe(o.symbol.exports,o.symbol,k,ge,Xe):(x.assertNode(o,M_),Oe(o.locals,void 0,k,ge,Xe));if(bf(k)&&x.assert(Jn(k)),!sd(k)&&(Mt||o.flags&128)){if(!M_(o)||!o.locals||Wr(k,2048)&&!pe(k))return Oe(o.symbol.exports,o.symbol,k,ge,Xe);let Vn=ge&111551?1048576:0,jr=Oe(o.locals,void 0,k,Vn,Xe);return jr.exportSymbol=Oe(o.symbol.exports,o.symbol,k,ge,Xe),k.localSymbol=jr,jr}else return x.assertNode(o,M_),Oe(o.locals,void 0,k,ge,Xe)}function be(k){if(k.parent&&Il(k)&&(k=k.parent),!bf(k))return!1;if(!C2(k)&&k.fullName)return!0;let ge=mo(k);return ge?!!(UL(ge.parent)&&Nl(ge.parent)||bd(ge.parent)&&gb(ge.parent)&32):!1}function Te(k,ge){let Xe=o,Mt=s,Vn=l;if(ge&1?(k.kind!==219&&(s=o),o=l=k,ge&32&&(o.locals=Vo(),jn(o))):ge&2&&(l=k,ge&32&&(l.locals=void 0)),ge&4){let jr=m,Or=v,zi=E,ma=S,_a=R,pl=G,Gc=U,nc=ge&16&&!Wr(k,1024)&&!k.asteriskToken&&!!RS(k)||k.kind===175;nc||(m=EI({flags:2}),ge&144&&(m.node=k)),S=nc||k.kind===176||Jn(k)&&(k.kind===262||k.kind===218)?gn():void 0,R=void 0,v=void 0,E=void 0,G=void 0,U=!1,Le(k),k.flags&=-5633,!(m.flags&1)&&ge&8&&gf(k.body)&&(k.flags|=512,U&&(k.flags|=1024),k.endFlowNode=m),k.kind===312&&(k.flags|=K,k.endFlowNode=m),S&&(Wt(S,m),m=Gn(S),(k.kind===176||k.kind===175||Jn(k)&&(k.kind===262||k.kind===218))&&(k.returnFlowNode=m)),nc||(m=jr),v=Or,E=zi,S=ma,R=_a,G=pl,U=Gc}else ge&64?(h=!1,Le(k),x.assertNotNode(k,Me),k.flags=h?k.flags|256:k.flags&-257):Le(k);o=Xe,s=Mt,l=Vn}function De(k){ft(k,ge=>ge.kind===262?xe(ge):void 0),ft(k,ge=>ge.kind!==262?xe(ge):void 0)}function ft(k,ge=xe){k!==void 0&&an(k,ge)}function he(k){Ao(k,xe,ft)}function Le(k){let ge=oe;if(oe=!1,Nt(k)){he(k),dt(k),oe=ge;return}switch(k.kind>=243&&k.kind<=259&&!t.allowUnreachableCode&&(k.flowNode=m),k.kind){case 247:ki(k);break;case 246:so(k);break;case 248:Jo(k);break;case 249:case 250:ba(k);break;case 245:ln(k);break;case 253:case 257:Tn(k);break;case 252:case 251:tt(k);break;case 258:yt(k);break;case 255:re(k);break;case 269:Ce(k);break;case 296:et(k);break;case 244:z(k);break;case 256:_t(k);break;case 224:on(k);break;case 225:Qt(k);break;case 226:if(nv(k)){oe=ge,Zt(k);return}H(k);break;case 220:Re(k);break;case 227:St(k);break;case 260:te(k);break;case 211:case 212:ti(k);break;case 213:di(k);break;case 235:Cn(k);break;case 353:case 345:case 347:Ie(k);break;case 312:{De(k.statements),xe(k.endOfFileToken);break}case 241:case 268:De(k.statements);break;case 208:j(k);break;case 169:se(k);break;case 210:case 209:case 303:case 230:oe=ge;default:he(k);break}dt(k),oe=ge}function Ke(k){switch(k.kind){case 80:case 81:case 110:case 211:case 212:return st(k);case 213:return Ge(k);case 217:if(Ux(k))return!1;case 235:return Ke(k.expression);case 226:return Vt(k);case 224:return k.operator===54&&Ke(k.operand);case 221:return Ke(k.expression)}return!1}function Dt(k){return MC(k)||(Er(k)||dI(k)||uu(k))&&Dt(k.expression)||Zn(k)&&k.operatorToken.kind===28&&Dt(k.right)||Rs(k)&&(Tp(k.argumentExpression)||gl(k.argumentExpression))&&Dt(k.expression)||lc(k)&&Dt(k.left)}function st(k){return Dt(k)||yd(k)&&st(k.expression)}function Ge(k){if(k.arguments){for(let ge of k.arguments)if(st(ge))return!0}return!!(k.expression.kind===211&&st(k.expression.expression))}function ot(k,ge){return Wx(k)&&jt(k.expression)&&Ga(ge)}function Vt(k){switch(k.operatorToken.kind){case 64:case 76:case 77:case 78:return st(k.left);case 35:case 36:case 37:case 38:return jt(k.left)||jt(k.right)||ot(k.right,k.left)||ot(k.left,k.right)||sC(k.right)&&Ke(k.left)||sC(k.left)&&Ke(k.right);case 104:return jt(k.left);case 103:return Ke(k.right);case 28:return Ke(k.right)}return!1}function jt(k){switch(k.kind){case 217:return jt(k.expression);case 226:switch(k.operatorToken.kind){case 64:return jt(k.left);case 28:return jt(k.right)}}return st(k)}function gn(){return EI({flags:4,antecedents:void 0})}function On(){return EI({flags:8,antecedents:void 0})}function en(k,ge,Xe){return EI({flags:1024,target:k,antecedents:ge,antecedent:Xe})}function zt(k){k.flags|=k.flags&2048?4096:2048}function Wt(k,ge){!(ge.flags&1)&&!To(k.antecedents,ge)&&((k.antecedents||(k.antecedents=[])).push(ge),zt(ge))}function ei(k,ge,Xe){return ge.flags&1?ge:Xe?(Xe.kind===112&&k&64||Xe.kind===97&&k&32)&&!F8(Xe)&&!jG(Xe.parent)?fe:Ke(Xe)?(zt(ge),EI({flags:k,antecedent:ge,node:Xe})):ge:k&32?ge:fe}function Ki(k,ge,Xe,Mt){return zt(k),EI({flags:128,antecedent:k,switchStatement:ge,clauseStart:Xe,clauseEnd:Mt})}function gi(k,ge,Xe){zt(ge);let Mt=EI({flags:k,antecedent:ge,node:Xe});return R&&Wt(R,Mt),Mt}function io(k,ge){return zt(k),EI({flags:512,antecedent:k,node:ge})}function Gn(k){let ge=k.antecedents;return ge?ge.length===1?ge[0]:k:fe}function Nr(k){let ge=k.parent;switch(ge.kind){case 245:case 247:case 246:return ge.expression===k;case 248:case 227:return ge.condition===k}return!1}function cr(k){for(;;)if(k.kind===217)k=k.expression;else if(k.kind===224&&k.operator===54)k=k.operand;else return jL(k)}function Jt(k){return cV(Ka(k))}function Ue(k){for(;uu(k.parent)||fy(k.parent)&&k.parent.operator===54;)k=k.parent;return!Nr(k)&&!cr(k.parent)&&!(yd(k.parent)&&k.parent.expression===k)}function Rt(k,ge,Xe,Mt){let Vn=A,jr=C;A=Xe,C=Mt,k(ge),A=Vn,C=jr}function mn(k,ge,Xe){Rt(xe,k,ge,Xe),(!k||!Jt(k)&&!cr(k)&&!(yd(k)&&nC(k)))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function qr(k,ge,Xe){let Mt=v,Vn=E;v=ge,E=Xe,xe(k),v=Mt,E=Vn}function ni(k,ge){let Xe=G;for(;Xe&&k.parent.kind===256;)Xe.continueTarget=ge,Xe=Xe.next,k=k.parent;return ge}function ki(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();Wt(ge,m),m=ge,mn(k.expression,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),Wt(ge,m),m=Gn(Mt)}function so(k){let ge=On(),Xe=ni(k,gn()),Mt=gn();Wt(ge,m),m=ge,qr(k.statement,Mt,Xe),Wt(Xe,m),m=Gn(Xe),mn(k.expression,ge,Mt),m=Gn(Mt)}function Jo(k){let ge=ni(k,On()),Xe=gn(),Mt=gn();xe(k.initializer),Wt(ge,m),m=ge,mn(k.condition,Xe,Mt),m=Gn(Xe),qr(k.statement,Mt,ge),xe(k.incrementor),Wt(ge,m),m=Gn(Mt)}function ba(k){let ge=ni(k,On()),Xe=gn();xe(k.expression),Wt(ge,m),m=ge,k.kind===250&&xe(k.awaitModifier),Wt(Xe,m),xe(k.initializer),k.initializer.kind!==261&&it(k.initializer),qr(k.statement,Xe,ge),Wt(ge,m),m=Gn(Xe)}function ln(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.expression,ge,Xe),m=Gn(ge),xe(k.thenStatement),Wt(Mt,m),m=Gn(Xe),xe(k.elseStatement),Wt(Mt,m),m=Gn(Mt)}function Tn(k){xe(k.expression),k.kind===253&&(U=!0,S&&Wt(S,m)),m=fe}function ke(k){for(let ge=G;ge;ge=ge.next)if(ge.name===k)return ge}function nt(k,ge,Xe){let Mt=k.kind===252?ge:Xe;Mt&&(Wt(Mt,m),m=fe)}function tt(k){if(xe(k.label),k.label){let ge=ke(k.label.escapedText);ge&&(ge.referenced=!0,nt(k,ge.breakTarget,ge.continueTarget))}else nt(k,v,E)}function yt(k){let ge=S,Xe=R,Mt=gn(),Vn=gn(),jr=gn();if(k.finallyBlock&&(S=Vn),Wt(jr,m),R=jr,xe(k.tryBlock),Wt(Mt,m),k.catchClause&&(m=Gn(jr),jr=gn(),Wt(jr,m),R=jr,xe(k.catchClause),Wt(Mt,m)),S=ge,R=Xe,k.finallyBlock){let Or=gn();Or.antecedents=ro(ro(Mt.antecedents,jr.antecedents),Vn.antecedents),m=Or,xe(k.finallyBlock),m.flags&1?m=fe:(S&&Vn.antecedents&&Wt(S,en(Or,Vn.antecedents,m)),R&&jr.antecedents&&Wt(R,en(Or,jr.antecedents,m)),m=Mt.antecedents?en(Or,Mt.antecedents,m):fe)}else m=Gn(Mt)}function re(k){let ge=gn();xe(k.expression);let Xe=v,Mt=L;v=ge,L=m,xe(k.caseBlock),Wt(ge,m);let Vn=an(k.caseBlock.clauses,jr=>jr.kind===297);k.possiblyExhaustive=!Vn&&!ge.antecedents,Vn||Wt(ge,Ki(L,k,0,0)),v=Xe,L=Mt,m=Gn(ge)}function Ce(k){let ge=k.clauses,Xe=k.parent.expression.kind===112||Ke(k.parent.expression),Mt=fe;for(let Vn=0;Vn<ge.length;Vn++){let jr=Vn;for(;!ge[Vn].statements.length&&Vn+1<ge.length;)Mt===fe&&(m=L),xe(ge[Vn]),Vn++;let Or=gn();Wt(Or,Xe?Ki(L,k.parent,jr,Vn+1):L),Wt(Or,Mt),m=Gn(Or);let zi=ge[Vn];xe(zi),Mt=m,!(m.flags&1)&&Vn!==ge.length-1&&t.noFallthroughCasesInSwitch&&(zi.fallthroughFlowNode=m)}}function et(k){let ge=m;m=L,xe(k.expression),m=ge,ft(k.statements)}function z(k){xe(k.expression),Je(k.expression)}function Je(k){if(k.kind===213){let ge=k;ge.expression.kind!==108&&MC(ge.expression)&&(m=io(m,ge))}}function _t(k){let ge=gn();G={next:G,name:k.label.escapedText,breakTarget:ge,continueTarget:void 0,referenced:!1},xe(k.label),xe(k.statement),!G.referenced&&!t.allowUnusedLabels&&tc(Kne(t),k.label,f.Unused_label),G=G.next,Wt(ge,m),m=Gn(ge)}function ze(k){k.kind===226&&k.operatorToken.kind===64?it(k.left):it(k)}function it(k){if(Dt(k))m=gi(16,m,k);else if(k.kind===209)for(let ge of k.elements)ge.kind===230?it(ge.expression):ze(ge);else if(k.kind===210)for(let ge of k.properties)ge.kind===303?ze(ge.initializer):ge.kind===304?it(ge.name):ge.kind===305&&it(ge.expression)}function Ct(k,ge,Xe){let Mt=gn();k.operatorToken.kind===56||k.operatorToken.kind===77?mn(k.left,Mt,Xe):mn(k.left,ge,Mt),m=Gn(Mt),xe(k.operatorToken),PC(k.operatorToken.kind)?(Rt(xe,k.right,ge,Xe),it(k.left),Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k))):mn(k.right,ge,Xe)}function on(k){if(k.operator===54){let ge=A;A=C,C=ge,he(k),C=A,A=ge}else he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Qt(k){he(k),(k.operator===46||k.operator===47)&&it(k.operand)}function Zt(k){oe?(oe=!1,xe(k.operatorToken),xe(k.right),oe=!0,xe(k.left)):(oe=!0,xe(k.left),oe=!1,xe(k.operatorToken),xe(k.right)),it(k.left)}function V(){return M6(k,ge,Xe,Mt,Vn,void 0);function k(Or,zi){if(zi){zi.stackIndex++,Ta(Or,i);let _a=F;tr(Or);let pl=i;i=Or,zi.skip=!1,zi.inStrictModeStack[zi.stackIndex]=_a,zi.parentStack[zi.stackIndex]=pl}else zi={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};let ma=Or.operatorToken.kind;if(VL(ma)||PC(ma)){if(Ue(Or)){let _a=gn();Ct(Or,_a,_a),m=Gn(_a)}else Ct(Or,A,C);zi.skip=!0}return zi}function ge(Or,zi,ma){if(!zi.skip){let _a=jr(Or);return ma.operatorToken.kind===28&&Je(Or),_a}}function Xe(Or,zi,ma){zi.skip||xe(Or)}function Mt(Or,zi,ma){if(!zi.skip){let _a=jr(Or);return ma.operatorToken.kind===28&&Je(Or),_a}}function Vn(Or,zi){if(!zi.skip){let pl=Or.operatorToken.kind;if(tv(pl)&&!Sh(Or)&&(it(Or.left),pl===64&&Or.left.kind===212)){let Gc=Or.left;jt(Gc.expression)&&(m=gi(256,m,Or))}}let ma=zi.inStrictModeStack[zi.stackIndex],_a=zi.parentStack[zi.stackIndex];ma!==void 0&&(F=ma),_a!==void 0&&(i=_a),zi.skip=!1,zi.stackIndex--}function jr(Or){if(Or&&Zn(Or)&&!nv(Or))return Or;xe(Or)}}function Re(k){he(k),k.expression.kind===211&&it(k.expression)}function St(k){let ge=gn(),Xe=gn(),Mt=gn();mn(k.condition,ge,Xe),m=Gn(ge),xe(k.questionToken),xe(k.whenTrue),Wt(Mt,m),m=Gn(Xe),xe(k.colonToken),xe(k.whenFalse),Wt(Mt,m),m=Gn(Mt)}function M(k){let ge=vc(k)?void 0:k.name;if(ko(ge))for(let Xe of ge.elements)M(Xe);else m=gi(16,m,k)}function te(k){he(k),(k.initializer||H1(k.parent.parent))&&M(k)}function j(k){xe(k.dotDotDotToken),xe(k.propertyName),Pe(k.initializer),xe(k.name)}function se(k){ft(k.modifiers),xe(k.dotDotDotToken),xe(k.questionToken),xe(k.type),Pe(k.initializer),xe(k.name)}function Pe(k){if(!k)return;let ge=m;if(xe(k),ge===fe||ge===m)return;let Xe=gn();Wt(Xe,ge),Wt(Xe,m),m=Gn(Xe)}function Ie(k){xe(k.tagName),k.kind!==347&&k.fullName&&(Ta(k.fullName,k),oy(k.fullName,!1)),typeof k.comment!="string"&&ft(k.comment)}function gt(k){he(k);let ge=xb(k);ge&&ge.kind!==174&&Z(ge.symbol,ge,32)}function bt(k,ge,Xe){Rt(xe,k,ge,Xe),(!yd(k)||nC(k))&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function Ot(k){switch(k.kind){case 211:xe(k.questionDotToken),xe(k.name);break;case 212:xe(k.questionDotToken),xe(k.argumentExpression);break;case 213:xe(k.questionDotToken),ft(k.typeArguments),ft(k.arguments);break}}function dn(k,ge,Xe){let Mt=tC(k)?gn():void 0;bt(k.expression,Mt||ge,Xe),Mt&&(m=Gn(Mt)),Rt(Ot,k,ge,Xe),nC(k)&&(Wt(ge,ei(32,m,k)),Wt(Xe,ei(64,m,k)))}function An(k){if(Ue(k)){let ge=gn();dn(k,ge,ge),m=Gn(ge)}else dn(k,A,C)}function Cn(k){yd(k)?An(k):he(k)}function ti(k){yd(k)?An(k):he(k)}function di(k){if(yd(k))An(k);else{let ge=Ka(k.expression);ge.kind===218||ge.kind===219?(ft(k.typeArguments),ft(k.arguments),xe(k.expression)):(he(k),k.expression.kind===108&&(m=io(m,k)))}if(k.expression.kind===211){let ge=k.expression;Me(ge.name)&&jt(ge.expression)&&K9(ge.name)&&(m=gi(256,m,k))}}function jn(k){d&&(d.nextContainer=k),d=k}function Ar(k,ge,Xe){switch(o.kind){case 267:return _e(k,ge,Xe);case 312:return _i(k,ge,Xe);case 231:case 263:return Zi(k,ge,Xe);case 266:return Oe(o.symbol.exports,o.symbol,k,ge,Xe);case 187:case 329:case 210:case 264:case 292:return Oe(o.symbol.members,o.symbol,k,ge,Xe);case 184:case 185:case 179:case 180:case 330:case 181:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 324:case 175:case 265:case 200:return o.locals&&x.assertNode(o,M_),Oe(o.locals,void 0,k,ge,Xe)}}function Zi(k,ge,Xe){return zo(k)?Oe(o.symbol.exports,o.symbol,k,ge,Xe):Oe(o.symbol.members,o.symbol,k,ge,Xe)}function _i(k,ge,Xe){return wl(e)?_e(k,ge,Xe):Oe(e.locals,void 0,k,ge,Xe)}function ui(k){let ge=Li(k)?k:Vr(k.body,t_);return!!ge&&ge.statements.some(Xe=>xl(Xe)||dl(Xe))}function Mr(k){k.flags&33554432&&!ui(k)?k.flags|=128:k.flags&=-129}function lo(k){if(Mr(k),sd(k))if(Wr(k,32)&&ls(k,f.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),_9(k))_n(k);else{let ge;if(k.name.kind===11){let{text:Mt}=k.name;ge=xx(Mt),ge===void 0&&ls(k.name,f.Pattern_0_can_have_at_most_one_Asterisk_character,Mt)}let Xe=Ar(k,512,110735);e.patternAmbientModules=pn(e.patternAmbientModules,ge&&!fo(ge)?{pattern:ge,symbol:Xe}:void 0)}else{let ge=_n(k);if(ge!==0){let{symbol:Xe}=k;Xe.constEnumOnlyModule=!(Xe.flags&304)&&ge===2&&Xe.constEnumOnlyModule!==!1}}}function _n(k){let ge=dg(k),Xe=ge!==0;return Ar(k,Xe?512:1024,Xe?110735:0),ge}function fs(k){let ge=ce(131072,pe(k));Z(ge,k,131072);let Xe=ce(2048,"__type");Z(Xe,k,2048),Xe.members=Vo(),Xe.members.set(ge.escapedName,ge)}function Dl(k){return gs(k,4096,"__object")}function _o(k){return gs(k,4096,"__jsxAttributes")}function Va(k,ge,Xe){return Ar(k,ge,Xe)}function gs(k,ge,Xe){let Mt=ce(ge,Xe);return ge&106508&&(Mt.parent=o.symbol),Z(Mt,k,ge),Mt}function Js(k,ge,Xe){switch(l.kind){case 267:_e(k,ge,Xe);break;case 312:if(sp(o)){_e(k,ge,Xe);break}default:x.assertNode(l,M_),l.locals||(l.locals=Vo(),jn(l)),Oe(l.locals,void 0,k,ge,Xe)}}function Fc(){if(!p)return;let k=o,ge=d,Xe=l,Mt=i,Vn=m;for(let jr of p){let Or=jr.parent.parent;o=S9(Or)||e,l=O_(Or)||e,m=EI({flags:2}),i=jr,xe(jr.typeExpression);let zi=mo(jr);if((C2(jr)||!jr.fullName)&&zi&&UL(zi.parent)){let ma=Nl(zi.parent);if(ma){Ks(e.symbol,zi.parent,ma,!!Rn(zi,pl=>Er(pl)&&pl.name.escapedText==="prototype"),!1);let _a=o;switch(TL(zi.parent)){case 1:case 2:sp(e)?o=e:o=void 0;break;case 4:o=zi.parent.expression;break;case 3:o=zi.parent.expression.name;break;case 5:o=_0(e,zi.parent.expression)?e:Er(zi.parent.expression)?zi.parent.expression.name:zi.parent.expression;break;case 0:return x.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}o&&_e(jr,524288,788968),o=_a}}else C2(jr)||!jr.fullName||jr.fullName.kind===80?(i=jr.parent,Js(jr,524288,788968)):xe(jr.fullName)}o=k,d=ge,l=Xe,i=Mt,m=Vn}function $i(k){if(!e.parseDiagnostics.length&&!(k.flags&33554432)&&!(k.flags&16777216)&&!rne(k)){let ge=vb(k);if(ge===void 0)return;F&&ge>=119&&ge<=127?e.bindDiagnostics.push(ee(k,Uo(k),is(k))):ge===135?wl(e)&&hW(k)?e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,is(k))):k.flags&65536&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k))):ge===127&&k.flags&16384&&e.bindDiagnostics.push(ee(k,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,is(k)))}}function Uo(k){return Oc(k)?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:f.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function zc(k){k.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(ee(k,f.constructor_is_a_reserved_word,is(k))))}function ts(k){F&&Tu(k.left)&&tv(k.operatorToken.kind)&&Wl(k,k.left)}function da(k){F&&k.variableDeclaration&&Wl(k,k.variableDeclaration.name)}function Us(k){if(F&&k.expression.kind===80){let ge=IS(e,k.expression);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,f.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function tf(k){return Me(k)&&(k.escapedText==="eval"||k.escapedText==="arguments")}function Wl(k,ge){if(ge&&ge.kind===80){let Xe=ge;if(tf(Xe)){let Mt=IS(e,ge);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,il(k),ar(Xe)))}}}function il(k){return Oc(k)?f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:f.Invalid_use_of_0_in_strict_mode}function zs(k){F&&Wl(k,k.name)}function ho(k){return Oc(k)?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:f.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ut(k){if(r<2&&l.kind!==312&&l.kind!==267&&!U1(l)){let ge=IS(e,k);e.bindDiagnostics.push(Rc(e,ge.start,ge.length,ho(k)))}}function vs(k){F&&Wl(k,k.operand)}function Pc(k){F&&(k.operator===46||k.operator===47)&&Wl(k,k.operand)}function Bc(k){F&&ls(k,f.with_statements_are_not_allowed_in_strict_mode)}function Ju(k){F&&Wa(t)>=2&&(ate(k.statement)||cl(k.statement))&&ls(k.label,f.A_label_is_not_allowed_here)}function ls(k,ge,...Xe){let Mt=w_(e,k.pos);e.bindDiagnostics.push(Rc(e,Mt.start,Mt.length,ge,...Xe))}function tc(k,ge,Xe){ae(k,ge,ge,Xe)}function ae(k,ge,Xe,Mt){X(k,{pos:Tb(ge,e),end:Xe.end},Mt)}function X(k,ge,Xe){let Mt=Rc(e,ge.pos,ge.end-ge.pos,Xe);k?e.bindDiagnostics.push(Mt):e.bindSuggestionDiagnostics=pn(e.bindSuggestionDiagnostics,{...Mt,category:2})}function xe(k){if(!k)return;Ta(k,i),qn&&(k.tracingPath=e.path);let ge=F;if(tr(k),k.kind>165){let Xe=i;i=k;let Mt=kU(k);Mt===0?Le(k):Te(k,Mt),i=Xe}else{let Xe=i;k.kind===1&&(i=k),dt(k),i=Xe}F=ge}function dt(k){if(ap(k))if(Jn(k))for(let ge of k.jsDoc)xe(ge);else for(let ge of k.jsDoc)Ta(ge,k),oy(ge,!1)}function $t(k){if(!F)for(let ge of k){if(!Hf(ge))return;if(sr(ge)){F=!0;return}}}function sr(k){let ge=FE(e,k.expression);return ge==='"use strict"'||ge==="'use strict'"}function tr(k){switch(k.kind){case 80:if(k.flags&4096){let Or=k.parent;for(;Or&&!bf(Or);)Or=Or.parent;Js(Or,524288,788968);break}case 110:return m&&(lt(k)||i.kind===304)&&(k.flowNode=m),$i(k);case 166:m&&EW(k)&&(k.flowNode=m);break;case 236:case 108:k.flowNode=m;break;case 81:return zc(k);case 211:case 212:let ge=k;m&&Dt(ge)&&(ge.flowNode=m),Yte(ge)&&Ln(ge),Jn(ge)&&e.commonJsModuleIndicator&&Eh(ge)&&!r4(l,"module")&&Oe(e.locals,void 0,ge.expression,134217729,111550);break;case 226:switch(hl(k)){case 1:Du(k);break;case 2:pc(k);break;case 3:Oo(k.left,k);break;case 6:eo(k);break;case 4:Vd(k);break;case 5:let Or=k.left.expression;if(Jn(k)&&Me(Or)){let zi=r4(l,Or.escapedText);if(gW(zi?.valueDeclaration)){Vd(k);break}}Kl(k);break;case 0:break;default:x.fail("Unknown binary expression special property assignment kind")}return ts(k);case 299:return da(k);case 220:return Us(k);case 225:return vs(k);case 224:return Pc(k);case 254:return Bc(k);case 256:return Ju(k);case 197:h=!0;return;case 182:break;case 168:return Ye(k);case 169:return mg(k);case 260:return fd(k);case 208:return k.flowNode=m,fd(k);case 172:case 171:return Ir(k);case 303:case 304:return mu(k,4,0);case 306:return mu(k,8,900095);case 179:case 180:case 181:return Ar(k,131072,0);case 174:case 173:return mu(k,8192|(k.questionToken?16777216:0),qf(k)?0:103359);case 262:return Ku(k);case 176:return Ar(k,16384,0);case 177:return mu(k,32768,46015);case 178:return mu(k,65536,78783);case 184:case 324:case 330:case 185:return fs(k);case 187:case 329:case 200:return pi(k);case 339:return gt(k);case 210:return Dl(k);case 218:case 219:return Lh(k);case 213:switch(hl(k)){case 7:return Cl(k);case 8:return Ec(k);case 9:return Po(k);case 0:break;default:return x.fail("Unknown call expression assignment declaration kind")}Jn(k)&&d_(k);break;case 231:case 263:return F=!0,K_(k);case 264:return Js(k,64,788872);case 265:return Js(k,524288,788968);case 266:return fg(k);case 267:return lo(k);case 292:return _o(k);case 291:return Va(k,4,0);case 271:case 274:case 276:case 281:return Ar(k,2097152,2097152);case 270:return bc(k);case 273:return Jl(k);case 278:return ys(k);case 277:return Qs(k);case 312:return $t(k.statements),hr();case 241:if(!U1(k.parent))return;case 268:return $t(k.statements);case 348:if(k.parent.kind===330)return mg(k);if(k.parent.kind!==329)break;case 355:let Vn=k,jr=Vn.isBracketed||Vn.typeExpression&&Vn.typeExpression.type.kind===323?16777220:4;return Ar(Vn,jr,0);case 353:case 345:case 347:return(p||(p=[])).push(k);case 346:return xe(k.typeExpression)}}function Ir(k){let ge=su(k),Xe=ge?98304:4,Mt=ge?13247:0;return mu(k,Xe|(k.questionToken?16777216:0),Mt)}function pi(k){return gs(k,2048,"__type")}function hr(){if(Mr(e),wl(e))No();else if(yf(e)){No();let k=e.symbol;Oe(e.symbol.exports,e.symbol,e,4,-1),e.symbol=k}}function No(){gs(e,512,`"${Yd(e.fileName)}"`)}function Qs(k){if(!o.symbol||!o.symbol.exports)gs(k,111551,pe(k));else{let ge=px(k)?2097152:4,Xe=Oe(o.symbol.exports,o.symbol,k,ge,-1);k.isExportEquals&&IL(Xe,k)}}function bc(k){ct(k.modifiers)&&e.bindDiagnostics.push(ee(k,f.Modifiers_cannot_appear_here));let ge=Li(k.parent)?wl(k.parent)?k.parent.isDeclarationFile?void 0:f.Global_module_exports_may_only_appear_in_declaration_files:f.Global_module_exports_may_only_appear_in_module_files:f.Global_module_exports_may_only_appear_at_top_level;ge?e.bindDiagnostics.push(ee(k,ge)):(e.symbol.globalExports=e.symbol.globalExports||Vo(),Oe(e.symbol.globalExports,e.symbol,k,2097152,2097152))}function ys(k){!o.symbol||!o.symbol.exports?gs(k,8388608,pe(k)):k.exportClause?V_(k.exportClause)&&(Ta(k.exportClause,k),Oe(o.symbol.exports,o.symbol,k.exportClause,2097152,2097152)):Oe(o.symbol.exports,o.symbol,k,8388608,0)}function Jl(k){k.name&&Ar(k,2097152,2097152)}function Za(k){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=k,e.externalModuleIndicator||No()),!0)}function Ec(k){if(!Za(k))return;let ge=nf(k.arguments[0],void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));ge&&Oe(ge.exports,ge,k,1048580,0)}function Du(k){if(!Za(k))return;let ge=nf(k.left.expression,void 0,(Xe,Mt)=>(Mt&&Z(Mt,Xe,67110400),Mt));if(ge){let Mt=kL(k.right)&&(DS(k.left.expression)||Eh(k.left.expression))?2097152:1048580;Ta(k.left,k),Oe(ge.exports,ge,k.left,Mt,0)}}function pc(k){if(!Za(k))return;let ge=bL(k.right);if(fV(ge)||o===e&&_0(e,ge))return;if(fa(ge)&&ji(ge.properties,xu)){an(ge.properties,Nf);return}let Xe=px(k)?2097152:1049092,Mt=Oe(e.symbol.exports,e.symbol,k,Xe|67108864,0);IL(Mt,k)}function Nf(k){Oe(e.symbol.exports,e.symbol,k,69206016,0)}function Vd(k){if(x.assert(Jn(k)),Zn(k)&&Er(k.left)&&Ci(k.left.name)||Er(k)&&Ci(k.name))return;let Xe=lu(k,!1,!1);switch(Xe.kind){case 262:case 218:let Mt=Xe.symbol;if(Zn(Xe.parent)&&Xe.parent.operatorToken.kind===64){let Or=Xe.parent.left;UE(Or)&&ry(Or.expression)&&(Mt=tu(Or.expression.expression,s))}Mt&&Mt.valueDeclaration&&(Mt.members=Mt.members||Vo(),ty(k)?Se(k,Mt,Mt.members):Oe(Mt.members,Mt,k,67108868,0),Z(Mt,Mt.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let Vn=Xe.parent,jr=zo(Xe)?Vn.symbol.exports:Vn.symbol.members;ty(k)?Se(k,Vn.symbol,jr):Oe(jr,Vn.symbol,k,67108868,0,!0);break;case 312:if(ty(k))break;Xe.commonJsModuleIndicator?Oe(Xe.symbol.exports,Xe.symbol,k,1048580,0):Ar(k,1,111550);break;case 267:break;default:x.failBadSyntaxKind(Xe)}}function Se(k,ge,Xe){Oe(Xe,ge,k,4,0,!0,!0),At(k,ge)}function At(k,ge){ge&&(ge.assignmentDeclarationMembers||(ge.assignmentDeclarationMembers=new Map)).set(Fa(k),k)}function Ln(k){k.expression.kind===110?Vd(k):UE(k)&&k.parent.parent.kind===312&&(ry(k.expression)?Oo(k,k.parent):Bs(k))}function eo(k){Ta(k.left,k),Ta(k.right,k),Sc(k.left.expression,k.left,!1,!0)}function Po(k){let ge=tu(k.arguments[0].expression);ge&&ge.valueDeclaration&&Z(ge,ge.valueDeclaration,32),vl(k,ge,!0)}function Oo(k,ge){let Xe=k.expression,Mt=Xe.expression;Ta(Mt,Xe),Ta(Xe,k),Ta(k,ge),Sc(Mt,k,!0,!0)}function Cl(k){let ge=tu(k.arguments[0]),Xe=k.parent.parent.kind===312;ge=Ks(ge,k.arguments[0],Xe,!1,!1),vl(k,ge,!1)}function Kl(k){var ge;let Xe=tu(k.left.expression,l)||tu(k.left.expression,o);if(!Jn(k)&&!$te(Xe))return;let Mt=Tx(k.left);if(!(Me(Mt)&&((ge=r4(o,Mt.escapedText))==null?void 0:ge.flags)&2097152))if(Ta(k.left,k),Ta(k.right,k),Me(k.left.expression)&&o===e&&_0(e,k.left.expression))Du(k);else if(ty(k)){gs(k,67108868,"__computed");let Vn=Ks(Xe,k.left.expression,Nl(k.left),!1,!1);At(k,Vn)}else Bs(Fo(k.left,NS))}function Bs(k){x.assert(!Me(k)),Ta(k.expression,k),Sc(k.expression,k,!1,!1)}function Ks(k,ge,Xe,Mt,Vn){return k?.flags&2097152||(Xe&&!Mt&&(k=nf(ge,k,(zi,ma,_a)=>{if(ma)return Z(ma,zi,67110400),ma;{let pl=_a?_a.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Vo());return Oe(pl,_a,zi,67110400,110735)}})),Vn&&k&&k.valueDeclaration&&Z(k,k.valueDeclaration,32)),k}function vl(k,ge,Xe){if(!ge||!Lp(ge))return;let Mt=Xe?ge.members||(ge.members=Vo()):ge.exports||(ge.exports=Vo()),Vn=0,jr=0;_s(LA(k))?(Vn=8192,jr=103359):Bo(k)&&CS(k)&&(ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)==="set"})&&(Vn|=65540,jr|=78783),ct(k.arguments[2].properties,Or=>{let zi=mo(Or);return!!zi&&Me(zi)&&ar(zi)==="get"})&&(Vn|=32772,jr|=46015)),Vn===0&&(Vn=4,jr=0),Oe(Mt,ge,k,Vn|67108864,jr&-67108865)}function Nl(k){return Zn(k.parent)?fu(k.parent).parent.kind===312:k.parent.parent.kind===312}function Sc(k,ge,Xe,Mt){let Vn=tu(k,l)||tu(k,o),jr=Nl(ge);Vn=Ks(Vn,ge.expression,jr,Xe,Mt),vl(ge,Vn,Xe)}function Lp(k){if(k.flags&1072)return!0;let ge=k.valueDeclaration;if(ge&&Bo(ge))return!!LA(ge);let Xe=ge?yi(ge)?ge.initializer:Zn(ge)?ge.right:Er(ge)&&Zn(ge.parent)?ge.parent.right:void 0:void 0;if(Xe=Xe&&bL(Xe),Xe){let Mt=ry(yi(ge)?ge.name:Zn(ge)?ge.left:ge);return!!Ib(Zn(Xe)&&(Xe.operatorToken.kind===57||Xe.operatorToken.kind===61)?Xe.right:Xe,Mt)}return!1}function fu(k){for(;Zn(k.parent);)k=k.parent;return k.parent}function tu(k,ge=o){if(Me(k))return r4(ge,k.escapedText);{let Xe=tu(k.expression);return Xe&&Xe.exports&&Xe.exports.get(tg(k))}}function nf(k,ge,Xe){if(_0(e,k))return e.symbol;if(Me(k))return Xe(k,tu(k),ge);{let Mt=nf(k.expression,ge,Xe),Vn=SL(k);return Ci(Vn)&&x.fail("unexpected PrivateIdentifier"),Xe(Vn,Mt&&Mt.exports&&Mt.exports.get(tg(k)),Mt)}}function d_(k){!e.commonJsModuleIndicator&&Xd(k,!1)&&Za(k)}function K_(k){if(k.kind===263)Js(k,32,899503);else{let Vn=k.name?k.name.escapedText:"__class";gs(k,32,Vn),k.name&&de.add(k.name.escapedText)}let{symbol:ge}=k,Xe=ce(4194308,"prototype"),Mt=ge.exports.get(Xe.escapedName);Mt&&(k.name&&Ta(k.name,k),e.bindDiagnostics.push(ee(Mt.declarations[0],f.Duplicate_identifier_0,$s(Xe)))),ge.exports.set(Xe.escapedName,Xe),Xe.parent=ge}function fg(k){return BE(k)?Js(k,128,899967):Js(k,256,899327)}function fd(k){if(F&&Wl(k,k.name),!ko(k.name)){let ge=k.kind===260?k:k.parent.parent;Jn(k)&&jE(ge)&&!yb(k)&&!(gb(k)&32)?Ar(k,2097152,2097152):p9(k)?Js(k,2,111551):JE(k)?Ar(k,1,111551):Ar(k,1,111550)}}function mg(k){if(!(k.kind===348&&o.kind!==330)&&(F&&!(k.flags&33554432)&&Wl(k,k.name),ko(k.name)?gs(k,1,"__"+k.parent.parameters.indexOf(k)):Ar(k,1,111551),wu(k,k.parent))){let ge=k.parent.parent;Oe(ge.symbol.members,ge.symbol,k,4|(k.questionToken?16777216:0),0)}}function Ku(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),zs(k),F?(Ut(k),Js(k,16,110991)):Ar(k,16,110991)}function Lh(k){!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&(k.flowNode=m),zs(k);let ge=k.name?k.name.escapedText:"__function";return gs(k,16,ge)}function mu(k,ge,Xe){return!e.isDeclarationFile&&!(k.flags&33554432)&&TC(k)&&(K|=4096),m&&pW(k)&&(k.flowNode=m),ty(k)?gs(k,ge,"__computed"):Ar(k,ge,Xe)}function Y(k){let ge=Rn(k,Xe=>Xe.parent&&lI(Xe.parent)&&Xe.parent.extendsType===Xe);return ge&&ge.parent}function Ye(k){if(Df(k.parent)){let ge=NW(k.parent);ge?(x.assertNode(ge,M_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):Ar(k,262144,526824)}else if(k.parent.kind===195){let ge=Y(k.parent);ge?(x.assertNode(ge,M_),ge.locals??(ge.locals=Vo()),Oe(ge.locals,void 0,k,262144,526824)):gs(k,262144,pe(k))}else Ar(k,262144,526824)}function xt(k){let ge=dg(k);return ge===1||ge===2&&n0(t)}function Nt(k){if(!(m.flags&1))return!1;if(m===fe&&(QM(k)&&k.kind!==242||k.kind===263||k.kind===267&&xt(k))&&(m=q,!t.allowUnreachableCode)){let Xe=Jne(t)&&!(k.flags&33554432)&&(!cl(k)||!!(Xg(k.declarationList)&7)||k.declarationList.declarations.some(Mt=>!!Mt.initializer));b3e(k,(Mt,Vn)=>ae(Xe,Mt,Vn,f.Unreachable_code_detected))}return!0}}function b3e(e,t){if(Di(e)&&oSe(e)&&Do(e.parent)){let{statements:r}=e.parent,i=NV(r,e);Z5(i,oSe,(o,s)=>t(i[o],i[s-1]))}else t(e,e)}function oSe(e){return!Ql(e)&&!E3e(e)&&!kb(e)&&!(cl(e)&&!(Xg(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function E3e(e){switch(e.kind){case 264:case 265:return!0;case 267:return dg(e)!==1;case 266:return Wr(e,4096);default:return!1}}function _0(e,t){let r=0,i=mM();for(i.enqueue(t);!i.isEmpty()&&r<100;){if(r++,t=i.dequeue(),DS(t)||Eh(t))return!0;if(Me(t)){let o=r4(e,t.escapedText);if(o&&o.valueDeclaration&&yi(o.valueDeclaration)&&o.valueDeclaration.initializer){let s=o.valueDeclaration.initializer;i.enqueue(s),lc(s,!0)&&(i.enqueue(s.left),i.enqueue(s.right))}}}return!1}function kU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(pW(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Lo(e.parent)||nl(e.parent)?0:34}return 0}function r4(e,t){var r,i,o,s;let l=(i=(r=Vr(e,M_))==null?void 0:r.locals)==null?void 0:i.get(t);if(l)return l.exportSymbol??l;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Hm(e))return(s=(o=e.symbol)==null?void 0:o.exports)==null?void 0:s.get(t)}var OU,wU,aSe,S3e=pt({"src/compiler/binder.ts"(){"use strict";wo(),mS(),OU=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(OU||{}),wU=(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))(wU||{}),aSe=y3e()}});function hoe(e,t,r,i,o,s,l,d,p,h){return m;function m(v=()=>!0){let E=[],S=[];return{walkType:de=>{try{return A(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}},walkSymbol:de=>{try{return $(de),{visitedTypes:vA(E),visitedSymbols:vA(S)}}finally{ph(E),ph(S)}}};function A(de){if(!(!de||E[de.id]||(E[de.id]=de,$(de.symbol)))){if(de.flags&524288){let q=de,H=q.objectFlags;H&4&&C(de),H&32&&K(de),H&3&&oe(de),H&24&&W(q)}de.flags&262144&&R(de),de.flags&3145728&&L(de),de.flags&4194304&&G(de),de.flags&8388608&&U(de)}}function C(de){A(de.target),an(h(de),A)}function R(de){A(d(de))}function L(de){an(de.types,A)}function G(de){A(de.type)}function U(de){A(de.objectType),A(de.indexType),A(de.constraint)}function K(de){A(de.typeParameter),A(de.constraintType),A(de.templateType),A(de.modifiersType)}function F(de){let fe=t(de);fe&&A(fe.type),an(de.typeParameters,A);for(let q of de.parameters)$(q);A(e(de)),A(r(de))}function oe(de){W(de),an(de.typeParameters,A),an(i(de),A),A(de.thisType)}function W(de){let fe=o(de);for(let q of fe.indexInfos)A(q.keyType),A(q.type);for(let q of fe.callSignatures)F(q);for(let q of fe.constructSignatures)F(q);for(let q of fe.properties)$(q)}function $(de){if(!de)return!1;let fe=na(de);if(S[fe])return!1;if(S[fe]=de,!v(de))return!0;let q=s(de);return A(q),de.exports&&de.exports.forEach($),an(de.declarations,H=>{if(H.type&&H.type.kind===186){let ee=H.type,le=l(p(ee.exprName));$(le)}}),!1}}}var T3e=pt({"src/compiler/symbolWalker.ts"(){"use strict";wo()}});function sk({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},r,i,o){let s=l();return{relativePreference:o!==void 0?Ic(o)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:d=>{let p=d!==i.impliedNodeFormat?l(d):s;if((d??i.impliedNodeFormat)===99)return nR(r,i.fileName)?[3,2]:[2];if(zd(r)===1)return p===2?[2,1]:[1,2];let h=nR(r,i.fileName);switch(p){case 2:return h?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return h?[1,0,3,2]:[1,0,2];case 0:return h?[0,1,3,2]:[0,1,2];default:x.assertNever(p)}}};function l(d){if(o!==void 0){if(QE(o))return 2;if(Zs(o,"/index"))return 1}return nre(t,d??i.impliedNodeFormat,r,i)}}function A3e(e,t,r,i,o,s,l={}){let d=sSe(e,t,r,i,o,sk({},e,t,s),{},l);if(d!==s)return d}function i4(e,t,r,i,o,s={}){return sSe(e,t,r,i,o,sk({},e,t),{},s)}function I3e(e,t,r,i,o,s={}){let l=WU(t.fileName,i),d=mSe(l,r,i,o,s);return ml(d,p=>voe(p,l,t,i,e,o,!0,s.overrideImportMode))}function sSe(e,t,r,i,o,s,l,d={}){let p=WU(r,o),h=mSe(p,i,o,l,d);return ml(h,m=>voe(m,p,t,o,e,l,void 0,d.overrideImportMode))||uSe(i,p,e,o,d.overrideImportMode||t.impliedNodeFormat,s)}function x3e(e,t,r,i,o={}){return lSe(e,t,r,i,o)[0]}function lSe(e,t,r,i,o={}){var s;let l=eW(e);if(!l)return je;let d=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r),p=d?.get(t.path,l.path,i,o);return[p?.moduleSpecifiers,l,p?.modulePaths,d]}function cSe(e,t,r,i,o,s,l={}){return dSe(e,t,r,i,o,s,l,!1).moduleSpecifiers}function dSe(e,t,r,i,o,s,l={},d){let p=!1,h=C3e(e,t);if(h)return{moduleSpecifiers:[h],computedWithoutCache:p};let[m,v,E,S]=lSe(e,i,o,s,l);if(m)return{moduleSpecifiers:m,computedWithoutCache:p};if(!v)return{moduleSpecifiers:je,computedWithoutCache:p};p=!0,E||(E=_Se(WU(i.fileName,o),v.originalFileName,o));let A=R3e(E,r,i,o,s,l,d);return S?.set(i.path,v.path,s,l,E,A),{moduleSpecifiers:A,computedWithoutCache:p}}function R3e(e,t,r,i,o,s={},l){let d=WU(r.fileName,i),p=sk(o,t,r),h=an(e,C=>an(i.getFileIncludeReasons().get(ks(C.path,i.getCurrentDirectory(),d.getCanonicalFileName)),R=>{if(R.kind!==3||R.file!==r.path||r.impliedNodeFormat&&r.impliedNodeFormat!==Dae(r,R.index,t))return;let L=Ak(r,R.index).text;return p.relativePreference!==1||!op(L)?L:void 0}));if(h)return[h];let m=ct(e,C=>C.isInNodeModules),v,E,S,A;for(let C of e){let R=C.isInNodeModules?voe(C,d,r,i,t,o,void 0,s.overrideImportMode):void 0;if(v=pn(v,R),R&&C.isRedirect)return v;if(!R){let L=uSe(C.path,d,t,i,s.overrideImportMode||r.impliedNodeFormat,p,C.isRedirect);if(!L)continue;C.isRedirect?S=pn(S,L):RG(L)?Gb(L)?A=pn(A,L):E=pn(E,L):(l||!m||C.isInNodeModules)&&(A=pn(A,L))}}return E?.length?E:S?.length?S:v?.length?v:x.checkDefined(A)}function WU(e,t){e=Qi(e,t.getCurrentDirectory());let r=od(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Ur(e);return{getCanonicalFileName:r,importingSourceFileName:e,sourceDirectory:i,canonicalSourceDirectory:r(i)}}function uSe(e,t,r,i,o,{getAllowedEndingsInPreferredOrder:s,relativePreference:l},d){let{baseUrl:p,paths:h,rootDirs:m}=r;if(d&&!h)return;let{sourceDirectory:v,canonicalSourceDirectory:E,getCanonicalFileName:S}=t,A=s(o),C=m&&M3e(m,e,v,S,A,r)||lk(ME(Gf(v,e,S)),A,r);if(!p&&!h&&!DF(r)||l===0)return d?void 0:C;let R=Qi(zW(r,i)||p,i.getCurrentDirectory()),L=ySe(e,R,S);if(!L)return d?void 0:C;let G=d?void 0:P3e(e,v,r,i,o),U=d||G===void 0?h&&hSe(L,h,A,i,r):void 0;if(d)return U;let K=G??(U===void 0&&p!==void 0?lk(L,A,r):U);if(!K)return C;if(l===1&&!op(K))return K;if(l===3&&!op(K)){let F=r.configFilePath?ks(Ur(r.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),oe=ks(e,F,S),W=Ui(E,F),$=Ui(oe,F);if(W&&!$||!W&&$)return K;let de=goe(i,Ur(oe)),fe=goe(i,v),q=!yx(i);return D3e(de,fe,q)?C:K}return bSe(K)||o4(C)<o4(K)?C:K}function D3e(e,t,r){return e===t?!0:e===void 0||t===void 0?!1:Xh(e,t,r)===0}function o4(e){let t=0;for(let r=Ui(e,"./")?2:0;r<e.length;r++)e.charCodeAt(r)===47&&t++;return t}function pSe(e,t){return zv(t.isRedirect,e.isRedirect)||$L(e.path,t.path)}function goe(e,t){return e.getNearestAncestorDirectoryWithPackageJson?e.getNearestAncestorDirectoryWithPackageJson(t):Vf(t,r=>e.fileExists(wr(r,"package.json"))?r:void 0)}function fSe(e,t,r,i,o){var s;let l=ev(r),d=r.getCurrentDirectory(),p=r.isSourceOfProjectReferenceRedirect(t)?r.getProjectReferenceRedirect(t):void 0,h=ks(t,d,l),m=r.redirectTargetsMap.get(h)||je,E=[...p?[p]:je,t,...m].map(L=>Qi(L,d)),S=!ji(E,KC);if(!i){let L=an(E,G=>!(S&&KC(G))&&o(G,p===G));if(L)return L}let A=(s=r.getSymlinkCache)==null?void 0:s.call(r).getSymlinkedDirectoriesByRealpath(),C=Qi(t,d);return A&&Vf(Ur(C),L=>{let G=A.get(_c(ks(L,d,l)));if(G)return CG(e,L,l)?!1:an(E,U=>{if(!CG(U,L,l))return;let K=Gf(L,U,l);for(let F of G){let oe=jv(F,K),W=o(oe,U===p);if(S=!0,W)return W}})})||(i?an(E,L=>S&&KC(L)?void 0:o(L,L===p)):void 0)}function mSe(e,t,r,i,o={}){var s;let l=ks(e.importingSourceFileName,r.getCurrentDirectory(),ev(r)),d=ks(t,r.getCurrentDirectory(),ev(r)),p=(s=r.getModuleSpecifierCache)==null?void 0:s.call(r);if(p){let m=p.get(l,d,i,o);if(m?.modulePaths)return m.modulePaths}let h=_Se(e,t,r);return p&&p.setModulePaths(l,d,i,o,h),h}function _Se(e,t,r){let i=new Map,o=!1;fSe(e.importingSourceFileName,t,r,!0,(l,d)=>{let p=Gb(l);i.set(l,{path:e.getCanonicalFileName(l),isRedirect:d,isInNodeModules:p}),o=o||p});let s=[];for(let l=e.canonicalSourceDirectory;i.size!==0;){let d=_c(l),p;i.forEach(({path:m,isRedirect:v,isInNodeModules:E},S)=>{Ui(m,d)&&((p||(p=[])).push({path:S,isRedirect:v,isInNodeModules:E}),i.delete(S))}),p&&(p.length>1&&p.sort(pSe),s.push(...p));let h=Ur(l);if(h===l)break;l=h}if(i.size){let l=bo(i.entries(),([d,{isRedirect:p,isInNodeModules:h}])=>({path:d,isRedirect:p,isInNodeModules:h}));l.length>1&&l.sort(pSe),s.push(...l)}return s}function C3e(e,t){var r;let i=(r=e.declarations)==null?void 0:r.find(l=>m9(l)&&(!zE(l)||!Ic(Ef(l.name))));if(i)return i.name.text;let s=Fi(e.declarations,l=>{var d,p,h,m;if(!Il(l))return;let v=C(l);if(!((d=v?.parent)!=null&&d.parent&&t_(v.parent)&&sd(v.parent.parent)&&Li(v.parent.parent.parent)))return;let E=(m=(h=(p=v.parent.parent.symbol.exports)==null?void 0:p.get("export="))==null?void 0:h.valueDeclaration)==null?void 0:m.expression;if(!E)return;let S=t.getSymbolAtLocation(E);if(!S)return;if((S?.flags&2097152?t.getAliasedSymbol(S):S)===l.symbol)return v.parent.parent;function C(R){for(;R.flags&8;)R=R.parent;return R}})[0];if(s)return s.name.text}function hSe(e,t,r,i,o){for(let l in t)for(let d of t[l]){let p=Yo(d),h=p.indexOf("*"),m=r.map(v=>({ending:v,value:lk(e,[v],o)}));if(og(p)&&m.push({ending:void 0,value:e}),h!==-1){let v=p.substring(0,h),E=p.substring(h+1);for(let{ending:S,value:A}of m)if(A.length>=v.length+E.length&&Ui(A,v)&&Zs(A,E)&&s({ending:S,value:A})){let C=A.substring(v.length,A.length-E.length);if(!op(C))return KA(l,C)}}else if(ct(m,v=>v.ending!==0&&p===v.value)||ct(m,v=>v.ending===0&&p===v.value&&s(v)))return l}function s({ending:l,value:d}){return l!==0||d===lk(e,[l],o,i)}}function a4(e,t,r,i,o,s,l,d,p){if(typeof s=="string"){let h=!yx(t),m=()=>t.getCommonSourceDirectory(),v=p&&fH(r,e,h,m),E=p&&pH(r,e,h,m),S=Qi(wr(i,s),void 0),A=qA(r)?Yd(r)+boe(r,e):void 0;switch(d){case 0:if(A&&Xh(A,S,h)===0||Xh(r,S,h)===0||v&&Xh(v,S,h)===0||E&&Xh(E,S,h)===0)return{moduleFileToTry:o};break;case 1:if(A&&Bf(S,A,h)){let G=Gf(S,A,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(Bf(S,r,h)){let G=Gf(S,r,!1);return{moduleFileToTry:Qi(wr(wr(o,s),G),void 0)}}if(v&&Bf(S,v,h)){let G=Gf(S,v,!1);return{moduleFileToTry:wr(o,G)}}if(E&&Bf(S,E,h)){let G=Gf(S,E,!1);return{moduleFileToTry:wr(o,G)}}break;case 2:let C=S.indexOf("*"),R=S.slice(0,C),L=S.slice(C+1);if(A&&Ui(A,R,h)&&Zs(A,L,h)){let G=A.slice(R.length,A.length-L.length);return{moduleFileToTry:KA(o,G)}}if(Ui(r,R,h)&&Zs(r,L,h)){let G=r.slice(R.length,r.length-L.length);return{moduleFileToTry:KA(o,G)}}if(v&&Ui(v,R,h)&&Zs(v,L,h)){let G=v.slice(R.length,v.length-L.length);return{moduleFileToTry:KA(o,G)}}if(E&&Ui(E,R,h)&&Zs(E,L,h)){let G=E.slice(R.length,E.length-L.length);return{moduleFileToTry:KA(o,G)}}break}}else{if(Array.isArray(s))return an(s,h=>a4(e,t,r,i,o,h,l,d,p));if(typeof s=="object"&&s!==null){for(let h of fh(s))if(h==="default"||l.indexOf(h)>=0||ok(l,h)){let m=s[h],v=a4(e,t,r,i,o,m,l,d,p);if(v)return v}}}}function N3e(e,t,r,i,o,s,l){return typeof s=="object"&&s!==null&&!Array.isArray(s)&&t4(s)?an(fh(s),d=>{let p=Qi(wr(o,d),void 0),h=Zs(d,"/")?1:d.includes("*")?2:0;return a4(e,t,r,i,p,s[d],l,h,!1)}):a4(e,t,r,i,o,s,l,0,!1)}function P3e(e,t,r,i,o){var s,l,d;if(!i.readFile||!DF(r))return;let p=goe(i,t);if(!p)return;let h=wr(p,"package.json"),m=(l=(s=i.getPackageJsonInfoCache)==null?void 0:s.call(i))==null?void 0:l.getPackageJsonInfo(h);if(noe(m)||!i.fileExists(h))return;let v=m?.contents.packageJsonContent||KW(i.readFile(h)),E=v?.imports;if(!E)return;let S=hy(r,o);return(d=an(fh(E),A=>{if(!Ui(A,"#")||A==="#"||Ui(A,"#/"))return;let C=Zs(A,"/")?1:A.includes("*")?2:0;return a4(r,i,e,p,A,E[A],S,C,!0)}))==null?void 0:d.moduleFileToTry}function M3e(e,t,r,i,o,s){let l=gSe(t,e,i);if(l===void 0)return;let d=gSe(r,e,i),p=ta(d,m=>nn(l,v=>ME(Gf(m,v,i)))),h=cB(p,$L);if(h)return lk(h,o,s)}function voe({path:e,isRedirect:t},{getCanonicalFileName:r,canonicalSourceDirectory:i},o,s,l,d,p,h){if(!s.fileExists||!s.readFile)return;let m=yF(e);if(!m)return;let E=sk(d,l,o).getAllowedEndingsInPreferredOrder(),S=e,A=!1;if(!p){let K=m.packageRootIndex,F;for(;;){let{moduleFileToTry:oe,packageRootPath:W,blockedByExports:$,verbatimFromExports:de}=U(K);if(zd(l)!==1){if($)return;if(de)return oe}if(W){S=W,A=!0;break}if(F||(F=oe),K=e.indexOf(Os,K+1),K===-1){S=lk(F,E,l,s);break}}}if(t&&!A)return;let C=s.getGlobalTypingsCacheLocation&&s.getGlobalTypingsCacheLocation(),R=r(S.substring(0,m.topLevelNodeModulesIndex));if(!(Ui(i,R)||C&&Ui(r(C),R)))return;let L=S.substring(m.topLevelPackageNameIndex+1),G=CN(L);return zd(l)===1&&G===L?void 0:G;function U(K){var F,oe;let W=e.substring(0,K),$=wr(W,"package.json"),de=e,fe=!1,q=(oe=(F=s.getPackageJsonInfoCache)==null?void 0:F.call(s))==null?void 0:oe.getPackageJsonInfo($);if($6(q)||q===void 0&&s.fileExists($)){let H=q?.contents.packageJsonContent||KW(s.readFile($)),ee=h||o.impliedNodeFormat;if(RF(l)){let ce=W.substring(m.topLevelPackageNameIndex+1),Z=CN(ce),pe=hy(l,ee),Ae=H?.exports?N3e(l,s,e,W,Z,H.exports,pe):void 0;if(Ae)return{...Ae,verbatimFromExports:!0};if(H?.exports)return{moduleFileToTry:e,blockedByExports:!0}}let le=H?.typesVersions?X6(H.typesVersions):void 0;if(le){let ce=e.slice(W.length+1),Z=hSe(ce,le.paths,E,s,l);Z===void 0?fe=!0:de=wr(W,Z)}let Ee=H?.typings||H?.types||H?.main||"index.js";if(fo(Ee)&&!(fe&&CV(fF(le.paths),Ee))){let ce=ks(Ee,W,r),Z=r(de);if(Yd(ce)===Yd(Z))return{packageRootPath:W,moduleFileToTry:de};if(H?.type!=="module"&&!$l(Z,c2)&&Ui(Z,ce)&&Ur(Z)===fb(ce)&&Yd(Ll(Z))==="index")return{packageRootPath:W,moduleFileToTry:de}}}else{let H=r(de.substring(m.packageRootIndex+1));if(H==="index.d.ts"||H==="index.js"||H==="index.ts"||H==="index.tsx")return{moduleFileToTry:de,packageRootPath:W}}return{moduleFileToTry:de}}}function L3e(e,t){if(!e.fileExists)return;let r=Ff(GC({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of r){let o=t+i;if(e.fileExists(o))return o}}function gSe(e,t,r){return Fi(t,i=>{let o=ySe(e,i,r);return o!==void 0&&bSe(o)?void 0:o})}function lk(e,t,r,i){if($l(e,[".json",".mjs",".cjs"]))return e;let o=Yd(e);if(e===o)return e;let s=t.indexOf(2),l=t.indexOf(3);if($l(e,[".mts",".cts"])&&l!==-1&&l<s)return e;if($l(e,[".d.mts",".mts",".d.cts",".cts"]))return o+yoe(e,r);if(!$l(e,[".d.ts"])&&$l(e,[".ts"])&&e.includes(".d."))return vSe(e);switch(t[0]){case 0:let d=C1(o,"/index");return i&&d!==o&&L3e(i,d)?o:d;case 1:return o;case 2:return o+yoe(e,r);case 3:if(Yc(e)){let p=t.findIndex(h=>h===0||h===1);return p!==-1&&p<s?o:o+yoe(e,r)}return e;default:return x.assertNever(t[0])}}function vSe(e){let t=Ll(e);if(!Zs(e,".ts")||!t.includes(".d.")||$l(t,[".d.ts"]))return;let r=QL(e,".ts"),i=r.substring(r.lastIndexOf("."));return r.substring(0,r.indexOf(".d."))+i}function yoe(e,t){return boe(e,t)??x.fail(`Extension ${jC(e)} is unsupported:: FileName:: ${e}`)}function boe(e,t){let r=og(e);switch(r){case".ts":case".d.ts":return".js";case".tsx":return t.jsx===1?".jsx":".js";case".js":case".jsx":case".json":return r;case".d.mts":case".mts":case".mjs":return".mjs";case".d.cts":case".cts":case".cjs":return".cjs";default:return}}function ySe(e,t,r){let i=AA(t,e,t,r,!1);return Ou(i)?void 0:i}function bSe(e){return Ui(e,"..")}var Eoe,Soe=pt({"src/compiler/moduleSpecifiers.ts"(){"use strict";wo(),Eoe=(e=>(e[e.Relative=0]="Relative",e[e.NonRelative=1]="NonRelative",e[e.Shortest=2]="Shortest",e[e.ExternalNonRelative=3]="ExternalNonRelative",e))(Eoe||{})}}),h0={};Ra(h0,{RelativePreference:()=>Eoe,countPathComponents:()=>o4,forEachFileNameOfModule:()=>fSe,getModuleSpecifier:()=>i4,getModuleSpecifierPreferences:()=>sk,getModuleSpecifiers:()=>cSe,getModuleSpecifiersWithCacheInfo:()=>dSe,getNodeModulesPackageName:()=>I3e,tryGetJSExtensionForFile:()=>boe,tryGetModuleSpecifiersFromCache:()=>x3e,tryGetRealFileNameForNonJsDeclarationFileName:()=>vSe,updateModuleSpecifier:()=>A3e});var Toe=pt({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";Soe()}});function k3e(){this.flags=0}function Fa(e){return e.id||(e.id=xoe,xoe++),e.id}function na(e){return e.id||(e.id=Ioe,Ioe++),e.id}function FU(e,t){let r=dg(e);return r===1||t&&r===2}function Aoe(e){var t=[],r=n=>{t.push(n)},i,o=new Set,s,l,d=wc.getSymbolConstructor(),p=wc.getTypeConstructor(),h=wc.getSignatureConstructor(),m=0,v=0,E=0,S=0,A=0,C=0,R,L,G=!1,U=Vo(),K=[1],F=e.getCompilerOptions(),oe=Wa(F),W=ld(F),$=!!F.experimentalDecorators,de=nN(F),fe=Xne(F),q=zS(F),H=Fd(F,"strictNullChecks"),ee=Fd(F,"strictFunctionTypes"),le=Fd(F,"strictBindCallApply"),Ee=Fd(F,"strictPropertyInitialization"),ce=Fd(F,"noImplicitAny"),Z=Fd(F,"noImplicitThis"),pe=Fd(F,"useUnknownInCatchVariables"),Ae=!!F.keyofStringsOnly,Oe=Ae?1:0,_e=F.suppressExcessPropertyErrors?0:8192,be=F.exactOptionalPropertyTypes,Te=plt(),De=Hut(),ft=__(),he=Vo(),Le=xa(4,"undefined");Le.declarations=[];var Ke=xa(1536,"globalThis",8);Ke.exports=he,Ke.declarations=[],he.set(Ke.escapedName,Ke);var Dt=xa(4,"arguments"),st=xa(4,"require"),Ge=F.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",ot=!F.verbatimModuleSyntax||!!F.importsNotUsedAsValues,Vt,jt,gn=0,On,en=0;let zt={getNodeCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.nodeCount,0),getIdentifierCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.identifierCount,0),getSymbolCount:()=>Nd(e.getSourceFiles(),(n,a)=>n+a.symbolCount,v),getTypeCount:()=>m,getInstantiationCount:()=>E,getRelationCacheSizes:()=>({assignable:hu.size,identity:Cu.size,subtype:X_.size,strictSubtype:rf.size}),isUndefinedSymbol:n=>n===Le,isArgumentsSymbol:n=>n===Dt,isUnknownSymbol:n=>n===tt,getMergedSymbol:Oa,getDiagnostics:V8e,getGlobalDiagnostics:sut,getRecursionIdentity:dQ,getUnmatchedProperties:ehe,getTypeOfSymbolAtLocation:(n,a)=>{let c=uo(a);return c?eot(n,c):it},getTypeOfSymbol:Yn,getSymbolsOfParameterPropertyDeclaration:(n,a)=>{let c=uo(n,ao);return c===void 0?x.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(x.assert(wu(c,c.parent)),TP(c,Hs(a)))},getDeclaredTypeOfSymbol:Cs,getPropertiesOfType:Xa,getPropertyOfType:(n,a)=>Qo(n,Hs(a)),getPrivateIdentifierPropertyOfType:(n,a,c)=>{let u=uo(c);if(!u)return;let _=Hs(a),g=GQ(_,u);return g?zhe(n,g):void 0},getTypeOfPropertyOfType:(n,a)=>Fe(n,Hs(a)),getIndexInfoOfType:(n,a)=>Uh(n,a===0?Ie:gt),getIndexInfosOfType:Ud,getIndexInfosOfIndexSymbol:Kme,getSignaturesOfType:Co,getIndexTypeOfType:(n,a)=>yE(n,a===0?Ie:gt),getIndexType:n=>v_(n),getBaseTypes:ep,getBaseTypeOfLiteralType:wg,getWidenedType:gp,getTypeFromTypeNode:n=>{let a=uo(n,xi);return a?si(a):it},getParameterType:zm,getParameterIdentifierInfoAtPosition:Nst,getPromisedTypeOfPromise:kw,getAwaitedType:n=>pA(n),getReturnTypeOfSignature:Ha,isNullableType:h5,getNullableType:e5,getNonNullableType:Wg,getNonOptionalType:mQ,getTypeArguments:Ss,typeToTypeNode:ft.typeToTypeNode,indexInfoToIndexSignatureDeclaration:ft.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:ft.signatureToSignatureDeclaration,symbolToEntityName:ft.symbolToEntityName,symbolToExpression:ft.symbolToExpression,symbolToNode:ft.symbolToNode,symbolToTypeParameterDeclarations:ft.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:ft.symbolToParameterDeclaration,typeParameterToDeclaration:ft.typeParameterToDeclaration,getSymbolsInScope:(n,a)=>{let c=uo(n);return c?lut(c,a):[]},getSymbolAtLocation:n=>{let a=uo(n);return a?um(a,!0):void 0},getIndexInfosAtLocation:n=>{let a=uo(n);return a?hut(a):void 0},getShorthandAssignmentValueSymbol:n=>{let a=uo(n);return a?gut(a):void 0},getExportSpecifierLocalTargetSymbol:n=>{let a=uo(n,Ed);return a?vut(a):void 0},getExportSymbolOfSymbol(n){return Oa(n.exportSymbol||n)},getTypeAtLocation:n=>{let a=uo(n);return a?S1(a):it},getTypeOfAssignmentPattern:n=>{let a=uo(n,lC);return a&&gZ(a)||it},getPropertySymbolOfDestructuringAssignment:n=>{let a=uo(n,Me);return a?yut(a):void 0},signatureToString:(n,a,c,u)=>eh(n,uo(a),c,u),typeToString:(n,a,c)=>Pn(n,uo(a),c),symbolToString:(n,a,c,u)=>ai(n,uo(a),c,u),typePredicateToString:(n,a,c)=>th(n,uo(a),c),writeSignature:(n,a,c,u,_)=>eh(n,uo(a),c,u,_),writeType:(n,a,c,u)=>Pn(n,uo(a),c,u),writeSymbol:(n,a,c,u,_)=>ai(n,uo(a),c,u,_),writeTypePredicate:(n,a,c,u)=>th(n,uo(a),c,u),getAugmentedPropertiesOfType:Bge,getRootSymbols:Y8e,getSymbolOfExpando:YQ,getContextualType:(n,a)=>{let c=uo(n,lt);if(c)return a&4?Ki(c,()=>bu(c,a)):bu(c,a)},getContextualTypeForObjectLiteralElement:n=>{let a=uo(n,Zh);return a?Ihe(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(n,a)=>{let c=uo(n,WE);return c&&Ahe(c,a)},getContextualTypeForJsxAttribute:n=>{let a=uo(n,H8);return a&&dOe(a,void 0)},isContextSensitive:uf,getTypeOfPropertyOfContextualType:DE,getFullyQualifiedName:mp,getResolvedSignature:(n,a,c)=>gi(n,a,c,0),getCandidateSignaturesForStringLiteralCompletions:Wt,getResolvedSignatureForSignatureHelp:(n,a,c)=>ei(n,()=>gi(n,a,c,16)),getExpandedParameters:uLe,hasEffectiveRestParameter:ch,containsArgumentsReference:Hme,getConstantValue:n=>{let a=uo(n,tWe);return a?Gge(a):void 0},isValidPropertyAccess:(n,a)=>{let c=uo(n,$ee);return!!c&&zat(c,Hs(a))},isValidPropertyAccessForCompletions:(n,a,c)=>{let u=uo(n,Er);return!!u&&BOe(u,a,c)},getSignatureFromDeclaration:n=>{let a=uo(n,Lo);return a?kf(a):void 0},isImplementationOfOverload:n=>{let a=uo(n,Lo);return a?Z8e(a):void 0},getImmediateAliasedSymbol:Nhe,getAliasedSymbol:fc,getEmitResolver:Ev,getExportsOfModule:wT,getExportsAndPropertiesOfModule:eD,forEachExportAndPropertyOfModule:tD,getSymbolWalker:hoe(Stt,df,Ha,ep,Om,Yn,cm,iu,dp,Ss),getAmbientModules:kpt,getJsxIntrinsicTagNamesAt:vat,isOptionalParameter:n=>{let a=uo(n,ao);return a?ow(a):!1},tryGetMemberInModuleExports:(n,a)=>WT(Hs(n),a),tryGetMemberInModuleExportsAndProperties:(n,a)=>nD(Hs(n),a),tryFindAmbientModule:n=>w$(n,!0),tryFindAmbientModuleWithoutAugmentations:n=>w$(n,!1),getApparentType:ou,getUnionType:Br,isTypeAssignableTo:ea,createAnonymousType:cs,createSignature:jh,createSymbol:xa,createIndexInfo:ah,getAnyType:()=>z,getStringType:()=>Ie,getStringLiteralType:yu,getNumberType:()=>gt,getNumberLiteralType:Wm,getBigIntType:()=>bt,createPromiseType:R5,createArrayType:_d,getElementTypeOfArrayType:Z7,getBooleanType:()=>ti,getFalseType:n=>n?Ot:dn,getTrueType:n=>n?An:Cn,getVoidType:()=>jn,getUndefinedType:()=>Re,getNullType:()=>se,getESSymbolType:()=>di,getNeverType:()=>Ar,getOptionalType:()=>j,getPromiseType:()=>W7(!1),getPromiseLikeType:()=>QLe(!1),getAsyncIterableType:()=>{let n=q$(!1);if(n!==ho)return n},isSymbolAccessible:vi,isArrayType:ff,isTupleType:ha,isArrayLikeType:Lv,isEmptyAnonymousObjectType:lh,isTypeInvalidDueToUnionDiscriminant:rtt,getExactOptionalProperties:Nrt,getAllPossiblePropertiesOfTypes:itt,getSuggestedSymbolForNonexistentProperty:Vhe,getSuggestionForNonexistentProperty:jhe,getSuggestedSymbolForNonexistentJSXAttribute:FOe,getSuggestedSymbolForNonexistentSymbol:(n,a,c)=>Uhe(n,Hs(a),c),getSuggestionForNonexistentSymbol:(n,a,c)=>Oat(n,Hs(a),c),getSuggestedSymbolForNonexistentModule:jQ,getSuggestionForNonexistentExport:wat,getSuggestedSymbolForNonexistentClassMember:WOe,getBaseConstraintOfType:md,getDefaultFromTypeParameter:n=>n&&n.flags&262144?KT(n):void 0,resolveName(n,a,c,u){return Xs(a,Hs(n),c,void 0,void 0,!1,u)},getJsxNamespace:n=>Ii(tE(n)),getJsxFragmentFactory:n=>{let a=jge(n);return a&&Ii(dp(a).escapedText)},getAccessibleSymbolChain:Wy,getTypePredicateOfSignature:df,resolveExternalModuleName:n=>{let a=uo(n,lt);return a&&jd(a,a,!0)},resolveExternalModuleSymbol:$u,tryGetThisTypeAt:(n,a,c)=>{let u=uo(n);return u&&bhe(u,a,c)},getTypeArgumentConstraint:n=>{let a=uo(n,xi);return a&&Ult(a)},getSuggestionDiagnostics:(n,a)=>{let c=uo(n,Li)||x.fail("Could not determine parsed source file.");if(UC(c,F,e))return je;let u;try{return i=a,Fge(c),x.assert(!!(Fr(c).flags&1)),u=Pr(u,yT.getDiagnostics(c.fileName)),i8e(G8e(c),(_,g,T)=>{!X1(_)&&!B8e(g,!!(_.flags&33554432))&&(u||(u=[])).push({...T,category:2})}),u||je}finally{i=void 0}},runWithCancellationToken:(n,a)=>{try{return i=n,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:gr,isDeclarationVisible:Pm,isPropertyAccessible:qhe,getTypeOnlyAliasDeclaration:of,getMemberOverrideModifierStatus:Sdt,isTypeParameterPossiblyReferenced:U7,typeHasCallOrConstructSignatures:vZ};function Wt(n,a){let c=new Set,u=[];Ki(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);u.length=0,ei(a,()=>gi(n,u,void 0,0));for(let _ of u)c.add(_);return bo(c)}function ei(n,a){if(n=Rn(n,ZG),n){let c=[],u=[];for(;n;){let g=Fr(n);if(c.push([g,g.resolvedSignature]),g.resolvedSignature=void 0,e0(n)){let T=Pi(dr(n)),N=T.type;u.push([T,N]),T.type=void 0}n=Rn(n.parent,ZG)}let _=a();for(let[g,T]of c)g.resolvedSignature=T;for(let[g,T]of u)g.type=T;return _}return a()}function Ki(n,a){let c=Rn(n,WE);if(c){let _=n;do Fr(_).skipDirectInference=!0,_=_.parent;while(_&&_!==c)}G=!0;let u=ei(n,a);if(G=!1,c){let _=n;do Fr(_).skipDirectInference=void 0,_=_.parent;while(_&&_!==c)}return u}function gi(n,a,c,u){let _=uo(n,WE);Vt=c;let g=_?xD(_,a,u):void 0;return Vt=void 0,g}var io=new Map,Gn=new Map,Nr=new Map,cr=new Map,Jt=new Map,Ue=new Map,Rt=new Map,mn=new Map,qr=new Map,ni=new Map,ki=new Map,so=new Map,Jo=new Map,ba=new Map,ln=new Map,Tn=[],ke=new Map,nt=new Set,tt=xa(4,"unknown"),yt=xa(0,"__resolving__"),re=new Map,Ce=new Map,et=new Set,z=Fl(1,"any"),Je=Fl(1,"any",262144,"auto"),_t=Fl(1,"any",void 0,"wildcard"),ze=Fl(1,"any",void 0,"blocked string"),it=Fl(1,"error"),Ct=Fl(1,"unresolved"),on=Fl(1,"any",65536,"non-inferrable"),Qt=Fl(1,"intrinsic"),Zt=Fl(2,"unknown"),V=Fl(2,"unknown",void 0,"non-null"),Re=Fl(32768,"undefined"),St=H?Re:Fl(32768,"undefined",65536,"widening"),M=Fl(32768,"undefined",void 0,"missing"),te=be?M:Re,j=Fl(32768,"undefined",void 0,"optional"),se=Fl(65536,"null"),Pe=H?se:Fl(65536,"null",65536,"widening"),Ie=Fl(4,"string"),gt=Fl(8,"number"),bt=Fl(64,"bigint"),Ot=Fl(512,"false",void 0,"fresh"),dn=Fl(512,"false"),An=Fl(512,"true",void 0,"fresh"),Cn=Fl(512,"true");An.regularType=Cn,An.freshType=An,Cn.regularType=Cn,Cn.freshType=An,Ot.regularType=dn,Ot.freshType=Ot,dn.regularType=dn,dn.freshType=Ot;var ti=Br([dn,Cn]),di=Fl(4096,"symbol"),jn=Fl(16384,"void"),Ar=Fl(131072,"never"),Zi=Fl(131072,"never",262144,"silent"),_i=Fl(131072,"never",void 0,"implicit"),ui=Fl(131072,"never",void 0,"unreachable"),Mr=Fl(67108864,"object"),lo=Br([Ie,gt]),_n=Br([Ie,gt,di]),fs=Ae?Ie:_n,Dl=Br([gt,bt]),_o=Br([Ie,gt,ti,bt,se,Re]),Va=YT(["",""],[gt]),gs=j7(n=>n.flags&262144?rrt(n):n,()=>"(restrictive mapper)"),Js=j7(n=>n.flags&262144?_t:n,()=>"(permissive mapper)"),Fc=Fl(131072,"never",void 0,"unique literal"),$i=j7(n=>n.flags&262144?Fc:n,()=>"(unique literal mapper)"),Uo,zc=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!0),n),()=>"(unmeasurable reporter)"),ts=j7(n=>(Uo&&(n===Ju||n===ls||n===tc)&&Uo(!1),n),()=>"(unreliable reporter)"),da=cs(void 0,U,je,je,je),Us=cs(void 0,U,je,je,je);Us.objectFlags|=2048;var tf=xa(2048,"__type");tf.members=Vo();var Wl=cs(tf,U,je,je,je),il=cs(void 0,U,je,je,je),zs=H?Br([Re,se,il]):Zt,ho=cs(void 0,U,je,je,je);ho.instantiations=new Map;var Ut=cs(void 0,U,je,je,je);Ut.objectFlags|=262144;var vs=cs(void 0,U,je,je,je),Pc=cs(void 0,U,je,je,je),Bc=cs(void 0,U,je,je,je),Ju=zp(),ls=zp();ls.constraint=Ju;var tc=zp(),ae=zp(),X=zp();X.constraint=ae;var xe=O7(1,"<<unresolved>>",0,z),dt=jh(void 0,void 0,void 0,je,z,void 0,0,0),$t=jh(void 0,void 0,void 0,je,it,void 0,0,0),sr=jh(void 0,void 0,void 0,je,z,void 0,0,0),tr=jh(void 0,void 0,void 0,je,Zi,void 0,0,0),Ir=ah(gt,Ie,!0),pi=new Map,hr={get yieldType(){return x.fail("Not supported")},get returnType(){return x.fail("Not supported")},get nextType(){return x.fail("Not supported")}},No=wv(z,z,z),Qs=wv(z,z,Zt),bc=wv(Ar,z,Re),ys={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Wtt,getGlobalIterableType:q$,getGlobalIterableIteratorType:Ftt,getGlobalGeneratorType:ztt,resolveIterationType:(n,a)=>pA(n,a,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:f.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},Jl={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:Btt,getGlobalIterableType:a_e,getGlobalIterableIteratorType:Gtt,getGlobalGeneratorType:Vtt,resolveIterationType:(n,a)=>n,mustHaveANextMethodDiagnostic:f.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:f.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:f.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},Za,Ec=new Map,Du=[],pc,Nf,Vd,Se,At,Ln,eo,Po,Oo,Cl,Kl,Bs,Ks,vl,Nl,Sc,Lp,fu,tu,nf,d_,K_,fg,fd,mg,Ku,Lh,mu,Y,Ye,xt,Nt,k,ge,Xe,Mt,Vn,jr,Or,zi,ma,_a,pl,Gc,nc,Xu,_u,Ay,ja,em,tm,Ri,_g,yv,nm,D0,C0,kp=new Map,u_=0,Op=0,hg=0,Ne=!1,Ve=0,Tt,Pt,rn,wn=[],tn=[],Wn=[],Qr=0,Kn=[],Gr=[],Qn=0,Mo=yu(""),Ia=Wm(0),xd=$$({negative:!1,base10Value:"0"}),Vc=[],gg=[],$b=[],UI=0,Qb=!1,GR=0,VR=10,jR=[],gT=[],N0=[],HI=[],UR=[],qI=[],JI=[],KI=[],XI=[],vT=[],YI=[],P0=[],M0=[],Iy=[],xy=[],kh=[],Zb=[],La=hx(),yT=hx(),HR=Z_(),eE,vg,X_=new Map,rf=new Map,hu=new Map,Yu=new Map,Cu=new Map,bv=new Map,bT=Vo();bT.set(Le.escapedName,Le);var qR=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",F.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return qut(),zt;function $I(n){return n?ln.get(n):void 0}function Ry(n,a){return n&&ln.set(n,a),a}function tE(n){if(n){let a=Nn(n);if(a)if(fI(n)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let c=a.pragmas.get("jsxfrag");if(c){let _=oo(c)?c[0]:c;if(a.localJsxFragmentFactory=gI(_.arguments.factory,oe),He(a.localJsxFragmentFactory,Xl,Su),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=dp(a.localJsxFragmentFactory).escapedText}let u=jge(n);if(u)return a.localJsxFragmentFactory=u,a.localJsxFragmentNamespace=dp(u).escapedText}else{let c=QI(a);if(c)return a.localJsxNamespace=c}}return eE||(eE="React",F.jsxFactory?(vg=gI(F.jsxFactory,oe),He(vg,Xl),vg&&(eE=dp(vg).escapedText)):F.reactNamespace&&(eE=Hs(F.reactNamespace))),vg||(vg=P.createQualifiedName(P.createIdentifier(Ii(eE)),"createElement")),eE}function QI(n){if(n.localJsxNamespace)return n.localJsxNamespace;let a=n.pragmas.get("jsx");if(a){let c=oo(a)?a[0]:a;if(n.localJsxFactory=gI(c.arguments.factory,oe),He(n.localJsxFactory,Xl,Su),n.localJsxFactory)return n.localJsxNamespace=dp(n.localJsxFactory).escapedText}}function Xl(n){return W_(n,-1,-1),un(n,Xl,void 0)}function Ev(n,a){return V8e(n,a),De}function ZI(n,a,...c){let u=n?vr(n,a,...c):bl(a,...c),_=La.lookup(u);return _||(La.add(u),u)}function xm(n,a,c,...u){let _=we(a,c,...u);return _.skippedOn=n,_}function ET(n,a,...c){return n?vr(n,a,...c):bl(a,...c)}function we(n,a,...c){let u=ET(n,a,...c);return La.add(u),u}function Rm(n,a){n?La.add(a):yT.add({...a,category:2})}function jc(n,a,c,...u){if(a.pos<0||a.end<0){if(!n)return;let _=Nn(a);Rm(n,"message"in c?Rc(_,0,0,c,...u):T9(_,c));return}Rm(n,"message"in c?vr(a,c,...u):eg(Nn(a),a,c))}function nE(n,a,c,...u){let _=we(n,c,...u);if(a){let g=vr(n,f.Did_you_forget_to_use_await);pa(_,g)}return _}function e1(n,a){let c=Array.isArray(n)?an(n,zG):zG(n);return c&&pa(a,vr(c,f.The_declaration_was_marked_as_deprecated_here)),yT.add(a),a}function Dy(n){let a=nu(n);return a&&yn(n.declarations)>1?a.flags&64?ct(n.declarations,Sv):ji(n.declarations,Sv):!!n.valueDeclaration&&Sv(n.valueDeclaration)||yn(n.declarations)&&ji(n.declarations,Sv)}function Sv(n){return!!(lS(n)&536870912)}function Tv(n,a,c){let u=vr(n,f._0_is_deprecated,c);return e1(a,u)}function SP(n,a,c,u){let _=c?vr(n,f.The_signature_0_of_1_is_deprecated,u,c):vr(n,f._0_is_deprecated,u);return e1(a,_)}function xa(n,a,c){v++;let u=new d(n|33554432,a);return u.links=new Coe,u.links.checkFlags=c||0,u}function Dm(n,a){let c=xa(1,n);return c.links.type=a,c}function ST(n,a){let c=xa(4,n);return c.links.type=a,c}function TT(n){let a=0;return n&2&&(a|=111551),n&1&&(a|=111550),n&4&&(a|=0),n&8&&(a|=900095),n&16&&(a|=110991),n&32&&(a|=899503),n&64&&(a|=788872),n&256&&(a|=899327),n&128&&(a|=899967),n&512&&(a|=110735),n&8192&&(a|=103359),n&32768&&(a|=46015),n&65536&&(a|=78783),n&262144&&(a|=526824),n&524288&&(a|=788968),n&2097152&&(a|=2097152),a}function rE(n,a){a.mergeId||(a.mergeId=Roe,Roe++),jR[a.mergeId]=n}function AT(n){let a=xa(n.flags,n.escapedName);return a.declarations=n.declarations?n.declarations.slice():[],a.parent=n.parent,n.valueDeclaration&&(a.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),n.members&&(a.members=new Map(n.members)),n.exports&&(a.exports=new Map(n.exports)),rE(a,n),a}function Pf(n,a,c=!1){if(!(n.flags&TT(a.flags))||(a.flags|n.flags)&67108864){if(a===n)return n;if(!(n.flags&33554432)){let _=yl(n);if(_===tt)return a;n=AT(_)}a.flags&512&&n.flags&512&&n.constEnumOnlyModule&&!a.constEnumOnlyModule&&(n.constEnumOnlyModule=!1),n.flags|=a.flags,a.valueDeclaration&&IL(n,a.valueDeclaration),Pr(n.declarations,a.declarations),a.members&&(n.members||(n.members=Vo()),Cm(n.members,a.members,c)),a.exports&&(n.exports||(n.exports=Vo()),Cm(n.exports,a.exports,c)),c||rE(n,a)}else if(n.flags&1024)n!==Ke&&we(a.declarations&&mo(a.declarations[0]),f.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ai(n));else{let _=!!(n.flags&384||a.flags&384),g=!!(n.flags&2||a.flags&2),T=_?f.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:g?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0,N=a.declarations&&Nn(a.declarations[0]),O=n.declarations&&Nn(n.declarations[0]),B=nL(N,F.checkJs),Q=nL(O,F.checkJs),me=ai(a);if(N&&O&&Za&&!_&&N!==O){let ue=Xh(N.path,O.path)===-1?N:O,We=ue===N?O:N,at=FD(Za,`${ue.path}|${We.path}`,()=>({firstFile:ue,secondFile:We,conflictingSymbols:new Map})),ht=FD(at.conflictingSymbols,me,()=>({isBlockScoped:g,firstFileLocations:[],secondFileLocations:[]}));B||u(ht.firstFileLocations,a),Q||u(ht.secondFileLocations,n)}else B||Mf(a,T,me,n),Q||Mf(n,T,me,a)}return n;function u(_,g){if(g.declarations)for(let T of g.declarations)jp(_,T)}}function Mf(n,a,c,u){an(n.declarations,_=>{yg(_,a,c,u.declarations)})}function yg(n,a,c,u){let _=(Ib(n,!1)?L9(n):mo(n))||n,g=ZI(_,a,c);for(let T of u||je){let N=(Ib(T,!1)?L9(T):mo(T))||T;if(N===_)continue;g.relatedInformation=g.relatedInformation||[];let O=vr(N,f._0_was_also_declared_here,c),B=vr(N,f.and_here);yn(g.relatedInformation)>=5||ct(g.relatedInformation,Q=>zC(Q,B)===0||zC(Q,O)===0)||pa(g,yn(g.relatedInformation)?B:O)}}function t1(n,a){if(!n?.size)return a;if(!a?.size)return n;let c=Vo();return Cm(c,n),Cm(c,a),c}function Cm(n,a,c=!1){a.forEach((u,_)=>{let g=n.get(_);n.set(_,g?Pf(g,u,c):Oa(u))})}function JR(n){var a,c,u;let _=n.parent;if(((a=_.symbol.declarations)==null?void 0:a[0])!==_){x.assert(_.symbol.declarations.length>1);return}if(qm(_))Cm(he,_.symbol.exports);else{let g=n.parent.parent.flags&33554432?void 0:f.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=Tg(n,n,g,!0);if(!T)return;if(T=$u(T),T.flags&1920)if(ct(Nf,N=>T===N.symbol)){let N=Pf(_.symbol,T,!0);Vd||(Vd=new Map),Vd.set(n.text,N)}else{if((c=T.exports)!=null&&c.get("__export")&&((u=_.symbol.exports)!=null&&u.size)){let N=Dme(T,"resolvedExports");for(let[O,B]of bo(_.symbol.exports.entries()))N.has(O)&&!T.exports.has(O)&&Pf(N.get(O),B)}Pf(T,_.symbol)}else we(n,f.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,n.text)}}function L0(n,a,c){a.forEach((_,g)=>{let T=n.get(g);T?an(T.declarations,u(Ii(g),c)):n.set(g,_)});function u(_,g){return T=>La.add(vr(T,g,_))}}function Pi(n){if(n.flags&33554432)return n.links;let a=na(n);return gT[a]??(gT[a]=new Coe)}function Fr(n){let a=Fa(n);return N0[a]||(N0[a]=new k3e)}function Y_(n){return n.kind===312&&!sp(n)}function gu(n,a,c){if(c){let u=Oa(n.get(a));if(u&&(x.assert((tl(u)&1)===0,"Should never get an instantiated symbol here."),u.flags&c||u.flags&2097152&&Qc(u)&c))return u}}function TP(n,a){let c=n.parent,u=n.parent.parent,_=gu(c.locals,a,111551),g=gu(Ky(u.symbol),a,111551);return _&&g?[_,g]:x.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function bg(n,a){let c=Nn(n),u=Nn(a),_=O_(n);if(c!==u){if(W&&(c.externalModuleIndicator||u.externalModuleIndicator)||!ss(F)||OS(a)||n.flags&33554432||T(a,n))return!0;let O=e.getSourceFiles();return O.indexOf(c)<=O.indexOf(u)}if(a.flags&16777216||OS(a)||she(a))return!0;if(n.pos<=a.pos&&!(xo(n)&&fL(a.parent)&&!n.initializer&&!n.exclamationToken)){if(n.kind===208){let O=Db(a,208);return O?Rn(O,Na)!==Rn(n,Na)||n.pos<O.pos:bg(Db(n,260),a)}else{if(n.kind===260)return!g(n,a);if(Kr(n))return!Rn(a,O=>Pa(O)&&O.parent.parent===n);if(xo(n))return!N(n,a,!1);if(wu(n,n.parent))return!(fe&&Oc(n)===Oc(a)&&T(a,n))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,n))return fe&&Oc(n)&&(xo(n)||wu(n,n.parent))?!N(n,a,!0):!0;return!1;function g(O,B){switch(O.parent.parent.kind){case 243:case 248:case 250:if(O0(B,O,_))return!0;break}let Q=O.parent.parent;return H1(Q)&&O0(B,Q.expression,_)}function T(O,B){return!!Rn(O,Q=>{if(Q===_)return"quit";if(Lo(Q))return!0;if(nl(Q))return B.pos<O.pos;let me=Vr(Q.parent,xo);if(me&&me.initializer===Q){if(zo(Q.parent)){if(B.kind===174)return!0;if(xo(B)&&Oc(O)===Oc(B)){let We=B.name;if(Me(We)||Ci(We)){let at=Yn(dr(B)),ht=Cr(B.parent.members,nl);if(Ddt(We,at,ht,B.parent.pos,Q.pos))return!0}}}else if(!(B.kind===172&&!zo(B))||Oc(O)!==Oc(B))return!0}return!1})}function N(O,B,Q){return B.end>O.end?!1:Rn(B,ue=>{if(ue===O)return"quit";switch(ue.kind){case 219:return!0;case 172:return Q&&(xo(O)&&ue.parent===O.parent||wu(O,O.parent)&&ue.parent===O.parent.parent)?"quit":!0;case 241:switch(ue.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function AP(n,a,c){let u=Wa(F),_=a;if(ao(c)&&_.body&&n.valueDeclaration&&n.valueDeclaration.pos>=_.body.pos&&n.valueDeclaration.end<=_.body.end&&u>=2){let N=Fr(_);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=an(_.parameters,g)||!1),!N.declarationRequiresScopeChange}return!1;function g(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return jl(N)?!fe:T(N.name);default:return jG(N)||yd(N)?u<7:Na(N)&&N.dotDotDotToken&&Rf(N.parent)?u<4:xi(N)?!1:Ao(N,T)||!1}}}function Cy(n){return ES(n)&&Qh(n.type)||gN(n)&&Qh(n.typeExpression)}function Xs(n,a,c,u,_,g,T=!1,N=!0){return pp(n,a,c,u,_,g,T,N,gu)}function pp(n,a,c,u,_,g,T,N,O){var B,Q,me;let ue=n,We,at,ht,qt,Xt,Hn=!1,En=n,Kt,In=!1;e:for(;n;){if(a==="const"&&Cy(n))return;if($M(n)&&at&&n.name===at&&(at=n,n=n.parent),M_(n)&&n.locals&&!Y_(n)&&(We=O(n.locals,a,c))){let zn=!0;if(Lo(n)&&at&&at!==n.body?(c&We.flags&788968&&at.kind!==327&&(zn=We.flags&262144?at===n.type||at.kind===169||at.kind===348||at.kind===349||at.kind===168:!1),c&We.flags&3&&(AP(We,n,at)?zn=!1:We.flags&1&&(zn=at.kind===169||at===n.type&&!!Rn(We.valueDeclaration,ao)))):n.kind===194&&(zn=at===n.trueType),zn)break e;We=void 0}switch(Hn=Hn||Lf(n,at),n.kind){case 312:if(!sp(n))break;In=!0;case 267:let zn=((B=dr(n))==null?void 0:B.exports)||U;if(n.kind===312||Il(n)&&n.flags&33554432&&!qm(n)){if(We=zn.get("default")){let co=Ex(We);if(co&&We.flags&c&&co.escapedName===a)break e;We=void 0}let Bn=zn.get(a);if(Bn&&Bn.flags===2097152&&(Vs(Bn,281)||Vs(Bn,280)))break}if(a!=="default"&&(We=O(zn,a,c&2623475)))if(Li(n)&&n.commonJsModuleIndicator&&!((Q=We.declarations)!=null&&Q.some(bf)))We=void 0;else break e;break;case 266:if(We=O(((me=dr(n))==null?void 0:me.exports)||U,a,c&8)){u&&xf(F)&&!(n.flags&33554432)&&Nn(n)!==Nn(We.valueDeclaration)&&we(En,f.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ii(a),Ge,`${Ii(Wp(n).escapedName)}.${Ii(a)}`);break e}break;case 172:if(!zo(n)){let Bn=Ag(n.parent);Bn&&Bn.locals&&O(Bn.locals,a,c&111551)&&(x.assertNode(n,xo),qt=n)}break;case 263:case 231:case 264:if(We=O(dr(n).members||U,a,c&788968)){if(!Eg(We,n)){We=void 0;break}if(at&&zo(at)){u&&we(En,f.Static_members_cannot_reference_class_type_parameters);return}break e}if(Dc(n)&&c&32){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 233:if(at===n.expression&&n.parent.token===96){let Bn=n.parent.parent;if(Kr(Bn)&&(We=O(dr(Bn).members,a,c&788968))){u&&we(En,f.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Kt=n.parent.parent,(Kr(Kt)||Kt.kind===264)&&(We=O(dr(Kt).members,a,c&788968))){u&&we(En,f.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Wa(F)>=2)break;case 174:case 176:case 177:case 178:case 262:if(c&3&&a==="arguments"){We=Dt;break e}break;case 218:if(c&3&&a==="arguments"){We=Dt;break e}if(c&16){let Bn=n.name;if(Bn&&a===Bn.escapedText){We=n.symbol;break e}}break;case 170:n.parent&&n.parent.kind===169&&(n=n.parent),n.parent&&(xc(n.parent)||n.parent.kind===263)&&(n=n.parent);break;case 353:case 345:case 347:let Mn=ux(n);Mn&&(n=Mn.parent);break;case 169:at&&(at===n.initializer||at===n.name&&ko(at))&&(Xt||(Xt=n));break;case 208:at&&(at===n.initializer||at===n.name&&ko(at))&&JE(n)&&!Xt&&(Xt=n);break;case 195:if(c&262144){let Bn=n.typeParameter.name;if(Bn&&a===Bn.escapedText){We=n.typeParameter.symbol;break e}}break;case 281:at&&at===n.propertyName&&n.parent.parent.moduleSpecifier&&(n=n.parent.parent.parent);break}Ny(n)&&(ht=n),at=n,n=Df(n)?NW(n)||n.parent:(Tm(n)||T6(n))&&xb(n)||n.parent}if(g&&We&&(!ht||We!==ht.symbol)&&(We.isReferenced|=c),!We){if(at&&(x.assertNode(at,Li),at.commonJsModuleIndicator&&a==="exports"&&c&at.symbol.flags))return at.symbol;T||(We=O(he,a,c))}if(!We&&ue&&Jn(ue)&&ue.parent&&Xd(ue.parent,!1))return st;function Sn(){return qt&&!fe?(we(En,En&&qt.type&&wM(qt.type,En.pos)?f.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:f.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,is(qt.name),rm(_)),!0):!1}if(We){if(u&&Sn())return}else{u&&r(()=>{if(!En||En.parent.kind!==331&&!k0(En,a,_)&&!Sn()&&!IT(En)&&!n1(En,a,c)&&!Av(En,a)&&!xT(En,a,c)&&!KR(En,a,c)&&!Wh(En,a,c)){let zn,Mn;if(_&&(Mn=Lat(_),Mn&&we(En,u,rm(_),Mn)),!Mn&&N&&GR<VR&&(zn=Uhe(ue,a,c),zn?.valueDeclaration&&sd(zn.valueDeclaration)&&qm(zn.valueDeclaration)&&(zn=void 0),zn)){let co=ai(zn),no=Ghe(ue,zn,!1),Eo=c===1920||_&&typeof _!="string"&&xs(_)?f.Cannot_find_namespace_0_Did_you_mean_1:no?f.Could_not_find_name_0_Did_you_mean_1:f.Cannot_find_name_0_Did_you_mean_1,Yi=ET(En,Eo,rm(_),co);Rm(!no,Yi),zn.valueDeclaration&&pa(Yi,vr(zn.valueDeclaration,f._0_is_declared_here,co))}!zn&&!Mn&&_&&we(En,u,rm(_)),GR++}});return}return u&&r(()=>{var zn;if(En&&(c&2||(c&32||c&384)&&(c&111551)===111551)){let Mn=Fp(We);(Mn.flags&2||Mn.flags&32||Mn.flags&384)&&Ds(Mn,En)}if(We&&In&&(c&111551)===111551&&!(ue.flags&16777216)){let Mn=Oa(We);yn(Mn.declarations)&&ji(Mn.declarations,Bn=>D2(Bn)||Li(Bn)&&!!Bn.symbol.globalExports)&&jc(!F.allowUmdGlobalAccess,En,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ii(a))}if(We&&Xt&&!Hn&&(c&111551)===111551){let Mn=Oa(L$(We)),Bn=Xm(Xt);Mn===dr(Xt)?we(En,f.Parameter_0_cannot_reference_itself,is(Xt.name)):Mn.valueDeclaration&&Mn.valueDeclaration.pos>Xt.pos&&Bn.parent.locals&&O(Bn.parent.locals,Mn.escapedName,c)===Mn&&we(En,f.Parameter_0_cannot_reference_identifier_1_declared_after_it,is(Xt.name),is(En))}if(We&&En&&c&111551&&We.flags&2097152&&!(We.flags&111551)&&!Pb(En)){let Mn=of(We,111551);if(Mn){let Bn=Mn.kind===281||Mn.kind===278||Mn.kind===280?f._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,co=Ii(a);Oh(we(En,Bn,co),Mn,co)}}if(F.isolatedModules&&We&&In&&(c&111551)===111551){let Bn=O(he,a,c)===We&&Li(at)&&at.locals&&O(at.locals,a,-111552);if(Bn){let co=(zn=Bn.declarations)==null?void 0:zn.find(no=>no.kind===276||no.kind===273||no.kind===274||no.kind===271);co&&!UM(co)&&we(co,f.Import_0_conflicts_with_global_value_used_in_this_file_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,Ii(a))}}}),We}function Oh(n,a,c){return a?pa(n,vr(a,a.kind===281||a.kind===278||a.kind===280?f._0_was_exported_here:f._0_was_imported_here,c)):n}function Lf(n,a){return n.kind!==219&&n.kind!==218?oI(n)||(_s(n)||n.kind===172&&!zo(n))&&(!a||a!==n.name):a&&a===n.name?!1:n.asteriskToken||Wr(n,1024)?!0:!RS(n)}function Ny(n){switch(n.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function rm(n){return fo(n)?Ii(n):is(n)}function Eg(n,a){if(n.declarations){for(let c of n.declarations)if(c.kind===168&&(Df(c.parent)?PS(c.parent):c.parent)===a)return!(Df(c.parent)&&Dr(c.parent.parent.tags,bf))}return!1}function k0(n,a,c){if(!Me(n)||n.escapedText!==a||j8e(n)||OS(n))return!1;let u=lu(n,!1,!1),_=u;for(;_;){if(Kr(_.parent)){let g=dr(_.parent);if(!g)break;let T=Yn(g);if(Qo(T,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,rm(c),ai(g)),!0;if(_===u&&!zo(_)){let N=Cs(g).thisType;if(Qo(N,a))return we(n,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,rm(c)),!0}}_=_.parent}return!1}function IT(n){let a=wh(n);return a&&bs(a,64,!0)?(we(n,f.Cannot_extend_an_interface_0_Did_you_mean_implements,Vl(a)),!0):!1}function wh(n){switch(n.kind){case 80:case 211:return n.parent?wh(n.parent):void 0;case 233:if(gl(n.expression))return n.expression;default:return}}function n1(n,a,c){let u=1920|(Jn(n)?111551:0);if(c===u){let _=yl(Xs(n,a,788968&~u,void 0,void 0,!1)),g=n.parent;if(_){if($d(g)){x.assert(g.left===n,"Should only be resolving left side of qualified name as a namespace");let T=g.right.escapedText;if(Qo(Cs(_),T))return we(g,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Ii(a),Ii(T)),!0}return we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ii(a)),!0}}return!1}function Wh(n,a,c){if(c&788584){let u=yl(Xs(n,a,111127,void 0,void 0,!1));if(u&&!(u.flags&1920))return we(n,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ii(a)),!0}return!1}function p_(n){return n==="any"||n==="string"||n==="number"||n==="boolean"||n==="never"||n==="unknown"}function Av(n,a){return p_(a)&&n.parent.kind===281?(we(n,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function KR(n,a,c){if(c&111551){if(p_(a)){let g=n.parent.parent;if(g&&g.parent&&Ip(g)){let T=g.token,N=g.parent.kind;N===264&&T===96?we(n,f.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ii(a)):N===263&&T===96?we(n,f.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ii(a)):N===263&&T===119&&we(n,f.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ii(a))}else we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ii(a));return!0}let u=yl(Xs(n,a,788544,void 0,void 0,!1)),_=u&&Qc(u);if(u&&_!==void 0&&!(_&111551)){let g=Ii(a);return YR(a)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,g):XR(n,u)?we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,g,g==="K"?"P":"K"):we(n,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,g),!0}}return!1}function XR(n,a){let c=Rn(n.parent,u=>Pa(u)||Gu(u)?!1:ju(u)||"quit");if(c&&c.members.length===1){let u=Cs(a);return!!(u.flags&1048576)&&N5(u,384,!0)}return!1}function YR(n){switch(n){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function xT(n,a,c){if(c&111127){if(yl(Xs(n,a,1024,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_value,Ii(a)),!0}else if(c&788544&&yl(Xs(n,a,1536,void 0,void 0,!1)))return we(n,f.Cannot_use_namespace_0_as_a_type,Ii(a)),!0;return!1}function Ds(n,a){var c;if(x.assert(!!(n.flags&2||n.flags&32||n.flags&384)),n.flags&67108881&&n.flags&32)return;let u=(c=n.declarations)==null?void 0:c.find(_=>p9(_)||Kr(_)||_.kind===266);if(u===void 0)return x.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(u.flags&33554432)&&!bg(u,a)){let _,g=is(mo(u));n.flags&2?_=we(a,f.Block_scoped_variable_0_used_before_its_declaration,g):n.flags&32?_=we(a,f.Class_0_used_before_its_declaration,g):n.flags&256?_=we(a,f.Enum_0_used_before_its_declaration,g):(x.assert(!!(n.flags&128)),xf(F)&&(_=we(a,f.Enum_0_used_before_its_declaration,g))),_&&pa(_,vr(u,f._0_is_declared_here,g))}}function O0(n,a,c){return!!a&&!!Rn(n,u=>u===a||(u===c||Lo(u)&&(!RS(u)||gc(u)&3)?"quit":!1))}function RT(n){switch(n.kind){case 271:return n;case 273:return n.parent;case 274:return n.parent.parent;case 276:return n.parent.parent.parent;default:return}}function im(n){return n.declarations&&hA(n.declarations,Py)}function Py(n){return n.kind===271||n.kind===270||n.kind===273&&!!n.name||n.kind===274||n.kind===280||n.kind===276||n.kind===281||n.kind===277&&px(n)||Zn(n)&&hl(n)===2&&px(n)||ds(n)&&Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64&&$R(n.parent.right)||n.kind===304||n.kind===303&&$R(n.initializer)||n.kind===260&&jE(n)||n.kind===208&&jE(n.parent.parent)}function $R(n){return kL(n)||us(n)&&S_(n)}function DT(n,a){let c=Ly(n);if(c){let _=Tx(c.expression).arguments[0];return Me(c.name)?yl(Qo(PLe(_),c.name.escapedText)):void 0}if(yi(n)||n.moduleReference.kind===283){let _=jd(n,N9(n)||gC(n)),g=$u(_);return Nu(n,_,g,!1),g}let u=i1(n.moduleReference,a);return IP(n,u),u}function IP(n,a){if(Nu(n,void 0,a,!1)&&!n.isTypeOnly){let c=of(dr(n)),u=c.kind===281||c.kind===278,_=u?f.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:f.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,g=u?f._0_was_exported_here:f._0_was_imported_here,T=c.kind===278?"*":Ii(c.name.escapedText);pa(we(n.moduleReference,_),vr(c,g,T))}}function nr(n,a,c,u){let _=n.exports.get("export="),g=_?Qo(Yn(_),a,!0):n.exports.get(a),T=yl(g,u);return Nu(c,g,T,!1),T}function Mc(n){return dl(n)&&!n.isExportEquals||Wr(n,2048)||Ed(n)||V_(n)}function Oi(n){return Ga(n)?e.getModeForUsageLocation(Nn(n),n):void 0}function wp(n,a){return n===99&&a===1}function Iv(n){return Oi(n)===99&&Zs(n.text,".json")}function f_(n,a,c,u){let _=n&&Oi(u);if(n&&_!==void 0&&100<=W&&W<=199){let g=wp(_,n.impliedNodeFormat);if(_===99||g)return g}if(!q)return!1;if(!n||n.isDeclarationFile){let g=nr(a,"default",void 0,!0);return!(g&&ct(g.declarations,Mc)||nr(a,Hs("__esModule"),void 0,c))}return wd(n)?typeof n.externalModuleIndicator!="object"&&!nr(a,Hs("__esModule"),void 0,c):xv(a)}function Xn(n,a){let c=jd(n,n.parent.moduleSpecifier);if(c)return CT(c,n,a)}function CT(n,a,c){var u;let _;pC(n)?_=n:_=nr(n,"default",a,c);let g=(u=n.declarations)==null?void 0:u.find(Li),T=iE(a);if(!T)return _;let N=Iv(T),O=f_(g,n,c,T);if(!_&&!O&&!N)if(xv(n)&&!q){let B=W>=5?"allowSyntheticDefaultImports":"esModuleInterop",me=n.exports.get("export=").valueDeclaration,ue=we(a.name,f.Module_0_can_only_be_default_imported_using_the_1_flag,ai(n),B);me&&pa(ue,vr(me,f.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,B))}else G_(a)?Tc(n,a):NT(n,n,a,RA(a)&&a.propertyName||a.name);else if(O||N){let B=$u(n,c)||yl(n,c);return Nu(a,n,B,!1),B}return Nu(a,_,void 0,!1),_}function iE(n){switch(n.kind){case 273:return n.parent.moduleSpecifier;case 271:return j_(n.moduleReference)?n.moduleReference.expression:void 0;case 274:return n.parent.parent.moduleSpecifier;case 276:return n.parent.parent.parent.moduleSpecifier;case 281:return n.parent.parent.moduleSpecifier;default:return x.assertNever(n)}}function Tc(n,a){var c,u,_;if((c=n.exports)!=null&&c.has(a.symbol.escapedName))we(a.name,f.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ai(n),ai(a.symbol));else{let g=we(a.name,f.Module_0_has_no_default_export,ai(n)),T=(u=n.exports)==null?void 0:u.get("__export");if(T){let N=(_=T.declarations)==null?void 0:_.find(O=>{var B,Q;return!!(xl(O)&&O.moduleSpecifier&&((Q=(B=jd(O,O.moduleSpecifier))==null?void 0:B.exports)!=null&&Q.has("default")))});N&&pa(g,vr(N,f.export_Asterisk_does_not_re_export_a_default))}}}function $_(n,a){let c=n.parent.parent.moduleSpecifier,u=jd(n,c),_=Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function om(n,a){let c=n.parent.moduleSpecifier,u=c&&jd(n,c),_=c&&Pu(u,c,a,!1);return Nu(n,u,_,!1),_}function w0(n,a){if(n===tt&&a===tt)return tt;if(n.flags&790504)return n;let c=xa(n.flags|a.flags,n.escapedName);return x.assert(n.declarations||a.declarations),c.declarations=NE(ro(n.declarations,a.declarations),Hg),c.parent=n.parent||a.parent,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration),a.members&&(c.members=new Map(a.members)),n.exports&&(c.exports=new Map(n.exports)),c}function W0(n,a,c,u){var _;if(n.flags&1536){let g=Qu(n).get(a.escapedText),T=yl(g,u),N=(_=Pi(n).typeOnlyExportStarMap)==null?void 0:_.get(a.escapedText);return Nu(c,g,T,!1,N,a.escapedText),T}}function My(n,a){if(n.flags&3){let c=n.valueDeclaration.type;if(c)return yl(Qo(si(c),a))}}function Sg(n,a,c=!1){var u;let _=N9(n)||n.moduleSpecifier,g=jd(n,_),T=!Er(a)&&a.propertyName||a.name;if(!Me(T))return;let N=T.escapedText==="default"&&q,O=Pu(g,_,!1,N);if(O&&T.escapedText){if(pC(g))return g;let B;g&&g.exports&&g.exports.get("export=")?B=Qo(Yn(O),T.escapedText,!0):B=My(O,T.escapedText),B=yl(B,c);let Q=W0(O,T,a,c);if(Q===void 0&&T.escapedText==="default"){let ue=(u=g.declarations)==null?void 0:u.find(Li);(Iv(_)||f_(ue,g,c,_))&&(Q=$u(g,c)||yl(g,c))}let me=Q&&B&&Q!==B?w0(B,Q):Q||B;return me||NT(g,O,n,T),me}}function NT(n,a,c,u){var _;let g=mp(n,c),T=is(u),N=jQ(u,a);if(N!==void 0){let O=ai(N),B=we(u,f._0_has_no_exported_member_named_1_Did_you_mean_2,g,T,O);N.valueDeclaration&&pa(B,vr(N.valueDeclaration,f._0_is_declared_here,O))}else(_=n.exports)!=null&&_.has("default")?we(u,f.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,g,T):am(c,u,T,n,g)}function am(n,a,c,u,_){var g,T;let N=(T=(g=Vr(u.valueDeclaration,M_))==null?void 0:g.locals)==null?void 0:T.get(a.escapedText),O=u.exports;if(N){let B=O?.get("export=");if(B)Nm(B,N)?oE(n,a,c,_):we(a,f.Module_0_has_no_exported_member_1,_,c);else{let Q=O?Dr(Ume(O),ue=>!!Nm(ue,N)):void 0,me=Q?we(a,f.Module_0_declares_1_locally_but_it_is_exported_as_2,_,c,ai(Q)):we(a,f.Module_0_declares_1_locally_but_it_is_not_exported,_,c);N.declarations&&pa(me,...nn(N.declarations,(ue,We)=>vr(ue,We===0?f._0_is_declared_here:f.and_here,c)))}}else we(a,f.Module_0_has_no_exported_member_1,_,c)}function oE(n,a,c,u){if(W>=5){let _=F_(F)?f._0_can_only_be_imported_by_using_a_default_import:f._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else if(Jn(n)){let _=F_(F)?f._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:f._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c)}else{let _=F_(F)?f._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:f._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;we(a,_,c,c,u)}}function Fh(n,a){if(Iu(n)&&ar(n.propertyName||n.name)==="default"){let T=iE(n),N=T&&jd(n,T);if(N)return CT(N,n,a)}let c=Na(n)?Xm(n):n.parent.parent.parent,u=Ly(c),_=Sg(c,u||n,a),g=n.propertyName||n.name;return u&&_&&Me(g)?yl(Qo(Yn(_),g.escapedText),a):(Nu(n,void 0,_,!1),_)}function Ly(n){if(yi(n)&&n.initializer&&Er(n.initializer))return n.initializer}function r1(n,a){if(Hm(n.parent)){let c=$u(n.parent.symbol,a);return Nu(n,void 0,c,!1),c}}function aE(n,a,c){if(ar(n.propertyName||n.name)==="default"){let _=iE(n),g=_&&jd(n,_);if(g)return CT(g,n,!!c)}let u=n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n,c):bs(n.propertyName||n.name,a,!1,c);return Nu(n,void 0,u,!1),u}function QR(n,a){let c=dl(n)?n.expression:n.right,u=F0(c,a);return Nu(n,void 0,u,!1),u}function F0(n,a){if(Dc(n))return Ml(n).symbol;if(!Su(n)&&!gl(n))return;let c=bs(n,901119,!0,a);return c||(Ml(n),Fr(n).resolvedSymbol)}function PT(n,a){if(Zn(n.parent)&&n.parent.left===n&&n.parent.operatorToken.kind===64)return F0(n.parent.right,a)}function fp(n,a=!1){switch(n.kind){case 271:case 260:return DT(n,a);case 273:return Xn(n,a);case 274:return $_(n,a);case 280:return om(n,a);case 276:case 208:return Fh(n,a);case 281:return aE(n,901119,a);case 277:case 226:return QR(n,a);case 270:return r1(n,a);case 304:return bs(n.name,901119,!0,a);case 303:return F0(n.initializer,a);case 212:case 211:return PT(n,a);default:return x.fail()}}function MT(n,a=901119){return n?(n.flags&(2097152|a))===2097152||!!(n.flags&2097152&&n.flags&67108864):!1}function yl(n,a){return!a&&MT(n)?fc(n):n}function fc(n){x.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=Pi(n);if(a.aliasTarget)a.aliasTarget===yt&&(a.aliasTarget=tt);else{a.aliasTarget=yt;let c=im(n);if(!c)return x.fail();let u=fp(c);a.aliasTarget===yt?a.aliasTarget=u||tt:we(c,f.Circular_definition_of_import_alias_0,ai(n))}return a.aliasTarget}function LT(n){if(Pi(n).aliasTarget!==yt)return fc(n)}function Qc(n,a,c){let u=a&&of(n),_=u&&xl(u),g=u&&(_?jd(u.moduleSpecifier,u.moduleSpecifier,!0):fc(u.symbol)),T=_&&g?Q_(g):void 0,N=c?0:n.flags,O;for(;n.flags&2097152;){let B=Fp(fc(n));if(!_&&B===g||T?.get(B.escapedName)===B)break;if(B===tt)return-1;if(B===n||O?.has(B))break;B.flags&2097152&&(O?O.add(B):O=new Set([n,B])),N|=B.flags,n=B}return N}function Nu(n,a,c,u,_,g){if(!n||Er(n))return!1;let T=dr(n);if(Sb(n)){let O=Pi(T);return O.typeOnlyDeclaration=n,!0}if(_){let O=Pi(T);return O.typeOnlyDeclaration=_,T.escapedName!==g&&(O.typeOnlyExportStarName=g),!0}let N=Pi(T);return sE(N,a,u)||sE(N,c,u)}function sE(n,a,c){var u;if(a&&(n.typeOnlyDeclaration===void 0||c&&n.typeOnlyDeclaration===!1)){let _=((u=a.exports)==null?void 0:u.get("export="))??a,g=_.declarations&&Dr(_.declarations,Sb);n.typeOnlyDeclaration=g??Pi(_).typeOnlyDeclaration??!1}return!!n.typeOnlyDeclaration}function of(n,a){if(!(n.flags&2097152))return;let c=Pi(n);if(a===void 0)return c.typeOnlyDeclaration||void 0;if(c.typeOnlyDeclaration){let u=c.typeOnlyDeclaration.kind===278?yl(Q_(c.typeOnlyDeclaration.symbol.parent).get(c.typeOnlyExportStarName||n.escapedName)):fc(c.typeOnlyDeclaration.symbol);return Qc(u)&a?c.typeOnlyDeclaration:void 0}}function ky(n){if(!ot)return;let a=dr(n),c=fc(a);c&&(c===tt||Qc(a,!0)&111551&&!Bw(c))&&Oy(a)}function Oy(n){x.assert(ot);let a=Pi(n);if(!a.referenced){a.referenced=!0;let c=im(n);if(!c)return x.fail();ox(c)&&Qc(yl(n))&111551&&Ml(c.moduleReference)}}function Lc(n){let a=Pi(n);a.constEnumReferenced||(a.constEnumReferenced=!0)}function i1(n,a){return n.kind===80&&LC(n)&&(n=n.parent),n.kind===80||n.parent.kind===166?bs(n,1920,!1,a):(x.assert(n.parent.kind===271),bs(n,901119,!1,a))}function mp(n,a){return n.parent?mp(n.parent,a)+"."+ai(n):ai(n,a,void 0,36)}function kT(n){for(;$d(n.parent);)n=n.parent;return n}function OT(n){let a=dp(n),c=Xs(a,a.escapedText,111551,void 0,a,!0);if(c){for(;$d(a.parent);){let u=Yn(c);if(c=Qo(u,a.parent.right.escapedText),!c)return;a=a.parent}return c}}function bs(n,a,c,u,_){if(_l(n))return;let g=1920|(Jn(n)?a&111551:0),T;if(n.kind===80){let N=a===g||xs(n)?f.Cannot_find_namespace_0:Ake(dp(n)),O=Jn(n)&&!xs(n)?ZR(n,a):void 0;if(T=Oa(Xs(_||n,n.escapedText,a,c||O?void 0:N,n,!0,!1)),!T)return Oa(O)}else if(n.kind===166||n.kind===211){let N=n.kind===166?n.left:n.expression,O=n.kind===166?n.right:n.name,B=bs(N,g,c,!1,_);if(!B||_l(O))return;if(B===tt)return B;if(B.valueDeclaration&&Jn(B.valueDeclaration)&&zd(F)!==100&&yi(B.valueDeclaration)&&B.valueDeclaration.initializer&&lwe(B.valueDeclaration.initializer)){let Q=B.valueDeclaration.initializer.arguments[0],me=jd(Q,Q);if(me){let ue=$u(me);ue&&(B=ue)}}if(T=Oa(gu(Qu(B),O.escapedText,a)),!T&&B.flags&2097152&&(T=Oa(gu(Qu(fc(B)),O.escapedText,a))),!T){if(!c){let Q=mp(B),me=is(O),ue=jQ(O,B);if(ue){we(O,f._0_has_no_exported_member_named_1_Did_you_mean_2,Q,me,ai(ue));return}let We=$d(n)&&kT(n);if(Se&&a&788968&&We&&!Wx(We.parent)&&OT(We)){we(We,f._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Wu(We));return}if(a&1920&&$d(n.parent)){let ht=Oa(gu(Qu(B),O.escapedText,788968));if(ht){we(n.parent.right,f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ai(ht),Ii(n.parent.right.escapedText));return}}we(O,f.Namespace_0_has_no_exported_member_1,Q,me)}return}}else x.assertNever(n,"Unknown entity name kind.");return x.assert((tl(T)&1)===0,"Should never get an instantiated symbol here."),!xs(n)&&Su(n)&&(T.flags&2097152||n.parent.kind===277)&&Nu(V9(n),T,void 0,!0),T.flags&a||u?T:fc(T)}function ZR(n,a){if(U$(n.parent)){let c=lE(n.parent);if(c)return Xs(c,n.escapedText,a,void 0,n,!0)}}function lE(n){if(Rn(n,_=>q1(_)||_.flags&16777216?bf(_):"quit"))return;let c=PS(n);if(c&&Cc(c)&&AL(c.expression)){let _=dr(c.expression.left);if(_)return z0(_)}if(c&&us(c)&&AL(c.parent)&&Cc(c.parent.parent)){let _=dr(c.parent.left);if(_)return z0(_)}if(c&&(qf(c)||Hl(c))&&Zn(c.parent.parent)&&hl(c.parent.parent)===6){let _=dr(c.parent.parent.left);if(_)return z0(_)}let u=Rb(n);if(u&&Lo(u)){let _=dr(u);return _&&_.valueDeclaration}}function z0(n){let a=n.parent.valueDeclaration;return a?(vC(a)?LA(a):SS(a)?yL(a):void 0)||a:void 0}function xP(n){let a=n.valueDeclaration;if(!a||!Jn(a)||n.flags&524288||Ib(a,!1))return;let c=yi(a)?yL(a):LA(a);if(c){let u=Wp(c);if(u)return Zhe(u,n)}}function jd(n,a,c){let _=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations;return Tg(n,a,c?void 0:_)}function Tg(n,a,c,u=!1){return Ga(a)?m_(n,a.text,c,a,u):void 0}function m_(n,a,c,u,_=!1){var g,T,N,O,B,Q,me,ue,We,at,ht;if(Ui(a,"@types/")){let Bn=f.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,co=jD(a,"@types/");we(u,Bn,co,a)}let qt=w$(a,!0);if(qt)return qt;let Xt=Nn(n),Hn=Ga(n)?n:((g=Il(n)?n:n.parent&&Il(n.parent)&&n.parent.name===n?n.parent:void 0)==null?void 0:g.name)||((T=ey(n)?n:void 0)==null?void 0:T.argument.literal)||(yi(n)&&n.initializer&&Xd(n.initializer,!0)?n.initializer.arguments[0]:void 0)||((N=Rn(n,lp))==null?void 0:N.arguments[0])||((O=Rn(n,cc))==null?void 0:O.moduleSpecifier)||((B=Rn(n,Ab))==null?void 0:B.moduleReference.expression)||((Q=Rn(n,xl))==null?void 0:Q.moduleSpecifier),En=Hn&&Ga(Hn)?e.getModeForUsageLocation(Xt,Hn):Xt.impliedNodeFormat,Kt=zd(F),In=(me=e.getResolvedModule(Xt,a,En))==null?void 0:me.resolvedModule,Sn=In&&FH(F,In,Xt),zn=In&&(!Sn||Sn===f.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(In.resolvedFileName);if(zn){if(Sn&&we(u,Sn,a,In.resolvedFileName),In.resolvedUsingTsExtension&&Yc(a)){let Bn=((ue=Rn(n,cc))==null?void 0:ue.importClause)||Rn(n,hm(Nc,xl));(Bn&&!Bn.isTypeOnly||Rn(n,lp))&&we(u,f.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Mn(x.checkDefined(JW(a))))}else if(In.resolvedUsingTsExtension&&!nR(F,Xt.fileName)){let Bn=((We=Rn(n,cc))==null?void 0:We.importClause)||Rn(n,hm(Nc,xl));if(!(Bn?.isTypeOnly||Rn(n,Dh))){let co=x.checkDefined(JW(a));we(u,f.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,co)}}if(zn.symbol){if(In.isExternalLibraryImport&&!VC(In.extension)&&o1(!1,u,Xt,En,In,a),Kt===3||Kt===99){let Bn=Xt.impliedNodeFormat===1&&!Rn(n,lp)||!!Rn(n,Nc),co=Rn(n,no=>Dh(no)||xl(no)||cc(no));if(Bn&&zn.impliedNodeFormat===99&&!hre(co))if(Rn(n,Nc))we(u,f.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let no,Eo=og(Xt.fileName);if(Eo===".ts"||Eo===".js"||Eo===".tsx"||Eo===".jsx"){let Yi=Xt.packageJsonScope,ic=Eo===".ts"?".mts":Eo===".js"?".mjs":void 0;Yi&&!Yi.contents.packageJsonContent.type?ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ic,wr(Yi.packageDirectory,"package.json")):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,wr(Yi.packageDirectory,"package.json")):ic?no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ic):no=So(void 0,f.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}La.add(eg(Nn(u),u,So(no,f.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,a)))}}return Oa(zn.symbol)}c&&we(u,f.File_0_is_not_a_module,zn.fileName);return}if(Nf){let Bn=pB(Nf,co=>co.pattern,a);if(Bn){let co=Vd&&Vd.get(a);return Oa(co||Bn.symbol)}}if(In&&!VC(In.extension)&&Sn===void 0||Sn===f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(_){let Bn=f.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;we(u,Bn,a,In.resolvedFileName)}else o1(ce&&!!c,u,Xt,En,In,a);return}if(c){if(In){let Bn=e.getProjectReferenceRedirect(In.resolvedFileName);if(Bn){we(u,f.Output_file_0_has_not_been_built_from_source_file_1,Bn,In.resolvedFileName);return}}if(Sn)we(u,Sn,a,In.resolvedFileName);else{let Bn=op(a)&&!TA(a),co=Kt===3||Kt===99;if(!Mb(F)&&el(a,".json")&&Kt!==1&&rF(F))we(u,f.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(En===99&&co&&Bn){let no=Qi(a,Ur(Xt.path)),Eo=(at=qR.find(([Yi,ic])=>e.fileExists(no+Yi)))==null?void 0:at[1];Eo?we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+Eo):we(u,f.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else if((ht=e.getResolvedModule(Xt,a,En))!=null&&ht.alternateResult){let no=Q8(Xt,e,a,En,a);jc(!0,u,So(no,c,a))}else we(u,c,a)}}return;function Mn(Bn){let co=QL(a,Bn);if(nF(W)||En===99){let no=Yc(a)&&nR(F);return co+(Bn===".mts"||Bn===".d.mts"?no?".mts":".mjs":Bn===".cts"||Bn===".d.mts"?no?".cts":".cjs":no?".ts":".js")}return co}}function o1(n,a,c,u,{packageId:_,resolvedFileName:g},T){let N;!Ic(T)&&_&&(N=Q8(c,e,T,u,_.name)),jc(n,a,So(N,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,g))}function $u(n,a){if(n?.exports){let c=yl(n.exports.get("export="),a),u=a1(Oa(c),Oa(n));return Oa(u)||n}}function a1(n,a){if(!n||n===tt||n===a||a.exports.size===1||n.flags&2097152)return n;let c=Pi(n);if(c.cjsExportMerged)return c.cjsExportMerged;let u=n.flags&33554432?n:AT(n);return u.flags=u.flags|512,u.exports===void 0&&(u.exports=Vo()),a.exports.forEach((_,g)=>{g!=="export="&&u.exports.set(g,u.exports.has(g)?Pf(u.exports.get(g),_):_)}),u===n&&(Pi(u).resolvedExports=void 0,Pi(u).resolvedMembers=void 0),Pi(u).cjsExportMerged=u,c.cjsExportMerged=u}function Pu(n,a,c,u){var _;let g=$u(n,c);if(!c&&g){if(!u&&!(g.flags&1539)&&!Vs(g,312)){let N=W>=5?"allowSyntheticDefaultImports":"esModuleInterop";return we(a,f.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),g}let T=a.parent;if(cc(T)&&cx(T)||lp(T)){let N=lp(T)?T.arguments[0]:T.moduleSpecifier,O=Yn(g),B=awe(O,g,n,N);if(B)return s1(g,B,T);let Q=(_=n?.declarations)==null?void 0:_.find(Li),me=Q&&wp(Oi(N),Q.impliedNodeFormat);if(F_(F)||me){let ue=k7(O,0);if((!ue||!ue.length)&&(ue=k7(O,1)),ue&&ue.length||Qo(O,"default",!0)||me){let We=O.flags&3670016?swe(O,g,n,N):ege(g,g.parent);return s1(g,We,T)}}}}return g}function s1(n,a,c){let u=xa(n.flags,n.escapedName);u.declarations=n.declarations?n.declarations.slice():[],u.parent=n.parent,u.links.target=n,u.links.originatingImport=c,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),n.constEnumOnlyModule&&(u.constEnumOnlyModule=!0),n.members&&(u.members=new Map(n.members)),n.exports&&(u.exports=new Map(n.exports));let _=Om(a);return u.links.type=cs(u,_.members,je,je,_.indexInfos),u}function xv(n){return n.exports.get("export=")!==void 0}function wT(n){return Ume(Q_(n))}function eD(n){let a=wT(n),c=$u(n);if(c!==n){let u=Yn(c);wy(u)&&Pr(a,Xa(u))}return a}function tD(n,a){Q_(n).forEach((_,g)=>{V0(g)||a(_,g)});let u=$u(n);if(u!==n){let _=Yn(u);wy(_)&&ntt(_,(g,T)=>{a(g,T)})}}function WT(n,a){let c=Q_(a);if(c)return c.get(n)}function nD(n,a){let c=WT(n,a);if(c)return c;let u=$u(a);if(u===a)return;let _=Yn(u);return wy(_)?Qo(_,n):void 0}function wy(n){return!(n.flags&402784252||br(n)&1||ff(n)||ha(n))}function Qu(n){return n.flags&6256?Dme(n,"resolvedExports"):n.flags&1536?Q_(n):n.exports||U}function Q_(n){let a=Pi(n);if(!a.resolvedExports){let{exports:c,typeOnlyExportStarMap:u}=FT(n);a.resolvedExports=c,a.typeOnlyExportStarMap=u}return a.resolvedExports}function rD(n,a,c,u){a&&a.forEach((_,g)=>{if(g==="default")return;let T=n.get(g);if(!T)n.set(g,_),c&&u&&c.set(g,{specifierText:Vl(u.moduleSpecifier)});else if(c&&u&&T&&yl(T)!==yl(_)){let N=c.get(g);N.exportsWithDuplicate?N.exportsWithDuplicate.push(u):N.exportsWithDuplicate=[u]}})}function FT(n){let a=[],c,u=new Set;n=$u(n);let _=g(n)||U;return c&&u.forEach(T=>c.delete(T)),{exports:_,typeOnlyExportStarMap:c};function g(T,N,O){if(!O&&T?.exports&&T.exports.forEach((me,ue)=>u.add(ue)),!(T&&T.exports&&jp(a,T)))return;let B=new Map(T.exports),Q=T.exports.get("__export");if(Q){let me=Vo(),ue=new Map;if(Q.declarations)for(let We of Q.declarations){let at=jd(We,We.moduleSpecifier),ht=g(at,We,O||We.isTypeOnly);rD(me,ht,ue,We)}ue.forEach(({exportsWithDuplicate:We},at)=>{if(!(at==="export="||!(We&&We.length)||B.has(at)))for(let ht of We)La.add(vr(ht,f.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,ue.get(at).specifierText,Ii(at)))}),rD(B,me)}return N?.isTypeOnly&&(c??(c=new Map),B.forEach((me,ue)=>c.set(ue,N))),B}}function Oa(n){let a;return n&&n.mergeId&&(a=jR[n.mergeId])?a:n}function dr(n){return Oa(n.symbol&&L$(n.symbol))}function Wp(n){return Hm(n)?dr(n):void 0}function nu(n){return Oa(n.parent&&L$(n.parent))}function B0(n){var a,c;return(((a=n.valueDeclaration)==null?void 0:a.kind)===219||((c=n.valueDeclaration)==null?void 0:c.kind)===218)&&Wp(n.valueDeclaration.parent)||n}function iD(n,a){let c=Nn(a),u=Fa(c),_=Pi(n),g;if(_.extendedContainersByFile&&(g=_.extendedContainersByFile.get(u)))return g;if(c&&c.imports){for(let N of c.imports){if(xs(N))continue;let O=jd(a,N,!0);!O||!zh(O,n)||(g=pn(g,O))}if(yn(g))return(_.extendedContainersByFile||(_.extendedContainersByFile=new Map)).set(u,g),g}if(_.extendedContainers)return _.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!wl(N))continue;let O=dr(N);zh(O,n)&&(g=pn(g,O))}return _.extendedContainers=g||je}function cE(n,a,c){let u=nu(n);if(u&&!(n.flags&262144))return O(u);let _=Fi(n.declarations,Q=>{if(!sd(Q)&&Q.parent){if(Rd(Q.parent))return dr(Q.parent);if(t_(Q.parent)&&Q.parent.parent&&$u(dr(Q.parent.parent))===n)return dr(Q.parent.parent)}if(Dc(Q)&&Zn(Q.parent)&&Q.parent.operatorToken.kind===64&&ds(Q.parent.left)&&gl(Q.parent.left.expression))return Eh(Q.parent.left)||DS(Q.parent.left.expression)?dr(Nn(Q)):(Ml(Q.parent.left.expression),Fr(Q.parent.left.expression).resolvedSymbol)});if(!yn(_))return;let g=Fi(_,Q=>zh(Q,n)?Q:void 0),T=[],N=[];for(let Q of g){let[me,...ue]=O(Q);T=pn(T,me),N=Pr(N,ue)}return ro(T,N);function O(Q){let me=Fi(Q.declarations,B),ue=a&&iD(n,a),We=G0(Q,c);if(a&&Q.flags&Ig(c)&&Wy(Q,a,1920,!1))return pn(ro(ro([Q],me),ue),We);let at=!(Q.flags&Ig(c))&&Q.flags&788968&&Cs(Q).flags&524288&&c===111551?U0(a,qt=>hc(qt,Xt=>{if(Xt.flags&Ig(c)&&Yn(Xt)===Cs(Q))return Xt})):void 0,ht=at?[at,...me,Q]:[...me,Q];return ht=pn(ht,We),ht=Pr(ht,ue),ht}function B(Q){return u&&zT(Q,u)}}function G0(n,a){let c=!!yn(n.declarations)&&Sa(n.declarations);if(a&111551&&c&&c.parent&&yi(c.parent)&&(fa(c)&&c===c.parent.initializer||ju(c)&&c===c.parent.type))return dr(c.parent)}function zT(n,a){let c=wi(n),u=c&&c.exports&&c.exports.get("export=");return u&&Nm(u,a)?c:void 0}function zh(n,a){if(n===nu(a))return a;let c=n.exports&&n.exports.get("export=");if(c&&Nm(c,a))return n;let u=Qu(n),_=u.get(a.escapedName);return _&&Nm(_,a)?_:hc(u,g=>{if(Nm(g,a))return g})}function Nm(n,a){if(Oa(yl(Oa(n)))===Oa(yl(Oa(a))))return n}function Fp(n){return Oa(n&&(n.flags&1048576)!==0&&n.exportSymbol||n)}function sm(n,a){return!!(n.flags&111551||n.flags&2097152&&Qc(n,!a)&111551)}function Ag(n){let a=n.members;for(let c of a)if(c.kind===176&&gf(c.body))return c}function Bh(n){var a;let c=new p(zt,n);return m++,c.id=m,(a=qn)==null||a.recordType(c),c}function Gh(n,a){let c=Bh(n);return c.symbol=a,c}function l1(n){return new p(zt,n)}function Fl(n,a,c=0,u){oD(a,u);let _=Bh(n);return _.intrinsicName=a,_.debugIntrinsicName=u,_.objectFlags=c|524288|2097152|33554432|16777216,_}function oD(n,a){let c=`${n},${a??""}`;et.has(c)&&x.fail(`Duplicate intrinsic type name ${n}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),et.add(c)}function af(n,a){let c=Gh(524288,a);return c.objectFlags=n,c.members=void 0,c.properties=void 0,c.callSignatures=void 0,c.constructSignatures=void 0,c.indexInfos=void 0,c}function Z_(){return Br(bo(GU.keys(),yu))}function zp(n){return Gh(262144,n)}function V0(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)!==95&&n.charCodeAt(2)!==64&&n.charCodeAt(2)!==35}function dE(n){let a;return n.forEach((c,u)=>{c1(c,u)&&(a||(a=[])).push(c)}),a||je}function c1(n,a){return!V0(a)&&sm(n)}function BT(n){let a=dE(n),c=z$(n);return c?ro(a,[c]):a}function Bp(n,a,c,u,_){let g=n;return g.members=a,g.properties=je,g.callSignatures=c,g.constructSignatures=u,g.indexInfos=_,a!==U&&(g.properties=dE(a)),g}function cs(n,a,c,u,_){return Bp(af(16,n),a,c,u,_)}function j0(n){if(n.constructSignatures.length===0)return n;if(n.objectTypeWithoutAbstractConstructSignatures)return n.objectTypeWithoutAbstractConstructSignatures;let a=Cr(n.constructSignatures,u=>!(u.flags&4));if(n.constructSignatures===a)return n;let c=cs(n.symbol,n.members,n.callSignatures,ct(a)?a:je,n.indexInfos);return n.objectTypeWithoutAbstractConstructSignatures=c,c.objectTypeWithoutAbstractConstructSignatures=c,c}function U0(n,a){let c;for(let u=n;u;u=u.parent){if(M_(u)&&u.locals&&!Y_(u)&&(c=a(u.locals,void 0,!0,u)))return c;switch(u.kind){case 312:if(!sp(u))break;case 267:let _=dr(u);if(c=a(_?.exports||U,void 0,!0,u))return c;break;case 263:case 231:case 264:let g;if((dr(u).members||U).forEach((T,N)=>{T.flags&788968&&(g||(g=Vo())).set(N,T)}),g&&(c=a(g,void 0,!1,u)))return c;break}}return a(he,void 0,!0)}function Ig(n){return n===111551?111551:1920}function Wy(n,a,c,u,_=new Map){if(!(n&&!I(n)))return;let g=Pi(n),T=g.accessibleChainCache||(g.accessibleChainCache=new Map),N=U0(a,(Xt,Hn,En,Kt)=>Kt),O=`${u?0:1}|${N&&Fa(N)}|${c}`;if(T.has(O))return T.get(O);let B=na(n),Q=_.get(B);Q||_.set(B,Q=[]);let me=U0(a,ue);return T.set(O,me),me;function ue(Xt,Hn,En){if(!jp(Q,Xt))return;let Kt=ht(Xt,Hn,En);return Q.pop(),Kt}function We(Xt,Hn){return!uE(Xt,a,Hn)||!!Wy(Xt.parent,a,Ig(Hn),u,_)}function at(Xt,Hn,En){return(n===(Hn||Xt)||Oa(n)===Oa(Hn||Xt))&&!ct(Xt.declarations,Rd)&&(En||We(Oa(Xt),c))}function ht(Xt,Hn,En){return at(Xt.get(n.escapedName),void 0,Hn)?[n]:hc(Xt,In=>{if(In.flags&2097152&&In.escapedName!=="export="&&In.escapedName!=="default"&&!(QW(In)&&a&&wl(Nn(a)))&&(!u||ct(In.declarations,Ab))&&(!En||!ct(In.declarations,Jte))&&(Hn||!Vs(In,281))){let Sn=fc(In),zn=qt(In,Sn,Hn);if(zn)return zn}if(In.escapedName===n.escapedName&&In.exportSymbol&&at(Oa(In.exportSymbol),void 0,Hn))return[n]})||(Xt===he?qt(Ke,Ke,Hn):void 0)}function qt(Xt,Hn,En){if(at(Xt,Hn,En))return[Xt];let Kt=Qu(Hn),In=Kt&&ue(Kt,!0);if(In&&We(Xt,Ig(c)))return[Xt].concat(In)}}function uE(n,a,c){let u=!1;return U0(a,_=>{let g=Oa(_.get(n.escapedName));if(!g)return!1;if(g===n)return!0;let T=g.flags&2097152&&!Vs(g,281);return g=T?fc(g):g,(T?Qc(g):g.flags)&c?(u=!0,!0):!1}),u}function I(n){if(n.declarations&&n.declarations.length){for(let a of n.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function ne(n,a){return ri(n,a,788968,!1,!0).accessibility===0}function rt(n,a){return ri(n,a,111551,!1,!0).accessibility===0}function Ht(n,a,c){return ri(n,a,c,!1,!1).accessibility===0}function yr(n,a,c,u,_,g){if(!yn(n))return;let T,N=!1;for(let O of n){let B=Wy(O,a,u,!1);if(B){T=O;let ue=ru(B[0],_);if(ue)return ue}if(g&&ct(O.declarations,Rd)){if(_){N=!0;continue}return{accessibility:0}}let Q=cE(O,a,u),me=yr(Q,a,c,c===O?Ig(u):u,_,g);if(me)return me}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ai(c,a,u),errorModuleName:T!==c?ai(T,a,1920):void 0}}function vi(n,a,c,u){return ri(n,a,c,u,!0)}function ri(n,a,c,u,_){if(n&&a){let g=yr([n],a,n,c,u,_);if(g)return g;let T=an(n.declarations,wi);if(T){let N=wi(a);if(T!==N)return{accessibility:2,errorSymbolName:ai(n,a,c),errorModuleName:ai(T),errorNode:Jn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ai(n,a,c)}}return{accessibility:0}}function wi(n){let a=Rn(n,$o);return a&&dr(a)}function $o(n){return sd(n)||n.kind===312&&sp(n)}function Rd(n){return iW(n)||n.kind===312&&sp(n)}function ru(n,a){let c;if(!ji(Cr(n.declarations,g=>g.kind!==80),u))return;return{accessibility:0,aliasesToMakeVisible:c};function u(g){var T,N;if(!Pm(g)){let O=RT(g);if(O&&!Wr(O,32)&&Pm(O.parent))return _(g,O);if(yi(g)&&cl(g.parent.parent)&&!Wr(g.parent.parent,32)&&Pm(g.parent.parent.parent))return _(g,g.parent.parent);if(oW(g)&&!Wr(g,32)&&Pm(g.parent))return _(g,g);if(Na(g)){if(n.flags&2097152&&Jn(g)&&((T=g.parent)!=null&&T.parent)&&yi(g.parent.parent)&&((N=g.parent.parent.parent)!=null&&N.parent)&&cl(g.parent.parent.parent.parent)&&!Wr(g.parent.parent.parent.parent,32)&&g.parent.parent.parent.parent.parent&&Pm(g.parent.parent.parent.parent.parent))return _(g,g.parent.parent.parent.parent);if(n.flags&2){let B=Rn(g,cl);return Wr(B,32)?!0:Pm(B.parent)?_(g,B):!1}}return!1}return!0}function _(g,T){return a&&(Fr(g).isVisible=!0,c=Kh(c,T)),!0}}function sf(n){let a;return n.parent.kind===186||n.parent.kind===233&&!yh(n.parent)||n.parent.kind===167?a=1160127:n.kind===166||n.kind===211||n.parent.kind===271||n.parent.kind===166&&n.parent.left===n||n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n?a=1920:a=788968,a}function Fy(n,a){let c=sf(n),u=dp(n),_=Xs(a,u.escapedText,c,void 0,void 0,!1);return _&&_.flags&262144&&c&788968?{accessibility:0}:!_&&YE(u)&&vi(dr(lu(u,!1,!1)),u,c,!1).accessibility===0?{accessibility:0}:_&&ru(_,!0)||{accessibility:1,errorSymbolName:Vl(u),errorNode:u}}function ai(n,a,c,u=4,_){let g=70221824;u&2&&(g|=128),u&1&&(g|=512),u&8&&(g|=16384),u&32&&(g|=134217728),u&16&&(g|=1073741824);let T=u&4?ft.symbolToNode:ft.symbolToEntityName;return _?N(_).getText():dC(N);function N(O){let B=T(n,c,a,g),Q=a?.kind===312?hH():y0(),me=a&&Nn(a);return Q.writeNode(4,B,me,O),O}}function eh(n,a,c=0,u,_){return _?g(_).getText():dC(g);function g(T){let N;c&262144?N=u===1?185:184:N=u===1?180:179;let O=ft.signatureToSignatureDeclaration(n,N,a,GT(c)|70221824|512),B=hk(),Q=a&&Nn(a);return B.writeNode(4,O,Q,nV(T)),T}}function Pn(n,a,c=1064960,u=GL("")){let _=F.noErrorTruncation||c&1,g=ft.typeToTypeNode(n,a,GT(c)|70221824|(_?1:0));if(g===void 0)return x.fail("should always get typenode");let T=n!==Ct?y0():_H(),N=a&&Nn(a);T.writeNode(4,g,N,u);let O=u.getText(),B=_?AF*2:i2*2;return B&&O&&O.length>=B?O.substr(0,B-3)+"...":O}function d1(n,a){let c=By(n.symbol)?Pn(n,n.symbol.valueDeclaration):Pn(n),u=By(a.symbol)?Pn(a,a.symbol.valueDeclaration):Pn(a);return c===u&&(c=zy(n),u=zy(a)),[c,u]}function zy(n){return Pn(n,void 0,64)}function By(n){return n&&!!n.valueDeclaration&<(n.valueDeclaration)&&!uf(n.valueDeclaration)}function GT(n=0){return n&848330095}function H0(n){return!!n.symbol&&!!(n.symbol.flags&32)&&(n===cf(n.symbol)||!!(n.flags&524288)&&!!(br(n)&16777216))}function __(){return{typeToTypeNode:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>u(Qe,Xr)),indexInfoToIndexSignatureDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>Q(Qe,Xr,void 0)),signatureToSignatureDeclaration:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>me(Qe,ve,li)),symbolToEntityName:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>Yi(Qe,li,ve,!1)),symbolToExpression:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>ic(Qe,li,ve)),symbolToTypeParameterDeclarations:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>In(Qe,Xr)),symbolToParameterDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>qt(Qe,Xr)),typeParameterToDeclaration:(Qe,ve,vn,_r)=>a(ve,vn,_r,Xr=>at(Qe,Xr)),symbolTableToDeclarationStatements:(Qe,ve,vn,_r,Xr)=>a(ve,vn,_r,li=>Ys(Qe,li,Xr)),symbolToNode:(Qe,ve,vn,_r,Xr)=>a(vn,_r,Xr,li=>n(Qe,li,ve))};function n(Qe,ve,vn){if(ve.flags&1073741824){if(Qe.valueDeclaration){let Xr=mo(Qe.valueDeclaration);if(Xr&&Pa(Xr))return Xr}let _r=Pi(Qe).nameType;if(_r&&_r.flags&9216)return ve.enclosingDeclaration=_r.symbol.valueDeclaration,P.createComputedPropertyName(ic(_r.symbol,ve,vn))}return ic(Qe,ve,vn)}function a(Qe,ve,vn,_r){x.assert(Qe===void 0||(Qe.flags&16)===0);let Xr=vn?.trackSymbol?vn.moduleResolverHost:ve&134217728?w3e(e):void 0,li={enclosingDeclaration:Qe,flags:ve||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};li.tracker=new VU(li,vn,Xr);let ci=_r(li);return li.truncating&&li.flags&1&&li.tracker.reportTruncationError(),li.encounteredError?void 0:ci}function c(Qe){return Qe.truncating?Qe.truncating:Qe.truncating=Qe.approximateLength>(Qe.flags&1?AF:i2)}function u(Qe,ve){let vn=ve.flags,_r=_(Qe,ve);return ve.flags=vn,_r}function _(Qe,ve){var vn,_r;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=ve.flags&8388608;if(ve.flags&=-8388609,!Qe){if(!(ve.flags&262144)){ve.encounteredError=!0;return}return ve.approximateLength+=3,P.createKeywordTypeNode(133)}if(ve.flags&536870912||(Qe=wm(Qe)),Qe.flags&1)return Qe.aliasSymbol?P.createTypeReferenceNode(Bn(Qe.aliasSymbol),O(Qe.aliasTypeArguments,ve)):Qe===Ct?iN(P.createKeywordTypeNode(133),3,"unresolved"):(ve.approximateLength+=3,P.createKeywordTypeNode(Qe===Qt?141:133));if(Qe.flags&2)return P.createKeywordTypeNode(159);if(Qe.flags&4)return ve.approximateLength+=6,P.createKeywordTypeNode(154);if(Qe.flags&8)return ve.approximateLength+=6,P.createKeywordTypeNode(150);if(Qe.flags&64)return ve.approximateLength+=6,P.createKeywordTypeNode(163);if(Qe.flags&16&&!Qe.aliasSymbol)return ve.approximateLength+=7,P.createKeywordTypeNode(136);if(Qe.flags&1056){if(Qe.symbol.flags&8){let fn=nu(Qe.symbol),zr=co(fn,ve,788968);if(Cs(fn)===Qe)return zr;let Ai=$s(Qe.symbol);return Sp(Ai,0)?ii(zr,P.createTypeReferenceNode(Ai,void 0)):Dh(zr)?(zr.isTypeOf=!0,P.createIndexedAccessTypeNode(zr,P.createLiteralTypeNode(P.createStringLiteral(Ai)))):Yp(zr)?P.createIndexedAccessTypeNode(P.createTypeQueryNode(zr.typeName),P.createLiteralTypeNode(P.createStringLiteral(Ai))):x.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return co(Qe.symbol,ve,788968)}if(Qe.flags&128)return ve.approximateLength+=Qe.value.length+2,P.createLiteralTypeNode($n(P.createStringLiteral(Qe.value,!!(ve.flags&268435456)),16777216));if(Qe.flags&256){let fn=Qe.value;return ve.approximateLength+=(""+fn).length,P.createLiteralTypeNode(fn<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-fn)):P.createNumericLiteral(fn))}if(Qe.flags&2048)return ve.approximateLength+=ZE(Qe.value).length+1,P.createLiteralTypeNode(P.createBigIntLiteral(Qe.value));if(Qe.flags&512)return ve.approximateLength+=Qe.intrinsicName.length,P.createLiteralTypeNode(Qe.intrinsicName==="true"?P.createTrue():P.createFalse());if(Qe.flags&8192){if(!(ve.flags&1048576)){if(rt(Qe.symbol,ve.enclosingDeclaration))return ve.approximateLength+=6,co(Qe.symbol,ve,111551);ve.tracker.reportInaccessibleUniqueSymbolError&&ve.tracker.reportInaccessibleUniqueSymbolError()}return ve.approximateLength+=13,P.createTypeOperatorNode(158,P.createKeywordTypeNode(155))}if(Qe.flags&16384)return ve.approximateLength+=4,P.createKeywordTypeNode(116);if(Qe.flags&32768)return ve.approximateLength+=9,P.createKeywordTypeNode(157);if(Qe.flags&65536)return ve.approximateLength+=4,P.createLiteralTypeNode(P.createNull());if(Qe.flags&131072)return ve.approximateLength+=5,P.createKeywordTypeNode(146);if(Qe.flags&4096)return ve.approximateLength+=6,P.createKeywordTypeNode(155);if(Qe.flags&67108864)return ve.approximateLength+=6,P.createKeywordTypeNode(151);if(YC(Qe))return ve.flags&4194304&&(!ve.encounteredError&&!(ve.flags&32768)&&(ve.encounteredError=!0),(_r=(vn=ve.tracker).reportInaccessibleThisError)==null||_r.call(vn)),ve.approximateLength+=4,P.createThisTypeNode();if(!Xr&&Qe.aliasSymbol&&(ve.flags&16384||ne(Qe.aliasSymbol,ve.enclosingDeclaration))){let fn=O(Qe.aliasTypeArguments,ve);return V0(Qe.aliasSymbol.escapedName)&&!(Qe.aliasSymbol.flags&32)?P.createTypeReferenceNode(P.createIdentifier(""),fn):yn(fn)===1&&Qe.aliasSymbol===Po.symbol?P.createArrayTypeNode(fn[0]):co(Qe.aliasSymbol,ve,788968,fn)}let li=br(Qe);if(li&4)return x.assert(!!(Qe.flags&524288)),Qe.node?Ft(Qe,xn):xn(Qe);if(Qe.flags&262144||li&3){if(Qe.flags&262144&&To(ve.inferTypeParameters,Qe)){ve.approximateLength+=$s(Qe.symbol).length+6;let zr,Ai=iu(Qe);if(Ai){let Ji=OLe(Qe,!0);Ji&&kg(Ai,Ji)||(ve.approximateLength+=9,zr=Ai&&u(Ai,ve))}return P.createInferTypeNode(We(Qe,ve,zr))}if(ve.flags&4&&Qe.flags&262144){let zr=Eo(Qe,ve);return ve.approximateLength+=ar(zr).length,P.createTypeReferenceNode(P.createIdentifier(ar(zr)),void 0)}if(Qe.symbol)return co(Qe.symbol,ve,788968);let fn=(Qe===ae||Qe===X)&&L&&L.symbol?(Qe===X?"sub-":"super-")+$s(L.symbol):"?";return P.createTypeReferenceNode(P.createIdentifier(fn),void 0)}if(Qe.flags&1048576&&Qe.origin&&(Qe=Qe.origin),Qe.flags&3145728){let fn=Qe.flags&1048576?aD(Qe.types):Qe.types;if(yn(fn)===1)return u(fn[0],ve);let zr=O(fn,ve,!0);if(zr&&zr.length>0)return Qe.flags&1048576?P.createUnionTypeNode(zr):P.createIntersectionTypeNode(zr);!ve.encounteredError&&!(ve.flags&262144)&&(ve.encounteredError=!0);return}if(li&48)return x.assert(!!(Qe.flags&524288)),Gt(Qe);if(Qe.flags&4194304){let fn=Qe.type;ve.approximateLength+=6;let zr=u(fn,ve);return P.createTypeOperatorNode(143,zr)}if(Qe.flags&134217728){let fn=Qe.texts,zr=Qe.types,Ai=P.createTemplateHead(fn[0]),Ji=P.createNodeArray(nn(zr,(Ho,Yl)=>P.createTemplateLiteralTypeSpan(u(Ho,ve),(Yl<zr.length-1?P.createTemplateMiddle:P.createTemplateTail)(fn[Yl+1]))));return ve.approximateLength+=2,P.createTemplateLiteralType(Ai,Ji)}if(Qe.flags&268435456){let fn=u(Qe.type,ve);return co(Qe.symbol,ve,788968,[fn])}if(Qe.flags&8388608){let fn=u(Qe.objectType,ve),zr=u(Qe.indexType,ve);return ve.approximateLength+=2,P.createIndexedAccessTypeNode(fn,zr)}if(Qe.flags&16777216)return Ft(Qe,fn=>ci(fn));if(Qe.flags&33554432){let fn=u(Qe.baseType,ve),zr=wP(Qe)&&r_e("NoInfer",!1);return zr?co(zr,ve,788968,[fn]):fn}return x.fail("Should be unreachable.");function ci(fn){let zr=u(fn.checkType,ve);if(ve.approximateLength+=15,ve.flags&4&&fn.root.isDistributive&&!(fn.checkType.flags&262144)){let al=zp(xa(262144,"T")),Ba=Eo(al,ve),oc=P.createTypeReferenceNode(Ba);ve.approximateLength+=37;let Ts=eA(fn.root.checkType,al,fn.mapper),Gm=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let qe=u(Gi(fn.root.extendsType,Ts),ve);ve.inferTypeParameters=Gm;let ut=xr(Gi(si(fn.root.node.trueType),Ts)),Bt=xr(Gi(si(fn.root.node.falseType),Ts));return P.createConditionalTypeNode(zr,P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(oc.typeName))),P.createConditionalTypeNode(P.createTypeReferenceNode(P.cloneNode(Ba)),u(fn.checkType,ve),P.createConditionalTypeNode(oc,qe,ut,Bt),P.createKeywordTypeNode(146)),P.createKeywordTypeNode(146))}let Ai=ve.inferTypeParameters;ve.inferTypeParameters=fn.root.inferTypeParameters;let Ji=u(fn.extendsType,ve);ve.inferTypeParameters=Ai;let Ho=xr(EE(fn)),Yl=xr(SE(fn));return P.createConditionalTypeNode(zr,Ji,Ho,Yl)}function xr(fn){var zr,Ai,Ji;return fn.flags&1048576?(zr=ve.visitedTypes)!=null&&zr.has(Hd(fn))?(ve.flags&131072||(ve.encounteredError=!0,(Ji=(Ai=ve.tracker)==null?void 0:Ai.reportCyclicStructureError)==null||Ji.call(Ai)),g(ve)):Ft(fn,Ho=>u(Ho,ve)):u(fn,ve)}function ur(fn){return!!fw(fn)}function $e(fn){return!!fn.target&&ur(fn.target)&&!ur(fn)}function It(fn){var zr;x.assert(!!(fn.flags&524288));let Ai=fn.declaration.readonlyToken?P.createToken(fn.declaration.readonlyToken.kind):void 0,Ji=fn.declaration.questionToken?P.createToken(fn.declaration.questionToken.kind):void 0,Ho,Yl,al=!fD(fn)&&!(HT(fn).flags&2)&&ve.flags&4&&!(Gp(fn).flags&262144&&((zr=iu(Gp(fn)))==null?void 0:zr.flags)&4194304);if(fD(fn)){if($e(fn)&&ve.flags&4){let ut=zp(xa(262144,"T")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt)}Ho=P.createTypeOperatorNode(143,Yl||u(HT(fn),ve))}else if(al){let ut=zp(xa(262144,"T")),Bt=Eo(ut,ve);Yl=P.createTypeReferenceNode(Bt),Ho=Yl}else Ho=u(Gp(fn),ve);let Ba=We(km(fn),ve,Ho),oc=fn.declaration.nameType?u(Dv(fn),ve):void 0,Ts=u(ob(Ng(fn),!!(ih(fn)&4)),ve),Gm=P.createMappedTypeNode(Ai,Ba,oc,Ji,Ts,void 0);ve.approximateLength+=10;let qe=$n(Gm,1);if($e(fn)&&ve.flags&4){let ut=Gi(iu(si(fn.declaration.typeParameter.constraint.type))||Zt,fn.mapper);return P.createConditionalTypeNode(u(HT(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),ut.flags&2?void 0:u(ut,ve))),qe,P.createKeywordTypeNode(146))}else if(al)return P.createConditionalTypeNode(u(Gp(fn),ve),P.createInferTypeNode(P.createTypeParameterDeclaration(void 0,P.cloneNode(Yl.typeName),P.createTypeOperatorNode(143,u(HT(fn),ve)))),qe,P.createKeywordTypeNode(146));return qe}function Gt(fn){var zr,Ai;let Ji=fn.id,Ho=fn.symbol;if(Ho){if(!!(br(fn)&8388608)){let Ts=fn.node;if(oI(Ts)&&si(Ts)===fn){let Gm=fl(ve,Ts);if(Gm)return Gm}return(zr=ve.visitedTypes)!=null&&zr.has(Ji)?g(ve):Ft(fn,Yt)}let Ba=H0(fn)?788968:111551;if(S_(Ho.valueDeclaration))return co(Ho,ve,Ba);if(Ho.flags&32&&!D$(Ho)&&!(Ho.valueDeclaration&&Kr(Ho.valueDeclaration)&&ve.flags&2048&&(!Zl(Ho.valueDeclaration)||vi(Ho,ve.enclosingDeclaration,Ba,!1).accessibility!==0))||Ho.flags&896||Yl())return co(Ho,ve,Ba);if((Ai=ve.visitedTypes)!=null&&Ai.has(Ji)){let oc=S7(fn);return oc?co(oc,ve,788968):g(ve)}else return Ft(fn,Yt)}else return Yt(fn);function Yl(){var al;let Ba=!!(Ho.flags&8192)&&ct(Ho.declarations,Ts=>zo(Ts)),oc=!!(Ho.flags&16)&&(Ho.parent||an(Ho.declarations,Ts=>Ts.parent.kind===312||Ts.parent.kind===268));if(Ba||oc)return(!!(ve.flags&4096)||((al=ve.visitedTypes)==null?void 0:al.has(Ji)))&&(!(ve.flags&8)||rt(Ho,ve.enclosingDeclaration))}}function Ft(fn,zr){var Ai,Ji,Ho;let Yl=fn.id,al=br(fn)&16&&fn.symbol&&fn.symbol.flags&32,Ba=br(fn)&4&&fn.node?"N"+Fa(fn.node):fn.flags&16777216?"N"+Fa(fn.root.node):fn.symbol?(al?"+":"")+na(fn.symbol):void 0;ve.visitedTypes||(ve.visitedTypes=new Set),Ba&&!ve.symbolDepth&&(ve.symbolDepth=new Map);let oc=ve.enclosingDeclaration&&Fr(ve.enclosingDeclaration),Ts=`${Hd(fn)}|${ve.flags}`;oc&&(oc.serializedTypes||(oc.serializedTypes=new Map));let Gm=(Ai=oc?.serializedTypes)==null?void 0:Ai.get(Ts);if(Gm)return(Ji=Gm.trackedSymbols)==null||Ji.forEach(([Rr,Si,yo])=>ve.tracker.trackSymbol(Rr,Si,yo)),Gm.truncating&&(ve.truncating=!0),ve.approximateLength+=Gm.addedLength,cn(Gm.node);let qe;if(Ba){if(qe=ve.symbolDepth.get(Ba)||0,qe>10)return g(ve);ve.symbolDepth.set(Ba,qe+1)}ve.visitedTypes.add(Yl);let ut=ve.trackedSymbols;ve.trackedSymbols=void 0;let Bt=ve.approximateLength,kn=zr(fn),pr=ve.approximateLength-Bt;return!ve.reportedDiagnostic&&!ve.encounteredError&&((Ho=oc?.serializedTypes)==null||Ho.set(Ts,{node:kn,truncating:ve.truncating,addedLength:pr,trackedSymbols:ve.trackedSymbols})),ve.visitedTypes.delete(Yl),Ba&&ve.symbolDepth.set(Ba,qe),ve.trackedSymbols=ut,kn;function cn(Rr){return!xs(Rr)&&uo(Rr)===Rr?Rr:Ze(P.cloneNode(un(Rr,cn,void 0,rr)),Rr)}function rr(Rr,Si,yo,Ko,Xo){return Rr&&Rr.length===0?Ze(P.createNodeArray(void 0,Rr.hasTrailingComma),Rr):Dn(Rr,Si,yo,Ko,Xo)}}function Yt(fn){if(vu(fn)||fn.containsError)return It(fn);let zr=Om(fn);if(!zr.properties.length&&!zr.indexInfos.length){if(!zr.callSignatures.length&&!zr.constructSignatures.length)return ve.approximateLength+=2,$n(P.createTypeLiteralNode(void 0),1);if(zr.callSignatures.length===1&&!zr.constructSignatures.length){let al=zr.callSignatures[0];return me(al,184,ve)}if(zr.constructSignatures.length===1&&!zr.callSignatures.length){let al=zr.constructSignatures[0];return me(al,185,ve)}}let Ai=Cr(zr.constructSignatures,al=>!!(al.flags&4));if(ct(Ai)){let al=nn(Ai,XT);return zr.callSignatures.length+(zr.constructSignatures.length-Ai.length)+zr.indexInfos.length+(ve.flags&2048?Wv(zr.properties,oc=>!(oc.flags&4194304)):yn(zr.properties))&&al.push(j0(zr)),u(Zo(al),ve)}let Ji=ve.flags;ve.flags|=4194304;let Ho=qi(zr);ve.flags=Ji;let Yl=P.createTypeLiteralNode(Ho);return ve.approximateLength+=2,$n(Yl,ve.flags&1024?0:1),Yl}function xn(fn){let zr=Ss(fn);if(fn.target===Po||fn.target===Oo){if(ve.flags&2){let Ho=u(zr[0],ve);return P.createTypeReferenceNode(fn.target===Po?"Array":"ReadonlyArray",[Ho])}let Ai=u(zr[0],ve),Ji=P.createArrayTypeNode(Ai);return fn.target===Po?Ji:P.createTypeOperatorNode(148,Ji)}else if(fn.target.objectFlags&8){if(zr=sc(zr,(Ai,Ji)=>ob(Ai,!!(fn.target.elementFlags[Ji]&2))),zr.length>0){let Ai=Nv(fn),Ji=O(zr.slice(0,Ai),ve);if(Ji){let{labeledElementDeclarations:Ho}=fn.target;for(let al=0;al<Ji.length;al++){let Ba=fn.target.elementFlags[al],oc=Ho?.[al];oc?Ji[al]=P.createNamedTupleMember(Ba&12?P.createToken(26):void 0,P.createIdentifier(Ii(ige(oc))),Ba&2?P.createToken(58):void 0,Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ji[al]=Ba&12?P.createRestTypeNode(Ba&4?P.createArrayTypeNode(Ji[al]):Ji[al]):Ba&2?P.createOptionalTypeNode(Ji[al]):Ji[al]}let Yl=$n(P.createTupleTypeNode(Ji),1);return fn.target.readonly?P.createTypeOperatorNode(148,Yl):Yl}}if(ve.encounteredError||ve.flags&524288){let Ai=$n(P.createTupleTypeNode([]),1);return fn.target.readonly?P.createTypeOperatorNode(148,Ai):Ai}ve.encounteredError=!0;return}else{if(ve.flags&2048&&fn.symbol.valueDeclaration&&Kr(fn.symbol.valueDeclaration)&&!rt(fn.symbol,ve.enclosingDeclaration))return Gt(fn);{let Ai=fn.target.outerTypeParameters,Ji=0,Ho;if(Ai){let oc=Ai.length;for(;Ji<oc;){let Ts=Ji,Gm=wLe(Ai[Ji]);do Ji++;while(Ji<oc&&wLe(Ai[Ji])===Gm);if(!nB(Ai,zr,Ts,Ji)){let qe=O(zr.slice(Ts,Ji),ve),ut=ve.flags;ve.flags|=16;let Bt=co(Gm,ve,788968,qe);ve.flags=ut,Ho=Ho?ii(Ho,Bt):Bt}}}let Yl;if(zr.length>0){let oc=(fn.target.typeParameters||je).length;Yl=O(zr.slice(Ji,oc),ve)}let al=ve.flags;ve.flags|=16;let Ba=co(fn.symbol,ve,788968,Yl);return ve.flags=al,Ho?ii(Ho,Ba):Ba}}}function ii(fn,zr){if(Dh(fn)){let Ai=fn.typeArguments,Ji=fn.qualifier;Ji&&(Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai)))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=Ji?P.createQualifiedName(Ji,Yl):Yl;return P.updateImportTypeNode(fn,fn.argument,fn.attributes,Ji,Ai,fn.isTypeOf)}else{let Ai=fn.typeArguments,Ji=fn.typeName;Me(Ji)?Ai!==BS(Ji)&&(Ji=av(P.cloneNode(Ji),Ai)):Ai!==BS(Ji.right)&&(Ji=P.updateQualifiedName(Ji,Ji.left,av(P.cloneNode(Ji.right),Ai))),Ai=zr.typeArguments;let Ho=Yr(zr);for(let Yl of Ho)Ji=P.createQualifiedName(Ji,Yl);return P.updateTypeReferenceNode(fn,Ji,Ai)}}function Yr(fn){let zr=fn.typeName,Ai=[];for(;!Me(zr);)Ai.unshift(zr.right),zr=zr.left;return Ai.unshift(zr),Ai}function qi(fn){if(c(ve))return[P.createPropertySignature(void 0,"...",void 0,void 0)];let zr=[];for(let Ho of fn.callSignatures)zr.push(me(Ho,179,ve));for(let Ho of fn.constructSignatures)Ho.flags&4||zr.push(me(Ho,180,ve));for(let Ho of fn.indexInfos)zr.push(Q(Ho,ve,fn.objectFlags&1024?g(ve):void 0));let Ai=fn.properties;if(!Ai)return zr;let Ji=0;for(let Ho of Ai){if(Ji++,ve.flags&2048){if(Ho.flags&4194304)continue;Kp(Ho)&6&&ve.tracker.reportPrivateInBaseOfClassExpression&&ve.tracker.reportPrivateInBaseOfClassExpression(Ii(Ho.escapedName))}if(c(ve)&&Ji+2<Ai.length-1){zr.push(P.createPropertySignature(void 0,`... ${Ai.length-Ji} more ...`,void 0,void 0)),N(Ai[Ai.length-1],ve,zr);break}N(Ho,ve,zr)}return zr.length?zr:void 0}}function g(Qe){return Qe.approximateLength+=3,Qe.flags&1?P.createKeywordTypeNode(133):P.createTypeReferenceNode(P.createIdentifier("..."),void 0)}function T(Qe,ve){var vn;return!!(tl(Qe)&8192)&&(To(ve.reverseMappedStack,Qe)||((vn=ve.reverseMappedStack)==null?void 0:vn[0])&&!(br(Da(ve.reverseMappedStack).links.propertyType)&16))}function N(Qe,ve,vn){var _r;let Xr=!!(tl(Qe)&8192),li=T(Qe,ve)?z:qy(Qe),ci=ve.enclosingDeclaration;if(ve.enclosingDeclaration=void 0,ve.tracker.canTrackSymbol&&nw(Qe.escapedName))if(Qe.declarations){let Yt=Sa(Qe.declarations);if(D7(Yt))if(Zn(Yt)){let xn=mo(Yt);xn&&Rs(xn)&&UL(xn.argumentExpression)&&Hn(xn.argumentExpression,ci,ve)}else Hn(Yt.name.expression,ci,ve)}else ve.tracker.reportNonSerializableProperty(ai(Qe));ve.enclosingDeclaration=Qe.valueDeclaration||((_r=Qe.declarations)==null?void 0:_r[0])||ci;let xr=bn(Qe,ve);if(ve.enclosingDeclaration=ci,ve.approximateLength+=$s(Qe).length+1,Qe.flags&98304){let Yt=q0(Qe);if(li!==Yt&&!Lt(li)&&!Lt(Yt)){let xn=Vs(Qe,177),ii=kf(xn);vn.push(Ol(me(ii,177,ve,{name:xr}),xn));let Yr=Vs(Qe,178),qi=kf(Yr);vn.push(Ol(me(qi,178,ve,{name:xr}),Yr));return}}let ur=Qe.flags&16777216?P.createToken(58):void 0;if(Qe.flags&8208&&!Xy(li).length&&!Bm(Qe)){let Yt=Co(Bl(li,xn=>!(xn.flags&32768)),0);for(let xn of Yt){let ii=me(xn,173,ve,{name:xr,questionToken:ur});vn.push(Ft(ii))}if(Yt.length||!ur)return}let $e;T(Qe,ve)?$e=g(ve):(Xr&&(ve.reverseMappedStack||(ve.reverseMappedStack=[]),ve.reverseMappedStack.push(Qe)),$e=li?es(ve,li,Qe,ci):P.createKeywordTypeNode(133),Xr&&ve.reverseMappedStack.pop());let It=Bm(Qe)?[P.createToken(148)]:void 0;It&&(ve.approximateLength+=9);let Gt=P.createPropertySignature(It,xr,ur,$e);vn.push(Ft(Gt));function Ft(Yt){var xn;let ii=(xn=Qe.declarations)==null?void 0:xn.find(Yr=>Yr.kind===355);if(ii){let Yr=VM(ii.comment);Yr&&Lb(Yt,[{kind:3,text:`*
* `+Yr.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Qe.valueDeclaration&&Ol(Yt,Qe.valueDeclaration);return Yt}}function O(Qe,ve,vn){if(ct(Qe)){if(c(ve))if(vn){if(Qe.length>2)return[u(Qe[0],ve),P.createTypeReferenceNode(`... ${Qe.length-2} more ...`,void 0),u(Qe[Qe.length-1],ve)]}else return[P.createTypeReferenceNode("...",void 0)];let Xr=!(ve.flags&64)?bp():void 0,li=[],ci=0;for(let xr of Qe){if(ci++,c(ve)&&ci+2<Qe.length-1){li.push(P.createTypeReferenceNode(`... ${Qe.length-ci} more ...`,void 0));let $e=u(Qe[Qe.length-1],ve);$e&&li.push($e);break}ve.approximateLength+=2;let ur=u(xr,ve);ur&&(li.push(ur),Xr&&sre(ur)&&Xr.add(ur.typeName.escapedText,[xr,li.length-1]))}if(Xr){let xr=ve.flags;ve.flags|=64,Xr.forEach(ur=>{if(!lre(ur,([$e],[It])=>B($e,It)))for(let[$e,It]of ur)li[It]=u($e,ve)}),ve.flags=xr}return li}}function B(Qe,ve){return Qe===ve||!!Qe.symbol&&Qe.symbol===ve.symbol||!!Qe.aliasSymbol&&Qe.aliasSymbol===ve.aliasSymbol}function Q(Qe,ve,vn){let _r=Cte(Qe)||"x",Xr=u(Qe.keyType,ve),li=P.createParameterDeclaration(void 0,void 0,_r,void 0,Xr,void 0);return vn||(vn=u(Qe.type||z,ve)),!Qe.type&&!(ve.flags&2097152)&&(ve.encounteredError=!0),ve.approximateLength+=_r.length+4,P.createIndexSignature(Qe.isReadonly?[P.createToken(148)]:void 0,[li],vn)}function me(Qe,ve,vn,_r){var Xr;let li=vn.flags&256;li&&(vn.flags&=-257),vn.approximateLength+=3;let ci,xr;vn.flags&32&&Qe.target&&Qe.mapper&&Qe.target.typeParameters?xr=Qe.target.typeParameters.map(qi=>u(Gi(qi,Qe.mapper),vn)):ci=Qe.typeParameters&&Qe.typeParameters.map(qi=>at(qi,vn));let ur=uLe(Qe,!0)[0],$e;if(vn.enclosingDeclaration&&Qe.declaration&&Qe.declaration!==vn.enclosingDeclaration&&!Jn(Qe.declaration)&&(ct(ur)||ct(Qe.typeParameters))){let qi=function(fn,zr){x.assert(vn.enclosingDeclaration);let Ai;Fr(vn.enclosingDeclaration).fakeScopeForSignatureDeclaration===fn?Ai=vn.enclosingDeclaration:vn.enclosingDeclaration.parent&&Fr(vn.enclosingDeclaration.parent).fakeScopeForSignatureDeclaration===fn&&(Ai=vn.enclosingDeclaration.parent),x.assertOptionalNode(Ai,Do);let Ji=Ai?.locals??Vo(),Ho;if(zr((Ba,oc)=>{Ji.has(Ba)||(Ho=pn(Ho,Ba),Ji.set(Ba,oc))}),!Ho)return;let Yl=$e;function al(){an(Ho,Ba=>Ji.delete(Ba)),Yl?.()}if(Ai)$e=al;else{let Ba=U_.createBlock(je);Fr(Ba).fakeScopeForSignatureDeclaration=fn,Ba.locals=Ji;let oc=vn.enclosingDeclaration;Ta(Ba,oc),vn.enclosingDeclaration=Ba,$e=()=>{vn.enclosingDeclaration=oc,al()}}};var It=qi;qi("params",fn=>{for(let zr of ur)fn(zr.escapedName,zr)}),vn.flags&4&&qi("typeParams",fn=>{for(let zr of Qe.typeParameters??je){let Ai=Eo(zr,vn).escapedText;fn(Ai,zr.symbol)}})}let Gt=(ct(ur,qi=>qi!==ur[ur.length-1]&&!!(tl(qi)&32768))?Qe.parameters:ur).map(qi=>qt(qi,vn,ve===176,_r?.privateSymbolVisitor,_r?.bundledImports)),Ft=vn.flags&33554432?void 0:ue(Qe,vn);Ft&&Gt.unshift(Ft);let Yt,xn=df(Qe);if(xn){let qi=xn.kind===2||xn.kind===3?P.createToken(131):void 0,fn=xn.kind===1||xn.kind===3?$n(P.createIdentifier(xn.parameterName),16777216):P.createThisTypeNode(),zr=xn.type&&u(xn.type,vn);Yt=P.createTypePredicateNode(qi,fn,zr)}else{let qi=Ha(Qe);qi&&!(li&&vt(qi))?Yt=ga(vn,qi,Qe,_r?.privateSymbolVisitor,_r?.bundledImports):li||(Yt=P.createKeywordTypeNode(133))}let ii=_r?.modifiers;if(ve===185&&Qe.flags&4){let qi=$m(ii);ii=P.createModifiersFromModifierFlags(qi|64)}let Yr=ve===179?P.createCallSignature(ci,Gt,Yt):ve===180?P.createConstructSignature(ci,Gt,Yt):ve===173?P.createMethodSignature(ii,_r?.name??P.createIdentifier(""),_r?.questionToken,ci,Gt,Yt):ve===174?P.createMethodDeclaration(ii,void 0,_r?.name??P.createIdentifier(""),void 0,ci,Gt,Yt,void 0):ve===176?P.createConstructorDeclaration(ii,Gt,void 0):ve===177?P.createGetAccessorDeclaration(ii,_r?.name??P.createIdentifier(""),Gt,Yt,void 0):ve===178?P.createSetAccessorDeclaration(ii,_r?.name??P.createIdentifier(""),Gt,void 0):ve===181?P.createIndexSignature(ii,Gt,Yt):ve===324?P.createJSDocFunctionType(Gt,Yt):ve===184?P.createFunctionTypeNode(ci,Gt,Yt??P.createTypeReferenceNode(P.createIdentifier(""))):ve===185?P.createConstructorTypeNode(ii,ci,Gt,Yt??P.createTypeReferenceNode(P.createIdentifier(""))):ve===262?P.createFunctionDeclaration(ii,void 0,_r?.name?Fo(_r.name,Me):P.createIdentifier(""),ci,Gt,Yt,void 0):ve===218?P.createFunctionExpression(ii,void 0,_r?.name?Fo(_r.name,Me):P.createIdentifier(""),ci,Gt,Yt,P.createBlock([])):ve===219?P.createArrowFunction(ii,ci,Gt,Yt,void 0,P.createBlock([])):x.assertNever(ve);if(xr&&(Yr.typeArguments=P.createNodeArray(xr)),((Xr=Qe.declaration)==null?void 0:Xr.kind)===330&&Qe.declaration.parent.kind===346){let qi=Vl(Qe.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(fn=>fn.replace(/^\s+/," ")).join(`
`);iN(Yr,3,qi,!0)}return $e?.(),Yr}function ue(Qe,ve){if(Qe.thisParameter)return qt(Qe.thisParameter,ve);if(Qe.declaration&&Jn(Qe.declaration)){let vn=k8(Qe.declaration);if(vn&&vn.typeExpression)return P.createParameterDeclaration(void 0,void 0,"this",void 0,u(si(vn.typeExpression),ve))}}function We(Qe,ve,vn){let _r=ve.flags;ve.flags&=-513;let Xr=P.createModifiersFromModifierFlags(z_e(Qe)),li=Eo(Qe,ve),ci=KT(Qe),xr=ci&&u(ci,ve);return ve.flags=_r,P.createTypeParameterDeclaration(Xr,li,vn,xr)}function at(Qe,ve,vn=iu(Qe)){let _r=vn&&u(vn,ve);return We(Qe,ve,_r)}function ht(Qe){let ve=Vs(Qe,169);if(ve)return ve;if(!L_(Qe))return Vs(Qe,348)}function qt(Qe,ve,vn,_r,Xr){let li=ht(Qe),ci=Yn(Qe);li&&eWe(li)&&(ci=ib(ci));let xr=es(ve,ci,Qe,ve.enclosingDeclaration,_r,Xr),ur=!(ve.flags&8192)&&vn&&li&&Yf(li)?nn(kE(li),P.cloneNode):void 0,It=li&&gh(li)||tl(Qe)&32768?P.createToken(26):void 0,Gt=Xt(Qe,li,ve),Yt=li&&ow(li)||tl(Qe)&16384?P.createToken(58):void 0,xn=P.createParameterDeclaration(ur,It,Gt,Yt,xr,void 0);return ve.approximateLength+=$s(Qe).length+3,xn}function Xt(Qe,ve,vn){return ve&&ve.name?ve.name.kind===80?$n(P.cloneNode(ve.name),16777216):ve.name.kind===166?$n(P.cloneNode(ve.name.right),16777216):_r(ve.name):$s(Qe);function _r(Xr){return li(Xr);function li(ci){vn.tracker.canTrackSymbol&&Pa(ci)&&Rme(ci)&&Hn(ci.expression,vn.enclosingDeclaration,vn);let xr=un(ci,li,void 0,void 0,li);return Na(xr)&&(xr=P.updateBindingElement(xr,xr.dotDotDotToken,xr.propertyName,xr.name,void 0)),xs(xr)||(xr=P.cloneNode(xr)),$n(xr,16777217)}}}function Hn(Qe,ve,vn){if(!vn.tracker.canTrackSymbol)return;let _r=dp(Qe),Xr=Xs(_r,_r.escapedText,1160127,void 0,void 0,!0);Xr&&vn.tracker.trackSymbol(Xr,ve,111551)}function En(Qe,ve,vn,_r){return ve.tracker.trackSymbol(Qe,ve.enclosingDeclaration,vn),Kt(Qe,ve,vn,_r)}function Kt(Qe,ve,vn,_r){let Xr;return!(Qe.flags&262144)&&(ve.enclosingDeclaration||ve.flags&64)&&!(ve.flags&134217728)?(Xr=x.checkDefined(ci(Qe,vn,!0)),x.assert(Xr&&Xr.length>0)):Xr=[Qe],Xr;function ci(xr,ur,$e){let It=Wy(xr,ve.enclosingDeclaration,ur,!!(ve.flags&128)),Gt;if(!It||uE(It[0],ve.enclosingDeclaration,It.length===1?ur:Ig(ur))){let Yt=cE(It?It[0]:xr,ve.enclosingDeclaration,ur);if(yn(Yt)){Gt=Yt.map(Yr=>ct(Yr.declarations,Rd)?Mn(Yr,ve):void 0);let xn=Yt.map((Yr,qi)=>qi);xn.sort(Ft);let ii=xn.map(Yr=>Yt[Yr]);for(let Yr of ii){let qi=ci(Yr,Ig(ur),!1);if(qi){if(Yr.exports&&Yr.exports.get("export=")&&Nm(Yr.exports.get("export="),xr)){It=qi;break}It=qi.concat(It||[zh(Yr,xr)||xr]);break}}}}if(It)return It;if($e||!(xr.flags&6144))return!$e&&!_r&&an(xr.declarations,Rd)?void 0:[xr];function Ft(Yt,xn){let ii=Gt[Yt],Yr=Gt[xn];if(ii&&Yr){let qi=op(Yr);return op(ii)===qi?o4(ii)-o4(Yr):qi?-1:1}return 0}}}function In(Qe,ve){let vn;return ND(Qe).flags&524384&&(vn=P.createNodeArray(nn(gr(Qe),Xr=>at(Xr,ve)))),vn}function Sn(Qe,ve,vn){var _r;x.assert(Qe&&0<=ve&&ve<Qe.length);let Xr=Qe[ve],li=na(Xr);if((_r=vn.typeParameterSymbolList)!=null&&_r.has(li))return;(vn.typeParameterSymbolList||(vn.typeParameterSymbolList=new Set)).add(li);let ci;if(vn.flags&512&&ve<Qe.length-1){let xr=Xr,ur=Qe[ve+1];if(tl(ur)&1){let $e=Ei(xr.flags&2097152?fc(xr):xr);ci=O(nn($e,It=>eb(It,ur.links.mapper)),vn)}else ci=In(Xr,vn)}return ci}function zn(Qe){return US(Qe.objectType)?zn(Qe.objectType):Qe}function Mn(Qe,ve,vn){let _r=Vs(Qe,312);if(!_r){let $e=ml(Qe.declarations,It=>zT(It,Qe));$e&&(_r=Vs($e,312))}if(_r&&_r.moduleName!==void 0)return _r.moduleName;if(!_r){if(ve.tracker.trackReferencedAmbientModule){let $e=Cr(Qe.declarations,sd);if(yn($e))for(let It of $e)ve.tracker.trackReferencedAmbientModule(It,Qe)}if(BU.test(Qe.escapedName))return Qe.escapedName.substring(1,Qe.escapedName.length-1)}if(!ve.enclosingDeclaration||!ve.tracker.moduleResolverHost)return BU.test(Qe.escapedName)?Qe.escapedName.substring(1,Qe.escapedName.length-1):Nn(h9(Qe)).fileName;let Xr=Nn(sl(ve.enclosingDeclaration)),li=vn||Xr?.impliedNodeFormat,ci=DN(Xr.path,li),xr=Pi(Qe),ur=xr.specifierCache&&xr.specifierCache.get(ci);if(!ur){let $e=!!ss(F),{moduleResolverHost:It}=ve.tracker,Gt=$e?{...F,baseUrl:It.getCommonSourceDirectory()}:F;ur=Sa(cSe(Qe,zt,Gt,Xr,It,{importModuleSpecifierPreference:$e?"non-relative":"project-relative",importModuleSpecifierEnding:$e?"minimal":li===99?"js":void 0},{overrideImportMode:vn})),xr.specifierCache??(xr.specifierCache=new Map),xr.specifierCache.set(ci,ur)}return ur}function Bn(Qe){let ve=P.createIdentifier(Ii(Qe.escapedName));return Qe.parent?P.createQualifiedName(Bn(Qe.parent),ve):ve}function co(Qe,ve,vn,_r){let Xr=En(Qe,ve,vn,!(ve.flags&16384)),li=vn===111551;if(ct(Xr[0].declarations,Rd)){let ur=Xr.length>1?xr(Xr,Xr.length-1,1):void 0,$e=_r||Sn(Xr,0,ve),It=Nn(sl(ve.enclosingDeclaration)),Gt=eW(Xr[0]),Ft,Yt;if((zd(F)===3||zd(F)===99)&&Gt?.impliedNodeFormat===99&&Gt.impliedNodeFormat!==It?.impliedNodeFormat&&(Ft=Mn(Xr[0],ve,99),Yt=P.createImportAttributes(P.createNodeArray([P.createImportAttribute(P.createStringLiteral("resolution-mode"),P.createStringLiteral("import"))]))),Ft||(Ft=Mn(Xr[0],ve)),!(ve.flags&67108864)&&zd(F)!==1&&Ft.includes("/node_modules/")){let ii=Ft;if(zd(F)===3||zd(F)===99){let Yr=It?.impliedNodeFormat===99?1:99;Ft=Mn(Xr[0],ve,Yr),Ft.includes("/node_modules/")?Ft=ii:Yt=P.createImportAttributes(P.createNodeArray([P.createImportAttribute(P.createStringLiteral("resolution-mode"),P.createStringLiteral(Yr===99?"import":"require"))]))}Yt||(ve.encounteredError=!0,ve.tracker.reportLikelyUnsafeImportRequiredError&&ve.tracker.reportLikelyUnsafeImportRequiredError(ii))}let xn=P.createLiteralTypeNode(P.createStringLiteral(Ft));if(ve.tracker.trackExternalModuleSymbolOfImportTypeNode&&ve.tracker.trackExternalModuleSymbolOfImportTypeNode(Xr[0]),ve.approximateLength+=Ft.length+10,!ur||Su(ur)){if(ur){let ii=Me(ur)?ur:ur.right;av(ii,void 0)}return P.createImportTypeNode(xn,Yt,ur,$e,li)}else{let ii=zn(ur),Yr=ii.objectType.typeName;return P.createIndexedAccessTypeNode(P.createImportTypeNode(xn,Yt,Yr,$e,li),ii.indexType)}}let ci=xr(Xr,Xr.length-1,0);if(US(ci))return ci;if(li)return P.createTypeQueryNode(ci);{let ur=Me(ci)?ci:ci.right,$e=BS(ur);return av(ur,void 0),P.createTypeReferenceNode(ci,$e)}function xr(ur,$e,It){let Gt=$e===ur.length-1?_r:Sn(ur,$e,ve),Ft=ur[$e],Yt=ur[$e-1],xn;if($e===0)ve.flags|=16777216,xn=pE(Ft,ve),ve.approximateLength+=(xn?xn.length:0)+1,ve.flags^=16777216;else if(Yt&&Qu(Yt)){let Yr=Qu(Yt);hc(Yr,(qi,fn)=>{if(Nm(qi,Ft)&&!nw(fn)&&fn!=="export=")return xn=Ii(fn),!0})}if(xn===void 0){let Yr=ml(Ft.declarations,mo);if(Yr&&Pa(Yr)&&Su(Yr.expression)){let qi=xr(ur,$e-1,It);return Su(qi)?P.createIndexedAccessTypeNode(P.createParenthesizedType(P.createTypeQueryNode(qi)),P.createTypeQueryNode(Yr.expression)):qi}xn=pE(Ft,ve)}if(ve.approximateLength+=xn.length+1,!(ve.flags&16)&&Yt&&Ky(Yt)&&Ky(Yt).get(Ft.escapedName)&&Nm(Ky(Yt).get(Ft.escapedName),Ft)){let Yr=xr(ur,$e-1,It);return US(Yr)?P.createIndexedAccessTypeNode(Yr,P.createLiteralTypeNode(P.createStringLiteral(xn))):P.createIndexedAccessTypeNode(P.createTypeReferenceNode(Yr,Gt),P.createLiteralTypeNode(P.createStringLiteral(xn)))}let ii=$n(P.createIdentifier(xn),16777216);if(Gt&&av(ii,P.createNodeArray(Gt)),ii.symbol=Ft,$e>It){let Yr=xr(ur,$e-1,It);return Su(Yr)?P.createQualifiedName(Yr,ii):x.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ii}}function no(Qe,ve,vn){let _r=Xs(ve.enclosingDeclaration,Qe,788968,void 0,Qe,!1);return _r&&_r.flags&262144?_r!==vn.symbol:!1}function Eo(Qe,ve){var vn,_r;if(ve.flags&4&&ve.typeParameterNames){let li=ve.typeParameterNames.get(Hd(Qe));if(li)return li}let Xr=Yi(Qe.symbol,ve,788968,!0);if(!(Xr.kind&80))return P.createIdentifier("(Missing type parameter)");if(ve.flags&4){let li=Xr.escapedText,ci=((vn=ve.typeParameterNamesByTextNextNameCount)==null?void 0:vn.get(li))||0,xr=li;for(;(_r=ve.typeParameterNamesByText)!=null&&_r.has(xr)||no(xr,ve,Qe);)ci++,xr=`${li}_${ci}`;if(xr!==li){let ur=BS(Xr);Xr=P.createIdentifier(xr),av(Xr,ur)}(ve.typeParameterNamesByTextNextNameCount||(ve.typeParameterNamesByTextNextNameCount=new Map)).set(li,ci),(ve.typeParameterNames||(ve.typeParameterNames=new Map)).set(Hd(Qe),Xr),(ve.typeParameterNamesByText||(ve.typeParameterNamesByText=new Set)).add(xr)}return Xr}function Yi(Qe,ve,vn,_r){let Xr=En(Qe,ve,vn);return _r&&Xr.length!==1&&!ve.encounteredError&&!(ve.flags&65536)&&(ve.encounteredError=!0),li(Xr,Xr.length-1);function li(ci,xr){let ur=Sn(ci,xr,ve),$e=ci[xr];xr===0&&(ve.flags|=16777216);let It=pE($e,ve);xr===0&&(ve.flags^=16777216);let Gt=$n(P.createIdentifier(It),16777216);return ur&&av(Gt,P.createNodeArray(ur)),Gt.symbol=$e,xr>0?P.createQualifiedName(li(ci,xr-1),Gt):Gt}}function ic(Qe,ve,vn){let _r=En(Qe,ve,vn);return Xr(_r,_r.length-1);function Xr(li,ci){let xr=Sn(li,ci,ve),ur=li[ci];ci===0&&(ve.flags|=16777216);let $e=pE(ur,ve);ci===0&&(ve.flags^=16777216);let It=$e.charCodeAt(0);if(gL(It)&&ct(ur.declarations,Rd))return P.createStringLiteral(Mn(ur,ve));if(ci===0||OV($e,oe)){let Gt=$n(P.createIdentifier($e),16777216);return xr&&av(Gt,P.createNodeArray(xr)),Gt.symbol=ur,ci>0?P.createPropertyAccessExpression(Xr(li,ci-1),Gt):Gt}else{It===91&&($e=$e.substring(1,$e.length-1),It=$e.charCodeAt(0));let Gt;if(gL(It)&&!(ur.flags&8)?Gt=P.createStringLiteral(Sf($e).replace(/\\./g,Ft=>Ft.substring(1)),It===39):""+ +$e===$e&&(Gt=P.createNumericLiteral(+$e)),!Gt){let Ft=$n(P.createIdentifier($e),16777216);xr&&av(Ft,P.createNodeArray(xr)),Ft.symbol=ur,Gt=Ft}return P.createElementAccessExpression(Xr(li,ci-1),Gt)}}}function mf(Qe){let ve=mo(Qe);return ve?Pa(ve)?!!(Xi(ve.expression).flags&402653316):Rs(ve)?!!(Xi(ve.argumentExpression).flags&402653316):ca(ve):!1}function ku(Qe){let ve=mo(Qe);return!!(ve&&ca(ve)&&(ve.singleQuote||!xs(ve)&&Ui(Vl(ve,!1),"'")))}function bn(Qe,ve){let vn=!!yn(Qe.declarations)&&ji(Qe.declarations,mf),_r=!!yn(Qe.declarations)&&ji(Qe.declarations,ku),Xr=!!(Qe.flags&8192),li=Fn(Qe,ve,_r,vn,Xr);if(li)return li;let ci=Ii(Qe.escapedName);return vF(ci,Wa(F),_r,vn,Xr)}function Fn(Qe,ve,vn,_r,Xr){let li=Pi(Qe).nameType;if(li){if(li.flags&384){let ci=""+li.value;return!Sp(ci,Wa(F))&&(_r||!Rh(ci))?P.createStringLiteral(ci,!!vn):Rh(ci)&&Ui(ci,"-")?P.createComputedPropertyName(P.createPrefixUnaryExpression(41,P.createNumericLiteral(-ci))):vF(ci,Wa(F),vn,_r,Xr)}if(li.flags&8192)return P.createComputedPropertyName(ic(li.symbol,ve,111551))}}function Bi(Qe){let ve={...Qe};return ve.typeParameterNames&&(ve.typeParameterNames=new Map(ve.typeParameterNames)),ve.typeParameterNamesByText&&(ve.typeParameterNamesByText=new Set(ve.typeParameterNamesByText)),ve.typeParameterSymbolList&&(ve.typeParameterSymbolList=new Set(ve.typeParameterSymbolList)),ve.tracker=new VU(ve,ve.tracker.inner,ve.tracker.moduleResolverHost),ve}function or(Qe,ve){return Qe.declarations&&Dr(Qe.declarations,vn=>!!Jc(vn)&&(!ve||!!Rn(vn,_r=>_r===ve)))}function po(Qe,ve){return!(br(ve)&4)||!Yp(Qe)||yn(Qe.typeArguments)>=oh(ve.target.typeParameters)}function za(Qe){for(;Fr(Qe).fakeScopeForSignatureDeclaration;)Qe=Qe.parent;return Qe}function es(Qe,ve,vn,_r,Xr,li){if(!Lt(ve)&&_r){let ur=or(vn,za(_r));if(ur&&!_s(ur)&&!Ap(ur)){let $e=Jc(ur);if(hd($e,ur,ve)&&po($e,ve)){let It=fl(Qe,$e,Xr,li);if(It)return It}}}let ci=Qe.flags;ve.flags&8192&&ve.symbol===vn&&(!Qe.enclosingDeclaration||ct(vn.declarations,ur=>Nn(ur)===Nn(Qe.enclosingDeclaration)))&&(Qe.flags|=1048576);let xr=u(ve,Qe);return Qe.flags=ci,xr}function hd(Qe,ve,vn){let _r=si(Qe);return _r===vn?!0:ao(ve)&&ve.questionToken?Wf(vn,524288)===_r:!1}function ga(Qe,ve,vn,_r,Xr){if(!Lt(ve)&&Qe.enclosingDeclaration){let li=vn.declaration&&Tf(vn.declaration),ci=za(Qe.enclosingDeclaration);if(Rn(li,xr=>xr===ci)&&li){let xr=si(li);if((xr.flags&262144&&xr.isThisType?Gi(xr,vn.mapper):xr)===ve&&po(li,ve)){let $e=fl(Qe,li,_r,Xr);if($e)return $e}}}return u(ve,Qe)}function au(Qe,ve,vn){let _r=!1,Xr=dp(Qe);if(Jn(Qe)&&(DS(Xr)||Eh(Xr.parent)||$d(Xr.parent)&&k9(Xr.parent.left)&&DS(Xr.parent.right)))return _r=!0,{introducesError:_r,node:Qe};let li=sf(Qe),ci=bs(Xr,li,!0,!0);if(ci&&(vi(ci,ve.enclosingDeclaration,li,!1).accessibility!==0?_r=!0:(ve.tracker.trackSymbol(ci,ve.enclosingDeclaration,li),vn?.(ci)),Me(Qe))){let xr=Cs(ci),ur=ci.flags&262144?Eo(xr,ve):P.cloneNode(Qe);return ur.symbol=ci,{introducesError:_r,node:$n(mr(ur,Qe),16777216)}}return{introducesError:_r,node:Qe}}function fl(Qe,ve,vn,_r){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let Xr=!1,li=Nn(ve),ci=He(ve,xr,xi);if(Xr)return;return ci===ve?Ze(P.cloneNode(ve),ve):ci;function xr(ur){if(oie(ur)||ur.kind===326)return P.createKeywordTypeNode(133);if(aie(ur))return P.createKeywordTypeNode(159);if(Bx(ur))return P.createUnionTypeNode([He(ur.type,xr,xi),P.createLiteralTypeNode(P.createNull())]);if(Rj(ur))return P.createUnionTypeNode([He(ur.type,xr,xi),P.createKeywordTypeNode(157)]);if(b6(ur))return He(ur.type,xr);if(E6(ur))return P.createArrayTypeNode(He(ur.type,xr,xi));if(YS(ur))return P.createTypeLiteralNode(nn(ur.jsDocPropertyTags,Ft=>{let Yt=Me(Ft.name)?Ft.name:Ft.name.right,xn=Fe(si(ur),Yt.escapedText),ii=xn&&Ft.typeExpression&&si(Ft.typeExpression.type)!==xn?u(xn,Qe):void 0;return P.createPropertySignature(void 0,Yt,Ft.isBracketed||Ft.typeExpression&&Rj(Ft.typeExpression.type)?P.createToken(58):void 0,ii||Ft.typeExpression&&He(Ft.typeExpression.type,xr,xi)||P.createKeywordTypeNode(133))}));if(Yp(ur)&&Me(ur.typeName)&&ur.typeName.escapedText==="")return mr(P.createKeywordTypeNode(133),ur);if((sv(ur)||Yp(ur))&&TW(ur))return P.createTypeLiteralNode([P.createIndexSignature(void 0,[P.createParameterDeclaration(void 0,void 0,"x",void 0,He(ur.typeArguments[0],xr,xi))],He(ur.typeArguments[1],xr,xi))]);if(Gx(ur))if(dx(ur)){let Ft;return P.createConstructorTypeNode(void 0,Dn(ur.typeParameters,xr,qs),Fi(ur.parameters,(Yt,xn)=>Yt.name&&Me(Yt.name)&&Yt.name.escapedText==="new"?(Ft=Yt.type,void 0):P.createParameterDeclaration(void 0,$e(Yt),It(Yt,xn),Yt.questionToken,He(Yt.type,xr,xi),void 0)),He(Ft||ur.type,xr,xi)||P.createKeywordTypeNode(133))}else return P.createFunctionTypeNode(Dn(ur.typeParameters,xr,qs),nn(ur.parameters,(Ft,Yt)=>P.createParameterDeclaration(void 0,$e(Ft),It(Ft,Yt),Ft.questionToken,He(Ft.type,xr,xi),void 0)),He(ur.type,xr,xi)||P.createKeywordTypeNode(133));if(Yp(ur)&&hL(ur)&&(!po(ur,si(ur))||ULe(ur)||tt===gD(ur,788968,!0)))return mr(u(si(ur),Qe),ur);if(ey(ur)){let Ft=Fr(ur).resolvedSymbol;return hL(ur)&&Ft&&(!ur.isTypeOf&&!(Ft.flags&788968)||!(yn(ur.typeArguments)>=oh(gr(Ft))))?mr(u(si(ur),Qe),ur):P.updateImportTypeNode(ur,P.updateLiteralTypeNode(ur.argument,Gt(ur,ur.argument.literal)),ur.attributes,ur.qualifier,Dn(ur.typeArguments,xr,xi),ur.isTypeOf)}if(Su(ur)||gl(ur)){let{introducesError:Ft,node:Yt}=au(ur,Qe,vn);if(Xr=Xr||Ft,Yt!==ur)return Yt}return li&&aI(ur)&&$a(li,ur.pos).line===$a(li,ur.end).line&&$n(ur,1),un(ur,xr,void 0);function $e(Ft){return Ft.dotDotDotToken||(Ft.type&&E6(Ft.type)?P.createToken(26):void 0)}function It(Ft,Yt){return Ft.name&&Me(Ft.name)&&Ft.name.escapedText==="this"?"this":$e(Ft)?"args":`arg${Yt}`}function Gt(Ft,Yt){if(_r){if(Qe.tracker&&Qe.tracker.moduleResolverHost){let xn=Uge(Ft);if(xn){let Yr={getCanonicalFileName:od(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>Qe.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>Qe.tracker.moduleResolverHost.getCommonSourceDirectory()},qi=wW(Yr,xn);return P.createStringLiteral(qi)}}}else if(Qe.tracker&&Qe.tracker.trackExternalModuleSymbolOfImportTypeNode){let xn=Tg(Yt,Yt,void 0);xn&&Qe.tracker.trackExternalModuleSymbolOfImportTypeNode(xn)}return Yt}}}function Ys(Qe,ve,vn){var _r;let Xr=qa(P.createPropertyDeclaration,174,!0),li=qa((Et,fr,$r,Lr)=>P.createPropertySignature(Et,fr,$r,Lr),173,!1),ci=ve.enclosingDeclaration,xr=[],ur=new Set,$e=[],It=ve;ve={...It,usedSymbolNames:new Set(It.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((_r=It.remappedSymbolReferences)==null?void 0:_r.entries()),tracker:void 0};let Gt={...It.tracker.inner,trackSymbol:(Et,fr,$r)=>{var Lr,Jr;if((Lr=ve.remappedSymbolNames)!=null&&Lr.has(na(Et)))return!1;if(vi(Et,fr,$r,!1).accessibility===0){let jo=Kt(Et,ve,$r);if(!(Et.flags&4)){let Io=jo[0],ms=Nn(It.enclosingDeclaration);ct(Io.declarations,Ja=>Nn(Ja)===ms)&&Ba(Io)}}else if((Jr=It.tracker.inner)!=null&&Jr.trackSymbol)return It.tracker.inner.trackSymbol(Et,fr,$r);return!1}};ve.tracker=new VU(ve,Gt,It.tracker.moduleResolverHost),hc(Qe,(Et,fr)=>{let $r=Ii(fr);pm(Et,$r)});let Ft=!vn,Yt=Qe.get("export=");return Yt&&Qe.size>1&&Yt.flags&2098688&&(Qe=Vo(),Qe.set("export=",Yt)),Ho(Qe),zr(xr);function xn(Et){return!!Et&&Et.kind===80}function ii(Et){return cl(Et)?Cr(nn(Et.declarationList.declarations,mo),xn):Cr([mo(Et)],xn)}function Yr(Et){let fr=Dr(Et,dl),$r=Tl(Et,Il),Lr=$r!==-1?Et[$r]:void 0;if(Lr&&fr&&fr.isExportEquals&&Me(fr.expression)&&Me(Lr.name)&&ar(Lr.name)===ar(fr.expression)&&Lr.body&&t_(Lr.body)){let Jr=Cr(Et,Io=>!!(Wd(Io)&32)),ka=Lr.name,jo=Lr.body;if(yn(Jr)&&(Lr=P.updateModuleDeclaration(Lr,Lr.modifiers,Lr.name,jo=P.updateModuleBlock(jo,P.createNodeArray([...Lr.body.statements,P.createExportDeclaration(void 0,!1,P.createNamedExports(nn(ta(Jr,Io=>ii(Io)),Io=>P.createExportSpecifier(!1,void 0,Io))),void 0)]))),Et=[...Et.slice(0,$r),Lr,...Et.slice($r+1)]),!Dr(Et,Io=>Io!==Lr&&zM(Io,ka))){xr=[];let Io=!ct(jo.statements,ms=>Wr(ms,32)||dl(ms)||xl(ms));an(jo.statements,ms=>{Ts(ms,Io?32:0)}),Et=[...Cr(Et,ms=>ms!==Lr&&ms!==fr),...xr]}}return Et}function qi(Et){let fr=Cr(Et,Lr=>xl(Lr)&&!Lr.moduleSpecifier&&!!Lr.exportClause&&$p(Lr.exportClause));yn(fr)>1&&(Et=[...Cr(Et,Jr=>!xl(Jr)||!!Jr.moduleSpecifier||!Jr.exportClause),P.createExportDeclaration(void 0,!1,P.createNamedExports(ta(fr,Jr=>Fo(Jr.exportClause,$p).elements)),void 0)]);let $r=Cr(Et,Lr=>xl(Lr)&&!!Lr.moduleSpecifier&&!!Lr.exportClause&&$p(Lr.exportClause));if(yn($r)>1){let Lr=GD($r,Jr=>ca(Jr.moduleSpecifier)?">"+Jr.moduleSpecifier.text:">");if(Lr.length!==$r.length)for(let Jr of Lr)Jr.length>1&&(Et=[...Cr(Et,ka=>!Jr.includes(ka)),P.createExportDeclaration(void 0,!1,P.createNamedExports(ta(Jr,ka=>Fo(ka.exportClause,$p).elements)),Jr[0].moduleSpecifier)])}return Et}function fn(Et){let fr=Tl(Et,$r=>xl($r)&&!$r.moduleSpecifier&&!$r.attributes&&!!$r.exportClause&&$p($r.exportClause));if(fr>=0){let $r=Et[fr],Lr=Fi($r.exportClause.elements,Jr=>{if(!Jr.propertyName){let ka=uM(Et),jo=Cr(ka,Io=>zM(Et[Io],Jr.name));if(yn(jo)&&ji(jo,Io=>e2(Et[Io]))){for(let Io of jo)Et[Io]=Ai(Et[Io]);return}}return Jr});yn(Lr)?Et[fr]=P.updateExportDeclaration($r,$r.modifiers,$r.isTypeOnly,P.updateNamedExports($r.exportClause,Lr),$r.moduleSpecifier,$r.attributes):Bv(Et,fr)}return Et}function zr(Et){return Et=Yr(Et),Et=qi(Et),Et=fn(Et),ci&&(Li(ci)&&sp(ci)||Il(ci))&&(!ct(Et,YM)||!nte(Et)&&ct(Et,j8))&&Et.push(N2(P)),Et}function Ai(Et){let fr=(Wd(Et)|32)&-129;return P.replaceModifiers(Et,fr)}function Ji(Et){let fr=Wd(Et)&-33;return P.replaceModifiers(Et,fr)}function Ho(Et,fr,$r){fr||$e.push(new Map),Et.forEach(Lr=>{Yl(Lr,!1,!!$r)}),fr||($e[$e.length-1].forEach(Lr=>{Yl(Lr,!0,!!$r)}),$e.pop())}function Yl(Et,fr,$r){let Lr=Oa(Et);if(ur.has(na(Lr)))return;if(ur.add(na(Lr)),!fr||yn(Et.declarations)&&ct(Et.declarations,ka=>!!Rn(ka,jo=>jo===ci))){let ka=ve;ve=Bi(ve),al(Et,fr,$r),ve.reportedDiagnostic&&(It.reportedDiagnostic=ve.reportedDiagnostic),ve.trackedSymbols&&(ka.trackedSymbols?x.assert(ve.trackedSymbols===ka.trackedSymbols):ka.trackedSymbols=ve.trackedSymbols),ve=ka}}function al(Et,fr,$r,Lr=Et.escapedName){var Jr,ka,jo,Io,ms,Ja;let va=Ii(Lr),nd=Lr==="default";if(fr&&!(ve.flags&131072)&&FA(va)&&!nd){ve.encounteredError=!0;return}let rd=nd&&!!(Et.flags&-113||Et.flags&16&&yn(Xa(Yn(Et))))&&!(Et.flags&2097152),Jd=!rd&&!fr&&FA(va)&&!nd;(rd||Jd)&&(fr=!0);let Sl=(fr?0:32)|(nd&&!rd?2048:0),id=Et.flags&1536&&Et.flags&7&&Lr!=="export=",Eu=id&&as(Yn(Et),Et);if((Et.flags&8208||Eu)&&cn(Yn(Et),Et,pm(Et,va),Sl),Et.flags&524288&&Gm(Et,va,Sl),Et.flags&98311&&Lr!=="export="&&!(Et.flags&4194304)&&!(Et.flags&32)&&!(Et.flags&8192)&&!Eu)if($r)aa(Et)&&(Jd=!1,rd=!1);else{let kc=Yn(Et),rp=pm(Et,va);if(kc.symbol&&kc.symbol!==Et&&kc.symbol.flags&16&&ct(kc.symbol.declarations,e0)&&((Jr=kc.symbol.members)!=null&&Jr.size||(ka=kc.symbol.exports)!=null&&ka.size))ve.remappedSymbolReferences||(ve.remappedSymbolReferences=new Map),ve.remappedSymbolReferences.set(na(kc.symbol),Et),al(kc.symbol,fr,$r,Lr),ve.remappedSymbolReferences.delete(na(kc.symbol));else if(!(Et.flags&16)&&as(kc,Et))cn(kc,Et,rp,Sl);else{let I1=Et.flags&2?KP(Et)?2:1:(jo=Et.parent)!=null&&jo.valueDeclaration&&Li((Io=Et.parent)==null?void 0:Io.valueDeclaration)?2:void 0,A_=rd||!(Et.flags&4)?rp:Vm(rp,Et),lb=Et.declarations&&Dr(Et.declarations,Vw=>yi(Vw));lb&&yc(lb.parent)&&lb.parent.declarations.length===1&&(lb=lb.parent.parent);let cb=(ms=Et.declarations)==null?void 0:ms.find(Er);if(cb&&Zn(cb.parent)&&Me(cb.parent.right)&&((Ja=kc.symbol)!=null&&Ja.valueDeclaration)&&Li(kc.symbol.valueDeclaration)){let Vw=rp===cb.parent.right.escapedText?void 0:cb.parent.right;Ts(P.createExportDeclaration(void 0,!1,P.createNamedExports([P.createExportSpecifier(!1,Vw,rp)])),0),ve.tracker.trackSymbol(kc.symbol,ve.enclosingDeclaration,111551)}else{let Vw=Ze(P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(A_,void 0,es(ve,kc,Et,ci,Ba,vn))],I1)),lb);Ts(Vw,A_!==rp?Sl&-33:Sl),A_!==rp&&!fr&&(Ts(P.createExportDeclaration(void 0,!1,P.createNamedExports([P.createExportSpecifier(!1,A_,rp)])),0),Jd=!1,rd=!1)}}}if(Et.flags&384&&pr(Et,va,Sl),Et.flags&32&&(Et.flags&4&&Et.valueDeclaration&&Zn(Et.valueDeclaration.parent)&&Dc(Et.valueDeclaration.parent.right)?oi(Et,pm(Et,va),Sl):Ko(Et,pm(Et,va),Sl)),(Et.flags&1536&&(!id||Bt(Et))||Eu)&&kn(Et,va,Sl),Et.flags&64&&!(Et.flags&32)&&qe(Et,va,Sl),Et.flags&2097152&&oi(Et,pm(Et,va),Sl),Et.flags&4&&Et.escapedName==="export="&&aa(Et),Et.flags&8388608&&Et.declarations)for(let kc of Et.declarations){let rp=jd(kc,kc.moduleSpecifier);rp&&Ts(P.createExportDeclaration(void 0,kc.isTypeOnly,void 0,P.createStringLiteral(Mn(rp,ve))),0)}rd?Ts(P.createExportAssignment(void 0,!1,P.createIdentifier(pm(Et,va))),0):Jd&&Ts(P.createExportDeclaration(void 0,!1,P.createNamedExports([P.createExportSpecifier(!1,pm(Et,va),va)])),0)}function Ba(Et){if(ct(Et.declarations,JE))return;x.assertIsDefined($e[$e.length-1]),Vm(Ii(Et.escapedName),Et);let fr=!!(Et.flags&2097152)&&!ct(Et.declarations,$r=>!!Rn($r,xl)||V_($r)||Nc($r)&&!j_($r.moduleReference));$e[fr?0:$e.length-1].set(na(Et),Et)}function oc(Et){return Li(Et)&&(sp(Et)||yf(Et))||sd(Et)&&!qm(Et)}function Ts(Et,fr){if(Yf(Et)){let $r=0,Lr=ve.enclosingDeclaration&&(bf(ve.enclosingDeclaration)?Nn(ve.enclosingDeclaration):ve.enclosingDeclaration);fr&32&&Lr&&(oc(Lr)||Il(Lr))&&e2(Et)&&($r|=32),Ft&&!($r&32)&&(!Lr||!(Lr.flags&33554432))&&(kb(Et)||cl(Et)||Ql(Et)||Zl(Et)||Il(Et))&&($r|=128),fr&2048&&(Zl(Et)||Gd(Et)||Ql(Et))&&($r|=2048),$r&&(Et=P.replaceModifiers(Et,$r|Wd(Et)))}xr.push(Et)}function Gm(Et,fr,$r){var Lr;let Jr=ZMe(Et),ka=Pi(Et).typeParameters,jo=nn(ka,rd=>at(rd,ve)),Io=(Lr=Et.declarations)==null?void 0:Lr.find(bf),ms=VM(Io?Io.comment||Io.parent.comment:void 0),Ja=ve.flags;ve.flags|=8388608;let va=ve.enclosingDeclaration;ve.enclosingDeclaration=Io;let nd=Io&&Io.typeExpression&&f0(Io.typeExpression)&&fl(ve,Io.typeExpression.type,Ba,vn)||u(Jr,ve);Ts(Lb(P.createTypeAliasDeclaration(void 0,pm(Et,fr),jo,nd),ms?[{kind:3,text:`*
* `+ms.replace(/\n/g,`
* `)+`
`,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),$r),ve.flags=Ja,ve.enclosingDeclaration=va}function qe(Et,fr,$r){let Lr=cf(Et),Jr=gr(Et),ka=nn(Jr,Jd=>at(Jd,ve)),jo=ep(Lr),Io=yn(jo)?Zo(jo):void 0,ms=ta(Xa(Lr),Jd=>ac(Jd,Io)),Ja=dh(0,Lr,Io,179),va=dh(1,Lr,Io,180),nd=Bg(Lr,Io),rd=yn(jo)?[P.createHeritageClause(96,Fi(jo,Jd=>mA(Jd,111551)))]:void 0;Ts(P.createInterfaceDeclaration(void 0,pm(Et,fr),ka,rd,[...nd,...va,...Ja,...ms]),$r)}function ut(Et){let fr=bo(Qu(Et).values()),$r=Oa(Et);if($r!==Et){let Lr=new Set(fr);for(let Jr of Qu($r).values())Qc(yl(Jr))&111551||Lr.add(Jr);fr=bo(Lr)}return Cr(fr,Lr=>Si(Lr)&&Sp(Lr.escapedName,99))}function Bt(Et){return ji(ut(Et),fr=>!(Qc(yl(fr))&111551))}function kn(Et,fr,$r){let Lr=ut(Et),Jr=fM(Lr,Io=>Io.parent&&Io.parent===Et?"real":"merged"),ka=Jr.get("real")||je,jo=Jr.get("merged")||je;if(yn(ka)){let Io=pm(Et,fr);Rr(ka,Io,$r,!!(Et.flags&67108880))}if(yn(jo)){let Io=Nn(ve.enclosingDeclaration),ms=pm(Et,fr),Ja=P.createModuleBlock([P.createExportDeclaration(void 0,!1,P.createNamedExports(Fi(Cr(jo,va=>va.escapedName!=="export="),va=>{var nd,rd;let Jd=Ii(va.escapedName),Sl=pm(va,Jd),id=va.declarations&&im(va);if(Io&&(id?Io!==Nn(id):!ct(va.declarations,rp=>Nn(rp)===Io))){(rd=(nd=ve.tracker)==null?void 0:nd.reportNonlocalAugmentation)==null||rd.call(nd,Io,Et,va);return}let Eu=id&&fp(id,!0);Ba(Eu||va);let kc=Eu?pm(Eu,Ii(Eu.escapedName)):Sl;return P.createExportSpecifier(!1,Jd===kc?void 0:kc,Jd)})))]);Ts(P.createModuleDeclaration(void 0,P.createIdentifier(ms),Ja,32),0)}}function pr(Et,fr,$r){Ts(P.createEnumDeclaration(P.createModifiersFromModifierFlags(uge(Et)?4096:0),pm(Et,fr),nn(Cr(Xa(Yn(Et)),Lr=>!!(Lr.flags&8)),Lr=>{let Jr=Lr.declarations&&Lr.declarations[0]&&p0(Lr.declarations[0])?Gge(Lr.declarations[0]):void 0;return P.createEnumMember(Ii(Lr.escapedName),Jr===void 0?void 0:typeof Jr=="string"?P.createStringLiteral(Jr):P.createNumericLiteral(Jr))})),$r)}function cn(Et,fr,$r,Lr){let Jr=Co(Et,0);for(let ka of Jr){let jo=me(ka,262,ve,{name:P.createIdentifier($r),privateSymbolVisitor:Ba,bundledImports:vn});Ts(Ze(jo,rr(ka)),Lr)}if(!(fr.flags&1536&&fr.exports&&fr.exports.size)){let ka=Cr(Xa(Et),Si);Rr(ka,$r,Lr,!0)}}function rr(Et){if(Et.declaration&&Et.declaration.parent){if(Zn(Et.declaration.parent)&&hl(Et.declaration.parent)===5)return Et.declaration.parent;if(yi(Et.declaration.parent)&&Et.declaration.parent.parent)return Et.declaration.parent.parent}return Et.declaration}function Rr(Et,fr,$r,Lr){if(yn(Et)){let ka=fM(Et,Sl=>!yn(Sl.declarations)||ct(Sl.declarations,id=>Nn(id)===Nn(ve.enclosingDeclaration))?"local":"remote").get("local")||je,jo=U_.createModuleDeclaration(void 0,P.createIdentifier(fr),P.createModuleBlock([]),32);Ta(jo,ci),jo.locals=Vo(Et),jo.symbol=Et[0].parent;let Io=xr;xr=[];let ms=Ft;Ft=!1;let Ja={...ve,enclosingDeclaration:jo},va=ve;ve=Ja,Ho(Vo(ka),Lr,!0),ve=va,Ft=ms;let nd=xr;xr=Io;let rd=nn(nd,Sl=>dl(Sl)&&!Sl.isExportEquals&&Me(Sl.expression)?P.createExportDeclaration(void 0,!1,P.createNamedExports([P.createExportSpecifier(!1,Sl.expression,P.createIdentifier("default"))])):Sl),Jd=ji(rd,Sl=>Wr(Sl,32))?nn(rd,Ji):rd;jo=P.updateModuleDeclaration(jo,jo.modifiers,jo.name,P.createModuleBlock(Jd)),Ts(jo,$r)}}function Si(Et){return!!(Et.flags&2887656)||!(Et.flags&4194304||Et.escapedName==="prototype"||Et.valueDeclaration&&zo(Et.valueDeclaration)&&Kr(Et.valueDeclaration.parent))}function yo(Et){let fr=Fi(Et,$r=>{let Lr=ve.enclosingDeclaration;ve.enclosingDeclaration=$r;let Jr=$r.expression;if(gl(Jr)){if(Me(Jr)&&ar(Jr)==="")return ka(void 0);let jo;if({introducesError:jo,node:Jr}=au(Jr,ve,Ba),jo)return ka(void 0)}return ka(P.createExpressionWithTypeArguments(Jr,nn($r.typeArguments,jo=>fl(ve,jo,Ba,vn)||u(si(jo),ve))));function ka(jo){return ve.enclosingDeclaration=Lr,jo}});if(fr.length===Et.length)return fr}function Ko(Et,fr,$r){var Lr,Jr;let ka=(Lr=Et.declarations)==null?void 0:Lr.find(Kr),jo=ve.enclosingDeclaration;ve.enclosingDeclaration=ka||jo;let Io=gr(Et),ms=nn(Io,I_=>at(I_,ve)),Ja=hp(cf(Et)),va=ep(Ja),nd=ka&&fx(ka),rd=nd&&yo(nd)||Fi(Lm(Ja),sM),Jd=Yn(Et),Sl=!!((Jr=Jd.symbol)!=null&&Jr.valueDeclaration)&&Kr(Jd.symbol.valueDeclaration),id=Sl?Zu(Jd):z,Eu=[...yn(va)?[P.createHeritageClause(96,nn(va,I_=>fA(I_,id,fr)))]:[],...yn(rd)?[P.createHeritageClause(119,rd)]:[]],kc=Idt(Ja,va,Xa(Ja)),rp=Cr(kc,I_=>{let lM=I_.valueDeclaration;return!!lM&&!(Ld(lM)&&Ci(lM.name))}),A_=ct(kc,I_=>{let lM=I_.valueDeclaration;return!!lM&&Ld(lM)&&Ci(lM.name)})?[P.createPropertyDeclaration(void 0,P.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:je,lb=ta(rp,I_=>Xr(I_,!1,va[0])),cb=ta(Cr(Xa(Jd),I_=>!(I_.flags&4194304)&&I_.escapedName!=="prototype"&&!Si(I_)),I_=>Xr(I_,!0,id)),Vpt=!Sl&&!!Et.valueDeclaration&&Jn(Et.valueDeclaration)&&!ct(Co(Jd,1))?[P.createConstructorDeclaration(P.createModifiersFromModifierFlags(2),[],void 0)]:dh(1,Jd,id,176),jpt=Bg(Ja,va[0]);ve.enclosingDeclaration=jo,Ts(Ze(P.createClassDeclaration(void 0,fr,ms,Eu,[...jpt,...cb,...Vpt,...lb,...A_]),Et.declarations&&Cr(Et.declarations,I_=>Zl(I_)||Dc(I_))[0]),$r)}function Xo(Et){return ml(Et,fr=>{if(Iu(fr)||Ed(fr))return ar(fr.propertyName||fr.name);if(Zn(fr)||dl(fr)){let $r=dl(fr)?fr.expression:fr.right;if(Er($r))return ar($r.name)}if(Py(fr)){let $r=mo(fr);if($r&&Me($r))return ar($r)}})}function oi(Et,fr,$r){var Lr,Jr,ka,jo,Io,ms;let Ja=im(Et);if(!Ja)return x.fail();let va=Oa(fp(Ja,!0));if(!va)return;let nd=pC(va)&&Xo(Et.declarations)||Ii(va.escapedName);nd==="export="&&q&&(nd="default");let rd=pm(va,nd);switch(Ba(va),Ja.kind){case 208:if(((Jr=(Lr=Ja.parent)==null?void 0:Lr.parent)==null?void 0:Jr.kind)===260){let id=Mn(va.parent||va,ve),{propertyName:Eu}=Ja;Ts(P.createImportDeclaration(void 0,P.createImportClause(!1,void 0,P.createNamedImports([P.createImportSpecifier(!1,Eu&&Me(Eu)?P.createIdentifier(ar(Eu)):void 0,P.createIdentifier(fr))])),P.createStringLiteral(id),void 0),0);break}x.failBadSyntaxKind(((ka=Ja.parent)==null?void 0:ka.parent)||Ja,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Io=(jo=Ja.parent)==null?void 0:jo.parent)==null?void 0:Io.kind)===226&&go(Ii(Et.escapedName),rd);break;case 260:if(Er(Ja.initializer)){let id=Ja.initializer,Eu=P.createUniqueName(fr),kc=Mn(va.parent||va,ve);Ts(P.createImportEqualsDeclaration(void 0,!1,Eu,P.createExternalModuleReference(P.createStringLiteral(kc))),0),Ts(P.createImportEqualsDeclaration(void 0,!1,P.createIdentifier(fr),P.createQualifiedName(Eu,id.name)),$r);break}case 271:if(va.escapedName==="export="&&ct(va.declarations,id=>Li(id)&&yf(id))){aa(Et);break}let Jd=!(va.flags&512)&&!yi(Ja);Ts(P.createImportEqualsDeclaration(void 0,!1,P.createIdentifier(fr),Jd?Yi(va,ve,-1,!1):P.createExternalModuleReference(P.createStringLiteral(Mn(va,ve)))),Jd?$r:0);break;case 270:Ts(P.createNamespaceExportDeclaration(ar(Ja.name)),0);break;case 273:{let id=Mn(va.parent||va,ve),Eu=vn?P.createStringLiteral(id):Ja.parent.moduleSpecifier;Ts(P.createImportDeclaration(void 0,P.createImportClause(!1,P.createIdentifier(fr),void 0),Eu,Ja.parent.attributes),0);break}case 274:{let id=Mn(va.parent||va,ve),Eu=vn?P.createStringLiteral(id):Ja.parent.parent.moduleSpecifier;Ts(P.createImportDeclaration(void 0,P.createImportClause(!1,void 0,P.createNamespaceImport(P.createIdentifier(fr))),Eu,Ja.parent.attributes),0);break}case 280:Ts(P.createExportDeclaration(void 0,!1,P.createNamespaceExport(P.createIdentifier(fr)),P.createStringLiteral(Mn(va,ve))),0);break;case 276:{let id=Mn(va.parent||va,ve),Eu=vn?P.createStringLiteral(id):Ja.parent.parent.parent.moduleSpecifier;Ts(P.createImportDeclaration(void 0,P.createImportClause(!1,void 0,P.createNamedImports([P.createImportSpecifier(!1,fr!==nd?P.createIdentifier(nd):void 0,P.createIdentifier(fr))])),Eu,Ja.parent.parent.parent.attributes),0);break}case 281:let Sl=Ja.parent.parent.moduleSpecifier;Sl&&((ms=Ja.propertyName)==null?void 0:ms.escapedText)==="default"&&(nd="default"),go(Ii(Et.escapedName),Sl?nd:rd,Sl&&Ga(Sl)?P.createStringLiteral(Sl.text):void 0);break;case 277:aa(Et);break;case 226:case 211:case 212:Et.escapedName==="default"||Et.escapedName==="export="?aa(Et):go(fr,rd);break;default:return x.failBadSyntaxKind(Ja,"Unhandled alias declaration kind in symbol serializer!")}}function go(Et,fr,$r){Ts(P.createExportDeclaration(void 0,!1,P.createNamedExports([P.createExportSpecifier(!1,Et!==fr?fr:void 0,Et)]),$r),0)}function aa(Et){var fr;if(Et.flags&4194304)return!1;let $r=Ii(Et.escapedName),Lr=$r==="export=",ka=Lr||$r==="default",jo=Et.declarations&&im(Et),Io=jo&&fp(jo,!0);if(Io&&yn(Io.declarations)&&ct(Io.declarations,ms=>Nn(ms)===Nn(ci))){let ms=jo&&(dl(jo)||Zn(jo)?j9(jo):ine(jo)),Ja=ms&&gl(ms)?zdt(ms):void 0,va=Ja&&bs(Ja,-1,!0,!0,ci);(va||Io)&&Ba(va||Io);let nd=ve.tracker.disableTrackSymbol;if(ve.tracker.disableTrackSymbol=!0,ka)xr.push(P.createExportAssignment(void 0,Lr,ic(Io,ve,-1)));else if(Ja===ms&&Ja)go($r,ar(Ja));else if(ms&&Dc(ms))go($r,pm(Io,$s(Io)));else{let rd=Vm($r,Et);Ts(P.createImportEqualsDeclaration(void 0,!1,P.createIdentifier(rd),Yi(Io,ve,-1,!1)),0),go($r,rd)}return ve.tracker.disableTrackSymbol=nd,!0}else{let ms=Vm($r,Et),Ja=gp(Yn(Oa(Et)));if(as(Ja,Et))cn(Ja,Et,ms,ka?0:32);else{let va=((fr=ve.enclosingDeclaration)==null?void 0:fr.kind)===267&&(!(Et.flags&98304)||Et.flags&65536)?1:2,nd=P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(ms,void 0,es(ve,Ja,Et,ci,Ba,vn))],va));Ts(nd,Io&&Io.flags&4&&Io.escapedName==="export="?128:$r===ms?32:0)}return ka?(xr.push(P.createExportAssignment(void 0,Lr,P.createIdentifier(ms))),!0):$r!==ms?(go($r,ms),!0):!1}}function as(Et,fr){let $r=Nn(ve.enclosingDeclaration);return br(Et)&48&&!yn(Ud(Et))&&!H0(Et)&&!!(yn(Cr(Xa(Et),Si))||yn(Co(Et,0)))&&!yn(Co(Et,1))&&!or(fr,ci)&&!(Et.symbol&&ct(Et.symbol.declarations,Lr=>Nn(Lr)!==$r))&&!ct(Xa(Et),Lr=>nw(Lr.escapedName))&&!ct(Xa(Et),Lr=>ct(Lr.declarations,Jr=>Nn(Jr)!==$r))&&ji(Xa(Et),Lr=>Sp($s(Lr),oe)?Lr.flags&98304?qy(Lr)===q0(Lr):!0:!1)}function qa(Et,fr,$r){return function(Jr,ka,jo){var Io,ms,Ja,va,nd;let rd=Kp(Jr),Jd=!!(rd&2);if(ka&&Jr.flags&2887656)return[];if(Jr.flags&4194304||Jr.escapedName==="constructor"||jo&&Qo(jo,Jr.escapedName)&&Bm(Qo(jo,Jr.escapedName))===Bm(Jr)&&(Jr.flags&16777216)===(Qo(jo,Jr.escapedName).flags&16777216)&&kg(Yn(Jr),Fe(jo,Jr.escapedName)))return[];let Sl=rd&-1025|(ka?256:0),id=bn(Jr,ve),Eu=(Io=Jr.declarations)==null?void 0:Io.find(hm(xo,Kv,yi,Gu,Zn,Er));if(Jr.flags&98304&&$r){let kc=[];if(Jr.flags&65536){let rp=Jr.declarations&&an(Jr.declarations,A_=>{if(A_.kind===178)return A_;if(Bo(A_)&&CS(A_))return an(A_.arguments[2].properties,lb=>{let cb=mo(lb);if(cb&&Me(cb)&&ar(cb)==="set")return lb})});x.assert(!!rp);let I1=_s(rp)?kf(rp).parameters[0]:void 0;kc.push(Ze(P.createSetAccessorDeclaration(P.createModifiersFromModifierFlags(Sl),id,[P.createParameterDeclaration(void 0,void 0,I1?Xt(I1,ht(I1),ve):"value",void 0,Jd?void 0:es(ve,Yn(Jr),Jr,ci,Ba,vn))],void 0),((ms=Jr.declarations)==null?void 0:ms.find($g))||Eu))}if(Jr.flags&32768){let rp=rd&2;kc.push(Ze(P.createGetAccessorDeclaration(P.createModifiersFromModifierFlags(Sl),id,[],rp?void 0:es(ve,Yn(Jr),Jr,ci,Ba,vn),void 0),((Ja=Jr.declarations)==null?void 0:Ja.find(Yv))||Eu))}return kc}else if(Jr.flags&98311)return Ze(Et(P.createModifiersFromModifierFlags((Bm(Jr)?8:0)|Sl),id,Jr.flags&16777216?P.createToken(58):void 0,Jd?void 0:es(ve,q0(Jr),Jr,ci,Ba,vn),void 0),((va=Jr.declarations)==null?void 0:va.find(hm(xo,yi)))||Eu);if(Jr.flags&8208){let kc=Yn(Jr),rp=Co(kc,0);if(Sl&2)return Ze(Et(P.createModifiersFromModifierFlags((Bm(Jr)?8:0)|Sl),id,Jr.flags&16777216?P.createToken(58):void 0,void 0,void 0),((nd=Jr.declarations)==null?void 0:nd.find(_s))||rp[0]&&rp[0].declaration||Jr.declarations&&Jr.declarations[0]);let I1=[];for(let A_ of rp){let lb=me(A_,fr,ve,{name:id,questionToken:Jr.flags&16777216?P.createToken(58):void 0,modifiers:Sl?P.createModifiersFromModifierFlags(Sl):void 0}),cb=A_.declaration&&AL(A_.declaration.parent)?A_.declaration.parent:A_.declaration;I1.push(Ze(lb,cb))}return I1}return x.fail(`Unhandled class member kind! ${Jr.__debugFlags||Jr.flags}`)}}function ac(Et,fr){return li(Et,!1,fr)}function dh(Et,fr,$r,Lr){let Jr=Co(fr,Et);if(Et===1){if(!$r&&ji(Jr,Io=>yn(Io.parameters)===0))return[];if($r){let Io=Co($r,1);if(!yn(Io)&&ji(Jr,ms=>yn(ms.parameters)===0))return[];if(Io.length===Jr.length){let ms=!1;for(let Ja=0;Ja<Io.length;Ja++)if(!$7(Jr[Ja],Io[Ja],!1,!1,!0,_w)){ms=!0;break}if(!ms)return[]}}let jo=0;for(let Io of Jr)Io.declaration&&(jo|=BA(Io.declaration,6));if(jo)return[Ze(P.createConstructorDeclaration(P.createModifiersFromModifierFlags(jo),[],void 0),Jr[0].declaration)]}let ka=[];for(let jo of Jr){let Io=me(jo,Lr,ve);ka.push(Ze(Io,jo.declaration))}return ka}function Bg(Et,fr){let $r=[];for(let Lr of Ud(Et)){if(fr){let Jr=Uh(fr,Lr.keyType);if(Jr&&kg(Lr.type,Jr.type))continue}$r.push(Q(Lr,ve,void 0))}return $r}function fA(Et,fr,$r){let Lr=mA(Et,111551);if(Lr)return Lr;let Jr=Vm(`${$r}_base`),ka=P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(Jr,void 0,u(fr,ve))],2));return Ts(ka,0),P.createExpressionWithTypeArguments(P.createIdentifier(Jr),void 0)}function mA(Et,fr){let $r,Lr;if(Et.target&&Ht(Et.target.symbol,ci,fr)?($r=nn(Ss(Et),Jr=>u(Jr,ve)),Lr=ic(Et.target.symbol,ve,788968)):Et.symbol&&Ht(Et.symbol,ci,fr)&&(Lr=ic(Et.symbol,ve,788968)),Lr)return P.createExpressionWithTypeArguments(Lr,$r)}function sM(Et){let fr=mA(Et,788968);if(fr)return fr;if(Et.symbol)return P.createExpressionWithTypeArguments(ic(Et.symbol,ve,788968),void 0)}function Vm(Et,fr){var $r,Lr;let Jr=fr?na(fr):void 0;if(Jr&&ve.remappedSymbolNames.has(Jr))return ve.remappedSymbolNames.get(Jr);fr&&(Et=A1(fr,Et));let ka=0,jo=Et;for(;($r=ve.usedSymbolNames)!=null&&$r.has(Et);)ka++,Et=`${jo}_${ka}`;return(Lr=ve.usedSymbolNames)==null||Lr.add(Et),Jr&&ve.remappedSymbolNames.set(Jr,Et),Et}function A1(Et,fr){if(fr==="default"||fr==="__class"||fr==="__function"){let $r=ve.flags;ve.flags|=16777216;let Lr=pE(Et,ve);ve.flags=$r,fr=Lr.length>0&&gL(Lr.charCodeAt(0))?Sf(Lr):Lr}return fr==="default"?fr="_default":fr==="export="&&(fr="_exports"),fr=Sp(fr,oe)&&!FA(fr)?fr:"_"+fr.replace(/[^a-zA-Z0-9]/g,"_"),fr}function pm(Et,fr){let $r=na(Et);return ve.remappedSymbolNames.has($r)?ve.remappedSymbolNames.get($r):(fr=A1(Et,fr),ve.remappedSymbolNames.set($r,fr),fr)}}}function th(n,a,c=16384,u){return u?_(u).getText():dC(_);function _(g){let T=P.createTypePredicateNode(n.kind===2||n.kind===3?P.createToken(131):void 0,n.kind===1||n.kind===3?P.createIdentifier(n.parameterName):P.createThisTypeNode(),n.type&&ft.typeToTypeNode(n.type,a,GT(c)|70221824|512)),N=y0(),O=a&&Nn(a);return N.writeNode(4,T,O,g),g}}function aD(n){let a=[],c=0;for(let u=0;u<n.length;u++){let _=n[u];if(c|=_.flags,!(_.flags&98304)){if(_.flags&1568){let g=_.flags&512?ti:M$(_);if(g.flags&1048576){let T=g.types.length;if(u+T<=n.length&&qd(n[u+T-1])===qd(g.types[T-1])){a.push(g),u+=T-1;continue}}}a.push(_)}}return c&65536&&a.push(se),c&32768&&a.push(Re),a||n}function VT(n){return n===2?"private":n===4?"protected":"public"}function S7(n){if(n.symbol&&n.symbol.flags&2048&&n.symbol.declarations){let a=PL(n.symbol.declarations[0].parent);if(Xf(a))return dr(a)}}function Gy(n){return n&&n.parent&&n.parent.kind===268&&zE(n.parent.parent)}function QO(n){return n.kind===312||sd(n)}function ZO(n,a){let c=Pi(n).nameType;if(c){if(c.flags&384){let u=""+c.value;return!Sp(u,Wa(F))&&!Rh(u)?`"${Th(u,34)}"`:Rh(u)&&Ui(u,"-")?`[${u}]`:u}if(c.flags&8192)return`[${pE(c.symbol,a)}]`}}function pE(n,a){var c;if((c=a?.remappedSymbolReferences)!=null&&c.has(na(n))&&(n=a.remappedSymbolReferences.get(na(n))),a&&n.escapedName==="default"&&!(a.flags&16384)&&(!(a.flags&16777216)||!n.declarations||a.enclosingDeclaration&&Rn(n.declarations[0],QO)!==Rn(a.enclosingDeclaration,QO)))return"default";if(n.declarations&&n.declarations.length){let _=ml(n.declarations,T=>mo(T)?T:void 0),g=_&&mo(_);if(_&&g){if(Bo(_)&&CS(_))return $s(n);if(Pa(g)&&!(tl(n)&4096)){let T=Pi(n).nameType;if(T&&T.flags&384){let N=ZO(n,a);if(N!==void 0)return N}}return is(g)}if(_||(_=n.declarations[0]),_.parent&&_.parent.kind===260)return is(_.parent.name);switch(_.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),_.kind===231?"(Anonymous class)":"(Anonymous function)"}}let u=ZO(n,a);return u!==void 0?u:$s(n)}function Pm(n){if(n){let c=Fr(n);return c.isVisible===void 0&&(c.isVisible=!!a()),c.isVisible}return!1;function a(){switch(n.kind){case 345:case 353:case 347:return!!(n.parent&&n.parent.parent&&n.parent.parent.parent&&Li(n.parent.parent.parent));case 208:return Pm(n.parent.parent);case 260:if(ko(n.name)&&!n.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(zE(n))return!0;let c=J(n);return!(AZ(n)&32)&&!(n.kind!==271&&c.kind!==312&&c.flags&33554432)?Y_(c):Pm(c);case 172:case 171:case 177:case 178:case 174:case 173:if(zu(n,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return Pm(n.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function RP(n,a){let c;n.parent&&n.parent.kind===277?c=Xs(n,n.escapedText,2998271,void 0,n,!1):n.parent.kind===281&&(c=aE(n.parent,2998271));let u,_;return c&&(_=new Set,_.add(na(c)),g(c.declarations)),u;function g(T){an(T,N=>{let O=RT(N)||N;if(a?Fr(N).isVisible=!0:(u=u||[],jp(u,O)),ox(N)){let B=N.moduleReference,Q=dp(B),me=Xs(N,Q.escapedText,901119,void 0,void 0,!1);me&&_&&db(_,na(me))&&g(me.declarations)}})}}function nh(n,a){let c=u1(n,a);if(c>=0){let{length:u}=Vc;for(let _=c;_<u;_++)gg[_]=!1;return!1}return Vc.push(n),gg.push(!0),$b.push(a),!0}function u1(n,a){for(let c=Vc.length-1;c>=UI;c--){if(ew(Vc[c],$b[c]))return-1;if(Vc[c]===n&&$b[c]===a)return c}return-1}function ew(n,a){switch(a){case 0:return!!Pi(n).type;case 5:return!!Fr(n).resolvedEnumType;case 2:return!!Pi(n).declaredType;case 1:return!!n.resolvedBaseConstructorType;case 3:return!!n.resolvedReturnType;case 4:return!!n.immediateBaseConstraint;case 6:return!!n.resolvedTypeArguments;case 7:return!!n.baseTypesResolved;case 8:return!!Pi(n).writeType;case 9:return Fr(n).parameterInitializerContainsUndefined!==void 0}return x.assertNever(a)}function h_(){return Vc.pop(),$b.pop(),gg.pop()}function J(n){return Rn(Xm(n),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function ye(n){let a=Cs(nu(n));return a.typeParameters?Cv(a,nn(a.typeParameters,c=>z)):a}function Fe(n,a){let c=Qo(n,a);return c?Yn(c):void 0}function mt(n,a){var c;let u;return Fe(n,a)||(u=(c=m1(n,a))==null?void 0:c.type)&&Mu(u,!0,!0)}function vt(n){return n&&(n.flags&1)!==0}function Lt(n){return n===it||!!(n.flags&1&&n.aliasSymbol)}function Sr(n,a){if(a!==0)return jT(n,!1,a);let c=dr(n);return c&&Pi(c).type||jT(n,!1,a)}function bi(n,a,c){if(n=Bl(n,O=>!(O.flags&98304)),n.flags&131072)return da;if(n.flags&1048576)return Gs(n,O=>bi(O,a,c));let u=Br(nn(a,Pv)),_=[],g=[];for(let O of Xa(n)){let B=vD(O,8576);!ea(B,u)&&!(Kp(O)&6)&&Y$(O)?_.push(O):g.push(B)}if(QT(n)||ZT(u)){if(g.length&&(u=Br([u,...g])),u.flags&131072)return n;let O=Jtt();return O?hD(O,[n,u]):it}let T=Vo();for(let O of _)T.set(O.escapedName,A_e(O,!1));let N=cs(c,T,je,je,Ud(n));return N.objectFlags|=4194304,N}function fi(n){return!!(n.flags&465829888)&&ol(md(n)||Zt,32768)}function Zr(n){let a=dm(n,fi)?Gs(n,c=>c.flags&465829888?Pg(c):c):n;return Wf(a,524288)}function Mi(n,a){let c=Ua(n);return c?ab(c,a):a}function Ua(n){let a=os(n);if(a&&DL(a)&&a.flowNode){let c=Ma(n);if(c){let u=Ze(U_.createStringLiteral(c),n),_=Tu(a)?a:U_.createParenthesizedExpression(a),g=Ze(U_.createElementAccessExpression(_,u),n);return Ta(u,g),Ta(g,n),_!==a&&Ta(_,g),g.flowNode=a.flowNode,g}}}function os(n){let a=n.parent.parent;switch(a.kind){case 208:case 303:return Ua(a);case 209:return Ua(n.parent);case 260:return a.initializer;case 226:return a.right}}function Ma(n){let a=n.parent;return n.kind===208&&a.kind===206?lf(n.propertyName||n.name):n.kind===303||n.kind===304?lf(n.name):""+a.elements.indexOf(n)}function lf(n){let a=Pv(n);return a.flags&384?""+a.value:void 0}function g_(n){let a=n.dotDotDotToken?32:0,c=Sr(n.parent.parent,a);return c&&Vh(n,c,!1)}function Vh(n,a,c){if(vt(a))return a;let u=n.parent;H&&n.flags&33554432&&JE(n)?a=Wg(a):H&&u.parent.initializer&&!wf(Oke(u.parent.initializer),65536)&&(a=Wf(a,524288));let _;if(u.kind===206)if(n.dotDotDotToken){if(a=wm(a),a.flags&2||!p5(a))return we(n,f.Rest_types_may_only_be_created_from_object_types),it;let g=[];for(let T of u.elements)T.dotDotDotToken||g.push(T.propertyName||T.name);_=bi(a,g,n.symbol)}else{let g=n.propertyName||n.name,T=Pv(g),N=tp(a,T,32,g);_=Mi(n,N)}else{let g=Ov(65|(n.dotDotDotToken?0:128),a,Re,u),T=u.elements.indexOf(n);if(n.dotDotDotToken){let N=Gs(a,O=>O.flags&58982400?Pg(O):O);_=Lu(N,ha)?Gs(N,O=>FP(O,T)):_d(g)}else if(Lv(a)){let N=Wm(T),O=32|(c||XP(n)?16:0),B=Qy(a,N,O,n.name)||it;_=Mi(n,B)}else _=g}return n.initializer?Jc(B1(n))?H&&!wf($P(n,0),16777216)?Zr(_):_:tZ(n,Br([Zr(_),$P(n,0)],2)):_}function xg(n){let a=bb(n);if(a)return si(a)}function Rg(n){let a=Ka(n,!0);return a.kind===106||a.kind===80&&cm(a)===Le}function Vy(n){let a=Ka(n,!0);return a.kind===209&&a.elements.length===0}function Mu(n,a=!1,c=!0){return H&&c?ib(n,a):n}function jT(n,a,c){if(yi(n)&&n.parent.parent.kind===249){let T=v_(Fhe(Xi(n.parent.parent.expression,c)));return T.flags&4456448?v2e(T):Ie}if(yi(n)&&n.parent.parent.kind===250){let T=n.parent.parent;return F5(T)||z}if(ko(n.parent))return g_(n);let u=xo(n)&&!Ym(n)||Gu(n)||lie(n),_=a&&$C(n),g=Wi(n);if(f9(n))return g?vt(g)||g===Zt?g:it:pe?Zt:z;if(g)return Mu(g,u,_);if((ce||Jn(n))&&yi(n)&&!ko(n.name)&&!(AZ(n)&32)&&!(n.flags&33554432)){if(!(lS(n)&6)&&(!n.initializer||Rg(n.initializer)))return Je;if(n.initializer&&Vy(n.initializer))return Sc}if(ao(n)){let T=n.parent;if(T.kind===178&&pD(T)){let B=Vs(dr(n.parent),177);if(B){let Q=kf(B),me=Jge(T);return me&&n===me?(x.assert(!me.type),Yn(Q.thisParameter)):Ha(Q)}}let N=ytt(T,n);if(N)return N;let O=n.symbol.escapedName==="this"?iOe(T):oOe(n);if(O)return Mu(O,!1,_)}if(SS(n)&&n.initializer){if(Jn(n)&&!ao(n)){let N=Ea(n,dr(n),yL(n));if(N)return N}let T=tZ(n,$P(n,c));return Mu(T,u,_)}if(xo(n)&&(ce||Jn(n)))if(jl(n)){let T=Cr(n.parent.members,nl),N=T.length?Dg(n.symbol,T):Wd(n)&128?cQ(n.symbol):void 0;return N&&Mu(N,!0,_)}else{let T=Ag(n.parent),N=T?jy(n.symbol,T):Wd(n)&128?cQ(n.symbol):void 0;return N&&Mu(N,!0,_)}if(r_(n))return An;if(ko(n.name))return D(n.name,!1,!0)}function sD(n){if(n.valueDeclaration&&Zn(n.valueDeclaration)){let a=Pi(n);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!CP(n)&&ji(n.declarations,c=>Zn(c)&&kQ(c)&&(c.left.kind!==212||Tp(c.left.argumentExpression))&&!zl(void 0,c,n,c))),a.isConstructorDeclaredProperty}return!1}function DP(n){let a=n.valueDeclaration;return a&&xo(a)&&!Jc(a)&&!a.initializer&&(ce||Jn(a))}function CP(n){if(n.declarations)for(let a of n.declarations){let c=lu(a,!1,!1);if(c&&(c.kind===176||S_(c)))return c}}function fE(n){let a=Nn(n.declarations[0]),c=Ii(n.escapedName),u=n.declarations.every(g=>Jn(g)&&ds(g)&&Eh(g.expression)),_=u?P.createPropertyAccessExpression(P.createPropertyAccessExpression(P.createIdentifier("module"),P.createIdentifier("exports")),c):P.createPropertyAccessExpression(P.createIdentifier("exports"),c);return u&&Ta(_.expression.expression,_.expression),Ta(_.expression,_),Ta(_,a),_.flowNode=a.endFlowNode,ab(_,Je,Re)}function Dg(n,a){let c=Ui(n.escapedName,"__#")?P.createPrivateIdentifier(n.escapedName.split("@")[1]):Ii(n.escapedName);for(let u of a){let _=P.createPropertyAccessExpression(P.createThis(),c);Ta(_.expression,_),Ta(_,u),_.flowNode=u.returnFlowNode;let g=lD(_,n);if(ce&&(g===Je||g===Sc)&&we(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,ai(n),Pn(g)),!Lu(g,h5))return zw(g)}}function jy(n,a){let c=Ui(n.escapedName,"__#")?P.createPrivateIdentifier(n.escapedName.split("@")[1]):Ii(n.escapedName),u=P.createPropertyAccessExpression(P.createThis(),c);Ta(u.expression,u),Ta(u,a),u.flowNode=a.returnFlowNode;let _=lD(u,n);return ce&&(_===Je||_===Sc)&&we(n.valueDeclaration,f.Member_0_implicitly_has_an_1_type,ai(n),Pn(_)),Lu(_,h5)?void 0:zw(_)}function lD(n,a){let c=a?.valueDeclaration&&(!DP(a)||Wd(a.valueDeclaration)&128)&&cQ(a)||Re;return ab(n,Je,c)}function _p(n,a){let c=LA(n.valueDeclaration);if(c){let N=Jn(c)?yb(c):void 0;return N&&N.typeExpression?si(N.typeExpression):n.valueDeclaration&&Ea(n.valueDeclaration,n,c)||eS(Ml(c))}let u,_=!1,g=!1;if(sD(n)&&(u=jy(n,CP(n))),!u){let N;if(n.declarations){let O;for(let B of n.declarations){let Q=Zn(B)||Bo(B)?B:ds(B)?Zn(B.parent)?B.parent:B:void 0;if(!Q)continue;let me=ds(Q)?TL(Q):hl(Q);(me===4||Zn(Q)&&kQ(Q,me))&&(NP(Q)?_=!0:g=!0),Bo(Q)||(O=zl(O,Q,n,B)),O||(N||(N=[])).push(Zn(Q)||Bo(Q)?mE(n,a,Q,me):Ar)}u=O}if(!u){if(!yn(N))return it;let O=_&&n.declarations?Uy(N,n.declarations):void 0;if(g){let Q=cQ(n);Q&&((O||(O=[])).push(Q),_=!0)}let B=ct(O,Q=>!!(Q.flags&-98305))?O:N;u=Br(B)}}let T=gp(Mu(u,!1,g&&!_));return n.valueDeclaration&&Jn(n.valueDeclaration)&&Bl(T,N=>!!(N.flags&-98305))===Ar?(IE(n.valueDeclaration,z),z):T}function Ea(n,a,c){var u,_;if(!Jn(n)||!c||!fa(c)||c.properties.length)return;let g=Vo();for(;Zn(n)||Er(n);){let O=Wp(n);(u=O?.exports)!=null&&u.size&&Cm(g,O.exports),n=Zn(n)?n.parent:n.parent.parent}let T=Wp(n);(_=T?.exports)!=null&&_.size&&Cm(g,T.exports);let N=cs(a,g,je,je,je);return N.objectFlags|=4096,N}function zl(n,a,c,u){var _;let g=Jc(a.parent);if(g){let T=gp(si(g));if(n)!Lt(n)&&!Lt(T)&&!kg(n,T)&&c8e(void 0,n,u,T);else return T}if((_=c.parent)!=null&&_.valueDeclaration){let T=B0(c.parent);if(T.valueDeclaration){let N=Jc(T.valueDeclaration);if(N){let O=Qo(si(N),c.escapedName);if(O)return qy(O)}}}return n}function mE(n,a,c,u){if(Bo(c)){if(a)return Yn(a);let T=Ml(c.arguments[2]),N=Fe(T,"value");if(N)return N;let O=Fe(T,"get");if(O){let Q=dA(O);if(Q)return Ha(Q)}let B=Fe(T,"set");if(B){let Q=dA(B);if(Q)return oge(Q)}return z}if(p1(c.left,c.right))return z;let _=u===1&&(Er(c.left)||Rs(c.left))&&(Eh(c.left.expression)||Me(c.left.expression)&&DS(c.left.expression)),g=a?Yn(a):_?qd(Ml(c.right)):eS(Ml(c.right));if(g.flags&524288&&u===2&&n.escapedName==="export="){let T=Om(g),N=Vo();$8(T.members,N);let O=N.size;a&&!a.exports&&(a.exports=Vo()),(a||n).exports.forEach((Q,me)=>{var ue;let We=N.get(me);if(We&&We!==Q&&!(Q.flags&2097152))if(Q.flags&111551&&We.flags&111551){if(Q.valueDeclaration&&We.valueDeclaration&&Nn(Q.valueDeclaration)!==Nn(We.valueDeclaration)){let ht=Ii(Q.escapedName),qt=((ue=Vr(We.valueDeclaration,Ld))==null?void 0:ue.name)||We.valueDeclaration;pa(we(Q.valueDeclaration,f.Duplicate_identifier_0,ht),vr(qt,f._0_was_also_declared_here,ht)),pa(we(qt,f.Duplicate_identifier_0,ht),vr(Q.valueDeclaration,f._0_was_also_declared_here,ht))}let at=xa(Q.flags|We.flags,me);at.links.type=Br([Yn(Q),Yn(We)]),at.valueDeclaration=We.valueDeclaration,at.declarations=ro(We.declarations,Q.declarations),N.set(me,at)}else N.set(me,Pf(Q,We));else N.set(me,Q)});let B=cs(O!==N.size?void 0:T.symbol,N,T.callSignatures,T.constructSignatures,T.indexInfos);if(O===N.size&&(g.aliasSymbol&&(B.aliasSymbol=g.aliasSymbol,B.aliasTypeArguments=g.aliasTypeArguments),br(g)&4)){B.aliasSymbol=g.symbol;let Q=Ss(g);B.aliasTypeArguments=yn(Q)?Q:void 0}return B.objectFlags|=br(g)&4096,B.symbol&&B.symbol.flags&32&&g===cf(B.symbol)&&(B.objectFlags|=16777216),B}return uQ(g)?(IE(c,Nl),Nl):g}function p1(n,a){return Er(n)&&n.expression.kind===110&&EN(a,c=>Zc(n,c))}function NP(n){let a=lu(n,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!AL(a.parent)}function Uy(n,a){return x.assert(n.length===a.length),n.filter((c,u)=>{let _=a[u],g=Zn(_)?_:Zn(_.parent)?_.parent:void 0;return g&&NP(g)})}function PP(n,a,c){if(n.initializer){let u=ko(n.name)?D(n.name,!0,!1):Zt;return Mu(tZ(n,$P(n,c?0:1,u)))}return ko(n.name)?D(n.name,a,c):(c&&!ir(n)&&IE(n,z),a?on:z)}function Un(n,a,c){let u=Vo(),_,g=131200;an(n.elements,N=>{let O=N.propertyName||N.name;if(N.dotDotDotToken){_=ah(Ie,z,!1);return}let B=Pv(O);if(!Af(B)){g|=512;return}let Q=If(B),me=4|(N.initializer?16777216:0),ue=xa(me,Q);ue.links.type=PP(N,a,c),ue.links.bindingElement=N,u.set(ue.escapedName,ue)});let T=cs(void 0,u,je,je,_?[_]:je);return T.objectFlags|=g,a&&(T.pattern=n,T.objectFlags|=131072),T}function y(n,a,c){let u=n.elements,_=Ns(u),g=_&&_.kind===208&&_.dotDotDotToken?_:void 0;if(u.length===0||u.length===1&&g)return oe>=2?n2e(z):Nl;let T=nn(u,Q=>vc(Q)?z:PP(Q,a,c)),N=Uw(u,Q=>!(Q===g||vc(Q)||XP(Q)),u.length-1)+1,O=nn(u,(Q,me)=>Q===g?4:me>=N?2:1),B=sh(T,O);return a&&(B=WLe(B),B.pattern=n,B.objectFlags|=131072),B}function D(n,a=!1,c=!1){return n.kind===206?Un(n,a,c):y(n,a,c)}function w(n,a){return kt(jT(n,!0,0),n,a)}function ie(n){let a=Fr(n);if(!a.resolvedType){let c=xa(4096,"__importAttributes"),u=Vo();an(n.elements,g=>{let T=xa(4,SF(g));T.parent=c,T.links.type=Bdt(g),T.links.target=T,u.set(T.escapedName,T)});let _=cs(c,u,je,je,je);_.objectFlags|=262272,a.resolvedType=_}return a.resolvedType}function Be(n){let a=Wp(n),c=Ott(!1);return c&&a&&a===c}function kt(n,a,c){return n?(n.flags&4096&&Be(a.parent)&&(n=I_e(a)),c&&yQ(a,n),n.flags&8192&&(Na(a)||!a.type)&&n.symbol!==dr(a)&&(n=di),gp(n)):(n=ao(a)&&a.dotDotDotToken?Nl:z,c&&(ir(a)||IE(a,n)),n)}function ir(n){let a=Xm(n),c=a.kind===169?a.parent:a;return L5(c)}function Wi(n){let a=Jc(n);if(a)return si(a)}function Es(n){let a=n.valueDeclaration;return a?(Na(a)&&(a=B1(a)),ao(a)?nQ(a.parent):!1):!1}function Mm(n,a){let c=Pi(n);if(!c.type){let u=Hy(n,a);return!c.type&&!Es(n)&&!a&&(c.type=u),u}return c.type}function Hy(n,a){if(n.flags&4194304)return ye(n);if(n===st)return z;if(n.flags&134217728&&n.valueDeclaration){let _=dr(Nn(n.valueDeclaration)),g=xa(_.flags,"exports");g.declarations=_.declarations?_.declarations.slice():[],g.parent=n,g.links.target=_,_.valueDeclaration&&(g.valueDeclaration=_.valueDeclaration),_.members&&(g.members=new Map(_.members)),_.exports&&(g.exports=new Map(_.exports));let T=Vo();return T.set("exports",g),cs(n,T,je,je,je)}x.assertIsDefined(n.valueDeclaration);let c=n.valueDeclaration;if(Li(c)&&yf(c))return c.statements.length?gp(eS(Xi(c.statements[0].expression))):da;if(Kv(c))return hE(n);if(!nh(n,0))return n.flags&512&&!(n.flags&67108864)?MP(n):Na(c)&&a===1?it:cD(n);let u;if(c.kind===277)u=kt(Wi(c)||Ml(c.expression),c);else if(Zn(c)||Jn(c)&&(Bo(c)||(Er(c)||RW(c))&&Zn(c.parent)))u=_p(n);else if(Er(c)||Rs(c)||Me(c)||Ga(c)||Bu(c)||Zl(c)||Ql(c)||El(c)&&!qf(c)||z_(c)||Li(c)){if(n.flags&9136)return MP(n);u=Zn(c.parent)?_p(n):Wi(c)||z}else if(Hl(c))u=Wi(c)||Owe(c);else if(r_(c))u=Wi(c)||gOe(c);else if(xu(c))u=Wi(c)||ZP(c.name,0);else if(qf(c))u=Wi(c)||wwe(c,0);else if(ao(c)||xo(c)||Gu(c)||yi(c)||Na(c)||iC(c))u=w(c,!0);else if(kb(c))u=MP(n);else if(p0(c))u=C$(n);else return x.fail("Unhandled declaration kind! "+x.formatSyntaxKind(c.kind)+" for "+x.formatSymbol(n));return h_()?u:n.flags&512&&!(n.flags&67108864)?MP(n):Na(c)&&a===1?u:cD(n)}function lm(n){if(n)switch(n.kind){case 177:return Tf(n);case 178:return mne(n);case 172:return x.assert(Ym(n)),Jc(n)}}function _E(n){let a=lm(n);return a&&si(a)}function R$(n){let a=Jge(n);return a&&a.symbol}function Tme(n){return bE(kf(n))}function hE(n){let a=Pi(n);if(!a.type){if(!nh(n,0))return it;let c=Vs(n,177),u=Vs(n,178),_=Vr(Vs(n,172),su),g=c&&Jn(c)&&xg(c)||_E(c)||_E(u)||_E(_)||c&&c.body&&QQ(c)||_&&_.initializer&&w(_,!0);g||(u&&!L5(u)?jc(ce,u,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ai(n)):c&&!L5(c)?jc(ce,c,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ai(n)):_&&!L5(_)&&jc(ce,_,f.Member_0_implicitly_has_an_1_type,ai(n),"any"),g=z),h_()||(lm(c)?we(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ai(n)):lm(u)||lm(_)?we(u,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ai(n)):c&&ce&&we(c,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,ai(n)),g=z),a.type=g}return a.type}function T7(n){let a=Pi(n);if(!a.writeType){if(!nh(n,8))return it;let c=Vs(n,178)??Vr(Vs(n,172),su),u=_E(c);h_()||(lm(c)&&we(c,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ai(n)),u=z),a.writeType=u||hE(n)}return a.writeType}function D$(n){let a=Zu(cf(n));return a.flags&8650752?a:a.flags&2097152?Dr(a.types,c=>!!(c.flags&8650752)):void 0}function MP(n){let a=Pi(n),c=a;if(!a.type){let u=n.valueDeclaration&&YQ(n.valueDeclaration,!1);if(u){let _=Zhe(n,u);_&&(n=_,a=_.links)}c.type=a.type=A7(n)}return a.type}function A7(n){let a=n.valueDeclaration;if(n.flags&1536&&pC(n))return z;if(a&&(a.kind===226||ds(a)&&a.parent.kind===226))return _p(n);if(n.flags&512&&a&&Li(a)&&a.commonJsModuleIndicator){let u=$u(n);if(u!==n){if(!nh(n,0))return it;let _=Oa(n.exports.get("export=")),g=_p(_,_===u?void 0:u);return h_()?g:cD(n)}}let c=af(16,n);if(n.flags&32){let u=D$(n);return u?Zo([c,u]):c}else return H&&n.flags&16777216?ib(c,!0):c}function C$(n){let a=Pi(n);return a.type||(a.type=nLe(n))}function N$(n){let a=Pi(n);if(!a.type){if(!nh(n,0))return it;let c=fc(n),u=n.declarations&&fp(im(n),!0),_=ml(u?.declarations,g=>dl(g)?Wi(g):void 0);if(a.type=u?.declarations&&_Z(u.declarations)&&n.declarations.length?fE(u):_Z(n.declarations)?Je:_||(Qc(c)&111551?Yn(c):it),!h_())return cD(u??n),a.type=it}return a.type}function Ame(n){let a=Pi(n);return a.type||(a.type=Gi(Yn(a.target),a.mapper))}function Ime(n){let a=Pi(n);return a.writeType||(a.writeType=Gi(q0(a.target),a.mapper))}function cD(n){let a=n.valueDeclaration;if(a){if(Jc(a))return we(n.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ai(n)),it;ce&&(a.kind!==169||a.initializer)&&we(n.valueDeclaration,f._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ai(n))}else if(n.flags&2097152){let c=im(n);c&&we(c,f.Circular_definition_of_import_alias_0,ai(n))}return z}function P$(n){let a=Pi(n);return a.type||(x.assertIsDefined(a.deferralParent),x.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Br(a.deferralConstituents):Zo(a.deferralConstituents)),a.type}function I7(n){let a=Pi(n);return!a.writeType&&a.deferralWriteConstituents&&(x.assertIsDefined(a.deferralParent),x.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Br(a.deferralWriteConstituents):Zo(a.deferralWriteConstituents)),a.writeType}function q0(n){let a=tl(n);return n.flags&4?a&2?a&65536?I7(n)||P$(n):n.links.writeType||n.links.type:ob(Yn(n),!!(n.flags&16777216)):n.flags&98304?a&1?Ime(n):T7(n):Yn(n)}function Yn(n,a){let c=tl(n);return c&65536?P$(n):c&1?Ame(n):c&262144?ett(n):c&8192?mit(n):n.flags&7?Mm(n,a):n.flags&9136?MP(n):n.flags&8?C$(n):n.flags&98304?hE(n):n.flags&2097152?N$(n):it}function qy(n){return ob(Yn(n),!!(n.flags&16777216))}function Jy(n,a){return n!==void 0&&a!==void 0&&(br(n)&4)!==0&&n.target===a}function Rv(n){return br(n)&4?n.target:n}function dD(n,a){return c(n);function c(u){if(br(u)&7){let _=Rv(u);return _===a||ct(ep(_),c)}else if(u.flags&2097152)return ct(u.types,c);return!1}}function gE(n,a){for(let c of a)n=Kh(n,UT(dr(c)));return n}function hn(n,a){for(;;){if(n=n.parent,n&&Zn(n)){let c=hl(n);if(c===6||c===3){let u=dr(n.left);u&&u.parent&&!Rn(u.parent.valueDeclaration,_=>n===_)&&(n=u.parent.valueDeclaration)}}if(!n)return;switch(n.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{let u=hn(n,a);if(n.kind===200)return pn(u,UT(dr(n.typeParameter)));if(n.kind===194)return ro(u,C2e(n));let _=gE(u,qv(n)),g=a&&(n.kind===263||n.kind===231||n.kind===264||S_(n))&&cf(dr(n)).thisType;return g?pn(_,g):_}case 348:let c=NL(n);c&&(n=c.valueDeclaration);break;case 327:{let u=hn(n,a);return n.tags?gE(u,ta(n.tags,_=>Df(_)?_.typeParameters:void 0)):u}}}}function Tr(n){var a;let c=n.flags&32||n.flags&16?n.valueDeclaration:(a=n.declarations)==null?void 0:a.find(u=>{if(u.kind===264)return!0;if(u.kind!==260)return!1;let _=u.initializer;return!!_&&(_.kind===218||_.kind===219)});return x.assert(!!c,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),hn(c)}function gr(n){if(!n.declarations)return;let a;for(let c of n.declarations)(c.kind===264||c.kind===263||c.kind===231||S_(c)||RL(c))&&(a=gE(a,qv(c)));return a}function Ei(n){return ro(Tr(n),gr(n))}function hi(n){let a=Co(n,1);if(a.length===1){let c=a[0];if(!c.typeParameters&&c.parameters.length===1&&Td(c)){let u=A5(c.parameters[0]);return vt(u)||Z7(u)===z}}return!1}function wa(n){if(Co(n,1).length>0)return!0;if(n.flags&8650752){let a=md(n);return!!a&&hi(a)}return!1}function ns(n){let a=ig(n.symbol);return a&&Jm(a)}function Dd(n,a,c){let u=yn(a),_=Jn(c);return Cr(Co(n,1),g=>(_||u>=oh(g.typeParameters))&&u<=yn(g.typeParameters))}function rh(n,a,c){let u=Dd(n,a,c),_=nn(a,si);return sc(u,g=>ct(g.typeParameters)?aw(g,_,Jn(c)):g)}function Zu(n){if(!n.resolvedBaseConstructorType){let a=ig(n.symbol),c=a&&Jm(a),u=ns(n);if(!u)return n.resolvedBaseConstructorType=Re;if(!nh(n,1))return it;let _=Xi(u.expression);if(c&&u!==c&&(x.assert(!c.typeArguments),Xi(c.expression)),_.flags&2621440&&Om(_),!h_())return we(n.symbol.valueDeclaration,f._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ai(n.symbol)),n.resolvedBaseConstructorType=it;if(!(_.flags&1)&&_!==Pe&&!wa(_)){let g=we(u.expression,f.Type_0_is_not_a_constructor_function_type,Pn(_));if(_.flags&262144){let T=OP(_),N=Zt;if(T){let O=Co(T,1);O[0]&&(N=Ha(O[0]))}_.symbol.declarations&&pa(g,vr(_.symbol.declarations[0],f.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ai(_.symbol),Pn(N)))}return n.resolvedBaseConstructorType=it}n.resolvedBaseConstructorType=_}return n.resolvedBaseConstructorType}function Lm(n){let a=je;if(n.symbol.declarations)for(let c of n.symbol.declarations){let u=fx(c);if(u)for(let _ of u){let g=si(_);Lt(g)||(a===je?a=[g]:a.push(g))}}return a}function Cg(n,a){we(n,f.Type_0_recursively_references_itself_as_a_base_type,Pn(a,void 0,2))}function ep(n){if(!n.baseTypesResolved){if(nh(n,7)&&(n.objectFlags&8?n.resolvedBaseTypes=[uD(n)]:n.symbol.flags&96?(n.symbol.flags&32&&tw(n),n.symbol.flags&64&&Cet(n)):x.fail("type must be class or interface"),!h_()&&n.symbol.declarations))for(let a of n.symbol.declarations)(a.kind===263||a.kind===264)&&Cg(a,n);n.baseTypesResolved=!0}return n.resolvedBaseTypes}function uD(n){let a=sc(n.typeParameters,(c,u)=>n.elementFlags[u]&8?tp(c,gt):c);return _d(Br(a||je),n.readonly)}function tw(n){n.resolvedBaseTypes=TF;let a=ou(Zu(n));if(!(a.flags&2621441))return n.resolvedBaseTypes=je;let c=ns(n),u,_=a.symbol?Cs(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&Det(_))u=FLe(c,a.symbol);else if(a.flags&1)u=a;else{let T=rh(a,c.typeArguments,c);if(!T.length)return we(c.expression,f.No_base_constructor_has_the_specified_number_of_type_arguments),n.resolvedBaseTypes=je;u=Ha(T[0])}if(Lt(u))return n.resolvedBaseTypes=je;let g=wm(u);if(!x7(g)){let T=zme(void 0,u),N=So(T,f.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,Pn(g));return La.add(eg(Nn(c.expression),c.expression,N)),n.resolvedBaseTypes=je}return n===g||dD(g,n)?(we(n.symbol.valueDeclaration,f.Type_0_recursively_references_itself_as_a_base_type,Pn(n,void 0,2)),n.resolvedBaseTypes=je):(n.resolvedBaseTypes===TF&&(n.members=void 0),n.resolvedBaseTypes=[g])}function Det(n){let a=n.outerTypeParameters;if(a){let c=a.length-1,u=Ss(n);return a[c].symbol!==u[c].symbol}return!0}function x7(n){if(n.flags&262144){let a=md(n);if(a)return x7(a)}return!!(n.flags&67633153&&!vu(n)||n.flags&2097152&&ji(n.types,x7))}function Cet(n){if(n.resolvedBaseTypes=n.resolvedBaseTypes||je,n.symbol.declarations){for(let a of n.symbol.declarations)if(a.kind===264&&SC(a))for(let c of SC(a)){let u=wm(si(c));Lt(u)||(x7(u)?n!==u&&!dD(u,n)?n.resolvedBaseTypes===je?n.resolvedBaseTypes=[u]:n.resolvedBaseTypes.push(u):Cg(a,n):we(c,f.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function Net(n){if(!n.declarations)return!0;for(let a of n.declarations)if(a.kind===264){if(a.flags&256)return!1;let c=SC(a);if(c){for(let u of c)if(gl(u.expression)){let _=bs(u.expression,788968,!0);if(!_||!(_.flags&64)||cf(_).thisType)return!1}}}return!0}function cf(n){let a=Pi(n),c=a;if(!a.declaredType){let u=n.flags&32?1:2,_=Zhe(n,n.valueDeclaration&&vst(n.valueDeclaration));_&&(n=_,a=_.links);let g=c.declaredType=a.declaredType=af(u,n),T=Tr(n),N=gr(n);(T||N||u===1||!Net(n))&&(g.objectFlags|=4,g.typeParameters=ro(T,N),g.outerTypeParameters=T,g.localTypeParameters=N,g.instantiations=new Map,g.instantiations.set(Of(g.typeParameters),g),g.target=g,g.resolvedTypeArguments=g.typeParameters,g.thisType=zp(n),g.thisType.isThisType=!0,g.thisType.constraint=g)}return a.declaredType}function ZMe(n){var a;let c=Pi(n);if(!c.declaredType){if(!nh(n,2))return it;let u=x.checkDefined((a=n.declarations)==null?void 0:a.find(RL),"Type alias symbol with no valid declaration found"),_=bf(u)?u.typeExpression:u.type,g=_?si(_):it;if(h_()){let T=gr(n);T&&(c.typeParameters=T,c.instantiations=new Map,c.instantiations.set(Of(T),g))}else g=it,u.kind===347?we(u.typeExpression.type,f.Type_alias_0_circularly_references_itself,ai(n)):we(Ld(u)&&u.name||u,f.Type_alias_0_circularly_references_itself,ai(n));c.declaredType=g}return c.declaredType}function M$(n){return n.flags&1056&&n.symbol.flags&8?Cs(nu(n.symbol)):n}function eLe(n){let a=Pi(n);if(!a.declaredType){let c=[];if(n.declarations){for(let _ of n.declarations)if(_.kind===266){for(let g of _.members)if(pD(g)){let T=dr(g),N=MD(g),O=v1(N!==void 0?Xnt(N,na(n),T):tLe(T));Pi(T).declaredType=O,c.push(qd(O))}}}let u=c.length?Br(c,1,n,void 0):tLe(n);u.flags&1048576&&(u.flags|=1024,u.symbol=n),a.declaredType=u}return a.declaredType}function tLe(n){let a=Gh(32,n),c=Gh(32,n);return a.regularType=a,a.freshType=c,c.regularType=a,c.freshType=c,a}function nLe(n){let a=Pi(n);if(!a.declaredType){let c=eLe(nu(n));a.declaredType||(a.declaredType=c)}return a.declaredType}function UT(n){let a=Pi(n);return a.declaredType||(a.declaredType=zp(n))}function Pet(n){let a=Pi(n);return a.declaredType||(a.declaredType=Cs(fc(n)))}function Cs(n){return rLe(n)||it}function rLe(n){if(n.flags&96)return cf(n);if(n.flags&524288)return ZMe(n);if(n.flags&262144)return UT(n);if(n.flags&384)return eLe(n);if(n.flags&8)return nLe(n);if(n.flags&2097152)return Pet(n)}function R7(n){switch(n.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return R7(n.elementType);case 183:return!n.typeArguments||n.typeArguments.every(R7)}return!1}function Met(n){let a=V1(n);return!a||R7(a)}function iLe(n){let a=Jc(n);return a?R7(a):!$v(n)}function Let(n){let a=Tf(n),c=qv(n);return(n.kind===176||!!a&&R7(a))&&n.parameters.every(iLe)&&c.every(Met)}function ket(n){if(n.declarations&&n.declarations.length===1){let a=n.declarations[0];if(a)switch(a.kind){case 172:case 171:return iLe(a);case 174:case 173:case 176:case 177:case 178:return Let(a)}}return!1}function oLe(n,a,c){let u=Vo();for(let _ of n)u.set(_.escapedName,c&&ket(_)?_:D_e(_,a));return u}function aLe(n,a){for(let c of a){if(sLe(c))continue;let u=n.get(c.escapedName);(!u||u.valueDeclaration&&Zn(u.valueDeclaration)&&!sD(u)&&!jte(u.valueDeclaration))&&(n.set(c.escapedName,c),n.set(c.escapedName,c))}}function sLe(n){return!!n.valueDeclaration&&kd(n.valueDeclaration)&&zo(n.valueDeclaration)}function xme(n){if(!n.declaredProperties){let a=n.symbol,c=Ky(a);n.declaredProperties=dE(c),n.declaredCallSignatures=je,n.declaredConstructSignatures=je,n.declaredIndexInfos=je,n.declaredCallSignatures=J0(c.get("__call")),n.declaredConstructSignatures=J0(c.get("__new")),n.declaredIndexInfos=kLe(a)}return n}function Rme(n){if(!Pa(n)&&!Rs(n))return!1;let a=Pa(n)?n.expression:n.argumentExpression;return gl(a)&&Af(Pa(n)?Hh(n):Ml(a))}function nw(n){return n.charCodeAt(0)===95&&n.charCodeAt(1)===95&&n.charCodeAt(2)===64}function D7(n){let a=mo(n);return!!a&&Rme(a)}function pD(n){return!ty(n)||D7(n)}function Oet(n){return kW(n)&&!Rme(n)}function wet(n,a,c){x.assert(!!(tl(n)&4096),"Expected a late-bound symbol."),n.flags|=c,Pi(a.symbol).lateSymbol=n,n.declarations?a.symbol.isReplaceableByMethod||n.declarations.push(a):n.declarations=[a],c&111551&&(!n.valueDeclaration||n.valueDeclaration.kind!==a.kind)&&(n.valueDeclaration=a)}function lLe(n,a,c,u){x.assert(!!u.symbol,"The member is expected to have a symbol.");let _=Fr(u);if(!_.resolvedSymbol){_.resolvedSymbol=u.symbol;let g=Zn(u)?u.left:u.name,T=Rs(g)?Ml(g.argumentExpression):Hh(g);if(Af(T)){let N=If(T),O=u.symbol.flags,B=c.get(N);B||c.set(N,B=xa(0,N,4096));let Q=a&&a.get(N);if(!(n.flags&32)&&(B.flags&TT(O)||Q)){let me=Q?ro(Q.declarations,B.declarations):B.declarations,ue=!(T.flags&8192)&&Ii(N)||is(g);an(me,We=>we(mo(We)||We,f.Property_0_was_also_declared_here,ue)),we(g||u,f.Duplicate_property_0,ue),B=xa(0,N,4096)}return B.links.nameType=T,wet(B,u,O),B.parent?x.assert(B.parent===n,"Existing symbol parent should match new one"):B.parent=n,_.resolvedSymbol=B}}return _.resolvedSymbol}function Dme(n,a){let c=Pi(n);if(!c[a]){let u=a==="resolvedExports",_=u?n.flags&1536?FT(n).exports:n.exports:n.members;c[a]=_||U;let g=Vo();for(let O of n.declarations||je){let B=Ote(O);if(B)for(let Q of B)u===jl(Q)&&D7(Q)&&lLe(n,_,g,Q)}let T=B0(n).assignmentDeclarationMembers;if(T){let O=bo(T.values());for(let B of O){let Q=hl(B),me=Q===3||Zn(B)&&kQ(B,Q)||Q===9||Q===6;u===!me&&D7(B)&&lLe(n,_,g,B)}}let N=t1(_,g);if(n.flags&33554432&&c.cjsExportMerged&&n.declarations)for(let O of n.declarations){let B=Pi(O.symbol)[a];if(!N){N=B;continue}B&&B.forEach((Q,me)=>{let ue=N.get(me);if(!ue)N.set(me,Q);else{if(ue===Q)return;N.set(me,Pf(ue,Q))}})}c[a]=N||U}return c[a]}function Ky(n){return n.flags&6256?Dme(n,"resolvedMembers"):n.members||U}function L$(n){if(n.flags&106500&&n.escapedName==="__computed"){let a=Pi(n);if(!a.lateSymbol&&ct(n.declarations,D7)){let c=Oa(n.parent);ct(n.declarations,jl)?Qu(c):Ky(c)}return a.lateSymbol||(a.lateSymbol=n)}return n}function hp(n,a,c){if(br(n)&4){let u=n.target,_=Ss(n);return yn(u.typeParameters)===yn(_)?Cv(u,ro(_,[a||u.thisType])):n}else if(n.flags&2097152){let u=sc(n.types,_=>hp(_,a,c));return u!==n.types?Zo(u):n}return c?ou(n):n}function cLe(n,a,c,u){let _,g,T,N,O;nB(c,u,0,c.length)?(g=a.symbol?Ky(a.symbol):Vo(a.declaredProperties),T=a.declaredCallSignatures,N=a.declaredConstructSignatures,O=a.declaredIndexInfos):(_=np(c,u),g=oLe(a.declaredProperties,_,c.length===1),T=eQ(a.declaredCallSignatures,_),N=eQ(a.declaredConstructSignatures,_),O=O2e(a.declaredIndexInfos,_));let B=ep(a);if(B.length){if(a.symbol&&g===Ky(a.symbol)){let me=Vo(a.declaredProperties),ue=Jme(a.symbol);ue&&me.set("__index",ue),g=me}Bp(n,g,T,N,O);let Q=Ns(u);for(let me of B){let ue=Q?hp(Gi(me,_),Q):me;aLe(g,Xa(ue)),T=ro(T,Co(ue,0)),N=ro(N,Co(ue,1));let We=ue!==z?Ud(ue):[ah(Ie,z,!1)];O=ro(O,Cr(We,at=>!Bme(O,at.keyType)))}}Bp(n,g,T,N,O)}function Wet(n){cLe(n,xme(n),je,je)}function Fet(n){let a=xme(n.target),c=ro(a.typeParameters,[a.thisType]),u=Ss(n),_=u.length===c.length?u:ro(u,[n]);cLe(n,a,c,_)}function jh(n,a,c,u,_,g,T,N){let O=new h(zt,N);return O.declaration=n,O.typeParameters=a,O.parameters=u,O.thisParameter=c,O.resolvedReturnType=_,O.resolvedTypePredicate=g,O.minArgumentCount=T,O.resolvedMinArgumentCount=void 0,O.target=void 0,O.mapper=void 0,O.compositeSignatures=void 0,O.compositeKind=void 0,O}function rw(n){let a=jh(n.declaration,n.typeParameters,n.thisParameter,n.parameters,void 0,void 0,n.minArgumentCount,n.flags&167);return a.target=n.target,a.mapper=n.mapper,a.compositeSignatures=n.compositeSignatures,a.compositeKind=n.compositeKind,a}function dLe(n,a){let c=rw(n);return c.compositeSignatures=a,c.compositeKind=1048576,c.target=void 0,c.mapper=void 0,c}function zet(n,a){if((n.flags&24)===a)return n;n.optionalCallSignatureCache||(n.optionalCallSignatureCache={});let c=a===8?"inner":"outer";return n.optionalCallSignatureCache[c]||(n.optionalCallSignatureCache[c]=Bet(n,a))}function Bet(n,a){x.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let c=rw(n);return c.flags|=a,c}function uLe(n,a){if(Td(n)){let _=n.parameters.length-1,g=n.parameters[_].escapedName,T=Yn(n.parameters[_]);if(ha(T))return[c(T,_,g)];if(!a&&T.flags&1048576&&ji(T.types,ha))return nn(T.types,N=>c(N,_,g))}return[n.parameters];function c(_,g,T){let N=Ss(_),O=u(_,T),B=nn(N,(Q,me)=>{let ue=O&&O[me]?O[me]:YP(n,g+me,_),We=_.target.elementFlags[me],at=We&12?32768:We&2?16384:0,ht=xa(1,ue,at);return ht.links.type=We&4?_d(Q):Q,ht});return ro(n.parameters.slice(0,g),B)}function u(_,g){let T=new Map;return nn(_.target.labeledElementDeclarations,(N,O)=>{let B=ige(N,O,g),Q=T.get(B);return Q===void 0?(T.set(B,1),B):(T.set(B,Q+1),`${B}_${Q}`)})}}function Get(n){let a=Zu(n),c=Co(a,1),u=ig(n.symbol),_=!!u&&Wr(u,64);if(c.length===0)return[jh(void 0,n.localTypeParameters,void 0,je,n,void 0,0,_?4:0)];let g=ns(n),T=Jn(g),N=w7(g),O=yn(N),B=[];for(let Q of c){let me=oh(Q.typeParameters),ue=yn(Q.typeParameters);if(T||O>=me&&O<=ue){let We=ue?F$(Q,Yy(N,Q.typeParameters,me,T)):rw(Q);We.typeParameters=n.localTypeParameters,We.resolvedReturnType=n,We.flags=_?We.flags|4:We.flags&-5,B.push(We)}}return B}function k$(n,a,c,u,_){for(let g of n)if($7(g,a,c,u,_,c?mrt:_w))return g}function Vet(n,a,c){if(a.typeParameters){if(c>0)return;for(let _=1;_<n.length;_++)if(!k$(n[_],a,!1,!1,!1))return;return[a]}let u;for(let _=0;_<n.length;_++){let g=_===c?a:k$(n[_],a,!1,!1,!0)||k$(n[_],a,!0,!1,!0);if(!g)return;u=Kh(u,g)}return u}function Cme(n){let a,c;for(let u=0;u<n.length;u++){if(n[u].length===0)return je;n[u].length>1&&(c=c===void 0?u:-1);for(let _ of n[u])if(!a||!k$(a,_,!1,!1,!0)){let g=Vet(n,_,u);if(g){let T=_;if(g.length>1){let N=_.thisParameter,O=an(g,B=>B.thisParameter);if(O){let B=Zo(Fi(g,Q=>Q.thisParameter&&Yn(Q.thisParameter)));N=nA(O,B)}T=dLe(_,g),T.thisParameter=N}(a||(a=[])).push(T)}}}if(!yn(a)&&c!==-1){let u=n[c!==void 0?c:0],_=u.slice();for(let g of n)if(g!==u){let T=g[0];if(x.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),_=T.typeParameters&&ct(_,N=>!!N.typeParameters&&!pLe(T.typeParameters,N.typeParameters))?void 0:nn(_,N=>Het(N,T)),!_)break}a=_}return a||je}function pLe(n,a){if(yn(n)!==yn(a))return!1;if(!n||!a)return!0;let c=np(a,n);for(let u=0;u<n.length;u++){let _=n[u],g=a[u];if(_!==g&&!kg(OP(_)||Zt,Gi(OP(g)||Zt,c)))return!1}return!0}function jet(n,a,c){if(!n||!a)return n||a;let u=Zo([Yn(n),Gi(Yn(a),c)]);return nA(n,u)}function Uet(n,a,c){let u=vp(n),_=vp(a),g=u>=_?n:a,T=g===n?a:n,N=g===n?u:_,O=ch(n)||ch(a),B=O&&!ch(g),Q=new Array(N+(B?1:0));for(let me=0;me<N;me++){let ue=iS(g,me);g===a&&(ue=Gi(ue,c));let We=iS(T,me)||Zt;T===a&&(We=Gi(We,c));let at=Zo([ue,We]),ht=O&&!B&&me===N-1,qt=me>=T_(g)&&me>=T_(T),Xt=me>=u?void 0:YP(n,me),Hn=me>=_?void 0:YP(a,me),En=Xt===Hn?Xt:Xt?Hn?void 0:Xt:Hn,Kt=xa(1|(qt&&!ht?16777216:0),En||`arg${me}`,ht?32768:qt?16384:0);Kt.links.type=ht?_d(at):at,Q[me]=Kt}if(B){let me=xa(1,"args",32768);me.links.type=_d(zm(T,N)),T===a&&(me.links.type=Gi(me.links.type,c)),Q[N]=me}return Q}function Het(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=np(a.typeParameters,n.typeParameters));let _=n.declaration,g=Uet(n,a,u),T=jet(n.thisParameter,a.thisParameter,u),N=Math.max(n.minArgumentCount,a.minArgumentCount),O=jh(_,c,T,g,void 0,void 0,N,(n.flags|a.flags)&167);return O.compositeKind=1048576,O.compositeSignatures=ro(n.compositeKind!==2097152&&n.compositeSignatures||[n],[a]),u?O.mapper=n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures?Z0(n.mapper,u):u:n.compositeKind!==2097152&&n.mapper&&n.compositeSignatures&&(O.mapper=n.mapper),O}function fLe(n){let a=Ud(n[0]);if(a){let c=[];for(let u of a){let _=u.keyType;ji(n,g=>!!Uh(g,_))&&c.push(ah(_,Br(nn(n,g=>yE(g,_))),ct(n,g=>Uh(g,_).isReadonly)))}return c}return je}function qet(n){let a=Cme(nn(n.types,_=>_===At?[$t]:Co(_,0))),c=Cme(nn(n.types,_=>Co(_,1))),u=fLe(n.types);Bp(n,U,a,c,u)}function C7(n,a){return n?a?Zo([n,a]):n:a}function mLe(n){let a=Wv(n,u=>Co(u,1).length>0),c=nn(n,hi);if(a>0&&a===Wv(c,u=>u)){let u=c.indexOf(!0);c[u]=!1}return c}function Jet(n,a,c,u){let _=[];for(let g=0;g<a.length;g++)g===u?_.push(n):c[g]&&_.push(Ha(Co(a[g],1)[0]));return Zo(_)}function Ket(n){let a,c,u,_=n.types,g=mLe(_),T=Wv(g,N=>N);for(let N=0;N<_.length;N++){let O=n.types[N];if(!g[N]){let B=Co(O,1);B.length&&T>0&&(B=nn(B,Q=>{let me=rw(Q);return me.resolvedReturnType=Jet(Ha(Q),_,g,N),me})),c=_Le(c,B)}a=_Le(a,Co(O,0)),u=Nd(Ud(O),(B,Q)=>hLe(B,Q,!1),u)}Bp(n,U,a||je,c||je,u||je)}function _Le(n,a){for(let c of a)(!n||ji(n,u=>!$7(u,c,!1,!1,!1,_w)))&&(n=pn(n,c));return n}function hLe(n,a,c){if(n)for(let u=0;u<n.length;u++){let _=n[u];if(_.keyType===a.keyType)return n[u]=ah(_.keyType,c?Br([_.type,a.type]):Zo([_.type,a.type]),c?_.isReadonly||a.isReadonly:_.isReadonly&&a.isReadonly),n}return pn(n,a)}function Xet(n){if(n.target){Bp(n,U,je,je,je);let T=oLe(Xy(n.target),n.mapper,!1),N=eQ(Co(n.target,0),n.mapper),O=eQ(Co(n.target,1),n.mapper),B=O2e(Ud(n.target),n.mapper);Bp(n,T,N,O,B);return}let a=Oa(n.symbol);if(a.flags&2048){Bp(n,U,je,je,je);let T=Ky(a),N=J0(T.get("__call")),O=J0(T.get("__new")),B=kLe(a);Bp(n,T,N,O,B);return}let c=Qu(a),u;if(a===Ke){let T=new Map;c.forEach(N=>{var O;!(N.flags&418)&&!(N.flags&512&&((O=N.declarations)!=null&&O.length)&&ji(N.declarations,sd))&&T.set(N.escapedName,N)}),c=T}let _;if(Bp(n,c,je,je,je),a.flags&32){let T=cf(a),N=Zu(T);N.flags&11272192?(c=Vo(BT(c)),aLe(c,Xa(N))):N===z&&(_=ah(Ie,z,!1))}let g=z$(c);if(g?u=Kme(g):(_&&(u=pn(u,_)),a.flags&384&&(Cs(a).flags&32||ct(n.properties,T=>!!(Yn(T).flags&296)))&&(u=pn(u,Ir))),Bp(n,c,je,je,u||je),a.flags&8208&&(n.callSignatures=J0(a)),a.flags&32){let T=cf(a),N=a.members?J0(a.members.get("__constructor")):je;a.flags&16&&(N=Pr(N.slice(),Fi(n.callSignatures,O=>S_(O.declaration)?jh(O.declaration,O.typeParameters,O.thisParameter,O.parameters,T,void 0,O.minArgumentCount,O.flags&167):void 0))),N.length||(N=Get(T)),n.constructSignatures=N}}function Yet(n,a,c){return Gi(n,np([a.indexType,a.objectType],[Wm(0),sh([c])]))}function $et(n){let a=Gp(n.mappedType);if(!(a.flags&1048576||a.flags&2097152))return;let c=a.flags&1048576?a.origin:a;if(!c||!(c.flags&2097152))return;let u=Zo(c.types.filter(_=>_!==n.constraintType));return u!==Ar?u:void 0}function Qet(n){let a=Uh(n.source,Ie),c=ih(n.mappedType),u=!(c&1),_=c&4?0:16777216,g=a?[ah(Ie,EQ(a.type,n.mappedType,n.constraintType),u&&a.isReadonly)]:je,T=Vo(),N=$et(n);for(let O of Xa(n.source)){if(N){let me=vD(O,8576);if(!ea(me,N))continue}let B=8192|(u&&Bm(O)?8:0),Q=xa(4|O.flags&_,O.escapedName,B);if(Q.declarations=O.declarations,Q.links.nameType=Pi(O).nameType,Q.links.propertyType=Yn(O),n.constraintType.type.flags&8388608&&n.constraintType.type.objectType.flags&262144&&n.constraintType.type.indexType.flags&262144){let me=n.constraintType.type.objectType,ue=Yet(n.mappedType,n.constraintType.type,me);Q.links.mappedType=ue,Q.links.constraintType=v_(me)}else Q.links.mappedType=n.mappedType,Q.links.constraintType=n.constraintType;T.set(O.escapedName,Q)}Bp(n,T,je,je,g)}function N7(n){if(n.flags&4194304){let a=ou(n.type);return rb(a)?a2e(a):v_(a)}if(n.flags&16777216){if(n.root.isDistributive){let a=n.checkType,c=N7(a);if(c!==a)return N_e(n,eA(n.root.checkType,c,n.mapper),!1)}return n}if(n.flags&1048576)return Gs(n,N7,!0);if(n.flags&2097152){let a=n.types;return a.length===2&&a[0].flags&76&&a[1]===Wl?n:Zo(sc(n.types,N7))}return n}function Nme(n){return tl(n)&4096}function Pme(n,a,c,u){for(let _ of Xa(n))u(vD(_,a));if(n.flags&1)u(Ie);else for(let _ of Ud(n))(!c||_.keyType.flags&134217732)&&u(_.keyType)}function Zet(n){let a=Vo(),c;Bp(n,U,je,je,je);let u=km(n),_=Gp(n),g=n.target||n,T=Dv(g),N=O$(g)!==2,O=Ng(g),B=ou(HT(n)),Q=ih(n),me=Ae?128:8576;fD(n)?Pme(B,me,Ae,ue):aA(N7(_),ue),Bp(n,a,je,je,c||je);function ue(at){let ht=T?Gi(T,pw(n.mapper,u,at)):at;aA(ht,qt=>We(at,qt))}function We(at,ht){if(Af(ht)){let qt=If(ht),Xt=a.get(qt);if(Xt)Xt.links.nameType=Br([Xt.links.nameType,ht]),Xt.links.keyType=Br([Xt.links.keyType,at]);else{let Hn=Af(at)?Qo(B,If(at)):void 0,En=!!(Q&4||!(Q&8)&&Hn&&Hn.flags&16777216),Kt=!!(Q&1||!(Q&2)&&Hn&&Bm(Hn)),In=H&&!En&&Hn&&Hn.flags&16777216,Sn=Hn?Nme(Hn):0,zn=xa(4|(En?16777216:0),qt,Sn|262144|(Kt?8:0)|(In?524288:0));zn.links.mappedType=n,zn.links.nameType=ht,zn.links.keyType=at,Hn&&(zn.links.syntheticOrigin=Hn,zn.declarations=N?Hn.declarations:void 0),a.set(qt,zn)}}else if(B$(ht)||ht.flags&33){let qt=ht.flags&5?Ie:ht.flags&40?gt:ht,Xt=Gi(O,pw(n.mapper,u,at)),Hn=iw(B,ht),En=!!(Q&1||!(Q&2)&&Hn?.isReadonly),Kt=ah(qt,Xt,En);c=hLe(c,Kt,!0)}}}function ett(n){if(!n.links.type){let a=n.links.mappedType;if(!nh(n,0))return a.containsError=!0,it;let c=Ng(a.target||a),u=pw(a.mapper,km(a),n.links.keyType),_=Gi(c,u),g=H&&n.flags&16777216&&!ol(_,49152)?ib(_,!0):n.links.checkFlags&524288?hQ(_):_;h_()||(we(R,f.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ai(n),Pn(a)),g=it),n.links.type=g}return n.links.type}function km(n){return n.typeParameter||(n.typeParameter=UT(dr(n.declaration.typeParameter)))}function Gp(n){return n.constraintType||(n.constraintType=iu(km(n))||it)}function Dv(n){return n.declaration.nameType?n.nameType||(n.nameType=Gi(si(n.declaration.nameType),n.mapper)):void 0}function Ng(n){return n.templateType||(n.templateType=n.declaration.type?Gi(Mu(si(n.declaration.type),!0,!!(ih(n)&4)),n.mapper):it)}function gLe(n){return V1(n.declaration.typeParameter)}function fD(n){let a=gLe(n);return a.kind===198&&a.operator===143}function HT(n){if(!n.modifiersType)if(fD(n))n.modifiersType=Gi(si(gLe(n).type),n.mapper);else{let a=b_e(n.declaration),c=Gp(a),u=c&&c.flags&262144?iu(c):c;n.modifiersType=u&&u.flags&4194304?Gi(u.type,n.mapper):Zt}return n.modifiersType}function ih(n){let a=n.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function vLe(n){let a=ih(n);return a&8?-1:a&4?1:0}function Mme(n){let a=vLe(n),c=HT(n);return a||(vu(c)?vLe(c):0)}function ttt(n){return!!(br(n)&32&&ih(n)&4)}function vu(n){if(br(n)&32){let a=Gp(n);if(ZT(a))return!0;let c=Dv(n);if(c&&ZT(Gi(c,Q0(km(n),a))))return!0}return!1}function O$(n){let a=Dv(n);return a?ea(a,km(n))?1:2:0}function Om(n){return n.members||(n.flags&524288?n.objectFlags&4?Fet(n):n.objectFlags&3?Wet(n):n.objectFlags&1024?Qet(n):n.objectFlags&16?Xet(n):n.objectFlags&32?Zet(n):x.fail("Unhandled object type "+x.formatObjectFlags(n.objectFlags)):n.flags&1048576?qet(n):n.flags&2097152?Ket(n):x.fail("Unhandled type "+x.formatTypeFlags(n.flags))),n}function Xy(n){return n.flags&524288?Om(n).properties:je}function vE(n,a){if(n.flags&524288){let u=Om(n).members.get(a);if(u&&sm(u))return u}}function P7(n){if(!n.resolvedProperties){let a=Vo();for(let c of n.types){for(let u of Xa(c))if(!a.has(u.escapedName)){let _=L7(n,u.escapedName,!!(n.flags&2097152));_&&a.set(u.escapedName,_)}if(n.flags&1048576&&Ud(c).length===0)break}n.resolvedProperties=dE(a)}return n.resolvedProperties}function Xa(n){return n=LP(n),n.flags&3145728?P7(n):Xy(n)}function ntt(n,a){n=LP(n),n.flags&3670016&&Om(n).members.forEach((c,u)=>{c1(c,u)&&a(c,u)})}function rtt(n,a){return a.properties.some(u=>{let _=u.name&&(Em(u.name)?yu(r2(u.name)):Pv(u.name)),g=_&&Af(_)?If(_):void 0,T=g===void 0?void 0:Fe(n,g);return!!T&&vw(T)&&!ea(S1(u),T)})}function itt(n){let a=Br(n);if(!(a.flags&1048576))return Bge(a);let c=Vo();for(let u of n)for(let{escapedName:_}of Bge(u))if(!c.has(_)){let g=ILe(a,_);g&&c.set(_,g)}return bo(c.values())}function qT(n){return n.flags&262144?iu(n):n.flags&8388608?att(n):n.flags&16777216?ELe(n):md(n)}function iu(n){return M7(n)?OP(n):void 0}function ott(n,a){let c=fw(n);return!!c&&JT(c,a)}function JT(n,a=0){var c;return a<5&&!!(n&&(n.flags&262144&&ct((c=n.symbol)==null?void 0:c.declarations,u=>Wr(u,4096))||n.flags&3145728&&ct(n.types,u=>JT(u,a))||n.flags&8388608&&JT(n.objectType,a+1)||n.flags&16777216&&JT(ELe(n),a+1)||n.flags&33554432&&JT(n.baseType,a)||br(n)&32&&ott(n,a)||rb(n)&&Tl(X0(n),(u,_)=>!!(n.target.elementFlags[_]&8)&&JT(u,a))>=0))}function att(n){return M7(n)?stt(n):void 0}function Lme(n){let a=Lg(n,!1);return a!==n?a:qT(n)}function stt(n){if(Wme(n))return K$(n.objectType,n.indexType);let a=Lme(n.indexType);if(a&&a!==n.indexType){let u=Qy(n.objectType,a,n.accessFlags);if(u)return u}let c=Lme(n.objectType);if(c&&c!==n.objectType)return Qy(c,n.indexType,n.accessFlags)}function kme(n){if(!n.resolvedDefaultConstraint){let a=jnt(n),c=SE(n);n.resolvedDefaultConstraint=vt(a)?c:vt(c)?a:Br([a,c])}return n.resolvedDefaultConstraint}function yLe(n){if(n.resolvedConstraintOfDistributive!==void 0)return n.resolvedConstraintOfDistributive||void 0;if(n.root.isDistributive&&n.restrictiveInstantiation!==n){let a=Lg(n.checkType,!1),c=a===n.checkType?qT(a):a;if(c&&c!==n.checkType){let u=N_e(n,eA(n.root.checkType,c,n.mapper),!0);if(!(u.flags&131072))return n.resolvedConstraintOfDistributive=u,u}}n.resolvedConstraintOfDistributive=!1}function bLe(n){return yLe(n)||kme(n)}function ELe(n){return M7(n)?bLe(n):void 0}function ltt(n,a){let c,u=!1;for(let _ of n)if(_.flags&465829888){let g=qT(_);for(;g&&g.flags&21233664;)g=qT(g);g&&(c=pn(c,g),a&&(c=pn(c,_)))}else(_.flags&469892092||lh(_))&&(u=!0);if(c&&(a||u)){if(u)for(let _ of n)(_.flags&469892092||lh(_))&&(c=pn(c,_));return K7(Zo(c),!1)}}function md(n){if(n.flags&464781312||rb(n)){let a=Ome(n);return a!==vs&&a!==Pc?a:void 0}return n.flags&4194304?fs:void 0}function Pg(n){return md(n)||n}function M7(n){return Ome(n)!==Pc}function Ome(n){if(n.resolvedBaseConstraint)return n.resolvedBaseConstraint;let a=[];return n.resolvedBaseConstraint=c(n);function c(g){if(!g.immediateBaseConstraint){if(!nh(g,4))return Pc;let T,N=dQ(g);if((a.length<10||a.length<50&&!To(a,N))&&(a.push(N),T=_(Lg(g,!1)),a.pop()),!h_()){if(g.flags&262144){let O=Xme(g);if(O){let B=we(O,f.Type_parameter_0_has_a_circular_constraint,Pn(g));R&&!HE(O,R)&&!HE(R,O)&&pa(B,vr(R,f.Circularity_originates_in_type_at_this_location))}}T=Pc}g.immediateBaseConstraint=T||vs}return g.immediateBaseConstraint}function u(g){let T=c(g);return T!==vs&&T!==Pc?T:void 0}function _(g){if(g.flags&262144){let T=OP(g);return g.isThisType||!T?T:u(T)}if(g.flags&3145728){let T=g.types,N=[],O=!1;for(let B of T){let Q=u(B);Q?(Q!==B&&(O=!0),N.push(Q)):O=!0}return O?g.flags&1048576&&N.length===T.length?Br(N):g.flags&2097152&&N.length?Zo(N):void 0:g}if(g.flags&4194304)return fs;if(g.flags&134217728){let T=g.types,N=Fi(T,u);return N.length===T.length?YT(g.texts,N):Ie}if(g.flags&268435456){let T=u(g.type);return T&&T!==g.type?h1(g.symbol,T):Ie}if(g.flags&8388608){if(Wme(g))return u(K$(g.objectType,g.indexType));let T=u(g.objectType),N=u(g.indexType),O=T&&N&&Qy(T,N,g.accessFlags);return O&&u(O)}if(g.flags&16777216){let T=bLe(g);return T&&u(T)}if(g.flags&33554432)return u(e_e(g));if(rb(g)){let T=nn(X0(g),(N,O)=>{let B=N.flags&262144&&g.target.elementFlags[O]&8&&u(N)||N;return B!==N&&Lu(B,Q=>AE(Q)&&!rb(Q))?B:N});return sh(T,g.target.elementFlags,g.target.readonly,g.target.labeledElementDeclarations)}return g}}function ctt(n,a){return n.resolvedApparentType||(n.resolvedApparentType=hp(n,a,!0))}function wme(n){if(n.default)n.default===Bc&&(n.default=Pc);else if(n.target){let a=wme(n.target);n.default=a?Gi(a,n.mapper):vs}else{n.default=Bc;let a=n.symbol&&an(n.symbol.declarations,u=>qs(u)&&u.default),c=a?si(a):vs;n.default===Bc&&(n.default=c)}return n.default}function KT(n){let a=wme(n);return a!==vs&&a!==Pc?a:void 0}function dtt(n){return wme(n)!==Pc}function SLe(n){return!!(n.symbol&&an(n.symbol.declarations,a=>qs(a)&&a.default))}function TLe(n){return n.resolvedApparentType||(n.resolvedApparentType=utt(n))}function utt(n){let a=n.target??n,c=fw(a);if(c&&!a.declaration.nameType){let u=HT(n),_=vu(u)?TLe(u):md(u);if(_&&Lu(_,g=>AE(g)||ALe(g)))return Gi(a,eA(c,_,n.mapper))}return n}function ALe(n){return!!(n.flags&2097152)&&ji(n.types,AE)}function Wme(n){let a;return!!(n.flags&8388608&&br(a=n.objectType)&32&&!vu(a)&&ZT(n.indexType)&&!(ih(a)&8)&&!a.declaration.nameType)}function ou(n){let a=n.flags&465829888?md(n)||Zt:n,c=br(a);return c&32?TLe(a):c&4&&a!==n?hp(a,n):a.flags&2097152?ctt(a,n):a.flags&402653316?Cl:a.flags&296?Kl:a.flags&2112?Ktt():a.flags&528?Bs:a.flags&12288?$Le():a.flags&67108864?da:a.flags&4194304?fs:a.flags&2&&!H?da:a}function LP(n){return wm(ou(wm(n)))}function ILe(n,a,c){var u,_,g;let T,N,O,B=n.flags&1048576,Q,me=4,ue=B?0:8,We=!1;for(let zn of n.types){let Mn=ou(zn);if(!(Lt(Mn)||Mn.flags&131072)){let Bn=Qo(Mn,a,c),co=Bn?Kp(Bn):0;if(Bn){if(Bn.flags&106500&&(Q??(Q=B?0:16777216),B?Q|=Bn.flags&16777216:Q&=Bn.flags),!T)T=Bn;else if(Bn!==T)if((ND(Bn)||Bn)===(ND(T)||T)&&B_e(T,Bn,(Eo,Yi)=>Eo===Yi?-1:0)===-1)We=!!T.parent&&!!yn(gr(T.parent));else{N||(N=new Map,N.set(na(T),T));let Eo=na(Bn);N.has(Eo)||N.set(Eo,Bn)}B&&Bm(Bn)?ue|=8:!B&&!Bm(Bn)&&(ue&=-9),ue|=(co&6?0:256)|(co&4?512:0)|(co&2?1024:0)|(co&256?2048:0),whe(Bn)||(me=2)}else if(B){let no=!nw(a)&&m1(Mn,a);no?(ue|=32|(no.isReadonly?8:0),O=pn(O,ha(Mn)?fQ(Mn)||Re:no.type)):RE(Mn)&&!(br(Mn)&2097152)?(ue|=32,O=pn(O,Re)):ue|=16}}}if(!T||B&&(N||ue&48)&&ue&1536&&!(N&&ptt(N.values())))return;if(!N&&!(ue&16)&&!O)if(We){let zn=(u=Vr(T,L_))==null?void 0:u.links,Mn=nA(T,zn?.type);return Mn.parent=(g=(_=T.valueDeclaration)==null?void 0:_.symbol)==null?void 0:g.parent,Mn.links.containingType=n,Mn.links.mapper=zn?.mapper,Mn.links.writeType=q0(T),Mn}else return T;let at=N?bo(N.values()):[T],ht,qt,Xt,Hn=[],En,Kt,In=!1;for(let zn of at){Kt?zn.valueDeclaration&&zn.valueDeclaration!==Kt&&(In=!0):Kt=zn.valueDeclaration,ht=Pr(ht,zn.declarations);let Mn=Yn(zn);qt||(qt=Mn,Xt=Pi(zn).nameType);let Bn=q0(zn);(En||Bn!==Mn)&&(En=pn(En||Hn.slice(),Bn)),Mn!==qt&&(ue|=64),(vw(Mn)||$T(Mn))&&(ue|=128),Mn.flags&131072&&Mn!==Fc&&(ue|=131072),Hn.push(Mn)}Pr(Hn,O);let Sn=xa(4|(Q??0),a,me|ue);return Sn.links.containingType=n,!In&&Kt&&(Sn.valueDeclaration=Kt,Kt.symbol.parent&&(Sn.parent=Kt.symbol.parent)),Sn.declarations=ht,Sn.links.nameType=Xt,Hn.length>2?(Sn.links.checkFlags|=65536,Sn.links.deferralParent=n,Sn.links.deferralConstituents=Hn,Sn.links.deferralWriteConstituents=En):(Sn.links.type=B?Br(Hn):Zo(Hn),En&&(Sn.links.writeType=B?Br(En):Zo(En))),Sn}function xLe(n,a,c){var u,_,g;let T=c?(u=n.propertyCacheWithoutObjectFunctionPropertyAugment)==null?void 0:u.get(a):(_=n.propertyCache)==null?void 0:_.get(a);return T||(T=ILe(n,a,c),T&&((c?n.propertyCacheWithoutObjectFunctionPropertyAugment||(n.propertyCacheWithoutObjectFunctionPropertyAugment=Vo()):n.propertyCache||(n.propertyCache=Vo())).set(a,T),c&&!(tl(T)&48)&&!((g=n.propertyCache)!=null&&g.get(a))&&(n.propertyCache||(n.propertyCache=Vo())).set(a,T))),T}function ptt(n){let a;for(let c of n){if(!c.declarations)return;if(!a){a=new Set(c.declarations);continue}if(a.forEach(u=>{To(c.declarations,u)||a.delete(u)}),a.size===0)return}return a}function L7(n,a,c){let u=xLe(n,a,c);return u&&!(tl(u)&16)?u:void 0}function wm(n){return n.flags&1048576&&n.objectFlags&16777216?n.resolvedReducedType||(n.resolvedReducedType=ftt(n)):n.flags&2097152?(n.objectFlags&16777216||(n.objectFlags|=16777216|(ct(P7(n),mtt)?33554432:0)),n.objectFlags&33554432?Ar:n):n}function ftt(n){let a=sc(n.types,wm);if(a===n.types)return n;let c=Br(a);return c.flags&1048576&&(c.resolvedReducedType=c),c}function mtt(n){return RLe(n)||DLe(n)}function RLe(n){return!(n.flags&16777216)&&(tl(n)&131264)===192&&!!(Yn(n).flags&131072)}function DLe(n){return!n.valueDeclaration&&!!(tl(n)&1024)}function Fme(n){return!!(n.flags&1048576&&n.objectFlags&16777216&&ct(n.types,Fme)||n.flags&2097152&&_tt(n))}function _tt(n){let a=n.uniqueLiteralFilledInstantiation||(n.uniqueLiteralFilledInstantiation=Gi(n,$i));return wm(a)!==a}function zme(n,a){if(a.flags&2097152&&br(a)&33554432){let c=Dr(P7(a),RLe);if(c)return So(n,f.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,Pn(a,void 0,536870912),ai(c));let u=Dr(P7(a),DLe);if(u)return So(n,f.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,Pn(a,void 0,536870912),ai(u))}return n}function Qo(n,a,c,u){var _,g;if(n=LP(n),n.flags&524288){let T=Om(n),N=T.members.get(a);if(N&&!u&&((_=n.symbol)==null?void 0:_.flags)&512&&((g=Pi(n.symbol).typeOnlyExportStarMap)!=null&&g.has(a)))return;if(N&&sm(N,u))return N;if(c)return;let O=T===Ut?At:T.callSignatures.length?Ln:T.constructSignatures.length?eo:void 0;if(O){let B=vE(O,a);if(B)return B}return vE(Se,a)}if(n.flags&2097152){let T=L7(n,a,!0);return T||(c?void 0:L7(n,a,c))}if(n.flags&1048576)return L7(n,a,c)}function k7(n,a){if(n.flags&3670016){let c=Om(n);return a===0?c.callSignatures:c.constructSignatures}return je}function Co(n,a){let c=k7(LP(n),a);if(a===0&&!yn(c)&&n.flags&1048576){if(n.arrayFallbackSignatures)return n.arrayFallbackSignatures;let u;if(Lu(n,_=>{var g;return!!((g=_.symbol)!=null&&g.parent)&&htt(_.symbol.parent)&&(u?u===_.symbol.escapedName:(u=_.symbol.escapedName,!0))})){let _=Gs(n,T=>eb((CLe(T.symbol.parent)?Oo:Po).typeParameters[0],T.mapper)),g=_d(_,dm(n,T=>CLe(T.symbol.parent)));return n.arrayFallbackSignatures=Co(Fe(g,u),a)}n.arrayFallbackSignatures=c}return c}function htt(n){return!n||!Po.symbol||!Oo.symbol?!1:!!Nm(n,Po.symbol)||!!Nm(n,Oo.symbol)}function CLe(n){return!n||!Oo.symbol?!1:!!Nm(n,Oo.symbol)}function Bme(n,a){return Dr(n,c=>c.keyType===a)}function Gme(n,a){let c,u,_;for(let g of n)g.keyType===Ie?c=g:f1(a,g.keyType)&&(u?(_||(_=[u])).push(g):u=g);return _?ah(Zt,Zo(nn(_,g=>g.type)),Nd(_,(g,T)=>g&&T.isReadonly,!0)):u||(c&&f1(a,Ie)?c:void 0)}function f1(n,a){return ea(n,a)||a===Ie&&ea(n,gt)||a===gt&&(n===Va||!!(n.flags&128)&&Rh(n.value))}function Vme(n){return n.flags&3670016?Om(n).indexInfos:je}function Ud(n){return Vme(LP(n))}function Uh(n,a){return Bme(Ud(n),a)}function yE(n,a){var c;return(c=Uh(n,a))==null?void 0:c.type}function jme(n,a){return Ud(n).filter(c=>f1(a,c.keyType))}function iw(n,a){return Gme(Ud(n),a)}function m1(n,a){return iw(n,nw(a)?di:yu(Ii(a)))}function NLe(n){var a;let c;for(let u of qv(n))c=Kh(c,UT(u.symbol));return c?.length?c:Ql(n)?(a=kP(n))==null?void 0:a.typeParameters:void 0}function Ume(n){let a=[];return n.forEach((c,u)=>{V0(u)||a.push(c)}),a}function w$(n,a){if(Ic(n))return;let c=gu(he,'"'+n+'"',512);return c&&a?Oa(c):c}function ow(n){if(OA(n)||t2(n)||n2(n))return!0;if(n.initializer){let c=kf(n.parent),u=n.parent.parameters.indexOf(n);return x.assert(u>=0),u>=T_(c,3)}let a=RS(n.parent);return a?!n.type&&!n.dotDotDotToken&&n.parent.parameters.indexOf(n)>=KQ(a).length:!1}function gtt(n){return xo(n)&&!Ym(n)&&n.questionToken}function O7(n,a,c,u){return{kind:n,parameterName:a,parameterIndex:c,type:u}}function oh(n){let a=0;if(n)for(let c=0;c<n.length;c++)SLe(n[c])||(a=c+1);return a}function Yy(n,a,c,u){let _=yn(a);if(!_)return[];let g=yn(n);if(u||g>=c&&g<=_){let T=n?n.slice():[];for(let O=g;O<_;O++)T[O]=it;let N=ohe(u);for(let O=g;O<_;O++){let B=KT(a[O]);u&&B&&(kg(B,Zt)||kg(B,da))&&(B=z),T[O]=B?Gi(B,np(a,T)):N}return T.length=a.length,T}return n&&n.slice()}function kf(n){let a=Fr(n);if(!a.resolvedSignature){let c=[],u=0,_=0,g,T=Jn(n)?k8(n):void 0,N=!1,O=RS(n),B=dx(n);!O&&Jn(n)&&tne(n)&&!kee(n)&&!bb(n)&&(u|=32);for(let at=B?1:0;at<n.parameters.length;at++){let ht=n.parameters[at];if(Jn(ht)&&kj(ht)){T=ht;continue}let qt=ht.symbol,Xt=Tm(ht)?ht.typeExpression&&ht.typeExpression.type:ht.type;qt&&qt.flags&4&&!ko(ht.name)&&(qt=Xs(ht,qt.escapedName,111551,void 0,void 0,!1)),at===0&&qt.escapedName==="this"?(N=!0,g=ht.symbol):c.push(qt),Xt&&Xt.kind===201&&(u|=2),t2(ht)||ht.initializer||ht.questionToken||gh(ht)||O&&c.length>O.arguments.length&&!Xt||n2(ht)||(_=c.length)}if((n.kind===177||n.kind===178)&&pD(n)&&(!N||!g)){let at=n.kind===177?178:177,ht=Vs(dr(n),at);ht&&(g=R$(ht))}T&&T.typeExpression&&(g=nA(xa(1,"this"),si(T.typeExpression)));let me=wb(n)?Rb(n):n,ue=me&&ll(me)?cf(Oa(me.parent.symbol)):void 0,We=ue?ue.localTypeParameters:NLe(n);(i9(n)||Jn(n)&&vtt(n,c))&&(u|=1),(kx(n)&&Wr(n,64)||ll(n)&&Wr(n.parent,64))&&(u|=4),a.resolvedSignature=jh(n,We,g,c,void 0,void 0,_,u)}return a.resolvedSignature}function vtt(n,a){if(wb(n)||!Hme(n))return!1;let c=Ns(n.parameters),u=c?G1(c):Eb(n).filter(Tm),_=ml(u,T=>T.typeExpression&&E6(T.typeExpression.type)?T.typeExpression.type:void 0),g=xa(3,"args",32768);return _?g.links.type=_d(si(_.type)):(g.links.checkFlags|=65536,g.links.deferralParent=Ar,g.links.deferralConstituents=[Nl],g.links.deferralWriteConstituents=[Nl]),_&&a.pop(),a.push(g),!0}function kP(n){if(!(Jn(n)&&_s(n)))return;let a=yb(n);return a?.typeExpression&&dA(si(a.typeExpression))}function ytt(n,a){let c=kP(n);if(!c)return;let u=n.parameters.indexOf(a);return a.dotDotDotToken?I5(c,u):zm(c,u)}function btt(n){let a=kP(n);return a&&Ha(a)}function Hme(n){let a=Fr(n);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=c(n.body)),a.containsArgumentsReference;function c(u){if(!u)return!1;switch(u.kind){case 80:return u.escapedText===Dt.escapedName&&Gw(u)===Dt;case 172:case 174:case 177:case 178:return u.name.kind===167&&c(u.name);case 211:case 212:return c(u.expression);case 303:return c(u.initializer);default:return!X9(u)&&!yh(u)&&!!Ao(u,c)}}}function J0(n){if(!n||!n.declarations)return je;let a=[];for(let c=0;c<n.declarations.length;c++){let u=n.declarations[c];if(Lo(u)){if(c>0&&u.body){let _=n.declarations[c-1];if(u.parent===_.parent&&u.kind===_.kind&&u.pos===_.end)continue}if(Jn(u)&&u.jsDoc){let _=z9(u);if(yn(_)){for(let g of _){let T=g.typeExpression;T.type===void 0&&!ll(u)&&IE(T,z),a.push(kf(T))}continue}}a.push(!e0(u)&&!qf(u)&&kP(u)||kf(u))}}return a}function PLe(n){let a=jd(n,n);if(a){let c=$u(a);if(c)return Yn(c)}return z}function bE(n){if(n.thisParameter)return Yn(n.thisParameter)}function df(n){if(!n.resolvedTypePredicate){if(n.target){let a=df(n.target);n.resolvedTypePredicate=a?irt(a,n.mapper):xe}else if(n.compositeSignatures)n.resolvedTypePredicate=ynt(n.compositeSignatures,n.compositeKind)||xe;else{let a=n.declaration&&Tf(n.declaration),c;if(!a){let u=kP(n.declaration);u&&n!==u&&(c=df(u))}n.resolvedTypePredicate=a&&T2(a)?Ett(a,n):c||xe}x.assert(!!n.resolvedTypePredicate)}return n.resolvedTypePredicate===xe?void 0:n.resolvedTypePredicate}function Ett(n,a){let c=n.parameterName,u=n.type&&si(n.type);return c.kind===197?O7(n.assertsModifier?2:0,void 0,void 0,u):O7(n.assertsModifier?3:1,c.escapedText,Tl(a.parameters,_=>_.escapedName===c.escapedText),u)}function MLe(n,a,c){return a!==2097152?Br(n,c):Zo(n)}function Ha(n){if(!n.resolvedReturnType){if(!nh(n,3))return it;let a=n.target?Gi(Ha(n.target),n.mapper):n.compositeSignatures?Gi(MLe(nn(n.compositeSignatures,Ha),n.compositeKind,2),n.mapper):mD(n.declaration)||(_l(n.declaration.body)?z:QQ(n.declaration));if(n.flags&8?a=pke(a):n.flags&16&&(a=ib(a)),!h_()){if(n.declaration){let c=Tf(n.declaration);if(c)we(c,f.Return_type_annotation_circularly_references_itself);else if(ce){let u=n.declaration,_=mo(u);_?we(_,f._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,is(_)):we(u,f.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=z}n.resolvedReturnType=a}return n.resolvedReturnType}function mD(n){if(n.kind===176)return cf(Oa(n.parent.symbol));let a=Tf(n);if(wb(n)){let c=ux(n);if(c&&ll(c.parent)&&!a)return cf(Oa(c.parent.parent.symbol))}if(dx(n))return si(n.parameters[0].type);if(a)return si(a);if(n.kind===177&&pD(n)){let c=Jn(n)&&xg(n);if(c)return c;let u=Vs(dr(n),178),_=_E(u);if(_)return _}return btt(n)}function W$(n){return n.compositeSignatures&&ct(n.compositeSignatures,W$)||!n.resolvedReturnType&&u1(n,3)>=0}function Stt(n){return LLe(n)||z}function LLe(n){if(Td(n)){let a=Yn(n.parameters[n.parameters.length-1]),c=ha(a)?fQ(a):a;return c&&yE(c,gt)}}function aw(n,a,c,u){let _=qme(n,Yy(a,n.typeParameters,oh(n.typeParameters),c));if(u){let g=HOe(Ha(_));if(g){let T=rw(g);T.typeParameters=u;let N=rw(_);return N.resolvedReturnType=XT(T),N}}return _}function qme(n,a){let c=n.instantiations||(n.instantiations=new Map),u=Of(a),_=c.get(u);return _||c.set(u,_=F$(n,a)),_}function F$(n,a){return ED(n,Ttt(n,a),!0)}function Ttt(n,a){return np(n.typeParameters,a)}function sw(n){return n.typeParameters?n.erasedSignatureCache||(n.erasedSignatureCache=Att(n)):n}function Att(n){return ED(n,w2e(n.typeParameters),!0)}function Itt(n){return n.typeParameters?n.canonicalSignatureCache||(n.canonicalSignatureCache=xtt(n)):n}function xtt(n){return aw(n,nn(n.typeParameters,a=>a.target&&!iu(a.target)?a.target:a),Jn(n.declaration))}function Rtt(n){let a=n.typeParameters;if(a){if(n.baseSignatureCache)return n.baseSignatureCache;let c=w2e(a),u=np(a,nn(a,g=>iu(g)||Zt)),_=nn(a,g=>Gi(g,u)||Zt);for(let g=0;g<a.length-1;g++)_=Mv(_,u);return _=Mv(_,c),n.baseSignatureCache=ED(n,np(a,_),!0)}return n}function XT(n){var a;if(!n.isolatedSignatureType){let c=(a=n.declaration)==null?void 0:a.kind,u=c===void 0||c===176||c===180||c===185,_=af(16);_.members=U,_.properties=je,_.callSignatures=u?je:[n],_.constructSignatures=u?[n]:je,_.indexInfos=je,n.isolatedSignatureType=_}return n.isolatedSignatureType}function Jme(n){return n.members?z$(n.members):void 0}function z$(n){return n.get("__index")}function ah(n,a,c,u){return{keyType:n,type:a,isReadonly:c,declaration:u}}function kLe(n){let a=Jme(n);return a?Kme(a):je}function Kme(n){if(n.declarations){let a=[];for(let c of n.declarations)if(c.parameters.length===1){let u=c.parameters[0];u.type&&aA(si(u.type),_=>{B$(_)&&!Bme(a,_)&&a.push(ah(_,c.type?si(c.type):z,zu(c,8),c))})}return a}return je}function B$(n){return!!(n.flags&4108)||$T(n)||!!(n.flags&2097152)&&!yD(n)&&ct(n.types,B$)}function Xme(n){return Fi(Cr(n.symbol&&n.symbol.declarations,qs),V1)[0]}function OLe(n,a){var c;let u;if((c=n.symbol)!=null&&c.declarations){for(let _ of n.symbol.declarations)if(_.parent.kind===195){let[g=_.parent,T]=nne(_.parent.parent);if(T.kind===183&&!a){let N=T,O=yge(N);if(O){let B=N.typeArguments.indexOf(g);if(B<O.length){let Q=iu(O[B]);if(Q){let me=x_e(O,O.map((We,at)=>()=>Vlt(N,O,at))),ue=Gi(Q,me);ue!==n&&(u=pn(u,ue))}}}}else if(T.kind===169&&T.dotDotDotToken||T.kind===191||T.kind===202&&T.dotDotDotToken)u=pn(u,_d(Zt));else if(T.kind===204)u=pn(u,Ie);else if(T.kind===168&&T.parent.kind===200)u=pn(u,fs);else if(T.kind===200&&T.type&&Ka(T.type)===_.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){let N=T.parent.checkType,O=si(N.type);u=pn(u,Gi(O,Q0(UT(dr(N.typeParameter)),N.typeParameter.constraint?si(N.typeParameter.constraint):fs)))}}}return u&&Zo(u)}function OP(n){if(!n.constraint)if(n.target){let a=iu(n.target);n.constraint=a?Gi(a,n.mapper):vs}else{let a=Xme(n);if(!a)n.constraint=OLe(n)||vs;else{let c=si(a);c.flags&1&&!Lt(c)&&(c=a.parent.parent.kind===200?fs:Zt),n.constraint=c}}return n.constraint===vs?void 0:n.constraint}function wLe(n){let a=Vs(n.symbol,168),c=Df(a.parent)?NW(a.parent):a.parent;return c&&Wp(c)}function Of(n){let a="";if(n){let c=n.length,u=0;for(;u<c;){let _=n[u].id,g=1;for(;u+g<c&&n[u+g].id===_+g;)g++;a.length&&(a+=","),a+=_,g>1&&(a+=":"+g),u+=g}}return a}function _1(n,a){return n?`@${na(n)}`+(a?`:${Of(a)}`:""):""}function G$(n,a){let c=0;for(let u of n)(a===void 0||!(u.flags&a))&&(c|=br(u));return c&458752}function _D(n,a){return ct(a)&&n===ho?Zt:Cv(n,a)}function Cv(n,a){let c=Of(a),u=n.instantiations.get(c);return u||(u=af(4,n.symbol),n.instantiations.set(c,u),u.objectFlags|=a?G$(a):0,u.target=n,u.resolvedTypeArguments=a),u}function WLe(n){let a=Gh(n.flags,n.symbol);return a.objectFlags=n.objectFlags,a.target=n.target,a.resolvedTypeArguments=n.resolvedTypeArguments,a}function Yme(n,a,c,u,_){if(!u){u=g1(a);let T=bD(u);_=c?Mv(T,c):T}let g=af(4,n.symbol);return g.target=n,g.node=a,g.mapper=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function Ss(n){var a,c;if(!n.resolvedTypeArguments){if(!nh(n,6))return((a=n.target.localTypeParameters)==null?void 0:a.map(()=>it))||je;let u=n.node,_=u?u.kind===183?ro(n.target.outerTypeParameters,rZ(u,n.target.localTypeParameters)):u.kind===188?[si(u.elementType)]:nn(u.elements,si):je;h_()?n.resolvedTypeArguments=n.mapper?Mv(_,n.mapper):_:(n.resolvedTypeArguments=((c=n.target.localTypeParameters)==null?void 0:c.map(()=>it))||je,we(n.node||R,n.target.symbol?f.Type_arguments_for_0_circularly_reference_themselves:f.Tuple_type_arguments_circularly_reference_themselves,n.target.symbol&&ai(n.target.symbol)))}return n.resolvedTypeArguments}function Nv(n){return yn(n.target.typeParameters)}function FLe(n,a){let c=Cs(Oa(a)),u=c.localTypeParameters;if(u){let _=yn(n.typeArguments),g=oh(u),T=Jn(n);if(!(!ce&&T)&&(_<g||_>u.length)){let B=T&&sv(n)&&!_I(n.parent),Q=g===u.length?B?f.Expected_0_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_1_type_argument_s:B?f.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:f.Generic_type_0_requires_between_1_and_2_type_arguments,me=Pn(c,void 0,2);if(we(n,Q,me,g,u.length),!T)return it}if(n.kind===183&&i2e(n,yn(n.typeArguments)!==u.length))return Yme(c,n,void 0);let O=ro(c.outerTypeParameters,Yy(w7(n),u,g,T));return Cv(c,O)}return K0(n,a)?c:it}function hD(n,a,c,u){let _=Cs(n);if(_===Qt){let B=u4.get(n.escapedName);if(B!==void 0&&a&&a.length===1)return B===4?$me(a[0]):h1(n,a[0])}let g=Pi(n),T=g.typeParameters,N=Of(a)+_1(c,u),O=g.instantiations.get(N);return O||g.instantiations.set(N,O=z2e(_,np(T,Yy(a,T,oh(T),Jn(n.valueDeclaration))),c,u)),O}function Dtt(n,a){if(tl(a)&1048576){let _=w7(n),g=_1(a,_),T=Ce.get(g);return T||(T=Fl(1,"error",void 0,`alias ${g}`),T.aliasSymbol=a,T.aliasTypeArguments=_,Ce.set(g,T)),T}let c=Cs(a),u=Pi(a).typeParameters;if(u){let _=yn(n.typeArguments),g=oh(u);if(_<g||_>u.length)return we(n,g===u.length?f.Generic_type_0_requires_1_type_argument_s:f.Generic_type_0_requires_between_1_and_2_type_arguments,ai(a),g,u.length),it;let T=g1(n),N=T&&(zLe(a)||!zLe(T))?T:void 0,O;if(N)O=bD(N);else if(X8(n)){let B=gD(n,2097152,!0);if(B&&B!==tt){let Q=fc(B);Q&&Q.flags&524288&&(N=Q,O=w7(n)||(u?[]:void 0))}}return hD(a,w7(n),N,O)}return K0(n,a)?c:it}function zLe(n){var a;let c=(a=n.declarations)==null?void 0:a.find(RL);return!!(c&&cp(c))}function Ctt(n){switch(n.kind){case 183:return n.typeName;case 233:let a=n.expression;if(gl(a))return a}}function BLe(n){return n.parent?`${BLe(n.parent)}.${n.escapedName}`:n.escapedName}function V$(n){let c=(n.kind===166?n.right:n.kind===211?n.name:n).escapedText;if(c){let u=n.kind===166?V$(n.left):n.kind===211?V$(n.expression):void 0,_=u?`${BLe(u)}.${c}`:c,g=re.get(_);return g||(re.set(_,g=xa(524288,c,1048576)),g.parent=u,g.links.declaredType=Ct),g}return tt}function gD(n,a,c){let u=Ctt(n);if(!u)return tt;let _=bs(u,a,c);return _&&_!==tt?_:c?tt:V$(u)}function j$(n,a){if(a===tt)return it;if(a=xP(a)||a,a.flags&96)return FLe(n,a);if(a.flags&524288)return Dtt(n,a);let c=rLe(a);if(c)return K0(n,a)?qd(c):it;if(a.flags&111551&&U$(n)){let u=Ntt(n,a);return u||(gD(n,788968),Yn(a))}return it}function Ntt(n,a){let c=Fr(n);if(!c.resolvedJSDocType){let u=Yn(a),_=u;if(a.valueDeclaration){let g=n.kind===205&&n.qualifier;u.symbol&&u.symbol!==a&&g&&(_=j$(n,u.symbol))}c.resolvedJSDocType=_}return c.resolvedJSDocType}function $me(n){return Qme(n)?GLe(n,Zt):n}function Qme(n){return!!(n.flags&3145728&&ct(n.types,Qme)||n.flags&33554432&&!wP(n)&&Qme(n.baseType)||n.flags&524288&&!lh(n)||n.flags&432275456&&!$T(n))}function wP(n){return!!(n.flags&33554432&&n.constraint.flags&2)}function Zme(n,a){return a.flags&3||a===n||n.flags&1?n:GLe(n,a)}function GLe(n,a){let c=`${Hd(n)}>${Hd(a)}`,u=so.get(c);if(u)return u;let _=Bh(33554432);return _.baseType=n,_.constraint=a,so.set(c,_),_}function e_e(n){return wP(n)?n.baseType:Zo([n.constraint,n.baseType])}function VLe(n){return n.kind===189&&n.elements.length===1}function jLe(n,a,c){return VLe(a)&&VLe(c)?jLe(n,a.elements[0],c.elements[0]):Zy(si(a))===Zy(n)?si(c):void 0}function Ptt(n,a){let c,u=!0;for(;a&&!Di(a)&&a.kind!==327;){let _=a.parent;if(_.kind===169&&(u=!u),(u||n.flags&8650752)&&_.kind===194&&a===_.trueType){let g=jLe(n,_.checkType,_.extendsType);g&&(c=pn(c,g))}else if(n.flags&262144&&_.kind===200&&!_.nameType&&a===_.type){let g=si(_);if(km(g)===Zy(n)){let T=fw(g);if(T){let N=iu(T);N&&Lu(N,AE)&&(c=pn(c,Br([gt,Va])))}}}a=_}return c?Zme(n,Zo(c)):n}function U$(n){return!!(n.flags&16777216)&&(n.kind===183||n.kind===205)}function K0(n,a){return n.typeArguments?(we(n,f.Type_0_is_not_generic,a?ai(a):n.typeName?is(n.typeName):s4),!1):!0}function ULe(n){if(Me(n.typeName)){let a=n.typeArguments;switch(n.typeName.escapedText){case"String":return K0(n),Ie;case"Number":return K0(n),gt;case"Boolean":return K0(n),ti;case"Void":return K0(n),jn;case"Undefined":return K0(n),Re;case"Null":return K0(n),se;case"Function":case"function":return K0(n),At;case"array":return(!a||!a.length)&&!ce?Nl:void 0;case"promise":return(!a||!a.length)&&!ce?R5(z):void 0;case"Object":if(a&&a.length===2){if(TW(n)){let c=si(a[0]),u=si(a[1]),_=c===Ie||c===gt?[ah(c,u,!1)]:je;return cs(void 0,U,je,je,_)}return z}return K0(n),ce?void 0:z}}}function Mtt(n){let a=si(n.type);return H?e5(a,65536):a}function t_e(n){let a=Fr(n);if(!a.resolvedType){if(Qh(n)&&ES(n.parent))return a.resolvedSymbol=tt,a.resolvedType=Ml(n.parent.expression);let c,u,_=788968;U$(n)&&(u=ULe(n),u||(c=gD(n,_,!0),c===tt?c=gD(n,_|111551):gD(n,_),u=j$(n,c))),u||(c=gD(n,_),u=j$(n,c)),a.resolvedSymbol=c,a.resolvedType=u}return a.resolvedType}function w7(n){return nn(n.typeArguments,si)}function HLe(n){let a=Fr(n);if(!a.resolvedType){let c=uwe(n);a.resolvedType=qd(gp(c))}return a.resolvedType}function qLe(n,a){function c(_){let g=_.declarations;if(g)for(let T of g)switch(T.kind){case 263:case 264:case 266:return T}}if(!n)return a?ho:da;let u=Cs(n);return u.flags&524288?yn(u.typeParameters)!==a?(we(c(n),f.Global_type_0_must_have_1_type_parameter_s,$s(n),a),a?ho:da):u:(we(c(n),f.Global_type_0_must_be_a_class_or_interface_type,$s(n)),a?ho:da)}function n_e(n,a){return WP(n,111551,a?f.Cannot_find_global_value_0:void 0)}function r_e(n,a){return WP(n,788968,a?f.Cannot_find_global_type_0:void 0)}function H$(n,a,c){let u=WP(n,788968,c?f.Cannot_find_global_type_0:void 0);if(u&&(Cs(u),yn(Pi(u).typeParameters)!==a)){let _=u.declarations&&Dr(u.declarations,Xf);we(_,f.Global_type_0_must_have_1_type_parameter_s,$s(u),a);return}return u}function WP(n,a,c){return Xs(void 0,n,a,c,n,!1,!1,!1)}function Pl(n,a,c){let u=r_e(n,c);return u||c?qLe(u,a):void 0}function Ltt(){return K_||(K_=Pl("TypedPropertyDescriptor",1,!0)||ho)}function ktt(){return Vn||(Vn=Pl("TemplateStringsArray",0,!0)||da)}function JLe(){return jr||(jr=Pl("ImportMeta",0,!0)||da)}function KLe(){if(!Or){let n=xa(0,"ImportMetaExpression"),a=JLe(),c=xa(4,"meta",8);c.parent=n,c.links.type=a;let u=Vo([c]);n.members=u,Or=cs(n,u,je,je,je)}return Or}function XLe(n){return zi||(zi=Pl("ImportCallOptions",0,n))||da}function i_e(n){return ma||(ma=Pl("ImportAttributes",0,n))||da}function YLe(n){return tu||(tu=n_e("Symbol",n))}function Ott(n){return nf||(nf=r_e("SymbolConstructor",n))}function $Le(){return d_||(d_=Pl("Symbol",0,!1))||da}function W7(n){return fg||(fg=Pl("Promise",1,n))||ho}function QLe(n){return fd||(fd=Pl("PromiseLike",1,n))||ho}function o_e(n){return mg||(mg=n_e("Promise",n))}function wtt(n){return Ku||(Ku=Pl("PromiseConstructorLike",0,n))||da}function q$(n){return k||(k=Pl("AsyncIterable",1,n))||ho}function Wtt(n){return ge||(ge=Pl("AsyncIterator",3,n))||ho}function Ftt(n){return Xe||(Xe=Pl("AsyncIterableIterator",1,n))||ho}function ztt(n){return Mt||(Mt=Pl("AsyncGenerator",3,n))||ho}function a_e(n){return Lh||(Lh=Pl("Iterable",1,n))||ho}function Btt(n){return mu||(mu=Pl("Iterator",3,n))||ho}function Gtt(n){return Y||(Y=Pl("IterableIterator",1,n))||ho}function Vtt(n){return Ye||(Ye=Pl("Generator",3,n))||ho}function jtt(n){return xt||(xt=Pl("IteratorYieldResult",1,n))||ho}function Utt(n){return Nt||(Nt=Pl("IteratorReturnResult",1,n))||ho}function ZLe(n){return _a||(_a=Pl("Disposable",0,n))||da}function Htt(n){return pl||(pl=Pl("AsyncDisposable",0,n))||da}function e2e(n,a=0){let c=WP(n,788968,void 0);return c&&qLe(c,a)}function qtt(){return Gc||(Gc=H$("Extract",2,!0)||tt),Gc===tt?void 0:Gc}function Jtt(){return nc||(nc=H$("Omit",2,!0)||tt),nc===tt?void 0:nc}function s_e(n){return Xu||(Xu=H$("Awaited",1,n)||(n?tt:void 0)),Xu===tt?void 0:Xu}function Ktt(){return _u||(_u=Pl("BigInt",0,!1))||da}function Xtt(n){return em??(em=Pl("ClassDecoratorContext",1,n))??ho}function Ytt(n){return tm??(tm=Pl("ClassMethodDecoratorContext",2,n))??ho}function $tt(n){return Ri??(Ri=Pl("ClassGetterDecoratorContext",2,n))??ho}function Qtt(n){return _g??(_g=Pl("ClassSetterDecoratorContext",2,n))??ho}function Ztt(n){return yv??(yv=Pl("ClassAccessorDecoratorContext",2,n))??ho}function ent(n){return nm??(nm=Pl("ClassAccessorDecoratorTarget",2,n))??ho}function tnt(n){return D0??(D0=Pl("ClassAccessorDecoratorResult",2,n))??ho}function nnt(n){return C0??(C0=Pl("ClassFieldDecoratorContext",2,n))??ho}function rnt(){return Ay||(Ay=n_e("NaN",!1))}function int(){return ja||(ja=H$("Record",2,!0)||tt),ja===tt?void 0:ja}function lw(n,a){return n!==ho?Cv(n,a):da}function t2e(n){return lw(Ltt(),[n])}function n2e(n){return lw(a_e(!0),[n])}function _d(n,a){return lw(a?Oo:Po,[n])}function l_e(n){switch(n.kind){case 190:return 2;case 191:return r2e(n);case 202:return n.questionToken?2:n.dotDotDotToken?r2e(n):1;default:return 1}}function r2e(n){return V7(n.type)?4:8}function ont(n){let a=lnt(n.parent);if(V7(n))return a?Oo:Po;let u=nn(n.elements,l_e);return c_e(u,a,nn(n.elements,ant))}function ant(n){return Ox(n)||ao(n)?n:void 0}function i2e(n,a){return!!g1(n)||o2e(n)&&(n.kind===188?$y(n.elementType):n.kind===189?ct(n.elements,$y):a||ct(n.typeArguments,$y))}function o2e(n){let a=n.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return o2e(a);case 265:return!0}return!1}function $y(n){switch(n.kind){case 183:return U$(n)||!!(gD(n,788968).flags&524288);case 186:return!0;case 198:return n.operator!==158&&$y(n.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return $y(n.type);case 191:return n.type.kind!==188||$y(n.type.elementType);case 192:case 193:return ct(n.types,$y);case 199:return $y(n.objectType)||$y(n.indexType);case 194:return $y(n.checkType)||$y(n.extendsType)||$y(n.trueType)||$y(n.falseType)}return!1}function snt(n){let a=Fr(n);if(!a.resolvedType){let c=ont(n);if(c===ho)a.resolvedType=da;else if(!(n.kind===189&&ct(n.elements,u=>!!(l_e(u)&8)))&&i2e(n))a.resolvedType=n.kind===189&&n.elements.length===0?c:Yme(c,n,void 0);else{let u=n.kind===188?[si(n.elementType)]:nn(n.elements,si);a.resolvedType=d_e(c,u)}}return a.resolvedType}function lnt(n){return jS(n)&&n.operator===148}function sh(n,a,c=!1,u=[]){let _=c_e(a||nn(n,g=>1),c,u);return _===ho?da:n.length?d_e(_,n):_}function c_e(n,a,c){if(n.length===1&&n[0]&4)return a?Oo:Po;let u=nn(n,g=>g&1?"#":g&2?"?":g&4?".":"*").join()+(a?"R":"")+(ct(c,g=>!!g)?","+nn(c,g=>g?Fa(g):"_").join(","):""),_=io.get(u);return _||io.set(u,_=cnt(n,a,c)),_}function cnt(n,a,c){let u=n.length,_=Wv(n,me=>!!(me&9)),g,T=[],N=0;if(u){g=new Array(u);for(let me=0;me<u;me++){let ue=g[me]=zp(),We=n[me];if(N|=We,!(N&12)){let at=xa(4|(We&2?16777216:0),""+me,a?8:0);at.links.tupleLabelDeclaration=c?.[me],at.links.type=ue,T.push(at)}}}let O=T.length,B=xa(4,"length",a?8:0);if(N&12)B.links.type=gt;else{let me=[];for(let ue=_;ue<=u;ue++)me.push(Wm(ue));B.links.type=Br(me)}T.push(B);let Q=af(12);return Q.typeParameters=g,Q.outerTypeParameters=void 0,Q.localTypeParameters=g,Q.instantiations=new Map,Q.instantiations.set(Of(Q.typeParameters),Q),Q.target=Q,Q.resolvedTypeArguments=Q.typeParameters,Q.thisType=zp(),Q.thisType.isThisType=!0,Q.thisType.constraint=Q,Q.declaredProperties=T,Q.declaredCallSignatures=je,Q.declaredConstructSignatures=je,Q.declaredIndexInfos=je,Q.elementFlags=n,Q.minLength=_,Q.fixedLength=O,Q.hasRestElement=!!(N&12),Q.combinedFlags=N,Q.readonly=a,Q.labeledElementDeclarations=c,Q}function d_e(n,a){return n.objectFlags&8?u_e(n,a):Cv(n,a)}function u_e(n,a){var c,u,_,g;if(!(n.combinedFlags&14))return Cv(n,a);if(n.combinedFlags&8){let at=Tl(a,(ht,qt)=>!!(n.elementFlags[qt]&8&&ht.flags&1179648));if(at>=0)return z7(nn(a,(ht,qt)=>n.elementFlags[qt]&8?ht:Zt))?Gs(a[at],ht=>u_e(n,oB(a,at,ht))):it}let T=[],N=[],O=[],B=-1,Q=-1,me=-1;for(let at=0;at<a.length;at++){let ht=a[at],qt=n.elementFlags[at];if(qt&8)if(ht.flags&1)We(ht,4,(c=n.labeledElementDeclarations)==null?void 0:c[at]);else if(ht.flags&58982400||vu(ht))We(ht,8,(u=n.labeledElementDeclarations)==null?void 0:u[at]);else if(ha(ht)){let Xt=X0(ht);if(Xt.length+T.length>=1e4)return we(R,yh(R)?f.Type_produces_a_tuple_type_that_is_too_large_to_represent:f.Expression_produces_a_tuple_type_that_is_too_large_to_represent),it;an(Xt,(Hn,En)=>{var Kt;return We(Hn,ht.target.elementFlags[En],(Kt=ht.target.labeledElementDeclarations)==null?void 0:Kt[En])})}else We(Lv(ht)&&yE(ht,gt)||it,4,(_=n.labeledElementDeclarations)==null?void 0:_[at]);else We(ht,qt,(g=n.labeledElementDeclarations)==null?void 0:g[at])}for(let at=0;at<B;at++)N[at]&2&&(N[at]=1);Q>=0&&Q<me&&(T[Q]=Br(sc(T.slice(Q,me+1),(at,ht)=>N[Q+ht]&8?tp(at,gt):at)),T.splice(Q+1,me-Q),N.splice(Q+1,me-Q),O.splice(Q+1,me-Q));let ue=c_e(N,n.readonly,O);return ue===ho?da:N.length?Cv(ue,T):ue;function We(at,ht,qt){ht&1&&(B=N.length),ht&4&&Q<0&&(Q=N.length),ht&6&&(me=N.length),T.push(ht&2?Mu(at,!0):at),N.push(ht),O.push(qt)}}function FP(n,a,c=0){let u=n.target,_=Nv(n)-c;return a>u.fixedLength?Xrt(n)||sh(je):sh(Ss(n).slice(a,_),u.elementFlags.slice(a,_),!1,u.labeledElementDeclarations&&u.labeledElementDeclarations.slice(a,_))}function a2e(n){return Br(pn(OZ(n.target.fixedLength,a=>yu(""+a)),v_(n.target.readonly?Oo:Po)))}function dnt(n,a){let c=Tl(n.elementFlags,u=>!(u&a));return c>=0?c:n.elementFlags.length}function cw(n,a){return n.elementFlags.length-Uw(n.elementFlags,c=>!(c&a))-1}function p_e(n){return n.fixedLength+cw(n,3)}function X0(n){let a=Ss(n),c=Nv(n);return a.length===c?a:a.slice(0,c)}function unt(n){return Mu(si(n.type),!0)}function Hd(n){return n.id}function Mg(n,a){return Vg(n,a,Hd,Ms)>=0}function F7(n,a){let c=Vg(n,a,Hd,Ms);return c<0?(n.splice(~c,0,a),!0):!1}function pnt(n,a,c){let u=c.flags;if(!(u&131072))if(a|=u&473694207,u&465829888&&(a|=33554432),u&2097152&&br(c)&67108864&&(a|=536870912),c===_t&&(a|=8388608),!H&&u&98304)br(c)&65536||(a|=4194304);else{let _=n.length,g=_&&c.id>n[_-1].id?~_:Vg(n,c,Hd,Ms);g<0&&n.splice(~g,0,c)}return a}function s2e(n,a,c){let u;for(let _ of c)_!==u&&(a=_.flags&1048576?s2e(n,a|(vnt(_)?1048576:0),_.types):pnt(n,a,_),u=_);return a}function fnt(n,a){var c;if(n.length<2)return n;let u=Of(n),_=Jo.get(u);if(_)return _;let g=a&&ct(n,B=>!!(B.flags&524288)&&!vu(B)&&k_e(Om(B))),T=n.length,N=T,O=0;for(;N>0;){N--;let B=n[N];if(g||B.flags&469499904){if(B.flags&262144&&Pg(B).flags&1048576){y_(B,Br(nn(n,ue=>ue===B?Ar:ue)),rf)&&Bv(n,N);continue}let Q=B.flags&61603840?Dr(Xa(B),ue=>Fm(Yn(ue))):void 0,me=Q&&qd(Yn(Q));for(let ue of n)if(B!==ue){if(O===1e5&&O/(T-N)*T>1e6){(c=qn)==null||c.instant(qn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:n.map(at=>at.id)}),we(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(O++,Q&&ue.flags&61603840){let We=Fe(ue,Q.escapedName);if(We&&Fm(We)&&qd(We)!==me)continue}if(y_(B,ue,rf)&&(!(br(Rv(B))&1)||!(br(Rv(ue))&1)||TE(B,ue))){Bv(n,N);break}}}}return Jo.set(u,n),n}function mnt(n,a,c){let u=n.length;for(;u>0;){u--;let _=n[u],g=_.flags;(g&402653312&&a&4||g&256&&a&8||g&2048&&a&64||g&8192&&a&4096||c&&g&32768&&a&16384||$0(_)&&Mg(n,_.regularType))&&Bv(n,u)}}function _nt(n){let a=Cr(n,$T);if(a.length){let c=n.length;for(;c>0;){c--;let u=n[c];u.flags&128&&ct(a,_=>hnt(u,_))&&Bv(n,c)}}}function hnt(n,a){return a.flags&134217728?TQ(n,a):SQ(n,a)}function gnt(n){let a=[];for(let c of n)if(c.flags&2097152&&br(c)&67108864){let u=c.types[0].flags&8650752?0:1;jp(a,c.types[u])}for(let c of a){let u=[];for(let g of n)if(g.flags&2097152&&br(g)&67108864){let T=g.types[0].flags&8650752?0:1;g.types[T]===c&&F7(u,g.types[1-T])}let _=md(c);if(Lu(_,g=>Mg(u,g))){let g=n.length;for(;g>0;){g--;let T=n[g];if(T.flags&2097152&&br(T)&67108864){let N=T.types[0].flags&8650752?0:1;T.types[N]===c&&Mg(u,T.types[1-N])&&Bv(n,g)}}F7(n,c)}}}function vnt(n){return!!(n.flags&1048576&&(n.aliasSymbol||n.origin))}function l2e(n,a){for(let c of a)if(c.flags&1048576){let u=c.origin;c.aliasSymbol||u&&!(u.flags&1048576)?jp(n,c):u&&u.flags&1048576&&l2e(n,u.types)}}function f_e(n,a){let c=l1(n);return c.types=a,c}function Br(n,a=1,c,u,_){if(n.length===0)return Ar;if(n.length===1)return n[0];if(n.length===2&&!_&&(n[0].flags&1048576||n[1].flags&1048576)){let g=a===0?"N":a===2?"S":"L",T=n[0].id<n[1].id?0:1,N=n[T].id+g+n[1-T].id+_1(c,u),O=Nr.get(N);return O||(O=c2e(n,a,c,u,void 0),Nr.set(N,O)),O}return c2e(n,a,c,u,_)}function c2e(n,a,c,u,_){let g=[],T=s2e(g,0,n);if(a!==0){if(T&3)return T&1?T&8388608?_t:z:T&65536||Mg(g,Zt)?Zt:V;if(T&32768&&g.length>=2&&g[0]===Re&&g[1]===M&&Bv(g,1),(T&402664352||T&16384&&T&32768)&&mnt(g,T,!!(a&2)),T&128&&T&402653184&&_nt(g),T&536870912&&gnt(g),a===2&&(g=fnt(g,!!(T&524288)),!g))return it;if(g.length===0)return T&65536?T&4194304?se:Pe:T&32768?T&4194304?Re:St:Ar}if(!_&&T&1048576){let O=[];l2e(O,n);let B=[];for(let me of g)ct(O,ue=>Mg(ue.types,me))||B.push(me);if(!c&&O.length===1&&B.length===0)return O[0];if(Nd(O,(me,ue)=>me+ue.types.length,0)+B.length===g.length){for(let me of O)F7(B,me);_=f_e(1048576,B)}}let N=(T&36323331?0:32768)|(T&2097152?16777216:0);return __e(g,N,c,u,_)}function ynt(n,a){let c,u=[];for(let g of n){let T=df(g);if(T){if(T.kind!==0&&T.kind!==1||c&&!m_e(c,T))return;c=T,u.push(T.type)}else{let N=a!==2097152?Ha(g):void 0;if(N!==Ot&&N!==dn)return}}if(!c)return;let _=MLe(u,a);return O7(c.kind,c.parameterName,c.parameterIndex,_)}function m_e(n,a){return n.kind===a.kind&&n.parameterIndex===a.parameterIndex}function __e(n,a,c,u,_){if(n.length===0)return Ar;if(n.length===1)return n[0];let T=(_?_.flags&1048576?`|${Of(_.types)}`:_.flags&2097152?`&${Of(_.types)}`:`#${_.type.id}|${Of(n)}`:Of(n))+_1(c,u),N=Gn.get(T);return N||(N=Bh(1048576),N.objectFlags=a|G$(n,98304),N.types=n,N.origin=_,N.aliasSymbol=c,N.aliasTypeArguments=u,n.length===2&&n[0].flags&512&&n[1].flags&512&&(N.flags|=16,N.intrinsicName="boolean"),Gn.set(T,N)),N}function bnt(n){let a=Fr(n);if(!a.resolvedType){let c=g1(n);a.resolvedType=Br(nn(n.types,si),1,c,bD(c))}return a.resolvedType}function Ent(n,a,c){let u=c.flags;return u&2097152?d2e(n,a,c.types):(lh(c)?a&16777216||(a|=16777216,n.set(c.id.toString(),c)):(u&3?c===_t&&(a|=8388608):(H||!(u&98304))&&(c===M&&(a|=262144,c=Re),n.has(c.id.toString())||(c.flags&109472&&a&109472&&(a|=67108864),n.set(c.id.toString(),c))),a|=u&473694207),a)}function d2e(n,a,c){for(let u of c)a=Ent(n,a,qd(u));return a}function Snt(n,a){let c=n.length;for(;c>0;){c--;let u=n[c];(u.flags&4&&a&402653312||u.flags&8&&a&256||u.flags&64&&a&2048||u.flags&4096&&a&8192||u.flags&16384&&a&32768||lh(u)&&a&470302716)&&Bv(n,c)}}function Tnt(n,a){for(let c of n)if(!Mg(c.types,a)){let u=a.flags&128?Ie:a.flags&288?gt:a.flags&2048?bt:a.flags&8192?di:void 0;if(!u||!Mg(c.types,u))return!1}return!0}function Ant(n){let a=n.length,c=Cr(n,u=>!!(u.flags&128));for(;a>0;){a--;let u=n[a];if(u.flags&402653184){for(let _ of c)if(tb(_,u)){Bv(n,a);break}else if($T(u))return!0}}return!1}function u2e(n,a){for(let c=0;c<n.length;c++)n[c]=Bl(n[c],u=>!(u.flags&a))}function Int(n){let a,c=Tl(n,T=>!!(br(T)&32768));if(c<0)return!1;let u=c+1;for(;u<n.length;){let T=n[u];br(T)&32768?((a||(a=[n[c]])).push(T),Bv(n,u)):u++}if(!a)return!1;let _=[],g=[];for(let T of a)for(let N of T.types)F7(_,N)&&Tnt(a,N)&&F7(g,N);return n[c]=__e(g,32768),!0}function xnt(n,a,c,u){let _=Bh(2097152);return _.objectFlags=a|G$(n,98304),_.types=n,_.aliasSymbol=c,_.aliasTypeArguments=u,_}function Zo(n,a,c,u){let _=new Map,g=d2e(_,0,n),T=bo(_.values()),N=0;if(g&131072)return To(T,Zi)?Zi:Ar;if(H&&g&98304&&g&84410368||g&67108864&&g&402783228||g&402653316&&g&67238776||g&296&&g&469891796||g&2112&&g&469889980||g&12288&&g&469879804||g&49152&&g&469842940||g&402653184&&g&128&&Ant(T))return Ar;if(g&1)return g&8388608?_t:z;if(!H&&g&98304)return g&16777216?Ar:g&32768?Re:se;if((g&4&&g&402653312||g&8&&g&256||g&64&&g&2048||g&4096&&g&8192||g&16384&&g&32768||g&16777216&&g&470302716)&&(u||Snt(T,g)),g&262144&&(T[T.indexOf(Re)]=M),T.length===0)return Zt;if(T.length===1)return T[0];if(T.length===2){let Q=T[0].flags&8650752?0:1,me=T[Q],ue=T[1-Q];if(me.flags&8650752&&(ue.flags&469893116&&!S2e(ue)||g&16777216)){let We=md(me);if(We&&Lu(We,at=>!!(at.flags&469893116)||lh(at))){if(H7(We,ue))return me;if(!(We.flags&1048576&&dm(We,at=>H7(at,ue)))&&!H7(ue,We))return Ar;N=67108864}}}let O=Of(T)+_1(a,c),B=cr.get(O);if(!B){if(g&1048576)if(Int(T))B=Zo(T,a,c);else if(ji(T,Q=>!!(Q.flags&1048576&&Q.types[0].flags&32768))){let Q=ct(T,bw)?M:Re;u2e(T,32768),B=Br([Zo(T),Q],1,a,c)}else if(ji(T,Q=>!!(Q.flags&1048576&&(Q.types[0].flags&65536||Q.types[1].flags&65536))))u2e(T,65536),B=Br([Zo(T),se],1,a,c);else if(T.length>=4){let Q=Math.floor(T.length/2);B=Zo([Zo(T.slice(0,Q)),Zo(T.slice(Q))],a,c)}else{if(!z7(T))return it;let Q=Rnt(T),me=ct(Q,ue=>!!(ue.flags&2097152))&&h_e(Q)>h_e(T)?f_e(2097152,T):void 0;B=Br(Q,1,a,c,me)}else B=xnt(T,N,a,c);cr.set(O,B)}return B}function p2e(n){return Nd(n,(a,c)=>c.flags&1048576?a*c.types.length:c.flags&131072?0:a,1)}function z7(n){var a;let c=p2e(n);return c>=1e5?((a=qn)==null||a.instant(qn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:n.map(u=>u.id),size:c}),we(R,f.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Rnt(n){let a=p2e(n),c=[];for(let u=0;u<a;u++){let _=n.slice(),g=u;for(let N=n.length-1;N>=0;N--)if(n[N].flags&1048576){let O=n[N].types,B=O.length;_[N]=O[g%B],g=Math.floor(g/B)}let T=Zo(_);T.flags&131072||c.push(T)}return c}function f2e(n){return!(n.flags&3145728)||n.aliasSymbol?1:n.flags&1048576&&n.origin?f2e(n.origin):h_e(n.types)}function h_e(n){return Nd(n,(a,c)=>a+f2e(c),0)}function Dnt(n){let a=Fr(n);if(!a.resolvedType){let c=g1(n),u=nn(n.types,si),_=u.length===2?u.indexOf(Wl):-1,g=_>=0?u[1-_]:Zt,T=!!(g.flags&76||g.flags&134217728&&$T(g));a.resolvedType=Zo(u,c,bD(c),T)}return a.resolvedType}function m2e(n,a){let c=Bh(4194304);return c.type=n,c.indexFlags=a,c}function Cnt(n){let a=l1(4194304);return a.type=n,a}function _2e(n,a){return a&1?n.resolvedStringIndexType||(n.resolvedStringIndexType=m2e(n,1)):n.resolvedIndexType||(n.resolvedIndexType=m2e(n,0))}function h2e(n,a){let c=km(n),u=Gp(n),_=Dv(n.target||n);if(!_&&!(a&2))return u;let g=[];if(ZT(u)){if(fD(n))return _2e(n,a);aA(u,N)}else if(fD(n)){let O=ou(HT(n));Pme(O,8576,!!(a&1),N)}else aA(N7(u),N);let T=a&2?Bl(Br(g),O=>!(O.flags&5)):Br(g);if(T.flags&1048576&&u.flags&1048576&&Of(T.types)===Of(u.types))return u;return T;function N(O){let B=_?Gi(_,pw(n.mapper,c,O)):O;g.push(B===Ie?lo:B)}}function Nnt(n){let a=km(n);return c(Dv(n)||a);function c(u){return u.flags&470810623?!0:u.flags&16777216?u.root.isDistributive&&u.checkType===a:u.flags&137363456?ji(u.types,c):u.flags&8388608?c(u.objectType)&&c(u.indexType):u.flags&33554432?c(u.baseType)&&c(u.constraint):u.flags&268435456?c(u.type):!1}}function Pv(n){if(Ci(n))return Ar;if(Bu(n))return qd(Xi(n));if(Pa(n))return qd(Hh(n));let a=MS(n);return a!==void 0?yu(Ii(a)):lt(n)?qd(Xi(n)):Ar}function vD(n,a,c){if(c||!(Kp(n)&6)){let u=Pi(L$(n)).nameType;if(!u){let _=mo(n.valueDeclaration);u=n.escapedName==="default"?yu("default"):_&&Pv(_)||(WL(n)?void 0:yu($s(n)))}if(u&&u.flags&a)return u}return Ar}function g2e(n,a){return!!(n.flags&a||n.flags&2097152&&ct(n.types,c=>g2e(c,a)))}function Pnt(n,a,c){let u=c&&(br(n)&7||n.aliasSymbol)?Cnt(n):void 0,_=nn(Xa(n),T=>vD(T,a)),g=nn(Ud(n),T=>T!==Ir&&g2e(T.keyType,a)?T.keyType===Ie&&a&8?lo:T.keyType:Ar);return Br(ro(_,g),1,void 0,void 0,u)}function g_e(n,a=0){return!!(n.flags&58982400||rb(n)||vu(n)&&(!Nnt(n)||O$(n)===2)||n.flags&1048576&&!(a&4)&&Fme(n)||n.flags&2097152&&ol(n,465829888)&&ct(n.types,lh))}function v_(n,a=Oe){return n=wm(n),wP(n)?$me(v_(n.baseType,a)):g_e(n,a)?_2e(n,a):n.flags&1048576?Zo(nn(n.types,c=>v_(c,a))):n.flags&2097152?Br(nn(n.types,c=>v_(c,a))):br(n)&32?h2e(n,a):n===_t?_t:n.flags&2?Ar:n.flags&131073?fs:Pnt(n,(a&2?128:402653316)|(a&1?0:12584),a===Oe)}function v2e(n){if(Ae)return n;let a=qtt();return a?hD(a,[n,Ie]):Ie}function Mnt(n){let a=v2e(v_(n));return a.flags&131072?Ie:a}function Lnt(n){let a=Fr(n);if(!a.resolvedType)switch(n.operator){case 143:a.resolvedType=v_(si(n.type));break;case 158:a.resolvedType=n.type.kind===155?I_e(PL(n.parent)):it;break;case 148:a.resolvedType=si(n.type);break;default:x.assertNever(n.operator)}return a.resolvedType}function knt(n){let a=Fr(n);return a.resolvedType||(a.resolvedType=YT([n.head.text,...nn(n.templateSpans,c=>c.literal.text)],nn(n.templateSpans,c=>si(c.type)))),a.resolvedType}function YT(n,a){let c=Tl(a,B=>!!(B.flags&1179648));if(c>=0)return z7(a)?Gs(a[c],B=>YT(n,oB(a,c,B))):it;if(To(a,_t))return _t;let u=[],_=[],g=n[0];if(!O(n,a))return Ie;if(u.length===0)return yu(g);if(_.push(g),ji(_,B=>B==="")){if(ji(u,B=>!!(B.flags&4)))return Ie;if(u.length===1&&$T(u[0]))return u[0]}let T=`${Of(u)}|${nn(_,B=>B.length).join(",")}|${_.join("")}`,N=ni.get(T);return N||ni.set(T,N=wnt(_,u)),N;function O(B,Q){for(let me=0;me<Q.length;me++){let ue=Q[me];if(ue.flags&101248)g+=Ont(ue)||"",g+=B[me+1];else if(ue.flags&134217728){if(g+=ue.texts[0],!O(ue.texts,ue.types))return!1;g+=B[me+1]}else if(ZT(ue)||B7(ue))u.push(ue),_.push(g),g=B[me+1];else return!1}return!0}}function Ont(n){return n.flags&128?n.value:n.flags&256?""+n.value:n.flags&2048?ZE(n.value):n.flags&98816?n.intrinsicName:void 0}function wnt(n,a){let c=Bh(134217728);return c.texts=n,c.types=a,c}function h1(n,a){return a.flags&1179648?Gs(a,c=>h1(n,c)):a.flags&128?yu(y2e(n,a.value)):a.flags&134217728?YT(...Wnt(n,a.texts,a.types)):a.flags&268435456&&n===a.symbol?a:a.flags&268435461||ZT(a)?b2e(n,a):B7(a)?b2e(n,YT(["",""],[a])):a}function y2e(n,a){switch(u4.get(n.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Wnt(n,a,c){switch(u4.get(n.escapedName)){case 0:return[a.map(u=>u.toUpperCase()),c.map(u=>h1(n,u))];case 1:return[a.map(u=>u.toLowerCase()),c.map(u=>h1(n,u))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[h1(n,c[0]),...c.slice(1)]:c];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[h1(n,c[0]),...c.slice(1)]:c]}return[a,c]}function b2e(n,a){let c=`${na(n)},${Hd(a)}`,u=ki.get(c);return u||ki.set(c,u=Fnt(n,a)),u}function Fnt(n,a){let c=Gh(268435456,n);return c.type=a,c}function znt(n,a,c,u,_){let g=Bh(8388608);return g.objectType=n,g.indexType=a,g.accessFlags=c,g.aliasSymbol=u,g.aliasTypeArguments=_,g}function dw(n){if(ce)return!1;if(br(n)&4096)return!0;if(n.flags&1048576)return ji(n.types,dw);if(n.flags&2097152)return ct(n.types,dw);if(n.flags&465829888){let a=Ome(n);return a!==n&&dw(a)}return!1}function J$(n,a){return Af(n)?If(n):a&&kl(a)?MS(a):void 0}function v_e(n,a){if(a.flags&8208){let c=Rn(n.parent,u=>!ds(u))||n.parent;return WE(c)?Um(c)&&Me(n)&&Cke(c,n):ji(a.declarations,u=>!Lo(u)||Sv(u))}return!0}function E2e(n,a,c,u,_,g){let T=_&&_.kind===212?_:void 0,N=_&&Ci(_)?void 0:J$(c,_);if(N!==void 0){if(g&256)return DE(a,N)||z;let B=Qo(a,N);if(B){if(g&64&&_&&B.declarations&&Dy(B)&&v_e(_,B)){let me=T?.argumentExpression??(US(_)?_.indexType:_);Tv(me,B.declarations,N)}if(T){if(v5(B,T,zOe(T.expression,a.symbol)),Dwe(T,B,WA(T))){we(T.argumentExpression,f.Cannot_assign_to_0_because_it_is_a_read_only_property,ai(B));return}if(g&8&&(Fr(_).resolvedSymbol=B),MOe(T,B))return Je}let Q=g&4?q0(B):Yn(B);return T&&WA(T)!==1?ab(T,Q):_&&US(_)&&bw(Q)?Br([Q,Re]):Q}if(Lu(a,ha)&&Rh(N)){let Q=+N;if(_&&Lu(a,me=>!me.target.hasRestElement)&&!(g&16)){let me=y_e(_);if(ha(a)){if(Q<0)return we(me,f.A_tuple_type_cannot_be_indexed_with_a_negative_value),Re;we(me,f.Tuple_type_0_of_length_1_has_no_element_at_index_2,Pn(a),Nv(a),Ii(N))}else we(me,f.Property_0_does_not_exist_on_type_1,Ii(N),Pn(a))}if(Q>=0)return O(Uh(a,gt)),cke(a,Q,g&1?M:void 0)}}if(!(c.flags&98304)&&ed(c,402665900)){if(a.flags&131073)return a;let B=iw(a,c)||Uh(a,Ie);if(B){if(g&2&&B.keyType!==gt){T&&(g&4?we(T,f.Type_0_is_generic_and_can_only_be_indexed_for_reading,Pn(n)):we(T,f.Type_0_cannot_be_used_to_index_type_1,Pn(c),Pn(n)));return}if(_&&B.keyType===Ie&&!ed(c,12)){let Q=y_e(_);return we(Q,f.Type_0_cannot_be_used_as_an_index_type,Pn(c)),g&1?Br([B.type,M]):B.type}return O(B),g&1&&!(a.symbol&&a.symbol.flags&384&&c.symbol&&c.flags&1024&&nu(c.symbol)===a.symbol)?Br([B.type,M]):B.type}if(c.flags&131072)return Ar;if(dw(a))return z;if(T&&!eZ(a)){if(RE(a)){if(ce&&c.flags&384)return La.add(vr(T,f.Property_0_does_not_exist_on_type_1,c.value,Pn(a))),Re;if(c.flags&12){let Q=nn(a.properties,me=>Yn(me));return Br(pn(Q,Re))}}if(a.symbol===Ke&&N!==void 0&&Ke.exports.has(N)&&Ke.exports.get(N).flags&418)we(T,f.Property_0_does_not_exist_on_type_1,Ii(N),Pn(a));else if(ce&&!F.suppressImplicitAnyIndexErrors&&!(g&128))if(N!==void 0&&wOe(N,a)){let Q=Pn(a);we(T,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,N,Q,Q+"["+Vl(T.argumentExpression)+"]")}else if(yE(a,gt))we(T.argumentExpression,f.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Q;if(N!==void 0&&(Q=jhe(N,a)))Q!==void 0&&we(T.argumentExpression,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,N,Pn(a),Q);else{let me=Wat(a,T,c);if(me!==void 0)we(T,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,Pn(a),me);else{let ue;if(c.flags&1024)ue=So(void 0,f.Property_0_does_not_exist_on_type_1,"["+Pn(c)+"]",Pn(a));else if(c.flags&8192){let We=mp(c.symbol,T);ue=So(void 0,f.Property_0_does_not_exist_on_type_1,"["+We+"]",Pn(a))}else c.flags&128||c.flags&256?ue=So(void 0,f.Property_0_does_not_exist_on_type_1,c.value,Pn(a)):c.flags&12&&(ue=So(void 0,f.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,Pn(c),Pn(a)));ue=So(ue,f.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,Pn(u),Pn(a)),La.add(eg(Nn(T),T,ue))}}}return}}if(dw(a))return z;if(_){let B=y_e(_);c.flags&384?we(B,f.Property_0_does_not_exist_on_type_1,""+c.value,Pn(a)):c.flags&12?we(B,f.Type_0_has_no_matching_index_signature_for_type_1,Pn(a),Pn(c)):we(B,f.Type_0_cannot_be_used_as_an_index_type,Pn(c))}if(vt(c))return c;return;function O(B){B&&B.isReadonly&&T&&(Sh(T)||G9(T))&&we(T,f.Index_signature_in_type_0_only_permits_reading,Pn(a))}}function y_e(n){return n.kind===212?n.argumentExpression:n.kind===199?n.indexType:n.kind===167?n.expression:n}function B7(n){if(n.flags&2097152){let a=!1;for(let c of n.types)if(c.flags&101248||B7(c))a=!0;else if(!(c.flags&524288))return!1;return a}return!!(n.flags&77)||$T(n)}function $T(n){return!!(n.flags&134217728)&&ji(n.types,B7)||!!(n.flags&268435456)&&B7(n.type)}function S2e(n){return!!(n.flags&402653184)&&!$T(n)}function yD(n){return!!uw(n)}function QT(n){return!!(uw(n)&4194304)}function ZT(n){return!!(uw(n)&8388608)}function uw(n){return n.flags&3145728?(n.objectFlags&2097152||(n.objectFlags|=2097152|Nd(n.types,(a,c)=>a|uw(c),0)),n.objectFlags&12582912):n.flags&33554432?(n.objectFlags&2097152||(n.objectFlags|=2097152|uw(n.baseType)|uw(n.constraint)),n.objectFlags&12582912):(n.flags&58982400||vu(n)||rb(n)?4194304:0)|(n.flags&63176704||S2e(n)?8388608:0)}function Lg(n,a){return n.flags&8388608?Gnt(n,a):n.flags&16777216?Vnt(n,a):n}function T2e(n,a,c){if(n.flags&1048576||n.flags&2097152&&!g_e(n)){let u=nn(n.types,_=>Lg(tp(_,a),c));return n.flags&2097152||c?Zo(u):Br(u)}}function Bnt(n,a,c){if(a.flags&1048576){let u=nn(a.types,_=>Lg(tp(n,_),c));return c?Zo(u):Br(u)}}function Gnt(n,a){let c=a?"simplifiedForWriting":"simplifiedForReading";if(n[c])return n[c]===Pc?n:n[c];n[c]=Pc;let u=Lg(n.objectType,a),_=Lg(n.indexType,a),g=Bnt(u,_,a);if(g)return n[c]=g;if(!(_.flags&465829888)){let T=T2e(u,_,a);if(T)return n[c]=T}if(rb(u)&&_.flags&296){let T=jP(u,_.flags&8?0:u.target.fixedLength,0,a);if(T)return n[c]=T}return vu(u)&&O$(u)!==2?n[c]=Gs(K$(u,n.indexType),T=>Lg(T,a)):n[c]=n}function Vnt(n,a){let c=n.checkType,u=n.extendsType,_=EE(n),g=SE(n);if(g.flags&131072&&Zy(_)===Zy(c)){if(c.flags&1||ea(tA(c),tA(u)))return Lg(_,a);if(A2e(c,u))return Ar}else if(_.flags&131072&&Zy(g)===Zy(c)){if(!(c.flags&1)&&ea(tA(c),tA(u)))return Ar;if(c.flags&1||A2e(c,u))return Lg(g,a)}return n}function A2e(n,a){return!!(Br([C7(n,a),Ar]).flags&131072)}function K$(n,a){let c=np([km(n)],[a]),u=Z0(n.mapper,c);return Gi(Ng(n.target||n),u)}function tp(n,a,c=0,u,_,g){return Qy(n,a,c,u,_,g)||(u?it:Zt)}function I2e(n,a){return Lu(n,c=>{if(c.flags&384){let u=If(c);if(Rh(u)){let _=+u;return _>=0&&_<a}}return!1})}function Qy(n,a,c=0,u,_,g){if(n===_t||a===_t)return _t;if(n=wm(n),K2e(n)&&!(a.flags&98304)&&ed(a,12)&&(a=Ie),F.noUncheckedIndexedAccess&&c&32&&(c|=1),ZT(a)||(u&&u.kind!==199?rb(n)&&!I2e(a,p_e(n.target)):QT(n)&&!(ha(n)&&I2e(a,p_e(n.target)))||Fme(n))){if(n.flags&3)return n;let N=c&1,O=n.id+","+a.id+","+N+_1(_,g),B=qr.get(O);return B||qr.set(O,B=znt(n,a,N,_,g)),B}let T=LP(n);if(a.flags&1048576&&!(a.flags&16)){let N=[],O=!1;for(let B of a.types){let Q=E2e(n,T,B,a,u,c|(O?128:0));if(Q)N.push(Q);else if(u)O=!0;else return}return O?void 0:c&4?Zo(N,_,g):Br(N,1,_,g)}return E2e(n,T,a,a,u,c|8|64)}function x2e(n){let a=Fr(n);if(!a.resolvedType){let c=si(n.objectType),u=si(n.indexType),_=g1(n);a.resolvedType=tp(c,u,0,n,_,bD(_))}return a.resolvedType}function b_e(n){let a=Fr(n);if(!a.resolvedType){let c=af(32,n.symbol);c.declaration=n,c.aliasSymbol=g1(n),c.aliasTypeArguments=bD(c.aliasSymbol),a.resolvedType=c,Gp(c)}return a.resolvedType}function Zy(n){return n.flags&33554432?Zy(n.baseType):n.flags&8388608&&(n.objectType.flags&33554432||n.indexType.flags&33554432)?tp(Zy(n.objectType),Zy(n.indexType)):n}function R2e(n){return aI(n)&&yn(n.elements)>0&&!ct(n.elements,a=>m6(a)||_6(a)||Ox(a)&&!!(a.questionToken||a.dotDotDotToken))}function D2e(n,a){return yD(n)||a&&ha(n)&&ct(X0(n),yD)}function E_e(n,a,c,u,_){let g,T,N=0;for(;;){if(N===1e3)return we(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),it;let B=Gi(Zy(n.checkType),a),Q=Gi(n.extendsType,a);if(B===it||Q===it)return it;if(B===_t||Q===_t)return _t;let me=ML(n.node.checkType),ue=ML(n.node.extendsType),We=R2e(me)&&R2e(ue)&&yn(me.elements)===yn(ue.elements),at=D2e(B,We),ht;if(n.inferTypeParameters){let Xt=Sw(n.inferTypeParameters,void 0,0);a&&(Xt.nonFixingMapper=Z0(Xt.nonFixingMapper,a)),at||Fg(Xt.inferences,B,Q,1536),ht=a?Z0(Xt.mapper,a):Xt.mapper}let qt=ht?Gi(n.extendsType,ht):Q;if(!at&&!D2e(qt,We)){if(!(qt.flags&3)&&(B.flags&1||!ea(mw(B),mw(qt)))){(B.flags&1||c&&!(qt.flags&131072)&&dm(mw(qt),Hn=>ea(Hn,mw(B))))&&(T||(T=[])).push(Gi(si(n.node.trueType),ht||a));let Xt=si(n.node.falseType);if(Xt.flags&16777216){let Hn=Xt.root;if(Hn.node.parent===n.node&&(!Hn.isDistributive||Hn.checkType===n.checkType)){n=Hn;continue}if(O(Xt,a))continue}g=Gi(Xt,a);break}if(qt.flags&3||ea(tA(B),tA(qt))){let Xt=si(n.node.trueType),Hn=ht||a;if(O(Xt,Hn))continue;g=Gi(Xt,Hn);break}}g=Bh(16777216),g.root=n,g.checkType=Gi(n.checkType,a),g.extendsType=Gi(n.extendsType,a),g.mapper=a,g.combinedMapper=ht,g.aliasSymbol=u||n.aliasSymbol,g.aliasTypeArguments=u?_:Mv(n.aliasTypeArguments,a);break}return T?Br(pn(T,g)):g;function O(B,Q){if(B.flags&16777216&&Q){let me=B.root;if(me.outerTypeParameters){let ue=Z0(B.mapper,Q),We=nn(me.outerTypeParameters,qt=>eb(qt,ue)),at=np(me.outerTypeParameters,We),ht=me.isDistributive?eb(me.checkType,at):void 0;if(!ht||ht===me.checkType||!(ht.flags&1179648))return n=me,a=at,u=void 0,_=void 0,me.aliasSymbol&&N++,!0}}return!1}}function EE(n){return n.resolvedTrueType||(n.resolvedTrueType=Gi(si(n.root.node.trueType),n.mapper))}function SE(n){return n.resolvedFalseType||(n.resolvedFalseType=Gi(si(n.root.node.falseType),n.mapper))}function jnt(n){return n.resolvedInferredTrueType||(n.resolvedInferredTrueType=n.combinedMapper?Gi(si(n.root.node.trueType),n.combinedMapper):EE(n))}function C2e(n){let a;return n.locals&&n.locals.forEach(c=>{c.flags&262144&&(a=pn(a,Cs(c)))}),a}function Unt(n){return n.isDistributive&&(U7(n.checkType,n.node.trueType)||U7(n.checkType,n.node.falseType))}function Hnt(n){let a=Fr(n);if(!a.resolvedType){let c=si(n.checkType),u=g1(n),_=bD(u),g=hn(n,!0),T=_?g:Cr(g,O=>U7(O,n)),N={node:n,checkType:c,extendsType:si(n.extendsType),isDistributive:!!(c.flags&262144),inferTypeParameters:C2e(n),outerTypeParameters:T,instantiations:void 0,aliasSymbol:u,aliasTypeArguments:_};a.resolvedType=E_e(N,void 0,!1),T&&(N.instantiations=new Map,N.instantiations.set(Of(T),a.resolvedType))}return a.resolvedType}function qnt(n){let a=Fr(n);return a.resolvedType||(a.resolvedType=UT(dr(n.typeParameter))),a.resolvedType}function N2e(n){return Me(n)?[n]:pn(N2e(n.left),n.right)}function Jnt(n){var a;let c=Fr(n);if(!c.resolvedType){if(!ey(n))return we(n.argument,f.String_literal_expected),c.resolvedSymbol=tt,c.resolvedType=it;let u=n.isTypeOf?111551:n.flags&16777216?900095:788968,_=jd(n,n.argument.literal);if(!_)return c.resolvedSymbol=tt,c.resolvedType=it;let g=!!((a=_.exports)!=null&&a.get("export=")),T=$u(_,!1);if(_l(n.qualifier))if(T.flags&u)c.resolvedType=P2e(n,c,T,u);else{let N=u===111551?f.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;we(n,N,n.argument.literal.text),c.resolvedSymbol=tt,c.resolvedType=it}else{let N=N2e(n.qualifier),O=T,B;for(;B=N.shift();){let Q=N.length?1920:u,me=Oa(yl(O)),ue=n.isTypeOf||Jn(n)&&g?Qo(Yn(me),B.escapedText,!1,!0):void 0,at=(n.isTypeOf?void 0:gu(Qu(me),B.escapedText,Q))??ue;if(!at)return we(B,f.Namespace_0_has_no_exported_member_1,mp(O),is(B)),c.resolvedType=it;Fr(B).resolvedSymbol=at,Fr(B.parent).resolvedSymbol=at,O=at}c.resolvedType=P2e(n,c,O,u)}}return c.resolvedType}function P2e(n,a,c,u){let _=yl(c);return a.resolvedSymbol=_,u===111551?pwe(Yn(c),n):j$(n,_)}function M2e(n){let a=Fr(n);if(!a.resolvedType){let c=g1(n);if(Ky(n.symbol).size===0&&!c)a.resolvedType=Wl;else{let u=af(16,n.symbol);u.aliasSymbol=c,u.aliasTypeArguments=bD(c),YS(n)&&n.isArrayType&&(u=_d(u)),a.resolvedType=u}}return a.resolvedType}function g1(n){let a=n.parent;for(;VS(a)||f0(a)||jS(a)&&a.operator===148;)a=a.parent;return RL(a)?dr(a):void 0}function bD(n){return n?gr(n):void 0}function X$(n){return!!(n.flags&524288)&&!vu(n)}function S_e(n){return Og(n)||!!(n.flags&474058748)}function T_e(n,a){if(!(n.flags&1048576))return n;if(ji(n.types,S_e))return Dr(n.types,Og)||da;let c=Dr(n.types,g=>!S_e(g));if(!c||Dr(n.types,g=>g!==c&&!S_e(g)))return n;return _(c);function _(g){let T=Vo();for(let O of Xa(g))if(!(Kp(O)&6)){if(Y$(O)){let B=O.flags&65536&&!(O.flags&32768),me=xa(16777220,O.escapedName,Nme(O)|(a?8:0));me.links.type=B?Re:Mu(Yn(O),!0),me.declarations=O.declarations,me.links.nameType=Pi(O).nameType,me.links.syntheticOrigin=O,T.set(O.escapedName,me)}}let N=cs(g.symbol,T,je,je,Ud(g));return N.objectFlags|=131200,N}}function Y0(n,a,c,u,_){if(n.flags&1||a.flags&1)return z;if(n.flags&2||a.flags&2)return Zt;if(n.flags&131072)return a;if(a.flags&131072)return n;if(n=T_e(n,_),n.flags&1048576)return z7([n,a])?Gs(n,B=>Y0(B,a,c,u,_)):it;if(a=T_e(a,_),a.flags&1048576)return z7([n,a])?Gs(a,B=>Y0(n,B,c,u,_)):it;if(a.flags&473960444)return n;if(QT(n)||QT(a)){if(Og(n))return a;if(n.flags&2097152){let B=n.types,Q=B[B.length-1];if(X$(Q)&&X$(a))return Zo(ro(B.slice(0,B.length-1),[Y0(Q,a,c,u,_)]))}return Zo([n,a])}let g=Vo(),T=new Set,N=n===da?Ud(a):fLe([n,a]);for(let B of Xa(a))Kp(B)&6?T.add(B.escapedName):Y$(B)&&g.set(B.escapedName,A_e(B,_));for(let B of Xa(n))if(!(T.has(B.escapedName)||!Y$(B)))if(g.has(B.escapedName)){let Q=g.get(B.escapedName),me=Yn(Q);if(Q.flags&16777216){let ue=ro(B.declarations,Q.declarations),We=4|B.flags&16777216,at=xa(We,B.escapedName),ht=Yn(B),qt=hQ(ht),Xt=hQ(me);at.links.type=qt===Xt?ht:Br([ht,Xt],2),at.links.leftSpread=B,at.links.rightSpread=Q,at.declarations=ue,at.links.nameType=Pi(B).nameType,g.set(B.escapedName,at)}}else g.set(B.escapedName,A_e(B,_));let O=cs(c,g,je,je,sc(N,B=>Knt(B,_)));return O.objectFlags|=2228352|u,O}function Y$(n){var a;return!ct(n.declarations,kd)&&(!(n.flags&106496)||!((a=n.declarations)!=null&&a.some(c=>Kr(c.parent))))}function A_e(n,a){let c=n.flags&65536&&!(n.flags&32768);if(!c&&a===Bm(n))return n;let u=4|n.flags&16777216,_=xa(u,n.escapedName,Nme(n)|(a?8:0));return _.links.type=c?Re:Yn(n),_.declarations=n.declarations,_.links.nameType=Pi(n).nameType,_.links.syntheticOrigin=n,_}function Knt(n,a){return n.isReadonly!==a?ah(n.keyType,n.type,a,n.declaration):n}function G7(n,a,c,u){let _=Gh(n,c);return _.value=a,_.regularType=u||_,_}function v1(n){if(n.flags&2976){if(!n.freshType){let a=G7(n.flags,n.value,n.symbol,n);a.freshType=a,n.freshType=a}return n.freshType}return n}function qd(n){return n.flags&2976?n.regularType:n.flags&1048576?n.regularType||(n.regularType=Gs(n,qd)):n}function $0(n){return!!(n.flags&2976)&&n.freshType===n}function yu(n){let a;return Jt.get(n)||(Jt.set(n,a=G7(128,n)),a)}function Wm(n){let a;return Ue.get(n)||(Ue.set(n,a=G7(256,n)),a)}function $$(n){let a,c=ZE(n);return Rt.get(c)||(Rt.set(c,a=G7(2048,n)),a)}function Xnt(n,a,c){let u,_=`${a}${typeof n=="string"?"@":"#"}${n}`,g=1024|(typeof n=="string"?128:256);return mn.get(_)||(mn.set(_,u=G7(g,n,c)),u)}function Ynt(n){if(n.literal.kind===106)return se;let a=Fr(n);return a.resolvedType||(a.resolvedType=qd(Xi(n.literal))),a.resolvedType}function $nt(n){let a=Gh(8192,n);return a.escapedName=`__@${a.symbol.escapedName}@${na(a.symbol)}`,a}function I_e(n){if(Jn(n)&&f0(n)){let a=PS(n);a&&(n=wA(a)||a)}if(Fte(n)){let a=uW(n)?Wp(n.left):Wp(n);if(a){let c=Pi(a);return c.uniqueESSymbolType||(c.uniqueESSymbolType=$nt(a))}}return di}function Qnt(n){let a=lu(n,!1,!1),c=a&&a.parent;if(c&&(Kr(c)||c.kind===264)&&!zo(a)&&(!ll(a)||HE(n,a.body)))return cf(dr(c)).thisType;if(c&&fa(c)&&Zn(c.parent)&&hl(c.parent)===6)return cf(Wp(c.parent.left).parent).thisType;let u=n.flags&16777216?xb(n):void 0;return u&&us(u)&&Zn(u.parent)&&hl(u.parent)===3?cf(Wp(u.parent.left).parent).thisType:S_(a)&&HE(n,a.body)?cf(dr(a)).thisType:(we(n,f.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),it)}function Q$(n){let a=Fr(n);return a.resolvedType||(a.resolvedType=Qnt(n)),a.resolvedType}function L2e(n){return si(V7(n.type)||n.type)}function V7(n){switch(n.kind){case 196:return V7(n.type);case 189:if(n.elements.length===1&&(n=n.elements[0],n.kind===191||n.kind===202&&n.dotDotDotToken))return V7(n.type);break;case 188:return n.elementType}}function Znt(n){let a=Fr(n);return a.resolvedType||(a.resolvedType=n.dotDotDotToken?L2e(n):Mu(si(n.type),!0,!!n.questionToken))}function si(n){return Ptt(k2e(n),n)}function k2e(n){switch(n.kind){case 133:case 319:case 320:return z;case 159:return Zt;case 154:return Ie;case 150:return gt;case 163:return bt;case 136:return ti;case 155:return di;case 116:return jn;case 157:return Re;case 106:return se;case 146:return Ar;case 151:return n.flags&524288&&!ce?z:Mr;case 141:return Qt;case 197:case 110:return Q$(n);case 201:return Ynt(n);case 183:return t_e(n);case 182:return n.assertsModifier?jn:ti;case 233:return t_e(n);case 186:return HLe(n);case 188:case 189:return snt(n);case 190:return unt(n);case 192:return bnt(n);case 193:return Dnt(n);case 321:return Mtt(n);case 323:return Mu(si(n.type));case 202:return Znt(n);case 196:case 322:case 316:return si(n.type);case 191:return L2e(n);case 325:return tut(n);case 184:case 185:case 187:case 329:case 324:case 330:return M2e(n);case 198:return Lnt(n);case 199:return x2e(n);case 200:return b_e(n);case 194:return Hnt(n);case 195:return qnt(n);case 203:return knt(n);case 205:return Jnt(n);case 80:case 166:case 211:let a=um(n);return a?Cs(a):it;default:return it}}function Z$(n,a,c){if(n&&n.length)for(let u=0;u<n.length;u++){let _=n[u],g=c(_,a);if(_!==g){let T=u===0?[]:n.slice(0,u);for(T.push(g),u++;u<n.length;u++)T.push(c(n[u],a));return T}}return n}function Mv(n,a){return Z$(n,a,Gi)}function eQ(n,a){return Z$(n,a,ED)}function O2e(n,a){return Z$(n,a,prt)}function np(n,a){return n.length===1?Q0(n[0],a?a[0]:z):ert(n,a)}function eb(n,a){switch(a.kind){case 0:return n===a.source?a.target:n;case 1:{let u=a.sources,_=a.targets;for(let g=0;g<u.length;g++)if(n===u[g])return _?_[g]:z;return n}case 2:{let u=a.sources,_=a.targets;for(let g=0;g<u.length;g++)if(n===u[g])return _[g]();return n}case 3:return a.func(n);case 4:case 5:let c=eb(n,a.mapper1);return c!==n&&a.kind===4?Gi(c,a.mapper2):eb(c,a.mapper2)}}function Q0(n,a){return x.attachDebugPrototypeIfDebug({kind:0,source:n,target:a})}function ert(n,a){return x.attachDebugPrototypeIfDebug({kind:1,sources:n,targets:a})}function j7(n,a){return x.attachDebugPrototypeIfDebug({kind:3,func:n,debugInfo:x.isDebugging?a:void 0})}function x_e(n,a){return x.attachDebugPrototypeIfDebug({kind:2,sources:n,targets:a})}function tQ(n,a,c){return x.attachDebugPrototypeIfDebug({kind:n,mapper1:a,mapper2:c})}function w2e(n){return np(n,void 0)}function trt(n,a){let c=n.inferences.slice(a);return np(nn(c,u=>u.typeParameter),nn(c,()=>Zt))}function Z0(n,a){return n?tQ(4,n,a):a}function nrt(n,a){return n?tQ(5,n,a):a}function eA(n,a,c){return c?tQ(5,Q0(n,a),c):Q0(n,a)}function pw(n,a,c){return n?tQ(5,n,Q0(a,c)):Q0(a,c)}function rrt(n){return!n.constraint&&!Xme(n)||n.constraint===vs?n:n.restrictiveInstantiation||(n.restrictiveInstantiation=zp(n.symbol),n.restrictiveInstantiation.constraint=vs,n.restrictiveInstantiation)}function R_e(n){let a=zp(n.symbol);return a.target=n,a}function irt(n,a){return O7(n.kind,n.parameterName,n.parameterIndex,Gi(n.type,a))}function ED(n,a,c){let u;if(n.typeParameters&&!c){u=nn(n.typeParameters,R_e),a=Z0(np(n.typeParameters,u),a);for(let g of u)g.mapper=a}let _=jh(n.declaration,u,n.thisParameter&&D_e(n.thisParameter,a),Z$(n.parameters,a,D_e),void 0,void 0,n.minArgumentCount,n.flags&167);return _.target=n,_.mapper=a,_}function D_e(n,a){let c=Pi(n);if(c.type&&!xE(c.type)&&(!(n.flags&65536)||c.writeType&&!xE(c.writeType)))return n;tl(n)&1&&(n=c.target,a=Z0(c.mapper,a));let u=xa(n.flags,n.escapedName,1|tl(n)&53256);return u.declarations=n.declarations,u.parent=n.parent,u.links.target=n,u.links.mapper=a,n.valueDeclaration&&(u.valueDeclaration=n.valueDeclaration),c.nameType&&(u.links.nameType=c.nameType),u}function ort(n,a,c,u){let _=n.objectFlags&4||n.objectFlags&8388608?n.node:n.symbol.declarations[0],g=Fr(_),T=n.objectFlags&4?g.resolvedType:n.objectFlags&64?n.target:n,N=g.outerTypeParameters;if(!N){let O=hn(_,!0);if(S_(_)){let Q=NLe(_);O=Pr(O,Q)}N=O||je;let B=n.objectFlags&8388612?[_]:n.symbol.declarations;N=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?Cr(N,Q=>ct(B,me=>U7(Q,me))):N,g.outerTypeParameters=N}if(N.length){let O=Z0(n.mapper,a),B=nn(N,at=>eb(at,O)),Q=c||n.aliasSymbol,me=c?u:Mv(n.aliasTypeArguments,a),ue=Of(B)+_1(Q,me);T.instantiations||(T.instantiations=new Map,T.instantiations.set(Of(N)+_1(T.aliasSymbol,T.aliasTypeArguments),T));let We=T.instantiations.get(ue);if(!We){let at=np(N,B);We=T.objectFlags&4?Yme(n.target,n.node,at,Q,me):T.objectFlags&32?srt(T,at,Q,me):C_e(T,at,Q,me),T.instantiations.set(ue,We);let ht=br(We);if(We.flags&3899393&&!(ht&524288)){let qt=ct(B,xE);br(We)&524288||(ht&52?We.objectFlags|=524288|(qt?1048576:0):We.objectFlags|=qt?0:524288)}}return We}return n}function art(n){return!(n.parent.kind===183&&n.parent.typeArguments&&n===n.parent.typeName||n.parent.kind===205&&n.parent.typeArguments&&n===n.parent.qualifier)}function U7(n,a){if(n.symbol&&n.symbol.declarations&&n.symbol.declarations.length===1){let u=n.symbol.declarations[0].parent;for(let _=a;_!==u;_=_.parent)if(!_||_.kind===241||_.kind===194&&Ao(_.extendsType,c))return!0;return c(a)}return!0;function c(u){switch(u.kind){case 197:return!!n.isThisType;case 80:return!n.isThisType&&yh(u)&&art(u)&&k2e(u)===n;case 186:let _=u.exprName,g=dp(_);if(!YE(g)){let T=cm(g),N=n.symbol.declarations[0],O=N.kind===168?N.parent:n.isThisType?N:void 0;if(T.declarations&&O)return ct(T.declarations,B=>HE(B,O))||ct(u.typeArguments,c)}return!0;case 174:case 173:return!u.type&&!!u.body||ct(u.typeParameters,c)||ct(u.parameters,c)||!!u.type&&c(u.type)}return!!Ao(u,c)}}function fw(n){let a=Gp(n);if(a.flags&4194304){let c=Zy(a.type);if(c.flags&262144)return c}}function srt(n,a,c,u){let _=fw(n);if(_){let T=Gi(_,a);if(_!==T)return zke(wm(T),g,c,u)}return Gi(Gp(n),a)===_t?_t:C_e(n,a,c,u);function g(T){if(T.flags&61603843&&T!==_t&&!Lt(T)){if(!n.declaration.nameType){let N;if(ff(T)||T.flags&1&&u1(_,4)<0&&(N=iu(_))&&Lu(N,AE))return crt(T,n,eA(_,T,a));if(ha(T))return lrt(T,n,_,a);if(ALe(T))return Zo(nn(T.types,g))}return C_e(n,eA(_,T,a))}return T}}function W2e(n,a){return a&1?!0:a&2?!1:n}function lrt(n,a,c,u){let _=n.target.elementFlags,g=n.target.fixedLength,T=g?eA(c,n,u):u,N=nn(X0(n),(me,ue)=>{let We=_[ue];return ue<g?F2e(a,yu(""+ue),!!(We&2),T):We&8?Gi(a,eA(c,me,u)):Z7(Gi(a,eA(c,_d(me),u)))??Zt}),O=ih(a),B=O&4?nn(_,me=>me&1?2:me):O&8?nn(_,me=>me&2?1:me):_,Q=W2e(n.target.readonly,ih(a));return To(N,it)?it:sh(N,B,Q,n.target.labeledElementDeclarations)}function crt(n,a,c){let u=F2e(a,gt,!0,c);return Lt(u)?it:_d(u,W2e(GP(n),ih(a)))}function F2e(n,a,c,u){let _=pw(u,km(n),a),g=Gi(Ng(n.target||n),_),T=ih(n);return H&&T&4&&!ol(g,49152)?ib(g,!0):H&&T&8&&c?Wf(g,524288):g}function C_e(n,a,c,u){x.assert(n.symbol,"anonymous type must have symbol to be instantiated");let _=af(n.objectFlags&-1572865|64,n.symbol);if(n.objectFlags&32){_.declaration=n.declaration;let g=km(n),T=R_e(g);_.typeParameter=T,a=Z0(Q0(g,T),a),T.mapper=a}return n.objectFlags&8388608&&(_.node=n.node),_.target=n,_.mapper=a,_.aliasSymbol=c||n.aliasSymbol,_.aliasTypeArguments=c?u:Mv(n.aliasTypeArguments,a),_.objectFlags|=_.aliasTypeArguments?G$(_.aliasTypeArguments):0,_}function N_e(n,a,c,u,_){let g=n.root;if(g.outerTypeParameters){let T=nn(g.outerTypeParameters,B=>eb(B,a)),N=(c?"C":"")+Of(T)+_1(u,_),O=g.instantiations.get(N);if(!O){let B=np(g.outerTypeParameters,T),Q=g.checkType,me=g.isDistributive?wm(eb(Q,B)):void 0;O=me&&Q!==me&&me.flags&1179648?zke(me,ue=>E_e(g,eA(Q,ue,B),c),u,_):E_e(g,B,c,u,_),g.instantiations.set(N,O)}return O}return n}function Gi(n,a){return n&&a?z2e(n,a,void 0,void 0):n}function z2e(n,a,c,u){var _;if(!xE(n))return n;if(A===100||S>=5e6)return(_=qn)==null||_.instant(qn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:n.id,instantiationDepth:A,instantiationCount:S}),we(R,f.Type_instantiation_is_excessively_deep_and_possibly_infinite),it;E++,S++,A++;let g=drt(n,a,c,u);return A--,g}function drt(n,a,c,u){let _=n.flags;if(_&262144)return eb(n,a);if(_&524288){let g=n.objectFlags;if(g&52){if(g&4&&!n.node){let T=n.resolvedTypeArguments,N=Mv(T,a);return N!==T?d_e(n.target,N):n}return g&1024?urt(n,a):ort(n,a,c,u)}return n}if(_&3145728){let g=n.flags&1048576?n.origin:void 0,T=g&&g.flags&3145728?g.types:n.types,N=Mv(T,a);if(N===T&&c===n.aliasSymbol)return n;let O=c||n.aliasSymbol,B=c?u:Mv(n.aliasTypeArguments,a);return _&2097152||g&&g.flags&2097152?Zo(N,O,B):Br(N,1,O,B)}if(_&4194304)return v_(Gi(n.type,a));if(_&134217728)return YT(n.texts,Mv(n.types,a));if(_&268435456)return h1(n.symbol,Gi(n.type,a));if(_&8388608){let g=c||n.aliasSymbol,T=c?u:Mv(n.aliasTypeArguments,a);return tp(Gi(n.objectType,a),Gi(n.indexType,a),n.accessFlags,void 0,g,T)}if(_&16777216)return N_e(n,Z0(n.mapper,a),!1,c,u);if(_&33554432){let g=Gi(n.baseType,a);if(wP(n))return $me(g);let T=Gi(n.constraint,a);return g.flags&8650752&&yD(T)?Zme(g,T):T.flags&3||ea(tA(g),tA(T))?g:g.flags&8650752?Zme(g,T):Zo([T,g])}return n}function urt(n,a){let c=Gi(n.mappedType,a);if(!(br(c)&32))return n;let u=Gi(n.constraintType,a);if(!(u.flags&4194304))return n;let _=gke(Gi(n.source,a),c,u);return _||n}function mw(n){return n.flags&402915327?n:n.permissiveInstantiation||(n.permissiveInstantiation=Gi(n,Js))}function tA(n){return n.flags&402915327?n:(n.restrictiveInstantiation||(n.restrictiveInstantiation=Gi(n,gs),n.restrictiveInstantiation.restrictiveInstantiation=n.restrictiveInstantiation),n.restrictiveInstantiation)}function prt(n,a){return ah(n.keyType,Gi(n.type,a),n.isReadonly,n.declaration)}function uf(n){switch(x.assert(n.kind!==174||qf(n)),n.kind){case 218:case 219:case 174:case 262:return B2e(n);case 210:return ct(n.properties,uf);case 209:return ct(n.elements,uf);case 227:return uf(n.whenTrue)||uf(n.whenFalse);case 226:return(n.operatorToken.kind===57||n.operatorToken.kind===61)&&(uf(n.left)||uf(n.right));case 303:return uf(n.initializer);case 217:return uf(n.expression);case 292:return ct(n.properties,uf)||n_(n.parent)&&ct(n.parent.parent.children,uf);case 291:{let{initializer:a}=n;return!!a&&uf(a)}case 294:{let{expression:a}=n;return!!a&&uf(a)}}return!1}function B2e(n){return gF(n)||frt(n)}function frt(n){return n.typeParameters||Tf(n)||!n.body?!1:n.body.kind!==241?uf(n.body):!!GE(n.body,a=>!!a.expression&&uf(a.expression))}function nQ(n){return(e0(n)||qf(n))&&B2e(n)}function G2e(n){if(n.flags&524288){let a=Om(n);if(a.constructSignatures.length||a.callSignatures.length){let c=af(16,n.symbol);return c.members=a.members,c.properties=a.properties,c.callSignatures=je,c.constructSignatures=je,c.indexInfos=je,c}}else if(n.flags&2097152)return Zo(nn(n.types,G2e));return n}function kg(n,a){return y_(n,a,Cu)}function _w(n,a){return y_(n,a,Cu)?-1:0}function P_e(n,a){return y_(n,a,hu)?-1:0}function mrt(n,a){return y_(n,a,X_)?-1:0}function tb(n,a){return y_(n,a,X_)}function H7(n,a){return y_(n,a,rf)}function ea(n,a){return y_(n,a,hu)}function TE(n,a){return n.flags&1048576?ji(n.types,c=>TE(c,a)):a.flags&1048576?ct(a.types,c=>TE(n,c)):n.flags&2097152?ct(n.types,c=>TE(c,a)):n.flags&58982400?TE(md(n)||Zt,a):lh(a)?!!(n.flags&67633152):a===Se?!!(n.flags&67633152)&&!lh(n):a===At?!!(n.flags&524288)&&dhe(n):dD(n,Rv(a))||ff(a)&&!GP(a)&&TE(n,Oo)}function rQ(n,a){return y_(n,a,Yu)}function q7(n,a){return rQ(n,a)||rQ(a,n)}function Cd(n,a,c,u,_,g){return pf(n,a,hu,c,u,_,g)}function nb(n,a,c,u,_,g){return M_e(n,a,hu,c,u,_,g,void 0)}function M_e(n,a,c,u,_,g,T,N){return y_(n,a,c)?!0:!u||!hw(_,n,a,c,g,T,N)?pf(n,a,c,u,g,T,N):!1}function V2e(n){return!!(n.flags&16777216||n.flags&2097152&&ct(n.types,V2e))}function hw(n,a,c,u,_,g,T){if(!n||V2e(c))return!1;if(!pf(a,c,u,void 0)&&_rt(n,a,c,u,_,g,T))return!0;switch(n.kind){case 234:if(!Cy(n))break;case 294:case 217:return hw(n.expression,a,c,u,_,g,T);case 226:switch(n.operatorToken.kind){case 64:case 28:return hw(n.right,a,c,u,_,g,T)}break;case 210:return Trt(n,a,c,u,g,T);case 209:return Ert(n,a,c,u,g,T);case 292:return brt(n,a,c,u,g,T);case 219:return hrt(n,a,c,u,g,T)}return!1}function _rt(n,a,c,u,_,g,T){let N=Co(a,0),O=Co(a,1);for(let B of[O,N])if(ct(B,Q=>{let me=Ha(Q);return!(me.flags&131073)&&pf(me,c,u,void 0)})){let Q=T||{};Cd(a,c,n,_,g,Q);let me=Q.errors[Q.errors.length-1];return pa(me,vr(n,B===O?f.Did_you_mean_to_use_new_with_this_expression:f.Did_you_mean_to_call_this_expression)),!0}return!1}function hrt(n,a,c,u,_,g){if(Do(n.body)||ct(n.parameters,K8))return!1;let T=dA(a);if(!T)return!1;let N=Co(c,0);if(!yn(N))return!1;let O=n.body,B=Ha(T),Q=Br(nn(N,Ha));if(!pf(B,Q,u,void 0)){let me=O&&hw(O,B,Q,u,void 0,_,g);if(me)return me;let ue=g||{};if(pf(B,Q,u,O,void 0,_,ue),ue.errors)return c.symbol&&yn(c.symbol.declarations)&&pa(ue.errors[ue.errors.length-1],vr(c.symbol.declarations[0],f.The_expected_type_comes_from_the_return_type_of_this_signature)),!(gc(n)&2)&&!Fe(B,"then")&&pf(R5(B),Q,u,void 0)&&pa(ue.errors[ue.errors.length-1],vr(n,f.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function j2e(n,a,c){let u=Qy(a,c);if(u)return u;if(a.flags&1048576){let _=$2e(n,a);if(_)return Qy(_,c)}}function U2e(n,a){u5(n,a,!1);let c=ZP(n,1);return xw(),c}function J7(n,a,c,u,_,g){let T=!1;for(let N of n){let{errorNode:O,innerExpression:B,nameType:Q,errorMessage:me}=N,ue=j2e(a,c,Q);if(!ue||ue.flags&8388608)continue;let We=Qy(a,Q);if(!We)continue;let at=J$(Q,void 0);if(!pf(We,ue,u,void 0)){let ht=B&&hw(B,We,ue,u,void 0,_,g);if(T=!0,!ht){let qt=g||{},Xt=B?U2e(B,We):We;if(be&&oQ(Xt,ue)){let Hn=vr(O,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Pn(Xt),Pn(ue));La.add(Hn),qt.errors=[Hn]}else{let Hn=!!(at&&(Qo(c,at)||tt).flags&16777216),En=!!(at&&(Qo(a,at)||tt).flags&16777216);ue=ob(ue,Hn),We=ob(We,Hn&&En),pf(Xt,ue,u,O,me,_,qt)&&Xt!==We&&pf(We,ue,u,O,me,_,qt)}if(qt.errors){let Hn=qt.errors[qt.errors.length-1],En=Af(Q)?If(Q):void 0,Kt=En!==void 0?Qo(c,En):void 0,In=!1;if(!Kt){let Sn=iw(c,Q);Sn&&Sn.declaration&&!Nn(Sn.declaration).hasNoDefaultLib&&(In=!0,pa(Hn,vr(Sn.declaration,f.The_expected_type_comes_from_this_index_signature)))}if(!In&&(Kt&&yn(Kt.declarations)||c.symbol&&yn(c.symbol.declarations))){let Sn=Kt&&yn(Kt.declarations)?Kt.declarations[0]:c.symbol.declarations[0];Nn(Sn).hasNoDefaultLib||pa(Hn,vr(Sn,f.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,En&&!(Q.flags&8192)?Ii(En):Pn(Q),Pn(c)))}}}}}return T}function grt(n,a,c,u,_,g){let T=Bl(c,pQ),N=Bl(c,Q=>!pQ(Q)),O=N!==Ar?Dge(13,0,N,void 0):void 0,B=!1;for(let Q=n.next();!Q.done;Q=n.next()){let{errorNode:me,innerExpression:ue,nameType:We,errorMessage:at}=Q.value,ht=O,qt=T!==Ar?j2e(a,T,We):void 0;if(qt&&!(qt.flags&8388608)&&(ht=O?Br([O,qt]):qt),!ht)continue;let Xt=Qy(a,We);if(!Xt)continue;let Hn=J$(We,void 0);if(!pf(Xt,ht,u,void 0)){let En=ue&&hw(ue,Xt,ht,u,void 0,_,g);if(B=!0,!En){let Kt=g||{},In=ue?U2e(ue,Xt):Xt;if(be&&oQ(In,ht)){let Sn=vr(me,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,Pn(In),Pn(ht));La.add(Sn),Kt.errors=[Sn]}else{let Sn=!!(Hn&&(Qo(T,Hn)||tt).flags&16777216),zn=!!(Hn&&(Qo(a,Hn)||tt).flags&16777216);ht=ob(ht,Sn),Xt=ob(Xt,Sn&&zn),pf(In,ht,u,me,at,_,Kt)&&In!==Xt&&pf(Xt,ht,u,me,at,_,Kt)}}}}return B}function*vrt(n){if(yn(n.properties))for(let a of n.properties)mI(a)||Phe(r2(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:yu(r2(a.name))})}function*yrt(n,a){if(!yn(n.children))return;let c=0;for(let u=0;u<n.children.length;u++){let _=n.children[u],g=Wm(u-c),T=H2e(_,g,a);T?yield T:c++}}function H2e(n,a,c){switch(n.kind){case 294:return{errorNode:n,innerExpression:n.expression,nameType:a};case 12:if(n.containsOnlyTriviaWhiteSpaces)break;return{errorNode:n,innerExpression:void 0,nameType:a,errorMessage:c()};case 284:case 285:case 288:return{errorNode:n,innerExpression:n,nameType:a};default:return x.assertNever(n,"Found invalid jsx child")}}function brt(n,a,c,u,_,g){let T=J7(vrt(n),a,c,u,_,g),N;if(n_(n.parent)&&Ch(n.parent.parent)){let B=n.parent.parent,Q=f5(lA(n)),me=Q===void 0?"children":Ii(Q),ue=yu(me),We=tp(c,ue),at=_x(B.children);if(!yn(at))return T;let ht=yn(at)>1,qt,Xt;if(a_e(!1)!==ho){let En=n2e(z);qt=Bl(We,Kt=>ea(Kt,En)),Xt=Bl(We,Kt=>!ea(Kt,En))}else qt=Bl(We,pQ),Xt=Bl(We,En=>!pQ(En));if(ht){if(qt!==Ar){let En=sh(FQ(B,0)),Kt=yrt(B,O);T=grt(Kt,En,qt,u,_,g)||T}else if(!y_(tp(a,ue),We,u)){T=!0;let En=we(B.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,me,Pn(We));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(En)}}else if(Xt!==Ar){let En=at[0],Kt=H2e(En,ue,O);Kt&&(T=J7(function*(){yield Kt}(),a,c,u,_,g)||T)}else if(!y_(tp(a,ue),We,u)){T=!0;let En=we(B.openingElement.tagName,f.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,me,Pn(We));g&&g.skipLogging&&(g.errors||(g.errors=[])).push(En)}}return T;function O(){if(!N){let B=Vl(n.parent.tagName),Q=f5(lA(n)),me=Q===void 0?"children":Ii(Q),ue=tp(c,yu(me)),We=f._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;N={...We,key:"!!ALREADY FORMATTED!!",message:SV(We,B,me,Pn(ue))}}return N}}function*q2e(n,a){let c=yn(n.elements);if(c)for(let u=0;u<c;u++){if(VP(a)&&!Qo(a,""+u))continue;let _=n.elements[u];if(vc(_))continue;let g=Wm(u),T=JQ(_);yield{errorNode:T,innerExpression:T,nameType:g}}}function Ert(n,a,c,u,_,g){if(c.flags&402915324)return!1;if(VP(a))return J7(q2e(n,c),a,c,u,_,g);u5(n,c,!1);let T=mOe(n,1,!0);return xw(),VP(T)?J7(q2e(n,c),T,c,u,_,g):!1}function*Srt(n){if(yn(n.properties))for(let a of n.properties){if(lv(a))continue;let c=vD(dr(a),8576);if(!(!c||c.flags&131072))switch(a.kind){case 178:case 177:case 174:case 304:yield{errorNode:a.name,innerExpression:void 0,nameType:c};break;case 303:yield{errorNode:a.name,innerExpression:a.initializer,nameType:c,errorMessage:aL(a.name)?f.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:void 0};break;default:x.assertNever(a)}}}function Trt(n,a,c,u,_,g){return c.flags&402915324?!1:J7(Srt(n),a,c,u,_,g)}function J2e(n,a,c,u,_){return pf(n,a,Yu,c,u,_)}function Art(n,a,c){return L_e(n,a,c?4:0,!1,void 0,void 0,P_e,void 0)!==0}function iQ(n){if(!n.typeParameters&&(!n.thisParameter||vt(A5(n.thisParameter)))&&n.parameters.length===1&&Td(n)){let a=A5(n.parameters[0]);return!!((ff(a)?Ss(a)[0]:a).flags&131073&&Ha(n).flags&3)}return!1}function L_e(n,a,c,u,_,g,T,N){if(n===a||!(c&16&&iQ(n))&&iQ(a))return-1;if(c&16&&iQ(n)&&!iQ(a))return 0;let O=vp(a);if(!ch(a)&&(c&8?ch(n)||vp(n)>O:T_(n)>O))return u&&!(c&8)&&_(f.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,T_(n),O),0;n.typeParameters&&n.typeParameters!==a.typeParameters&&(a=Itt(a),n=qOe(n,a,void 0,T));let Q=vp(n),me=Nw(n),ue=Nw(a);(me||ue)&&Gi(me||ue,N);let We=a.declaration?a.declaration.kind:0,at=!(c&3)&&ee&&We!==174&&We!==173&&We!==176,ht=-1,qt=bE(n);if(qt&&qt!==jn){let En=bE(a);if(En){let Kt=!at&&T(qt,En,!1)||T(En,qt,u);if(!Kt)return u&&_(f.The_this_types_of_each_signature_are_incompatible),0;ht&=Kt}}let Xt=me||ue?Math.min(Q,O):Math.max(Q,O),Hn=me||ue?Xt-1:-1;for(let En=0;En<Xt;En++){let Kt=En===Hn?hwe(n,En):iS(n,En),In=En===Hn?hwe(a,En):iS(a,En);if(Kt&&In){let Sn=c&3||UOe(n,En)?void 0:dA(Wg(Kt)),zn=c&3||UOe(a,En)?void 0:dA(Wg(In)),Bn=Sn&&zn&&!df(Sn)&&!df(zn)&&HP(Kt,50331648)===HP(In,50331648)?L_e(zn,Sn,c&8|(at?2:1),u,_,g,T,N):!(c&3)&&!at&&T(Kt,In,!1)||T(In,Kt,u);if(Bn&&c&8&&En>=T_(n)&&En<T_(a)&&T(Kt,In,!1)&&(Bn=0),!Bn)return u&&_(f.Types_of_parameters_0_and_1_are_incompatible,Ii(YP(n,En)),Ii(YP(a,En))),0;ht&=Bn}}if(!(c&4)){let En=W$(a)?z:a.declaration&&S_(a.declaration)?cf(Oa(a.declaration.symbol)):Ha(a);if(En===jn||En===z)return ht;let Kt=W$(n)?z:n.declaration&&S_(n.declaration)?cf(Oa(n.declaration.symbol)):Ha(n),In=df(a);if(In){let Sn=df(n);if(Sn)ht&=Irt(Sn,In,u,_,T);else if(Bte(In))return u&&_(f.Signature_0_must_be_a_type_predicate,eh(n)),0}else ht&=c&1&&T(En,Kt,!1)||T(Kt,En,u),!ht&&u&&g&&g(Kt,En)}return ht}function Irt(n,a,c,u,_){if(n.kind!==a.kind)return c&&(u(f.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard),u(f.Type_predicate_0_is_not_assignable_to_1,th(n),th(a))),0;if((n.kind===1||n.kind===3)&&n.parameterIndex!==a.parameterIndex)return c&&(u(f.Parameter_0_is_not_in_the_same_position_as_parameter_1,n.parameterName,a.parameterName),u(f.Type_predicate_0_is_not_assignable_to_1,th(n),th(a))),0;let g=n.type===a.type?-1:n.type&&a.type?_(n.type,a.type,c):0;return g===0&&c&&u(f.Type_predicate_0_is_not_assignable_to_1,th(n),th(a)),g}function xrt(n,a){let c=sw(n),u=sw(a),_=Ha(c),g=Ha(u);return g===jn||y_(g,_,hu)||y_(_,g,hu)?Art(c,u,!0):!1}function k_e(n){return n!==Ut&&n.properties.length===0&&n.callSignatures.length===0&&n.constructSignatures.length===0&&n.indexInfos.length===0}function Og(n){return n.flags&524288?!vu(n)&&k_e(Om(n)):n.flags&67108864?!0:n.flags&1048576?ct(n.types,Og):n.flags&2097152?ji(n.types,Og):!1}function lh(n){return!!(br(n)&16&&(n.members&&k_e(n)||n.symbol&&n.symbol.flags&2048&&Ky(n.symbol).size===0))}function Rrt(n){if(H&&n.flags&1048576){if(!(n.objectFlags&33554432)){let a=n.types;n.objectFlags|=33554432|(a.length>=3&&a[0].flags&32768&&a[1].flags&65536&&ct(a,lh)?67108864:0)}return!!(n.objectFlags&67108864)}return!1}function zP(n){return!!((n.flags&1048576?n.types[0]:n).flags&32768)}function K2e(n){return n.flags&524288&&!vu(n)&&Xa(n).length===0&&Ud(n).length===1&&!!Uh(n,Ie)||n.flags&3145728&&ji(n.types,K2e)||!1}function O_e(n,a,c){let u=n.flags&8?nu(n):n,_=a.flags&8?nu(a):a;if(u===_)return!0;if(u.escapedName!==_.escapedName||!(u.flags&256)||!(_.flags&256))return!1;let g=na(u)+","+na(_),T=bv.get(g);if(T!==void 0&&!(!(T&4)&&T&2&&c))return!!(T&1);let N=Yn(_);for(let O of Xa(Yn(u)))if(O.flags&8){let B=Qo(N,O.escapedName);if(!B||!(B.flags&8))return c?(c(f.Property_0_is_missing_in_type_1,$s(O),Pn(Cs(_),void 0,64)),bv.set(g,6)):bv.set(g,2),!1;let Q=MD(Vs(O,306)),me=MD(Vs(B,306));if(Q!==me){let ue=typeof Q=="string",We=typeof me=="string";if(Q!==void 0&&me!==void 0){if(!c)bv.set(g,2);else{let at=ue?`"${Th(Q)}"`:Q,ht=We?`"${Th(me)}"`:me;c(f.Each_declaration_of_0_1_differs_in_its_value_where_2_was_expected_but_3_was_given,$s(_),$s(B),ht,at),bv.set(g,6)}return!1}if(ue||We){if(!c)bv.set(g,2);else{let at=Q??me;x.assert(typeof at=="string");let ht=`"${Th(at)}"`;c(f.One_value_of_0_1_is_the_string_2_and_the_other_is_assumed_to_be_an_unknown_numeric_value,$s(_),$s(B),ht),bv.set(g,6)}return!1}}}return bv.set(g,1),!0}function gw(n,a,c,u){let _=n.flags,g=a.flags;return g&1||_&131072||n===_t||g&2&&!(c===rf&&_&1)?!0:g&131072?!1:!!(_&402653316&&g&4||_&128&&_&1024&&g&128&&!(g&1024)&&n.value===a.value||_&296&&g&8||_&256&&_&1024&&g&256&&!(g&1024)&&n.value===a.value||_&2112&&g&64||_&528&&g&16||_&12288&&g&4096||_&32&&g&32&&n.symbol.escapedName===a.symbol.escapedName&&O_e(n.symbol,a.symbol,u)||_&1024&&g&1024&&(_&1048576&&g&1048576&&O_e(n.symbol,a.symbol,u)||_&2944&&g&2944&&n.value===a.value&&O_e(n.symbol,a.symbol,u))||_&32768&&(!H&&!(g&3145728)||g&49152)||_&65536&&(!H&&!(g&3145728)||g&65536)||_&524288&&g&67108864&&!(c===rf&&lh(n)&&!(br(n)&8192))||(c===hu||c===Yu)&&(_&1||_&8&&(g&32||g&256&&g&1024)||_&256&&!(_&1024)&&(g&32||g&256&&g&1024&&n.value===a.value)||Rrt(a)))}function y_(n,a,c){if($0(n)&&(n=n.regularType),$0(a)&&(a=a.regularType),n===a)return!0;if(c!==Cu){if(c===Yu&&!(a.flags&131072)&&gw(a,n,c)||gw(n,a,c))return!0}else if(!((n.flags|a.flags)&61865984)){if(n.flags!==a.flags)return!1;if(n.flags&67358815)return!0}if(n.flags&524288&&a.flags&524288){let u=c.get(lQ(n,a,0,c,!1));if(u!==void 0)return!!(u&1)}return n.flags&469499904||a.flags&469499904?pf(n,a,c,void 0):!1}function X2e(n,a){return br(n)&2048&&Phe(a.escapedName)}function K7(n,a){for(;;){let c=$0(n)?n.regularType:rb(n)?Crt(n,a):br(n)&4?n.node?Cv(n.target,Ss(n)):V_e(n)||n:n.flags&3145728?Drt(n,a):n.flags&33554432?a?n.baseType:e_e(n):n.flags&25165824?Lg(n,a):n;if(c===n)return c;n=c}}function Drt(n,a){let c=wm(n);if(c!==n)return c;if(n.flags&2097152&&ct(n.types,lh)){let u=sc(n.types,_=>K7(_,a));if(u!==n.types)return Zo(u)}return n}function Crt(n,a){let c=X0(n),u=sc(c,_=>_.flags&25165824?Lg(_,a):_);return c!==u?u_e(n.target,u):n}function pf(n,a,c,u,_,g,T){var N;let O,B,Q,me,ue,We,at=0,ht=0,qt=0,Xt=0,Hn=!1,En=0,Kt=0,In,Sn,zn=16e6-c.size>>3;x.assert(c!==Cu||!u,"no error reporting in identity checking");let Mn=or(n,a,3,!!u,_);if(Sn&&Eo(),Hn){let qe=lQ(n,a,0,c,!1);c.set(qe,6),(N=qn)==null||N.instant(qn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:n.id,targetId:a.id,depth:ht,targetDepth:qt});let ut=zn<=0?f.Excessive_complexity_comparing_types_0_and_1:f.Excessive_stack_depth_comparing_types_0_and_1,Bt=we(u||R,ut,Pn(n),Pn(a));T&&(T.errors||(T.errors=[])).push(Bt)}else if(O){if(g){let Bt=g();Bt&&(qne(Bt,O),O=Bt)}let qe;if(_&&u&&!Mn&&n.symbol){let Bt=Pi(n.symbol);if(Bt.originatingImport&&!lp(Bt.originatingImport)&&pf(Yn(Bt.target),a,c,void 0)){let pr=vr(Bt.originatingImport,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);qe=pn(qe,pr)}}let ut=eg(Nn(u),u,O,qe);B&&pa(ut,...B),T&&(T.errors||(T.errors=[])).push(ut),(!T||!T.skipLogging)&&La.add(ut)}return u&&T&&T.skipLogging&&Mn===0&&x.assert(!!T.errors,"missed opportunity to interact with error."),Mn!==0;function Bn(qe){O=qe.errorInfo,In=qe.lastSkippedInfo,Sn=qe.incompatibleStack,En=qe.overrideNextErrorInfo,Kt=qe.skipParentCounter,B=qe.relatedInfo}function co(){return{errorInfo:O,lastSkippedInfo:In,incompatibleStack:Sn?.slice(),overrideNextErrorInfo:En,skipParentCounter:Kt,relatedInfo:B?.slice()}}function no(qe,...ut){En++,In=void 0,(Sn||(Sn=[])).push([qe,...ut])}function Eo(){let qe=Sn||[];Sn=void 0;let ut=In;if(In=void 0,qe.length===1){Yi(...qe[0]),ut&&ku(void 0,...ut);return}let Bt="",kn=[];for(;qe.length;){let[pr,...cn]=qe.pop();switch(pr.code){case f.Types_of_property_0_are_incompatible.code:{Bt.indexOf("new ")===0&&(Bt=`(${Bt})`);let rr=""+cn[0];Bt.length===0?Bt=`${rr}`:Sp(rr,Wa(F))?Bt=`${Bt}.${rr}`:rr[0]==="["&&rr[rr.length-1]==="]"?Bt=`${Bt}${rr}`:Bt=`${Bt}[${rr}]`;break}case f.Call_signature_return_types_0_and_1_are_incompatible.code:case f.Construct_signature_return_types_0_and_1_are_incompatible.code:case f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Bt.length===0){let rr=pr;pr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?rr=f.Call_signature_return_types_0_and_1_are_incompatible:pr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(rr=f.Construct_signature_return_types_0_and_1_are_incompatible),kn.unshift([rr,cn[0],cn[1]])}else{let rr=pr.code===f.Construct_signature_return_types_0_and_1_are_incompatible.code||pr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",Rr=pr.code===f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||pr.code===f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Bt=`${rr}${Bt}(${Rr})`}break}case f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{kn.unshift([f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,cn[0],cn[1]]);break}case f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{kn.unshift([f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,cn[0],cn[1],cn[2]]);break}default:return x.fail(`Unhandled Diagnostic: ${pr.code}`)}}Bt?Yi(Bt[Bt.length-1]===")"?f.The_types_returned_by_0_are_incompatible_between_these_types:f.The_types_of_0_are_incompatible_between_these_types,Bt):kn.shift();for(let[pr,...cn]of kn){let rr=pr.elidedInCompatabilityPyramid;pr.elidedInCompatabilityPyramid=!1,Yi(pr,...cn),pr.elidedInCompatabilityPyramid=rr}ut&&ku(void 0,...ut)}function Yi(qe,...ut){x.assert(!!u),Sn&&Eo(),!qe.elidedInCompatabilityPyramid&&(Kt===0?O=So(O,qe,...ut):Kt--)}function ic(qe,...ut){Yi(qe,...ut),Kt++}function mf(qe){x.assert(!!O),B?B.push(qe):B=[qe]}function ku(qe,ut,Bt){Sn&&Eo();let[kn,pr]=d1(ut,Bt),cn=ut,rr=kn;if(vw(ut)&&!w_e(Bt)&&(cn=wg(ut),x.assert(!ea(cn,Bt),"generalized source shouldn't be assignable"),rr=zy(cn)),(Bt.flags&8388608&&!(ut.flags&8388608)?Bt.objectType.flags:Bt.flags)&262144&&Bt!==ae&&Bt!==X){let Si=md(Bt),yo;Si&&(ea(cn,Si)||(yo=ea(ut,Si)))?Yi(f._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,yo?kn:rr,pr,Pn(Si)):(O=void 0,Yi(f._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,pr,rr))}if(qe)qe===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&be&&Y2e(ut,Bt).length&&(qe=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(c===Yu)qe=f.Type_0_is_not_comparable_to_type_1;else if(kn===pr)qe=f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(be&&Y2e(ut,Bt).length)qe=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(ut.flags&128&&Bt.flags&1048576){let Si=Fat(ut,Bt);if(Si){Yi(f.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,rr,pr,Pn(Si));return}}qe=f.Type_0_is_not_assignable_to_type_1}Yi(qe,rr,pr)}function bn(qe,ut){let Bt=By(qe.symbol)?Pn(qe,qe.symbol.valueDeclaration):Pn(qe),kn=By(ut.symbol)?Pn(ut,ut.symbol.valueDeclaration):Pn(ut);(Cl===qe&&Ie===ut||Kl===qe&>===ut||Bs===qe&&ti===ut||$Le()===qe&&di===ut)&&Yi(f._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,kn,Bt)}function Fn(qe,ut,Bt){return ha(qe)?qe.target.readonly&&Q7(ut)?(Bt&&Yi(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Pn(qe),Pn(ut)),!1):AE(ut):GP(qe)&&Q7(ut)?(Bt&&Yi(f.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,Pn(qe),Pn(ut)),!1):ha(ut)?ff(qe):!0}function Bi(qe,ut,Bt){return or(qe,ut,3,Bt)}function or(qe,ut,Bt=3,kn=!1,pr,cn=0){if(qe===ut)return-1;if(qe.flags&524288&&ut.flags&402784252)return c===Yu&&!(ut.flags&131072)&&gw(ut,qe,c)||gw(qe,ut,c,kn?Yi:void 0)?-1:(kn&&po(qe,ut,qe,ut,pr),0);let rr=K7(qe,!1),Rr=K7(ut,!0);if(rr===Rr)return-1;if(c===Cu)return rr.flags!==Rr.flags?0:rr.flags&67358815?-1:(za(rr,Rr),li(rr,Rr,!1,0,Bt));if(rr.flags&262144&&qT(rr)===Rr)return-1;if(rr.flags&470302716&&Rr.flags&1048576){let Si=Rr.types,yo=Si.length===2&&Si[0].flags&98304?Si[1]:Si.length===3&&Si[0].flags&98304&&Si[1].flags&98304?Si[2]:void 0;if(yo&&!(yo.flags&98304)&&(Rr=K7(yo,!0),rr===Rr))return-1}if(c===Yu&&!(Rr.flags&131072)&&gw(Rr,rr,c)||gw(rr,Rr,c,kn?Yi:void 0))return-1;if(rr.flags&469499904||Rr.flags&469499904){if(!(cn&2)&&RE(rr)&&br(rr)&8192&&hd(rr,Rr,kn))return kn&&ku(pr,rr,ut.aliasSymbol?ut:Rr),0;let yo=(c!==Yu||Fm(rr))&&!(cn&2)&&rr.flags&405405692&&rr!==Se&&Rr.flags&2621440&&Q2e(Rr)&&(Xa(rr).length>0||vZ(rr)),Ko=!!(br(rr)&2048);if(yo&&!Prt(rr,Rr,Ko)){if(kn){let go=Pn(qe.aliasSymbol?qe:rr),aa=Pn(ut.aliasSymbol?ut:Rr),as=Co(rr,0),qa=Co(rr,1);as.length>0&&or(Ha(as[0]),Rr,1,!1)||qa.length>0&&or(Ha(qa[0]),Rr,1,!1)?Yi(f.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,go,aa):Yi(f.Type_0_has_no_properties_in_common_with_type_1,go,aa)}return 0}za(rr,Rr);let oi=rr.flags&1048576&&rr.types.length<4&&!(Rr.flags&1048576)||Rr.flags&1048576&&Rr.types.length<4&&!(rr.flags&469499904)?au(rr,Rr,kn,cn):li(rr,Rr,kn,cn,Bt);if(oi)return oi}return kn&&po(qe,ut,rr,Rr,pr),0}function po(qe,ut,Bt,kn,pr){var cn,rr;let Rr=!!V_e(qe),Si=!!V_e(ut);Bt=qe.aliasSymbol||Rr?qe:Bt,kn=ut.aliasSymbol||Si?ut:kn;let yo=En>0;if(yo&&En--,Bt.flags&524288&&kn.flags&524288){let Ko=O;Fn(Bt,kn,!0),O!==Ko&&(yo=!!O)}if(Bt.flags&524288&&kn.flags&402784252)bn(Bt,kn);else if(Bt.symbol&&Bt.flags&524288&&Se===Bt)Yi(f.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(br(Bt)&2048&&kn.flags&2097152){let Ko=kn.types,Xo=rS(Rp.IntrinsicAttributes,u),oi=rS(Rp.IntrinsicClassAttributes,u);if(!Lt(Xo)&&!Lt(oi)&&(To(Ko,Xo)||To(Ko,oi)))return}else O=zme(O,ut);if(!pr&&yo){In=[Bt,kn];return}if(ku(pr,Bt,kn),Bt.flags&262144&&((rr=(cn=Bt.symbol)==null?void 0:cn.declarations)!=null&&rr[0])&&!qT(Bt)){let Ko=R_e(Bt);if(Ko.constraint=Gi(kn,Q0(Bt,Ko)),M7(Ko)){let Xo=Pn(kn,Bt.symbol.declarations[0]);mf(vr(Bt.symbol.declarations[0],f.This_type_parameter_might_need_an_extends_0_constraint,Xo))}}}function za(qe,ut){if(qn&&qe.flags&3145728&&ut.flags&3145728){let Bt=qe,kn=ut;if(Bt.objectFlags&kn.objectFlags&32768)return;let pr=Bt.types.length,cn=kn.types.length;pr*cn>1e6&&qn.instant(qn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:qe.id,sourceSize:pr,targetId:ut.id,targetSize:cn,pos:u?.pos,end:u?.end})}}function es(qe,ut){return Br(Nd(qe,(kn,pr)=>{var cn;pr=ou(pr);let rr=pr.flags&3145728?L7(pr,ut):vE(pr,ut),Rr=rr&&Yn(rr)||((cn=m1(pr,ut))==null?void 0:cn.type)||Re;return pn(kn,Rr)},void 0)||je)}function hd(qe,ut,Bt){var kn;if(!_5(ut)||!ce&&br(ut)&4096)return!1;let pr=!!(br(qe)&2048);if((c===hu||c===Yu)&&(qP(Se,ut)||!pr&&Og(ut)))return!1;let cn=ut,rr;ut.flags&1048576&&(cn=_We(qe,ut,or)||Gpt(ut),rr=cn.flags&1048576?cn.types:[cn]);for(let Rr of Xa(qe))if(ga(Rr,qe.symbol)&&!X2e(qe,Rr)){if(!khe(cn,Rr.escapedName,pr)){if(Bt){let Si=Bl(cn,_5);if(!u)return x.fail();if(d0(u)||Od(u)||Od(u.parent)){Rr.valueDeclaration&&r_(Rr.valueDeclaration)&&Nn(u)===Nn(Rr.valueDeclaration.name)&&(u=Rr.valueDeclaration.name);let yo=ai(Rr),Ko=FOe(yo,Si),Xo=Ko?ai(Ko):void 0;Xo?Yi(f.Property_0_does_not_exist_on_type_1_Did_you_mean_2,yo,Pn(Si),Xo):Yi(f.Property_0_does_not_exist_on_type_1,yo,Pn(Si))}else{let yo=((kn=qe.symbol)==null?void 0:kn.declarations)&&Ac(qe.symbol.declarations),Ko;if(Rr.valueDeclaration&&Rn(Rr.valueDeclaration,Xo=>Xo===yo)&&Nn(yo)===Nn(u)){let Xo=Rr.valueDeclaration;x.assertNode(Xo,Zh);let oi=Xo.name;u=oi,Me(oi)&&(Ko=jhe(oi,Si))}Ko!==void 0?ic(f.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ai(Rr),Pn(Si),Ko):ic(f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ai(Rr),Pn(Si))}}return!0}if(rr&&!or(Yn(Rr),es(rr,Rr.escapedName),3,Bt))return Bt&&no(f.Types_of_property_0_are_incompatible,ai(Rr)),!0}return!1}function ga(qe,ut){return qe.valueDeclaration&&ut.valueDeclaration&&qe.valueDeclaration.parent===ut.valueDeclaration}function au(qe,ut,Bt,kn){if(qe.flags&1048576){if(ut.flags&1048576){let pr=qe.origin;if(pr&&pr.flags&2097152&&ut.aliasSymbol&&To(pr.types,ut))return-1;let cn=ut.origin;if(cn&&cn.flags&1048576&&qe.aliasSymbol&&To(cn.types,qe))return-1}return c===Yu?ve(qe,ut,Bt&&!(qe.flags&402784252),kn):_r(qe,ut,Bt&&!(qe.flags&402784252),kn)}if(ut.flags&1048576)return Ys(Ew(qe),ut,Bt&&!(qe.flags&402784252)&&!(ut.flags&402784252),kn);if(ut.flags&2097152)return Qe(qe,ut,Bt,2);if(c===Yu&&ut.flags&402784252){let pr=sc(qe.types,cn=>cn.flags&465829888?md(cn)||Zt:cn);if(pr!==qe.types){if(qe=Zo(pr),qe.flags&131072)return 0;if(!(qe.flags&2097152))return or(qe,ut,1,!1)||or(ut,qe,1,!1)}}return ve(qe,ut,!1,1)}function fl(qe,ut){let Bt=-1,kn=qe.types;for(let pr of kn){let cn=Ys(pr,ut,!1,0);if(!cn)return 0;Bt&=cn}return Bt}function Ys(qe,ut,Bt,kn){let pr=ut.types;if(ut.flags&1048576){if(Mg(pr,qe))return-1;if(c!==Yu&&br(ut)&32768&&!(qe.flags&1024)&&(qe.flags&2688||(c===X_||c===rf)&&qe.flags&256)){let rr=qe===qe.regularType?qe.freshType:qe.regularType,Rr=qe.flags&128?Ie:qe.flags&256?gt:qe.flags&2048?bt:void 0;return Rr&&Mg(pr,Rr)||rr&&Mg(pr,rr)?-1:0}let cn=Rke(ut,qe);if(cn){let rr=or(qe,cn,2,!1,void 0,kn);if(rr)return rr}}for(let cn of pr){let rr=or(qe,cn,2,!1,void 0,kn);if(rr)return rr}if(Bt){let cn=$2e(qe,ut,or);cn&&or(qe,cn,2,!0,void 0,kn)}return 0}function Qe(qe,ut,Bt,kn){let pr=-1,cn=ut.types;for(let rr of cn){let Rr=or(qe,rr,2,Bt,void 0,kn);if(!Rr)return 0;pr&=Rr}return pr}function ve(qe,ut,Bt,kn){let pr=qe.types;if(qe.flags&1048576&&Mg(pr,ut))return-1;let cn=pr.length;for(let rr=0;rr<cn;rr++){let Rr=or(pr[rr],ut,1,Bt&&rr===cn-1,void 0,kn);if(Rr)return Rr}return 0}function vn(qe,ut){return qe.flags&1048576&&ut.flags&1048576&&!(qe.types[0].flags&32768)&&ut.types[0].flags&32768?JP(ut,-32769):ut}function _r(qe,ut,Bt,kn){let pr=-1,cn=qe.types,rr=vn(qe,ut);for(let Rr=0;Rr<cn.length;Rr++){let Si=cn[Rr];if(rr.flags&1048576&&cn.length>=rr.types.length&&cn.length%rr.types.length===0){let Ko=or(Si,rr.types[Rr%rr.types.length],3,!1,void 0,kn);if(Ko){pr&=Ko;continue}}let yo=or(Si,ut,1,Bt,void 0,kn);if(!yo)return 0;pr&=yo}return pr}function Xr(qe=je,ut=je,Bt=je,kn,pr){if(qe.length!==ut.length&&c===Cu)return 0;let cn=qe.length<=ut.length?qe.length:ut.length,rr=-1;for(let Rr=0;Rr<cn;Rr++){let Si=Rr<Bt.length?Bt[Rr]:1,yo=Si&7;if(yo!==4){let Ko=qe[Rr],Xo=ut[Rr],oi=-1;if(Si&8?oi=c===Cu?or(Ko,Xo,3,!1):_w(Ko,Xo):yo===1?oi=or(Ko,Xo,3,kn,void 0,pr):yo===2?oi=or(Xo,Ko,3,kn,void 0,pr):yo===3?(oi=or(Xo,Ko,3,!1),oi||(oi=or(Ko,Xo,3,kn,void 0,pr))):(oi=or(Ko,Xo,3,kn,void 0,pr),oi&&(oi&=or(Xo,Ko,3,kn,void 0,pr))),!oi)return 0;rr&=oi}}return rr}function li(qe,ut,Bt,kn,pr){var cn,rr,Rr;if(Hn)return 0;let Si=lQ(qe,ut,kn,c,!1),yo=c.get(Si);if(yo!==void 0&&!(Bt&&yo&2&&!(yo&4))){if(Uo){let qa=yo&24;qa&8&&Gi(qe,ts),qa&16&&Gi(qe,zc)}return yo&1?-1:0}if(zn<=0)return Hn=!0,0;if(!Q)Q=[],me=new Set,ue=[],We=[];else{if(me.has(Si))return 3;let qa=Si.startsWith("*")?lQ(qe,ut,kn,c,!0):void 0;if(qa&&me.has(qa))return 3;if(ht===100||qt===100)return Hn=!0,0}let Ko=at;Q[at]=Si,me.add(Si),at++;let Xo=Xt;pr&1&&(ue[ht]=qe,ht++,!(Xt&1)&&BP(qe,ue,ht)&&(Xt|=1)),pr&2&&(We[qt]=ut,qt++,!(Xt&2)&&BP(ut,We,qt)&&(Xt|=2));let oi,go=0;Uo&&(oi=Uo,Uo=qa=>(go|=qa?16:8,oi(qa)));let aa;return Xt===3?((cn=qn)==null||cn.instant(qn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:qe.id,sourceIdStack:ue.map(qa=>qa.id),targetId:ut.id,targetIdStack:We.map(qa=>qa.id),depth:ht,targetDepth:qt}),aa=3):((rr=qn)==null||rr.push(qn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:qe.id,targetId:ut.id}),aa=ci(qe,ut,Bt,kn),(Rr=qn)==null||Rr.pop()),Uo&&(Uo=oi),pr&1&&ht--,pr&2&&qt--,Xt=Xo,aa?(aa===-1||ht===0&&qt===0)&&as(aa===-1||aa===3):(c.set(Si,(Bt?4:0)|2|go),zn--,as(!1)),aa;function as(qa){for(let ac=Ko;ac<at;ac++)me.delete(Q[ac]),qa&&(c.set(Q[ac],1|go),zn--);at=Ko}}function ci(qe,ut,Bt,kn){let pr=co(),cn=ur(qe,ut,Bt,kn,pr);if(c!==Cu){if(!cn&&(qe.flags&2097152||qe.flags&262144&&ut.flags&1048576)){let rr=ltt(qe.flags&2097152?qe.types:[qe],!!(ut.flags&1048576));rr&&Lu(rr,Rr=>Rr!==qe)&&(cn=or(rr,ut,1,!1,void 0,kn))}cn&&!(kn&2)&&ut.flags&2097152&&!QT(ut)&&qe.flags&2621440?(cn&=ii(qe,ut,Bt,void 0,!1,0),cn&&RE(qe)&&br(qe)&8192&&(cn&=Ba(qe,ut,!1,Bt,0))):cn&&X$(ut)&&!AE(ut)&&qe.flags&2097152&&ou(qe).flags&3670016&&!ct(qe.types,rr=>rr===ut||!!(br(rr)&262144))&&(cn&=ii(qe,ut,Bt,void 0,!0,kn))}return cn&&Bn(pr),cn}function xr(qe,ut){let Bt=ou(HT(ut)),kn=[];return Pme(Bt,8576,!1,pr=>void kn.push(Gi(qe,pw(ut.mapper,km(ut),pr)))),Br(kn)}function ur(qe,ut,Bt,kn,pr){let cn,rr,Rr=!1,Si=qe.flags,yo=ut.flags;if(c===Cu){if(Si&3145728){let oi=fl(qe,ut);return oi&&(oi&=fl(ut,qe)),oi}if(Si&4194304)return or(qe.type,ut.type,3,!1);if(Si&8388608&&(cn=or(qe.objectType,ut.objectType,3,!1))&&(cn&=or(qe.indexType,ut.indexType,3,!1))||Si&16777216&&qe.root.isDistributive===ut.root.isDistributive&&(cn=or(qe.checkType,ut.checkType,3,!1))&&(cn&=or(qe.extendsType,ut.extendsType,3,!1))&&(cn&=or(EE(qe),EE(ut),3,!1))&&(cn&=or(SE(qe),SE(ut),3,!1))||Si&33554432&&(cn=or(qe.baseType,ut.baseType,3,!1))&&(cn&=or(qe.constraint,ut.constraint,3,!1)))return cn;if(!(Si&524288))return 0}else if(Si&3145728||yo&3145728){if(cn=au(qe,ut,Bt,kn))return cn;if(!(Si&465829888||Si&524288&&yo&1048576||Si&2097152&&yo&467402752))return 0}if(Si&17301504&&qe.aliasSymbol&&qe.aliasTypeArguments&&qe.aliasSymbol===ut.aliasSymbol&&!(aQ(qe)||aQ(ut))){let oi=Z2e(qe.aliasSymbol);if(oi===je)return 1;let go=Pi(qe.aliasSymbol).typeParameters,aa=oh(go),as=Yy(qe.aliasTypeArguments,go,aa,Jn(qe.aliasSymbol.valueDeclaration)),qa=Yy(ut.aliasTypeArguments,go,aa,Jn(qe.aliasSymbol.valueDeclaration)),ac=Xo(as,qa,oi,kn);if(ac!==void 0)return ac}if(lke(qe)&&!qe.target.readonly&&(cn=or(Ss(qe)[0],ut,1))||lke(ut)&&(ut.target.readonly||Q7(md(qe)||qe))&&(cn=or(qe,Ss(ut)[0],2)))return cn;if(yo&262144){if(br(qe)&32&&!qe.declaration.nameType&&or(v_(ut),Gp(qe),3)&&!(ih(qe)&4)){let oi=Ng(qe),go=tp(ut,km(qe));if(cn=or(oi,go,3,Bt))return cn}if(c===Yu&&Si&262144){let oi=iu(qe);if(oi)for(;oi&&dm(oi,go=>!!(go.flags&262144));){if(cn=or(oi,ut,1,!1))return cn;oi=iu(oi)}return 0}}else if(yo&4194304){let oi=ut.type;if(Si&4194304&&(cn=or(oi,qe.type,3,!1)))return cn;if(ha(oi)){if(cn=or(qe,a2e(oi),2,Bt))return cn}else{let go=Lme(oi);if(go){if(or(qe,v_(go,ut.indexFlags|4),2,Bt)===-1)return-1}else if(vu(oi)){let aa=Dv(oi),as=Gp(oi),qa;if(aa&&fD(oi)){let ac=xr(aa,oi);qa=Br([ac,aa])}else qa=aa||as;if(or(qe,qa,2,Bt)===-1)return-1}}}else if(yo&8388608){if(Si&8388608){if((cn=or(qe.objectType,ut.objectType,3,Bt))&&(cn&=or(qe.indexType,ut.indexType,3,Bt)),cn)return cn;Bt&&(rr=O)}if(c===hu||c===Yu){let oi=ut.objectType,go=ut.indexType,aa=md(oi)||oi,as=md(go)||go;if(!QT(aa)&&!ZT(as)){let qa=4|(aa!==oi?2:0),ac=Qy(aa,as,qa);if(ac){if(Bt&&rr&&Bn(pr),cn=or(qe,ac,2,Bt,void 0,kn))return cn;Bt&&rr&&O&&(O=Ko([rr])<=Ko([O])?rr:O)}}}Bt&&(rr=void 0)}else if(vu(ut)&&c!==Cu){let oi=!!ut.declaration.nameType,go=Ng(ut),aa=ih(ut);if(!(aa&8)){if(!oi&&go.flags&8388608&&go.objectType===qe&&go.indexType===km(ut))return-1;if(!vu(qe)){let as=oi?Dv(ut):Gp(ut),qa=v_(qe,2),ac=aa&4,dh=ac?C7(as,qa):void 0;if(ac?!(dh.flags&131072):or(as,qa,3)){let Bg=Ng(ut),fA=km(ut),mA=JP(Bg,-98305);if(!oi&&mA.flags&8388608&&mA.indexType===fA){if(cn=or(qe,mA.objectType,2,Bt))return cn}else{let sM=oi?dh||as:dh?Zo([dh,fA]):fA,Vm=tp(qe,sM);if(cn=or(Vm,Bg,3,Bt))return cn}}rr=O,Bn(pr)}}}else if(yo&16777216){if(BP(ut,We,qt,10))return 3;let oi=ut;if(!oi.root.inferTypeParameters&&!Unt(oi.root)&&!(qe.flags&16777216&&qe.root===oi.root)){let go=!ea(mw(oi.checkType),mw(oi.extendsType)),aa=!go&&ea(tA(oi.checkType),tA(oi.extendsType));if((cn=go?-1:or(qe,EE(oi),2,!1,void 0,kn))&&(cn&=aa?-1:or(qe,SE(oi),2,!1,void 0,kn),cn))return cn}}else if(yo&134217728){if(Si&134217728){if(c===Yu)return git(qe,ut)?0:-1;Gi(qe,zc)}if(TQ(qe,ut))return-1}else if(ut.flags&268435456&&!(qe.flags&268435456)&&SQ(qe,ut))return-1;if(Si&8650752){if(!(Si&8388608&&yo&8388608)){let oi=qT(qe)||Zt;if(cn=or(oi,ut,1,!1,void 0,kn))return cn;if(cn=or(hp(oi,qe),ut,1,Bt&&oi!==Zt&&!(yo&Si&262144),void 0,kn))return cn;if(Wme(qe)){let go=qT(qe.indexType);if(go&&(cn=or(tp(qe.objectType,go),ut,1,Bt)))return cn}}}else if(Si&4194304){let oi=g_e(qe.type,qe.indexFlags)&&br(qe.type)&32;if(cn=or(fs,ut,1,Bt&&!oi))return cn;if(oi){let go=qe.type,aa=Dv(go),as=aa&&fD(go)?xr(aa,go):aa||Gp(go);if(cn=or(as,ut,1,Bt))return cn}}else if(Si&134217728&&!(yo&524288)){if(!(yo&134217728)){let oi=md(qe);if(oi&&oi!==qe&&(cn=or(oi,ut,1,Bt)))return cn}}else if(Si&268435456)if(yo&268435456){if(qe.symbol!==ut.symbol)return 0;if(cn=or(qe.type,ut.type,3,Bt))return cn}else{let oi=md(qe);if(oi&&(cn=or(oi,ut,1,Bt)))return cn}else if(Si&16777216){if(BP(qe,ue,ht,10))return 3;if(yo&16777216){let aa=qe.root.inferTypeParameters,as=qe.extendsType,qa;if(aa){let ac=Sw(aa,void 0,0,Bi);Fg(ac.inferences,ut.extendsType,as,1536),as=Gi(as,ac.mapper),qa=ac.mapper}if(kg(as,ut.extendsType)&&(or(qe.checkType,ut.checkType,3)||or(ut.checkType,qe.checkType,3))&&((cn=or(Gi(EE(qe),qa),EE(ut),3,Bt))&&(cn&=or(SE(qe),SE(ut),3,Bt)),cn))return cn}let oi=kme(qe);if(oi&&(cn=or(oi,ut,1,Bt)))return cn;let go=!(yo&16777216)&&M7(qe)?yLe(qe):void 0;if(go&&(Bn(pr),cn=or(go,ut,1,Bt)))return cn}else{if(c!==X_&&c!==rf&&ttt(ut)&&Og(qe))return-1;if(vu(ut))return vu(qe)&&(cn=$e(qe,ut,Bt))?cn:0;let oi=!!(Si&402784252);if(c!==Cu)qe=ou(qe),Si=qe.flags;else if(vu(qe))return 0;if(br(qe)&4&&br(ut)&4&&qe.target===ut.target&&!ha(qe)&&!(aQ(qe)||aQ(ut))){if(uQ(qe))return-1;let go=F_e(qe.target);if(go===je)return 1;let aa=Xo(Ss(qe),Ss(ut),go,kn);if(aa!==void 0)return aa}else{if(GP(ut)?Lu(qe,AE):ff(ut)&&Lu(qe,go=>ha(go)&&!go.target.readonly))return c!==Cu?or(yE(qe,gt)||z,yE(ut,gt)||z,3,Bt):0;if(rb(qe)&&ha(ut)&&!rb(ut)){let go=Pg(qe);if(go!==qe)return or(go,ut,1,Bt)}else if((c===X_||c===rf)&&Og(ut)&&br(ut)&8192&&!Og(qe))return 0}if(Si&2621440&&yo&524288){let go=Bt&&O===pr.errorInfo&&!oi;if(cn=ii(qe,ut,go,void 0,!1,kn),cn&&(cn&=qi(qe,ut,0,go,kn),cn&&(cn&=qi(qe,ut,1,go,kn),cn&&(cn&=Ba(qe,ut,oi,go,kn)))),Rr&&cn)O=rr||O||pr.errorInfo;else if(cn)return cn}if(Si&2621440&&yo&1048576){let go=JP(ut,36175872);if(go.flags&1048576){let aa=It(qe,go);if(aa)return aa}}}return 0;function Ko(oi){return oi?Nd(oi,(go,aa)=>go+1+Ko(aa.next),0):0}function Xo(oi,go,aa,as){if(cn=Xr(oi,go,aa,Bt,as))return cn;if(ct(aa,ac=>!!(ac&24))){rr=void 0,Bn(pr);return}let qa=go&&Mrt(go,aa);if(Rr=!qa,aa!==je&&!qa){if(Rr&&!(Bt&&ct(aa,ac=>(ac&7)===0)))return 0;rr=O,Bn(pr)}}}function $e(qe,ut,Bt){if(c===Yu||(c===Cu?ih(qe)===ih(ut):Mme(qe)<=Mme(ut))){let pr,cn=Gp(ut),rr=Gi(Gp(qe),Mme(qe)<0?ts:zc);if(pr=or(cn,rr,3,Bt)){let Rr=np([km(qe)],[km(ut)]);if(Gi(Dv(qe),Rr)===Gi(Dv(ut),Rr))return pr&or(Gi(Ng(qe),Rr),Ng(ut),3,Bt)}}return 0}function It(qe,ut){var Bt;let kn=Xa(qe),pr=xke(kn,ut);if(!pr)return 0;let cn=1;for(let Xo of pr)if(cn*=Hit(qy(Xo)),cn>25)return(Bt=qn)==null||Bt.instant(qn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:qe.id,targetId:ut.id,numCombinations:cn}),0;let rr=new Array(pr.length),Rr=new Set;for(let Xo=0;Xo<pr.length;Xo++){let oi=pr[Xo],go=qy(oi);rr[Xo]=go.flags&1048576?go.types:[go],Rr.add(oi.escapedName)}let Si=JZ(rr),yo=[];for(let Xo of Si){let oi=!1;e:for(let go of ut.types){for(let aa=0;aa<pr.length;aa++){let as=pr[aa],qa=Qo(go,as.escapedName);if(!qa)continue e;if(as===qa)continue;if(!Yt(qe,ut,as,qa,dh=>Xo[aa],!1,0,H||c===Yu))continue e}jp(yo,go,Hg),oi=!0}if(!oi)return 0}let Ko=-1;for(let Xo of yo)if(Ko&=ii(qe,Xo,!1,Rr,!1,0),Ko&&(Ko&=qi(qe,Xo,0,!1,0),Ko&&(Ko&=qi(qe,Xo,1,!1,0),Ko&&!(ha(qe)&&ha(Xo))&&(Ko&=Ba(qe,Xo,!1,!1,0)))),!Ko)return Ko;return Ko}function Gt(qe,ut){if(!ut||qe.length===0)return qe;let Bt;for(let kn=0;kn<qe.length;kn++)ut.has(qe[kn].escapedName)?Bt||(Bt=qe.slice(0,kn)):Bt&&Bt.push(qe[kn]);return Bt||qe}function Ft(qe,ut,Bt,kn,pr){let cn=H&&!!(tl(ut)&48),rr=Mu(qy(ut),!1,cn),Rr=Bt(qe);return or(Rr,rr,3,kn,void 0,pr)}function Yt(qe,ut,Bt,kn,pr,cn,rr,Rr){let Si=Kp(Bt),yo=Kp(kn);if(Si&2||yo&2){if(Bt.valueDeclaration!==kn.valueDeclaration)return cn&&(Si&2&&yo&2?Yi(f.Types_have_separate_declarations_of_a_private_property_0,ai(kn)):Yi(f.Property_0_is_private_in_type_1_but_not_in_type_2,ai(kn),Pn(Si&2?qe:ut),Pn(Si&2?ut:qe))),0}else if(yo&4){if(!Wrt(Bt,kn))return cn&&Yi(f.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ai(kn),Pn(y1(Bt)||qe),Pn(y1(kn)||ut)),0}else if(Si&4)return cn&&Yi(f.Property_0_is_protected_in_type_1_but_public_in_type_2,ai(kn),Pn(qe),Pn(ut)),0;if(c===rf&&Bm(Bt)&&!Bm(kn))return 0;let Ko=Ft(Bt,kn,pr,cn,rr);return Ko?!Rr&&Bt.flags&16777216&&kn.flags&106500&&!(kn.flags&16777216)?(cn&&Yi(f.Property_0_is_optional_in_type_1_but_required_in_type_2,ai(kn),Pn(qe),Pn(ut)),0):Ko:(cn&&no(f.Types_of_property_0_are_incompatible,ai(kn)),0)}function xn(qe,ut,Bt,kn){let pr=!1;if(Bt.valueDeclaration&&Ld(Bt.valueDeclaration)&&Ci(Bt.valueDeclaration.name)&&qe.symbol&&qe.symbol.flags&32){let rr=Bt.valueDeclaration.name.escapedText,Rr=wL(qe.symbol,rr);if(Rr&&Qo(qe,Rr)){let Si=P.getDeclarationName(qe.symbol.valueDeclaration),yo=P.getDeclarationName(ut.symbol.valueDeclaration);Yi(f.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,rm(rr),rm(Si.escapedText===""?s4:Si),rm(yo.escapedText===""?s4:yo));return}}let cn=bo(ehe(qe,ut,kn,!1));if((!_||_.code!==f.Class_0_incorrectly_implements_interface_1.code&&_.code!==f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(pr=!0),cn.length===1){let rr=ai(Bt,void 0,0,20);Yi(f.Property_0_is_missing_in_type_1_but_required_in_type_2,rr,...d1(qe,ut)),yn(Bt.declarations)&&mf(vr(Bt.declarations[0],f._0_is_declared_here,rr)),pr&&O&&En++}else Fn(qe,ut,!1)&&(cn.length>5?Yi(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,Pn(qe),Pn(ut),nn(cn.slice(0,4),rr=>ai(rr)).join(", "),cn.length-4):Yi(f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,Pn(qe),Pn(ut),nn(cn,rr=>ai(rr)).join(", ")),pr&&O&&En++)}function ii(qe,ut,Bt,kn,pr,cn){if(c===Cu)return Yr(qe,ut,kn);let rr=-1;if(ha(ut)){if(AE(qe)){if(!ut.target.readonly&&(GP(qe)||ha(qe)&&qe.target.readonly))return 0;let Xo=Nv(qe),oi=Nv(ut),go=ha(qe)?qe.target.combinedFlags&4:4,aa=ut.target.combinedFlags&4,as=ha(qe)?qe.target.minLength:0,qa=ut.target.minLength;if(!go&&Xo<qa)return Bt&&Yi(f.Source_has_0_element_s_but_target_requires_1,Xo,qa),0;if(!aa&&oi<as)return Bt&&Yi(f.Source_has_0_element_s_but_target_allows_only_1,as,oi),0;if(!aa&&(go||oi<Xo))return Bt&&(as<qa?Yi(f.Target_requires_0_element_s_but_source_may_have_fewer,qa):Yi(f.Target_allows_only_0_element_s_but_source_may_have_more,oi)),0;let ac=Ss(qe),dh=Ss(ut),Bg=dnt(ut.target,11),fA=cw(ut.target,11),mA=ut.target.hasRestElement,sM=!!kn;for(let Vm=0;Vm<Xo;Vm++){let A1=ha(qe)?qe.target.elementFlags[Vm]:4,pm=Xo-1-Vm,Et=mA&&Vm>=Bg?oi-1-Math.min(pm,fA):Vm,fr=ut.target.elementFlags[Et];if(fr&8&&!(A1&8))return Bt&&Yi(f.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Et),0;if(A1&8&&!(fr&12))return Bt&&Yi(f.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Vm,Et),0;if(fr&1&&!(A1&1))return Bt&&Yi(f.Source_provides_no_match_for_required_element_at_position_0_in_target,Et),0;if(sM&&((A1&12||fr&12)&&(sM=!1),sM&&kn?.has(""+Vm)))continue;let $r=ob(ac[Vm],!!(A1&fr&2)),Lr=dh[Et],Jr=A1&8&&fr&4?_d(Lr):ob(Lr,!!(fr&2)),ka=or($r,Jr,3,Bt,void 0,cn);if(!ka)return Bt&&(oi>1||Xo>1)&&(mA&&Vm>=Bg&&pm>=fA&&Bg!==Xo-fA-1?no(f.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,Bg,Xo-fA-1,Et):no(f.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Vm,Et)),0;rr&=ka}return rr}if(ut.target.combinedFlags&12)return 0}let Rr=(c===X_||c===rf)&&!RE(qe)&&!uQ(qe)&&!ha(qe),Si=the(qe,ut,Rr,!1);if(Si)return Bt&&fn(qe,ut)&&xn(qe,ut,Si,Rr),0;if(RE(ut)){for(let Xo of Gt(Xa(qe),kn))if(!vE(ut,Xo.escapedName)&&!(Yn(Xo).flags&32768))return Bt&&Yi(f.Property_0_does_not_exist_on_type_1,ai(Xo),Pn(ut)),0}let yo=Xa(ut),Ko=ha(qe)&&ha(ut);for(let Xo of Gt(yo,kn)){let oi=Xo.escapedName;if(!(Xo.flags&4194304)&&(!Ko||Rh(oi)||oi==="length")&&(!pr||Xo.flags&16777216)){let go=Qo(qe,oi);if(go&&go!==Xo){let aa=Yt(qe,ut,go,Xo,qy,Bt,cn,c===Yu);if(!aa)return 0;rr&=aa}}}return rr}function Yr(qe,ut,Bt){if(!(qe.flags&524288&&ut.flags&524288))return 0;let kn=Gt(Xy(qe),Bt),pr=Gt(Xy(ut),Bt);if(kn.length!==pr.length)return 0;let cn=-1;for(let rr of kn){let Rr=vE(ut,rr.escapedName);if(!Rr)return 0;let Si=B_e(rr,Rr,or);if(!Si)return 0;cn&=Si}return cn}function qi(qe,ut,Bt,kn,pr){var cn,rr;if(c===Cu)return Ho(qe,ut,Bt);if(ut===Ut||qe===Ut)return-1;let Rr=qe.symbol&&S_(qe.symbol.valueDeclaration),Si=ut.symbol&&S_(ut.symbol.valueDeclaration),yo=Co(qe,Rr&&Bt===1?0:Bt),Ko=Co(ut,Si&&Bt===1?0:Bt);if(Bt===1&&yo.length&&Ko.length){let as=!!(yo[0].flags&4),qa=!!(Ko[0].flags&4);if(as&&!qa)return kn&&Yi(f.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Gm(yo[0],Ko[0],kn))return 0}let Xo=-1,oi=Bt===1?Ai:zr,go=br(qe),aa=br(ut);if(go&64&&aa&64&&qe.symbol===ut.symbol||go&4&&aa&4&&qe.target===ut.target){x.assertEqual(yo.length,Ko.length);for(let as=0;as<Ko.length;as++){let qa=Ji(yo[as],Ko[as],!0,kn,pr,oi(yo[as],Ko[as]));if(!qa)return 0;Xo&=qa}}else if(yo.length===1&&Ko.length===1){let as=c===Yu||!!F.noStrictGenericChecks,qa=Sa(yo),ac=Sa(Ko);if(Xo=Ji(qa,ac,as,kn,pr,oi(qa,ac)),!Xo&&kn&&Bt===1&&go&aa&&(((cn=ac.declaration)==null?void 0:cn.kind)===176||((rr=qa.declaration)==null?void 0:rr.kind)===176)){let dh=Bg=>eh(Bg,void 0,262144,Bt);return Yi(f.Type_0_is_not_assignable_to_type_1,dh(qa),dh(ac)),Yi(f.Types_of_construct_signatures_are_incompatible),Xo}}else e:for(let as of Ko){let qa=co(),ac=kn;for(let dh of yo){let Bg=Ji(dh,as,!0,ac,pr,oi(dh,as));if(Bg){Xo&=Bg,Bn(qa);continue e}ac=!1}return ac&&Yi(f.Type_0_provides_no_match_for_the_signature_1,Pn(qe),eh(as,void 0,void 0,Bt)),0}return Xo}function fn(qe,ut){let Bt=k7(qe,0),kn=k7(qe,1),pr=Xy(qe);return(Bt.length||kn.length)&&!pr.length?!!(Co(ut,0).length&&Bt.length||Co(ut,1).length&&kn.length):!0}function zr(qe,ut){return qe.parameters.length===0&&ut.parameters.length===0?(Bt,kn)=>no(f.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Pn(Bt),Pn(kn)):(Bt,kn)=>no(f.Call_signature_return_types_0_and_1_are_incompatible,Pn(Bt),Pn(kn))}function Ai(qe,ut){return qe.parameters.length===0&&ut.parameters.length===0?(Bt,kn)=>no(f.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,Pn(Bt),Pn(kn)):(Bt,kn)=>no(f.Construct_signature_return_types_0_and_1_are_incompatible,Pn(Bt),Pn(kn))}function Ji(qe,ut,Bt,kn,pr,cn){let rr=c===X_?16:c===rf?24:0;return L_e(Bt?sw(qe):qe,Bt?sw(ut):ut,rr,kn,Yi,cn,Rr,zc);function Rr(Si,yo,Ko){return or(Si,yo,3,Ko,void 0,pr)}}function Ho(qe,ut,Bt){let kn=Co(qe,Bt),pr=Co(ut,Bt);if(kn.length!==pr.length)return 0;let cn=-1;for(let rr=0;rr<kn.length;rr++){let Rr=$7(kn[rr],pr[rr],!1,!1,!1,or);if(!Rr)return 0;cn&=Rr}return cn}function Yl(qe,ut,Bt,kn){let pr=-1,cn=ut.keyType,rr=qe.flags&2097152?P7(qe):Xy(qe);for(let Rr of rr)if(!X2e(qe,Rr)&&f1(vD(Rr,8576),cn)){let Si=qy(Rr),yo=be||Si.flags&32768||cn===gt||!(Rr.flags&16777216)?Si:Wf(Si,524288),Ko=or(yo,ut.type,3,Bt,void 0,kn);if(!Ko)return Bt&&Yi(f.Property_0_is_incompatible_with_index_signature,ai(Rr)),0;pr&=Ko}for(let Rr of Ud(qe))if(f1(Rr.keyType,cn)){let Si=al(Rr,ut,Bt,kn);if(!Si)return 0;pr&=Si}return pr}function al(qe,ut,Bt,kn){let pr=or(qe.type,ut.type,3,Bt,void 0,kn);return!pr&&Bt&&(qe.keyType===ut.keyType?Yi(f._0_index_signatures_are_incompatible,Pn(qe.keyType)):Yi(f._0_and_1_index_signatures_are_incompatible,Pn(qe.keyType),Pn(ut.keyType))),pr}function Ba(qe,ut,Bt,kn,pr){if(c===Cu)return Ts(qe,ut);let cn=Ud(ut),rr=ct(cn,Si=>Si.keyType===Ie),Rr=-1;for(let Si of cn){let yo=c!==rf&&!Bt&&rr&&Si.type.flags&1?-1:vu(qe)&&rr?or(Ng(qe),Si.type,3,kn):oc(qe,Si,kn,pr);if(!yo)return 0;Rr&=yo}return Rr}function oc(qe,ut,Bt,kn){let pr=iw(qe,ut.keyType);return pr?al(pr,ut,Bt,kn):!(kn&1)&&(c!==rf||br(qe)&8192)&&gQ(qe)?Yl(qe,ut,Bt,kn):(Bt&&Yi(f.Index_signature_for_type_0_is_missing_in_type_1,Pn(ut.keyType),Pn(qe)),0)}function Ts(qe,ut){let Bt=Ud(qe),kn=Ud(ut);if(Bt.length!==kn.length)return 0;for(let pr of kn){let cn=Uh(qe,pr.keyType);if(!(cn&&or(cn.type,pr.type,3)&&cn.isReadonly===pr.isReadonly))return 0}return-1}function Gm(qe,ut,Bt){if(!qe.declaration||!ut.declaration)return!0;let kn=BA(qe.declaration,6),pr=BA(ut.declaration,6);return pr===2||pr===4&&kn!==2||pr!==4&&!kn?!0:(Bt&&Yi(f.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,VT(kn),VT(pr)),!1)}}function w_e(n){if(n.flags&16)return!1;if(n.flags&3145728)return!!an(n.types,w_e);if(n.flags&465829888){let a=qT(n);if(a&&a!==n)return w_e(a)}return Fm(n)||!!(n.flags&134217728)||!!(n.flags&268435456)}function Y2e(n,a){return ha(n)&&ha(a)?je:Xa(a).filter(c=>oQ(Fe(n,c.escapedName),Yn(c)))}function oQ(n,a){return!!n&&!!a&&ol(n,32768)&&!!bw(a)}function Nrt(n){return Xa(n).filter(a=>bw(Yn(a)))}function $2e(n,a,c=P_e){return _We(n,a,c)||Wpt(n,a)||Fpt(n,a)||zpt(n,a)||Bpt(n,a)}function W_e(n,a,c){let u=n.types,_=u.map(T=>T.flags&402784252?0:-1);for(let[T,N]of a){let O=!1;for(let B=0;B<u.length;B++)if(_[B]){let Q=mt(u[B],N);Q&&c(T(),Q)?O=!0:_[B]=3}for(let B=0;B<u.length;B++)_[B]===3&&(_[B]=O?0:-1)}let g=To(_,0)?Br(u.filter((T,N)=>_[N]),0):n;return g.flags&131072?n:g}function Q2e(n){if(n.flags&524288){let a=Om(n);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&ji(a.properties,c=>!!(c.flags&16777216))}return n.flags&2097152?ji(n.types,Q2e):!1}function Prt(n,a,c){for(let u of Xa(n))if(khe(a,u.escapedName,c))return!0;return!1}function F_e(n){return n===Po||n===Oo||n.objectFlags&8?K:eke(n.symbol,n.typeParameters)}function Z2e(n){return eke(n,Pi(n).typeParameters)}function eke(n,a=je){var c,u;let _=Pi(n);if(!_.variances){(c=qn)==null||c.push(qn.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:Hd(Cs(n))});let g=Qb;Qb||(Qb=!0,UI=Vc.length),_.variances=je;let T=[];for(let N of a){let O=z_e(N),B=O&16384?O&8192?0:1:O&8192?2:void 0;if(B===void 0){let Q=!1,me=!1,ue=Uo;Uo=ht=>ht?me=!0:Q=!0;let We=X7(n,N,Ju),at=X7(n,N,ls);B=(ea(at,We)?1:0)|(ea(We,at)?2:0),B===3&&ea(X7(n,N,tc),We)&&(B=4),Uo=ue,(Q||me)&&(Q&&(B|=8),me&&(B|=16))}T.push(B)}g||(Qb=!1,UI=0),_.variances=T,(u=qn)==null||u.pop({variances:T.map(x.formatVariance)})}return _.variances}function X7(n,a,c){let u=Q0(a,c),_=Cs(n);if(Lt(_))return _;let g=n.flags&524288?hD(n,Mv(Pi(n).typeParameters,u)):Cv(_,Mv(_.typeParameters,u));return nt.add(Hd(g)),g}function aQ(n){return nt.has(Hd(n))}function z_e(n){var a;return Nd((a=n.symbol)==null?void 0:a.declarations,(c,u)=>c|Wd(u),0)&28672}function Mrt(n,a){for(let c=0;c<a.length;c++)if((a[c]&7)===1&&n[c].flags&16384)return!0;return!1}function Lrt(n){return n.flags&262144&&!iu(n)}function krt(n){return!!(br(n)&4)&&!n.node}function sQ(n){return krt(n)&&ct(Ss(n),a=>!!(a.flags&262144)||sQ(a))}function Ort(n,a,c,u){let _=[],g="",T=O(n,0),N=O(a,0);return`${g}${T},${N}${c}`;function O(B,Q=0){let me=""+B.target.id;for(let ue of Ss(B)){if(ue.flags&262144){if(u||Lrt(ue)){let We=_.indexOf(ue);We<0&&(We=_.length,_.push(ue)),me+="="+We;continue}g="*"}else if(Q<4&&sQ(ue)){me+="<"+O(ue,Q+1)+">";continue}me+="-"+ue.id}return me}}function lQ(n,a,c,u,_){if(u===Cu&&n.id>a.id){let T=n;n=a,a=T}let g=c?":"+c:"";return sQ(n)&&sQ(a)?Ort(n,a,g,_):`${n.id},${a.id}${g}`}function Y7(n,a){if(tl(n)&6){for(let c of n.links.containingType.types){let u=Qo(c,n.escapedName),_=u&&Y7(u,a);if(_)return _}return}return a(n)}function y1(n){return n.parent&&n.parent.flags&32?Cs(nu(n)):void 0}function cQ(n){let a=y1(n),c=a&&ep(a)[0];return c&&Fe(c,n.escapedName)}function wrt(n,a){return Y7(n,c=>{let u=y1(c);return u?dD(u,a):!1})}function Wrt(n,a){return!Y7(a,c=>Kp(c)&4?!wrt(n,y1(c)):!1)}function tke(n,a,c){return Y7(a,u=>Kp(u,c)&4?!dD(n,y1(u)):!1)?void 0:n}function BP(n,a,c,u=3){if(c>=u){if((br(n)&96)===96&&(n=nke(n)),n.flags&2097152)return ct(n.types,N=>BP(N,a,c,u));let _=dQ(n),g=0,T=0;for(let N=0;N<c;N++){let O=a[N];if(rke(O,_)){if(O.id>=T&&(g++,g>=u))return!0;T=O.id}}}return!1}function nke(n){let a;for(;(br(n)&96)===96&&(a=HT(n))&&(a.symbol||a.flags&2097152&&ct(a.types,c=>!!c.symbol));)n=a;return n}function rke(n,a){return(br(n)&96)===96&&(n=nke(n)),n.flags&2097152?ct(n.types,c=>rke(c,a)):dQ(n)===a}function dQ(n){if(n.flags&524288&&!rhe(n)){if(br(n)&4&&n.node)return n.node;if(n.symbol&&!(br(n)&16&&n.symbol.flags&32))return n.symbol;if(ha(n))return n.target}if(n.flags&262144)return n.symbol;if(n.flags&8388608){do n=n.objectType;while(n.flags&8388608);return n}return n.flags&16777216?n.root:n}function Frt(n,a){return B_e(n,a,_w)!==0}function B_e(n,a,c){if(n===a)return-1;let u=Kp(n)&6,_=Kp(a)&6;if(u!==_)return 0;if(u){if(ND(n)!==ND(a))return 0}else if((n.flags&16777216)!==(a.flags&16777216))return 0;return Bm(n)!==Bm(a)?0:c(Yn(n),Yn(a))}function zrt(n,a,c){let u=vp(n),_=vp(a),g=T_(n),T=T_(a),N=ch(n),O=ch(a);return!!(u===_&&g===T&&N===O||c&&g<=T)}function $7(n,a,c,u,_,g){if(n===a)return-1;if(!zrt(n,a,c)||yn(n.typeParameters)!==yn(a.typeParameters))return 0;if(a.typeParameters){let O=np(n.typeParameters,a.typeParameters);for(let B=0;B<a.typeParameters.length;B++){let Q=n.typeParameters[B],me=a.typeParameters[B];if(!(Q===me||g(Gi(OP(Q),O)||Zt,OP(me)||Zt)&&g(Gi(KT(Q),O)||Zt,KT(me)||Zt)))return 0}n=ED(n,O,!0)}let T=-1;if(!u){let O=bE(n);if(O){let B=bE(a);if(B){let Q=g(O,B);if(!Q)return 0;T&=Q}}}let N=vp(a);for(let O=0;O<N;O++){let B=zm(n,O),Q=zm(a,O),me=g(Q,B);if(!me)return 0;T&=me}if(!_){let O=df(n),B=df(a);T&=O||B?Brt(O,B,g):g(Ha(n),Ha(a))}return T}function Brt(n,a,c){return n&&a&&m_e(n,a)?n.type===a.type?-1:n.type&&a.type?c(n.type,a.type):0:0}function Grt(n){let a;for(let c of n)if(!(c.flags&131072)){let u=wg(c);if(a??(a=u),u===c||u!==a)return!1}return!0}function ike(n){return Nd(n,(a,c)=>a|(c.flags&1048576?ike(c.types):c.flags),0)}function Vrt(n){if(n.length===1)return n[0];let a=H?sc(n,u=>Bl(u,_=>!(_.flags&98304))):n,c=Grt(a)?Br(a):Nd(a,(u,_)=>tb(u,_)?_:u);return a===n?c:e5(c,ike(n)&98304)}function jrt(n){return Nd(n,(a,c)=>tb(c,a)?c:a)}function ff(n){return!!(br(n)&4)&&(n.target===Po||n.target===Oo)}function GP(n){return!!(br(n)&4)&&n.target===Oo}function AE(n){return ff(n)||ha(n)}function Q7(n){return ff(n)&&!GP(n)||ha(n)&&!n.target.readonly}function Z7(n){return ff(n)?Ss(n)[0]:void 0}function Lv(n){return ff(n)||!(n.flags&98304)&&ea(n,Lp)}function G_e(n){return Q7(n)||!(n.flags&98305)&&ea(n,Nl)}function V_e(n){if(!(br(n)&4)||!(br(n.target)&3))return;if(br(n)&33554432)return br(n)&67108864?n.cachedEquivalentBaseType:void 0;n.objectFlags|=33554432;let a=n.target;if(br(a)&1){let _=ns(a);if(_&&_.expression.kind!==80&&_.expression.kind!==211)return}let c=ep(a);if(c.length!==1||Ky(n.symbol).size)return;let u=yn(a.typeParameters)?Gi(c[0],np(a.typeParameters,Ss(n).slice(0,a.typeParameters.length))):c[0];return yn(Ss(n))>yn(a.typeParameters)&&(u=hp(u,Da(Ss(n)))),n.objectFlags|=67108864,n.cachedEquivalentBaseType=u}function oke(n){return H?n===_i:n===St}function uQ(n){let a=Z7(n);return!!a&&oke(a)}function VP(n){let a;return ha(n)||!!Qo(n,"0")||Lv(n)&&!!(a=Fe(n,"length"))&&Lu(a,c=>!!(c.flags&256))}function pQ(n){return Lv(n)||VP(n)}function Urt(n,a){let c=Fe(n,""+a);if(c)return c;if(Lu(n,ha))return cke(n,a,F.noUncheckedIndexedAccess?Re:void 0)}function Hrt(n){return!(n.flags&240544)}function Fm(n){return!!(n.flags&109472)}function ake(n){let a=Pg(n);return a.flags&2097152?ct(a.types,Fm):Fm(a)}function qrt(n){return n.flags&2097152&&Dr(n.types,Fm)||n}function vw(n){return n.flags&16?!0:n.flags&1048576?n.flags&1024?!0:ji(n.types,Fm):Fm(n)}function wg(n){return n.flags&1056?M$(n):n.flags&402653312?Ie:n.flags&256?gt:n.flags&2048?bt:n.flags&512?ti:n.flags&1048576?Jrt(n):n}function Jrt(n){let a=`B${Hd(n)}`;return $I(a)??Ry(a,Gs(n,wg))}function j_e(n){return n.flags&402653312?Ie:n.flags&288?gt:n.flags&2048?bt:n.flags&512?ti:n.flags&1048576?Gs(n,j_e):n}function eS(n){return n.flags&1056&&$0(n)?M$(n):n.flags&128&&$0(n)?Ie:n.flags&256&&$0(n)?gt:n.flags&2048&&$0(n)?bt:n.flags&512&&$0(n)?ti:n.flags&1048576?Gs(n,eS):n}function ske(n){return n.flags&8192?di:n.flags&1048576?Gs(n,ske):n}function U_e(n,a){return nZ(n,a)||(n=ske(eS(n))),qd(n)}function Krt(n,a,c){if(n&&Fm(n)){let u=a?c?kw(a):a:void 0;n=U_e(n,u)}return n}function H_e(n,a,c,u){if(n&&Fm(n)){let _=a?oS(c,a,u):void 0;n=U_e(n,_)}return n}function ha(n){return!!(br(n)&4&&n.target.objectFlags&8)}function rb(n){return ha(n)&&!!(n.target.combinedFlags&8)}function lke(n){return rb(n)&&n.target.elementFlags.length===1}function fQ(n){return jP(n,n.target.fixedLength)}function cke(n,a,c){return Gs(n,u=>{let _=u,g=fQ(_);return g?c&&a>=p_e(_.target)?Br([g,c]):g:Re})}function Xrt(n){let a=fQ(n);return a&&_d(a)}function jP(n,a,c=0,u=!1,_=!1){let g=Nv(n)-c;if(a<g){let T=Ss(n),N=[];for(let O=a;O<g;O++){let B=T[O];N.push(n.target.elementFlags[O]&8?tp(B,gt):B)}return u?Zo(N):Br(N,_?0:1)}}function Yrt(n,a){return Nv(n)===Nv(a)&&ji(n.target.elementFlags,(c,u)=>(c&12)===(a.target.elementFlags[u]&12))}function dke({value:n}){return n.base10Value==="0"}function uke(n){return Bl(n,a=>wf(a,4194304))}function $rt(n){return Gs(n,Qrt)}function Qrt(n){return n.flags&4?Mo:n.flags&8?Ia:n.flags&64?xd:n===dn||n===Ot||n.flags&114691||n.flags&128&&n.value===""||n.flags&256&&n.value===0||n.flags&2048&&dke(n)?n:Ar}function e5(n,a){let c=a&~n.flags&98304;return c===0?n:Br(c===32768?[n,Re]:c===65536?[n,se]:[n,Re,se])}function ib(n,a=!1){x.assert(H);let c=a?te:Re;return n===c||n.flags&1048576&&n.types[0]===c?n:Br([n,c])}function Zrt(n){return fu||(fu=WP("NonNullable",524288,void 0)||tt),fu!==tt?hD(fu,[n]):Zo([n,da])}function Wg(n){return H?oA(n,2097152):n}function pke(n){return H?Br([n,j]):n}function mQ(n){return H?xQ(n,j):n}function _Q(n,a,c){return c?nC(a)?ib(n):pke(n):n}function yw(n,a){return F8(a)?Wg(n):yd(a)?mQ(n):n}function ob(n,a){return be&&a?xQ(n,M):n}function bw(n){return n===M||!!(n.flags&1048576)&&n.types[0]===M}function hQ(n){return be?xQ(n,M):Wf(n,524288)}function eit(n,a){return(n.flags&524)!==0&&(a.flags&28)!==0}function gQ(n){let a=br(n);return n.flags&2097152?ji(n.types,gQ):!!(n.symbol&&n.symbol.flags&7040&&!(n.symbol.flags&32)&&!vZ(n))||!!(a&4194304)||!!(a&1024&&gQ(n.source))}function nA(n,a){let c=xa(n.flags,n.escapedName,tl(n)&8);c.declarations=n.declarations,c.parent=n.parent,c.links.type=a,c.links.target=n,n.valueDeclaration&&(c.valueDeclaration=n.valueDeclaration);let u=Pi(n).nameType;return u&&(c.links.nameType=u),c}function tit(n,a){let c=Vo();for(let u of Xy(n)){let _=Yn(u),g=a(_);c.set(u.escapedName,g===_?u:nA(u,g))}return c}function Ew(n){if(!(RE(n)&&br(n)&8192))return n;let a=n.regularType;if(a)return a;let c=n,u=tit(n,Ew),_=cs(c.symbol,u,c.callSignatures,c.constructSignatures,c.indexInfos);return _.flags=c.flags,_.objectFlags|=c.objectFlags&-8193,n.regularType=_,_}function fke(n,a,c){return{parent:n,propertyName:a,siblings:c,resolvedProperties:void 0}}function mke(n){if(!n.siblings){let a=[];for(let c of mke(n.parent))if(RE(c)){let u=vE(c,n.propertyName);u&&aA(Yn(u),_=>{a.push(_)})}n.siblings=a}return n.siblings}function nit(n){if(!n.resolvedProperties){let a=new Map;for(let c of mke(n))if(RE(c)&&!(br(c)&2097152))for(let u of Xa(c))a.set(u.escapedName,u);n.resolvedProperties=bo(a.values())}return n.resolvedProperties}function rit(n,a){if(!(n.flags&4))return n;let c=Yn(n),u=a&&fke(a,n.escapedName,void 0),_=q_e(c,u);return _===c?n:nA(n,_)}function iit(n){let a=ke.get(n.escapedName);if(a)return a;let c=nA(n,te);return c.flags|=16777216,ke.set(n.escapedName,c),c}function oit(n,a){let c=Vo();for(let _ of Xy(n))c.set(_.escapedName,rit(_,a));if(a)for(let _ of nit(a))c.has(_.escapedName)||c.set(_.escapedName,iit(_));let u=cs(n.symbol,c,je,je,sc(Ud(n),_=>ah(_.keyType,gp(_.type),_.isReadonly)));return u.objectFlags|=br(n)&266240,u}function gp(n){return q_e(n,void 0)}function q_e(n,a){if(br(n)&196608){if(a===void 0&&n.widened)return n.widened;let c;if(n.flags&98305)c=z;else if(RE(n))c=oit(n,a);else if(n.flags&1048576){let u=a||fke(void 0,void 0,n.types),_=sc(n.types,g=>g.flags&98304?g:q_e(g,u));c=Br(_,ct(_,Og)?2:1)}else n.flags&2097152?c=Zo(sc(n.types,gp)):AE(n)&&(c=Cv(n.target,sc(Ss(n),gp)));return c&&a===void 0&&(n.widened=c),c||n}return n}function vQ(n){let a=!1;if(br(n)&65536){if(n.flags&1048576)if(ct(n.types,Og))a=!0;else for(let c of n.types)vQ(c)&&(a=!0);if(AE(n))for(let c of Ss(n))vQ(c)&&(a=!0);if(RE(n))for(let c of Xy(n)){let u=Yn(c);br(u)&65536&&(vQ(u)||we(c.valueDeclaration,f.Object_literal_s_property_0_implicitly_has_an_1_type,ai(c),Pn(gp(u))),a=!0)}}return a}function IE(n,a,c){let u=Pn(gp(a));if(Jn(n)&&!ZL(Nn(n),F))return;let _;switch(n.kind){case 226:case 172:case 171:_=ce?f.Member_0_implicitly_has_an_1_type:f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let g=n;if(Me(g.name)){let T=vb(g.name);if((iI(g.parent)||z_(g.parent)||B_(g.parent))&&g.parent.parameters.includes(g)&&(Xs(g,g.name.escapedText,788968,void 0,g.name.escapedText,!0)||T&&bV(T))){let N="arg"+g.parent.parameters.indexOf(g),O=is(g.name)+(g.dotDotDotToken?"[]":"");jc(ce,n,f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,N,O);return}}_=n.dotDotDotToken?ce?f.Rest_parameter_0_implicitly_has_an_any_type:f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:ce?f.Parameter_0_implicitly_has_an_1_type:f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(_=f.Binding_element_0_implicitly_has_an_1_type,!ce)return;break;case 324:we(n,f.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return;case 330:ce&&Vx(n.parent)&&we(n.parent.tagName,f.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,u);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(ce&&!n.name){c===3?we(n,f.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,u):we(n,f.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,u);return}_=ce?c===3?f._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:ce&&we(n,f.Mapped_object_type_implicitly_has_an_any_template_type);return;default:_=ce?f.Variable_0_implicitly_has_an_1_type:f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}jc(ce,n,_,is(mo(n)),u)}function yQ(n,a,c){r(()=>{ce&&br(a)&65536&&(!c||!Dhe(n))&&(vQ(a)||IE(n,a,c))})}function J_e(n,a,c){let u=vp(n),_=vp(a),g=Cw(n),T=Cw(a),N=T?_-1:_,O=g?N:Math.min(u,N),B=bE(n);if(B){let Q=bE(a);Q&&c(B,Q)}for(let Q=0;Q<O;Q++)c(zm(n,Q),zm(a,Q));T&&c(I5(n,O,JT(T)&&!dm(T,G_e)),T)}function K_e(n,a,c){let u=df(n),_=df(a);u&&_&&m_e(u,_)&&u.type&&_.type?c(u.type,_.type):c(Ha(n),Ha(a))}function Sw(n,a,c,u){return X_e(n.map($_e),a,c,u||P_e)}function ait(n,a=0){return n&&X_e(nn(n.inferences,_ke),n.signature,n.flags|a,n.compareTypes)}function X_e(n,a,c,u){let _={inferences:n,signature:a,flags:c,compareTypes:u,mapper:ts,nonFixingMapper:ts};return _.mapper=sit(_),_.nonFixingMapper=lit(_),_}function sit(n){return x_e(nn(n.inferences,a=>a.typeParameter),nn(n.inferences,(a,c)=>()=>(a.isFixed||(cit(n),bQ(n.inferences),a.isFixed=!0),ihe(n,c))))}function lit(n){return x_e(nn(n.inferences,a=>a.typeParameter),nn(n.inferences,(a,c)=>()=>ihe(n,c)))}function bQ(n){for(let a of n)a.isFixed||(a.inferredType=void 0)}function Y_e(n,a,c){(n.intraExpressionInferenceSites??(n.intraExpressionInferenceSites=[])).push({node:a,type:c})}function cit(n){if(n.intraExpressionInferenceSites){for(let{node:a,type:c}of n.intraExpressionInferenceSites){let u=a.kind===174?cOe(a,2):bu(a,2);u&&Fg(n.inferences,c,u)}n.intraExpressionInferenceSites=void 0}}function $_e(n){return{typeParameter:n,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function _ke(n){return{typeParameter:n.typeParameter,candidates:n.candidates&&n.candidates.slice(),contraCandidates:n.contraCandidates&&n.contraCandidates.slice(),inferredType:n.inferredType,priority:n.priority,topLevel:n.topLevel,isFixed:n.isFixed,impliedArity:n.impliedArity}}function dit(n){let a=Cr(n.inferences,DD);return a.length?X_e(nn(a,_ke),n.signature,n.flags,n.compareTypes):void 0}function Q_e(n){return n&&n.mapper}function xE(n){let a=br(n);if(a&524288)return!!(a&1048576);let c=!!(n.flags&465829888||n.flags&524288&&!hke(n)&&(a&4&&(n.node||ct(Ss(n),xE))||a&16&&n.symbol&&n.symbol.flags&14384&&n.symbol.declarations||a&12583968)||n.flags&3145728&&!(n.flags&1024)&&!hke(n)&&ct(n.types,xE));return n.flags&3899393&&(n.objectFlags|=524288|(c?1048576:0)),c}function hke(n){if(n.aliasSymbol&&!n.aliasTypeArguments){let a=Vs(n.aliasSymbol,265);return!!(a&&Rn(a.parent,c=>c.kind===312?!0:c.kind===267?!1:"quit"))}return!1}function Tw(n,a,c=0){return!!(n===a||n.flags&3145728&&ct(n.types,u=>Tw(u,a,c))||c<3&&n.flags&16777216&&(Tw(EE(n),a,c+1)||Tw(SE(n),a,c+1)))}function uit(n,a){let c=df(n);return c?!!c.type&&Tw(c.type,a):Tw(Ha(n),a)}function pit(n){let a=Vo();aA(n,u=>{if(!(u.flags&128))return;let _=Hs(u.value),g=xa(4,_);g.links.type=z,u.symbol&&(g.declarations=u.symbol.declarations,g.valueDeclaration=u.symbol.valueDeclaration),a.set(_,g)});let c=n.flags&4?[ah(Ie,da,!1)]:je;return cs(void 0,a,je,je,c)}function gke(n,a,c){let u=n.id+","+a.id+","+c.id;if(Ec.has(u))return Ec.get(u);let _=n.id+","+(a.target||a).id;if(To(Du,_))return;Du.push(_);let g=fit(n,a,c);return Du.pop(),Ec.set(u,g),g}function Z_e(n){return!(br(n)&262144)||RE(n)&&ct(Xa(n),a=>Z_e(Yn(a)))||ha(n)&&ct(X0(n),Z_e)}function fit(n,a,c){if(!(Uh(n,Ie)||Xa(n).length!==0&&Z_e(n)))return;if(ff(n))return _d(EQ(Ss(n)[0],a,c),GP(n));if(ha(n)){let _=nn(X0(n),T=>EQ(T,a,c)),g=ih(a)&4?sc(n.target.elementFlags,T=>T&2?1:T):n.target.elementFlags;return sh(_,g,n.target.readonly,n.target.labeledElementDeclarations)}let u=af(1040,void 0);return u.source=n,u.mappedType=a,u.constraintType=c,u}function mit(n){let a=Pi(n);return a.type||(a.type=EQ(n.links.propertyType,n.links.mappedType,n.links.constraintType)),a.type}function EQ(n,a,c){let u=tp(c.type,km(a)),_=Ng(a),g=$_e(u);return Fg([g],n,_),vke(g)||Zt}function*ehe(n,a,c,u){let _=Xa(a);for(let g of _)if(!sLe(g)&&(c||!(g.flags&16777216||tl(g)&48))){let T=Qo(n,g.escapedName);if(!T)yield g;else if(u){let N=Yn(g);if(N.flags&109472){let O=Yn(T);O.flags&1||qd(O)===qd(N)||(yield g)}}}}function the(n,a,c,u){return qw(ehe(n,a,c,u))}function _it(n,a){return!(a.target.combinedFlags&8)&&a.target.minLength>n.target.minLength||!a.target.hasRestElement&&(n.target.hasRestElement||a.target.fixedLength<n.target.fixedLength)}function hit(n,a){return ha(n)&&ha(a)?_it(n,a):!!the(n,a,!1,!0)&&!!the(a,n,!1,!1)}function vke(n){return n.candidates?Br(n.candidates,2):n.contraCandidates?Zo(n.contraCandidates):void 0}function nhe(n){return!!Fr(n).skipDirectInference}function yke(n){return!!(n.symbol&&ct(n.symbol.declarations,nhe))}function git(n,a){let c=n.texts[0],u=a.texts[0],_=n.texts[n.texts.length-1],g=a.texts[a.texts.length-1],T=Math.min(c.length,u.length),N=Math.min(_.length,g.length);return c.slice(0,T)!==u.slice(0,T)||_.slice(_.length-N)!==g.slice(g.length-N)}function bke(n,a){if(n==="")return!1;let c=+n;return isFinite(c)&&(!a||""+c===n)}function vit(n){return $$(LV(n))}function SQ(n,a){if(a.flags&1)return!0;if(a.flags&134217732)return ea(n,a);if(a.flags&268435456){let c=[];for(;a.flags&268435456;)c.unshift(a.symbol),a=a.type;return Nd(c,(_,g)=>h1(g,_),n)===n&&SQ(n,a)}return!1}function Eke(n,a){if(a.flags&2097152)return ji(a.types,c=>c===Wl||Eke(n,c));if(a.flags&4||ea(n,a))return!0;if(n.flags&128){let c=n.value;return!!(a.flags&8&&bke(c,!1)||a.flags&64&&hF(c,!1)||a.flags&98816&&c===a.intrinsicName||a.flags&268435456&&SQ(yu(c),a)||a.flags&134217728&&TQ(n,a))}if(n.flags&134217728){let c=n.texts;return c.length===2&&c[0]===""&&c[1]===""&&ea(n.types[0],a)}return!1}function Ske(n,a){return n.flags&128?Tke([n.value],je,a):n.flags&134217728?dM(n.texts,a.texts)?nn(n.types,yit):Tke(n.texts,n.types,a):void 0}function TQ(n,a){let c=Ske(n,a);return!!c&&ji(c,(u,_)=>Eke(u,a.types[_]))}function yit(n){return n.flags&402653317?n:YT(["",""],[n])}function Tke(n,a,c){let u=n.length-1,_=n[0],g=n[u],T=c.texts,N=T.length-1,O=T[0],B=T[N];if(u===0&&_.length<O.length+B.length||!_.startsWith(O)||!g.endsWith(B))return;let Q=g.slice(0,g.length-B.length),me=[],ue=0,We=O.length;for(let qt=1;qt<N;qt++){let Xt=T[qt];if(Xt.length>0){let Hn=ue,En=We;for(;En=at(Hn).indexOf(Xt,En),!(En>=0);){if(Hn++,Hn===n.length)return;En=0}ht(Hn,En),We+=Xt.length}else if(We<at(ue).length)ht(ue,We+1);else if(ue<u)ht(ue+1,0);else return}return ht(u,at(u).length),me;function at(qt){return qt<u?n[qt]:Q}function ht(qt,Xt){let Hn=qt===ue?yu(at(qt).slice(We,Xt)):YT([n[ue].slice(We),...n.slice(ue+1,qt),at(qt).slice(0,Xt)],a.slice(ue,qt));me.push(Hn),ue=qt,We=Xt}}function Fg(n,a,c,u=0,_=!1){let g=!1,T,N=2048,O,B,Q,me=0;ue(a,c);function ue(bn,Fn){if(!(!xE(Fn)||wP(Fn))){if(bn===_t||bn===ze){let Bi=T;T=bn,ue(Fn,Fn),T=Bi;return}if(bn.aliasSymbol&&bn.aliasSymbol===Fn.aliasSymbol){if(bn.aliasTypeArguments){let Bi=Pi(bn.aliasSymbol).typeParameters,or=oh(Bi),po=Yy(bn.aliasTypeArguments,Bi,or,Jn(bn.aliasSymbol.valueDeclaration)),za=Yy(Fn.aliasTypeArguments,Bi,or,Jn(bn.aliasSymbol.valueDeclaration));Hn(po,za,Z2e(bn.aliasSymbol))}return}if(bn===Fn&&bn.flags&3145728){for(let Bi of bn.types)ue(Bi,Bi);return}if(Fn.flags&1048576){let[Bi,or]=Xt(bn.flags&1048576?bn.types:[bn],Fn.types,bit),[po,za]=Xt(Bi,or,Eit);if(za.length===0)return;if(Fn=Br(za),po.length===0){We(bn,Fn,1);return}bn=Br(po)}else if(Fn.flags&2097152&&!ji(Fn.types,X$)&&!(bn.flags&1048576)){let[Bi,or]=Xt(bn.flags&2097152?bn.types:[bn],Fn.types,kg);if(Bi.length===0||or.length===0)return;bn=Zo(Bi),Fn=Zo(or)}if(Fn.flags&41943040){if(wP(Fn))return;Fn=Zy(Fn)}if(Fn.flags&8650752){if(yke(bn))return;let Bi=In(Fn);if(Bi){if(br(bn)&262144||bn===on)return;if(!Bi.isFixed){let po=T||bn;if(po===ze)return;(Bi.priority===void 0||u<Bi.priority)&&(Bi.candidates=void 0,Bi.contraCandidates=void 0,Bi.topLevel=!0,Bi.priority=u),u===Bi.priority&&(_&&!g?To(Bi.contraCandidates,po)||(Bi.contraCandidates=pn(Bi.contraCandidates,po),bQ(n)):To(Bi.candidates,po)||(Bi.candidates=pn(Bi.candidates,po),bQ(n))),!(u&128)&&Fn.flags&262144&&Bi.topLevel&&!Tw(c,Fn)&&(Bi.topLevel=!1,bQ(n))}N=Math.min(N,u);return}let or=Lg(Fn,!1);if(or!==Fn)ue(bn,or);else if(Fn.flags&8388608){let po=Lg(Fn.indexType,!1);if(po.flags&465829888){let za=T2e(Lg(Fn.objectType,!1),po,!1);za&&za!==Fn&&ue(bn,za)}}}if(br(bn)&4&&br(Fn)&4&&(bn.target===Fn.target||ff(bn)&&ff(Fn))&&!(bn.node&&Fn.node))Hn(Ss(bn),Ss(Fn),F_e(bn.target));else if(bn.flags&4194304&&Fn.flags&4194304)En(bn.type,Fn.type);else if((vw(bn)||bn.flags&4)&&Fn.flags&4194304){let Bi=pit(bn);at(Bi,Fn.type,256)}else if(bn.flags&8388608&&Fn.flags&8388608)ue(bn.objectType,Fn.objectType),ue(bn.indexType,Fn.indexType);else if(bn.flags&268435456&&Fn.flags&268435456)bn.symbol===Fn.symbol&&ue(bn.type,Fn.type);else if(bn.flags&33554432)ue(bn.baseType,Fn),We(e_e(bn),Fn,4);else if(Fn.flags&16777216)qt(bn,Fn,Bn);else if(Fn.flags&3145728)zn(bn,Fn.types,Fn.flags);else if(bn.flags&1048576){let Bi=bn.types;for(let or of Bi)ue(or,Fn)}else if(Fn.flags&134217728)co(bn,Fn);else{if(bn=wm(bn),vu(bn)&&vu(Fn)&&qt(bn,Fn,no),!(u&512&&bn.flags&467927040)){let Bi=ou(bn);if(Bi!==bn&&!(Bi.flags&2621440))return ue(Bi,Fn);bn=Bi}bn.flags&2621440&&qt(bn,Fn,Eo)}}}function We(bn,Fn,Bi){let or=u;u|=Bi,ue(bn,Fn),u=or}function at(bn,Fn,Bi){let or=u;u|=Bi,En(bn,Fn),u=or}function ht(bn,Fn,Bi,or){let po=u;u|=or,zn(bn,Fn,Bi),u=po}function qt(bn,Fn,Bi){let or=bn.id+","+Fn.id,po=O&&O.get(or);if(po!==void 0){N=Math.min(N,po);return}(O||(O=new Map)).set(or,-1);let za=N;N=2048;let es=me;(B??(B=[])).push(bn),(Q??(Q=[])).push(Fn),BP(bn,B,B.length,2)&&(me|=1),BP(Fn,Q,Q.length,2)&&(me|=2),me!==3?Bi(bn,Fn):N=-1,Q.pop(),B.pop(),me=es,O.set(or,N),N=Math.min(N,za)}function Xt(bn,Fn,Bi){let or,po;for(let za of Fn)for(let es of bn)Bi(es,za)&&(ue(es,za),or=Kh(or,es),po=Kh(po,za));return[or?Cr(bn,za=>!To(or,za)):bn,po?Cr(Fn,za=>!To(po,za)):Fn]}function Hn(bn,Fn,Bi){let or=bn.length<Fn.length?bn.length:Fn.length;for(let po=0;po<or;po++)po<Bi.length&&(Bi[po]&7)===2?En(bn[po],Fn[po]):ue(bn[po],Fn[po])}function En(bn,Fn){_=!_,ue(bn,Fn),_=!_}function Kt(bn,Fn){ee||u&1024?En(bn,Fn):ue(bn,Fn)}function In(bn){if(bn.flags&8650752){for(let Fn of n)if(bn===Fn.typeParameter)return Fn}}function Sn(bn){let Fn;for(let Bi of bn){let or=Bi.flags&2097152&&Dr(Bi.types,po=>!!In(po));if(!or||Fn&&or!==Fn)return;Fn=or}return Fn}function zn(bn,Fn,Bi){let or=0;if(Bi&1048576){let po,za=bn.flags&1048576?bn.types:[bn],es=new Array(za.length),hd=!1;for(let ga of Fn)if(In(ga))po=ga,or++;else for(let au=0;au<za.length;au++){let fl=N;N=2048,ue(za[au],ga),N===u&&(es[au]=!0),hd=hd||N===-1,N=Math.min(N,fl)}if(or===0){let ga=Sn(Fn);ga&&We(bn,ga,1);return}if(or===1&&!hd){let ga=ta(za,(au,fl)=>es[fl]?void 0:au);if(ga.length){ue(Br(ga),po);return}}}else for(let po of Fn)In(po)?or++:ue(bn,po);if(Bi&2097152?or===1:or>0)for(let po of Fn)In(po)&&We(bn,po,1)}function Mn(bn,Fn,Bi){if(Bi.flags&1048576||Bi.flags&2097152){let or=!1;for(let po of Bi.types)or=Mn(bn,Fn,po)||or;return or}if(Bi.flags&4194304){let or=In(Bi.type);if(or&&!or.isFixed&&!yke(bn)){let po=gke(bn,Fn,Bi);po&&We(po,or.typeParameter,br(bn)&262144?16:8)}return!0}if(Bi.flags&262144){We(v_(bn,bn.pattern?2:0),Bi,32);let or=qT(Bi);if(or&&Mn(bn,Fn,or))return!0;let po=nn(Xa(bn),Yn),za=nn(Ud(bn),es=>es!==Ir?es.type:Ar);return ue(Br(ro(po,za)),Ng(Fn)),!0}return!1}function Bn(bn,Fn){if(bn.flags&16777216)ue(bn.checkType,Fn.checkType),ue(bn.extendsType,Fn.extendsType),ue(EE(bn),EE(Fn)),ue(SE(bn),SE(Fn));else{let Bi=[EE(Fn),SE(Fn)];ht(bn,Bi,Fn.flags,_?64:0)}}function co(bn,Fn){let Bi=Ske(bn,Fn),or=Fn.types;if(Bi||ji(Fn.texts,po=>po.length===0))for(let po=0;po<or.length;po++){let za=Bi?Bi[po]:Ar,es=or[po];if(za.flags&128&&es.flags&8650752){let hd=In(es),ga=hd?md(hd.typeParameter):void 0;if(ga&&!vt(ga)){let au=ga.flags&1048576?ga.types:[ga],fl=Nd(au,(Ys,Qe)=>Ys|Qe.flags,0);if(!(fl&4)){let Ys=za.value;fl&296&&!bke(Ys,!0)&&(fl&=-297),fl&2112&&!hF(Ys,!0)&&(fl&=-2113);let Qe=Nd(au,(ve,vn)=>vn.flags&fl?ve.flags&4?ve:vn.flags&4?za:ve.flags&134217728?ve:vn.flags&134217728&&TQ(za,vn)?za:ve.flags&268435456?ve:vn.flags&268435456&&Ys===y2e(vn.symbol,Ys)?za:ve.flags&128?ve:vn.flags&128&&vn.value===Ys?vn:ve.flags&8?ve:vn.flags&8?Wm(+Ys):ve.flags&32?ve:vn.flags&32?Wm(+Ys):ve.flags&256?ve:vn.flags&256&&vn.value===+Ys?vn:ve.flags&64?ve:vn.flags&64?vit(Ys):ve.flags&2048?ve:vn.flags&2048&&ZE(vn.value)===Ys?vn:ve.flags&16?ve:vn.flags&16?Ys==="true"?An:Ys==="false"?Ot:ti:ve.flags&512?ve:vn.flags&512&&vn.intrinsicName===Ys?vn:ve.flags&32768?ve:vn.flags&32768&&vn.intrinsicName===Ys?vn:ve.flags&65536?ve:vn.flags&65536&&vn.intrinsicName===Ys?vn:ve:ve,Ar);if(!(Qe.flags&131072)){ue(Qe,es);continue}}}}ue(za,es)}}function no(bn,Fn){ue(Gp(bn),Gp(Fn)),ue(Ng(bn),Ng(Fn));let Bi=Dv(bn),or=Dv(Fn);Bi&&or&&ue(Bi,or)}function Eo(bn,Fn){var Bi,or;if(br(bn)&4&&br(Fn)&4&&(bn.target===Fn.target||ff(bn)&&ff(Fn))){Hn(Ss(bn),Ss(Fn),F_e(bn.target));return}if(vu(bn)&&vu(Fn)&&no(bn,Fn),br(Fn)&32&&!Fn.declaration.nameType){let po=Gp(Fn);if(Mn(bn,Fn,po))return}if(!hit(bn,Fn)){if(AE(bn)){if(ha(Fn)){let po=Nv(bn),za=Nv(Fn),es=Ss(Fn),hd=Fn.target.elementFlags;if(ha(bn)&&Yrt(bn,Fn)){for(let fl=0;fl<za;fl++)ue(Ss(bn)[fl],es[fl]);return}let ga=ha(bn)?Math.min(bn.target.fixedLength,Fn.target.fixedLength):0,au=Math.min(ha(bn)?cw(bn.target,3):0,Fn.target.hasRestElement?cw(Fn.target,3):0);for(let fl=0;fl<ga;fl++)ue(Ss(bn)[fl],es[fl]);if(!ha(bn)||po-ga-au===1&&bn.target.elementFlags[ga]&4){let fl=Ss(bn)[ga];for(let Ys=ga;Ys<za-au;Ys++)ue(hd[Ys]&8?_d(fl):fl,es[Ys])}else{let fl=za-ga-au;if(fl===2){if(hd[ga]&hd[ga+1]&8){let Ys=In(es[ga]);Ys&&Ys.impliedArity!==void 0&&(ue(FP(bn,ga,au+po-Ys.impliedArity),es[ga]),ue(FP(bn,ga+Ys.impliedArity,au),es[ga+1]))}else if(hd[ga]&8&&hd[ga+1]&4){let Ys=(Bi=In(es[ga]))==null?void 0:Bi.typeParameter,Qe=Ys&&md(Ys);if(Qe&&ha(Qe)&&!Qe.target.hasRestElement){let ve=Qe.target.fixedLength;ue(FP(bn,ga,po-(ga+ve)),es[ga]),ue(jP(bn,ga+ve,au),es[ga+1])}}else if(hd[ga]&4&&hd[ga+1]&8){let Ys=(or=In(es[ga+1]))==null?void 0:or.typeParameter,Qe=Ys&&md(Ys);if(Qe&&ha(Qe)&&!Qe.target.hasRestElement){let ve=Qe.target.fixedLength,vn=po-cw(Fn.target,3),_r=vn-ve,Xr=sh(Ss(bn).slice(_r,vn),bn.target.elementFlags.slice(_r,vn),!1,bn.target.labeledElementDeclarations&&bn.target.labeledElementDeclarations.slice(_r,vn));ue(jP(bn,ga,au+ve),es[ga]),ue(Xr,es[ga+1])}}}else if(fl===1&&hd[ga]&8){let Ys=Fn.target.elementFlags[za-1]&2,Qe=FP(bn,ga,au);We(Qe,es[ga],Ys?2:0)}else if(fl===1&&hd[ga]&4){let Ys=jP(bn,ga,au);Ys&&ue(Ys,es[ga])}}for(let fl=0;fl<au;fl++)ue(Ss(bn)[po-fl-1],es[za-fl-1]);return}if(ff(Fn)){ku(bn,Fn);return}}Yi(bn,Fn),ic(bn,Fn,0),ic(bn,Fn,1),ku(bn,Fn)}}function Yi(bn,Fn){let Bi=Xy(Fn);for(let or of Bi){let po=Qo(bn,or.escapedName);po&&!ct(po.declarations,nhe)&&ue(Yn(po),Yn(or))}}function ic(bn,Fn,Bi){let or=Co(bn,Bi),po=or.length;if(po>0){let za=Co(Fn,Bi),es=za.length;for(let hd=0;hd<es;hd++){let ga=Math.max(po-es+hd,0);mf(Rtt(or[ga]),sw(za[hd]))}}}function mf(bn,Fn){if(!(bn.flags&64)){let Bi=g,or=Fn.declaration?Fn.declaration.kind:0;g=g||or===174||or===173||or===176,J_e(bn,Fn,Kt),g=Bi}K_e(bn,Fn,ue)}function ku(bn,Fn){let Bi=br(bn)&br(Fn)&32?8:0,or=Ud(Fn);if(gQ(bn))for(let po of or){let za=[];for(let es of Xa(bn))if(f1(vD(es,8576),po.keyType)){let hd=Yn(es);za.push(es.flags&16777216?hQ(hd):hd)}for(let es of Ud(bn))f1(es.keyType,po.keyType)&&za.push(es.type);za.length&&We(Br(za),po.type,Bi)}for(let po of or){let za=iw(bn,po.keyType);za&&We(za.type,po.type,Bi)}}}function bit(n,a){return a===M?n===a:kg(n,a)||!!(a.flags&4&&n.flags&128||a.flags&8&&n.flags&256)}function Eit(n,a){return!!(n.flags&524288&&a.flags&524288&&n.symbol&&n.symbol===a.symbol||n.aliasSymbol&&n.aliasTypeArguments&&n.aliasSymbol===a.aliasSymbol)}function Sit(n){let a=iu(n);return!!a&&ol(a.flags&16777216?kme(a):a,406978556)}function RE(n){return!!(br(n)&128)}function rhe(n){return!!(br(n)&16512)}function Tit(n){if(n.length>1){let a=Cr(n,rhe);if(a.length){let c=Br(a,2);return ro(Cr(n,u=>!rhe(u)),[c])}}return n}function Ait(n){return n.priority&416?Zo(n.contraCandidates):jrt(n.contraCandidates)}function Iit(n,a){let c=Tit(n.candidates),u=Sit(n.typeParameter)||JT(n.typeParameter),_=!u&&n.topLevel&&(n.isFixed||!uit(a,n.typeParameter)),g=u?sc(c,qd):_?sc(c,eS):c,T=n.priority&416?Br(g,2):Vrt(g);return gp(T)}function ihe(n,a){let c=n.inferences[a];if(!c.inferredType){let u,_;if(n.signature){let T=c.candidates?Iit(c,n.signature):void 0,N=c.contraCandidates?Ait(c):void 0;if(T||N){let O=T&&(!N||!(T.flags&131072)&&ct(c.contraCandidates,B=>tb(T,B))&&ji(n.inferences,B=>B!==c&&iu(B.typeParameter)!==c.typeParameter||ji(B.candidates,Q=>tb(Q,T))));u=O?T:N,_=O?N:T}else if(n.flags&1)u=Zi;else{let O=KT(c.typeParameter);O&&(u=Gi(O,nrt(trt(n,a),n.nonFixingMapper)))}}else u=vke(c);c.inferredType=u||ohe(!!(n.flags&2));let g=iu(c.typeParameter);if(g){let T=Gi(g,n.nonFixingMapper);(!u||!n.compareTypes(u,hp(T,u)))&&(c.inferredType=_&&n.compareTypes(_,hp(T,_))?_:T)}}return c.inferredType}function ohe(n){return n?z:Zt}function ahe(n){let a=[];for(let c=0;c<n.inferences.length;c++)a.push(ihe(n,c));return a}function Ake(n){switch(n.escapedText){case"document":case"console":return f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;case"$":return F.types?f.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:f.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 F.types?f.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:f.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 F.types?f.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:f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;case"Bun":return F.types?f.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:f.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 f.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(Bo(n.parent))return f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function;default:return n.parent.kind===304?f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:f.Cannot_find_name_0}}function cm(n){let a=Fr(n);return a.resolvedSymbol||(a.resolvedSymbol=!_l(n)&&Xs(n,n.escapedText,1160127,Ake(n),n,!$W(n),!1)||tt),a.resolvedSymbol}function she(n){return!!(n.flags&33554432||Rn(n,a=>Gd(a)||Xf(a)||ju(a)))}function AQ(n,a,c,u){switch(n.kind){case 80:if(!zA(n)){let T=cm(n);return T!==tt?`${u?Fa(u):"-1"}|${Hd(a)}|${Hd(c)}|${na(T)}`:void 0}case 110:return`0|${u?Fa(u):"-1"}|${Hd(a)}|${Hd(c)}`;case 235:case 217:return AQ(n.expression,a,c,u);case 166:let _=AQ(n.left,a,c,u);return _&&_+"."+n.right.escapedText;case 211:case 212:let g=rA(n);if(g!==void 0){let T=AQ(n.expression,a,c,u);return T&&T+"."+g}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Fa(n)}#${Hd(a)}`}}function Zc(n,a){switch(a.kind){case 217:case 235:return Zc(n,a.expression);case 226:return lc(a)&&Zc(n,a.left)||Zn(a)&&a.operatorToken.kind===28&&Zc(n,a.right)}switch(n.kind){case 236:return a.kind===236&&n.keywordToken===a.keywordToken&&n.name.escapedText===a.name.escapedText;case 80:case 81:return zA(n)?a.kind===110:a.kind===80&&cm(n)===cm(a)||(yi(a)||Na(a))&&Fp(cm(n))===dr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return Zc(n.expression,a);case 211:case 212:let c=rA(n),u=ds(a)?rA(a):void 0;return c!==void 0&&u!==void 0&&u===c&&Zc(n.expression,a.expression);case 166:return ds(a)&&n.right.escapedText===rA(a)&&Zc(n.left,a.expression);case 226:return Zn(n)&&n.operatorToken.kind===28&&Zc(n.right,a)}return!1}function rA(n){if(Er(n))return n.name.escapedText;if(Rs(n))return xit(n);if(Na(n)){let a=Ma(n);return a?Hs(a):void 0}if(ao(n))return""+n.parent.parameters.indexOf(n)}function lhe(n){return n.flags&8192?n.escapedName:n.flags&384?Hs(""+n.value):void 0}function xit(n){return Tp(n.argumentExpression)?Hs(n.argumentExpression.text):gl(n.argumentExpression)?Rit(n.argumentExpression):void 0}function Rit(n){let a=bs(n,111551,!0);if(!a||!(KP(a)||a.flags&8))return;let c=a.valueDeclaration;if(c===void 0)return;let u=Wi(c);if(u){let _=lhe(u);if(_!==void 0)return _}if(SS(c)&&bg(c,n)){let _=vL(c);if(_){let g=ko(c.parent)?g_(c):td(_);return g&&lhe(g)}if(p0(c))return $1(c.name)}}function Ike(n,a){for(;ds(n);)if(n=n.expression,Zc(n,a))return!0;return!1}function iA(n,a){for(;yd(n);)if(n=n.expression,Zc(n,a))return!0;return!1}function UP(n,a){if(n&&n.flags&1048576){let c=xLe(n,a);if(c&&tl(c)&2)return c.links.isDiscriminantProperty===void 0&&(c.links.isDiscriminantProperty=(c.links.checkFlags&192)===192&&!yD(Yn(c))),!!c.links.isDiscriminantProperty}return!1}function xke(n,a){let c;for(let u of n)if(UP(a,u.escapedName)){if(c){c.push(u);continue}c=[u]}return c}function Dit(n,a){let c=new Map,u=0;for(let _ of n)if(_.flags&61603840){let g=Fe(_,a);if(g){if(!vw(g))return;let T=!1;aA(g,N=>{let O=Hd(qd(N)),B=c.get(O);B?B!==Zt&&(c.set(O,Zt),T=!0):c.set(O,_)}),T||u++}}return u>=10&&u*2>=n.length?c:void 0}function t5(n){let a=n.types;if(!(a.length<10||br(n)&32768||Wv(a,c=>!!(c.flags&59506688))<10)){if(n.keyPropertyName===void 0){let c=an(a,_=>_.flags&59506688?an(Xa(_),g=>Fm(Yn(g))?g.escapedName:void 0):void 0),u=c&&Dit(a,c);n.keyPropertyName=u?c:"",n.constituentMap=u}return n.keyPropertyName.length?n.keyPropertyName:void 0}}function n5(n,a){var c;let u=(c=n.constituentMap)==null?void 0:c.get(Hd(qd(a)));return u!==Zt?u:void 0}function Rke(n,a){let c=t5(n),u=c&&Fe(a,c);return u&&n5(n,u)}function Cit(n,a){let c=t5(n),u=c&&Dr(a.properties,g=>g.symbol&&g.kind===303&&g.symbol.escapedName===c&&d5(g.initializer)),_=u&&M5(u.initializer);return _&&n5(n,_)}function Dke(n,a){return Zc(n,a)||Ike(n,a)}function Cke(n,a){if(n.arguments){for(let c of n.arguments)if(Dke(a,c)||iA(c,a))return!0}return!!(n.expression.kind===211&&Dke(a,n.expression.expression))}function che(n){return(!n.id||n.id<0)&&(n.id=Doe,Doe++),n.id}function Nit(n,a){if(!(n.flags&1048576))return ea(n,a);for(let c of n.types)if(ea(c,a))return!0;return!1}function Pit(n,a){if(n===a)return n;if(a.flags&131072)return a;let c=`A${Hd(n)},${Hd(a)}`;return $I(c)??Ry(c,Mit(n,a))}function Mit(n,a){let c=Bl(n,_=>Nit(a,_)),u=a.flags&512&&$0(a)?Gs(c,v1):c;return ea(a,u)?u:n}function dhe(n){let a=Om(n);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&tb(n,At))}function HP(n,a){return uhe(n,a)&a}function wf(n,a){return HP(n,a)!==0}function uhe(n,a){n.flags&467927040&&(n=md(n)||Zt);let c=n.flags;if(c&268435460)return H?16317953:16776705;if(c&134217856){let u=c&128&&n.value==="";return H?u?12123649:7929345:u?12582401:16776705}if(c&40)return H?16317698:16776450;if(c&256){let u=n.value===0;return H?u?12123394:7929090:u?12582146:16776450}if(c&64)return H?16317188:16775940;if(c&2048){let u=dke(n);return H?u?12122884:7928580:u?12581636:16775940}return c&16?H?16316168:16774920:c&528?H?n===Ot||n===dn?12121864:7927560:n===Ot||n===dn?12580616:16774920:c&524288?a&(H?83427327:83886079)?br(n)&16&&Og(n)?H?83427327:83886079:dhe(n)?H?7880640:16728e3:H?7888800:16736160:0:c&16384?9830144:c&32768?26607360:c&65536?42917664:c&12288?H?7925520:16772880:c&67108864?H?7888800:16736160:c&131072?0:c&1048576?Nd(n.types,(u,_)=>u|uhe(_,a),0):c&2097152?Lit(n,a):83886079}function Lit(n,a){let c=ol(n,402784252),u=0,_=134217727;for(let g of n.types)if(!(c&&g.flags&524288)){let T=uhe(g,a);u|=T,_&=T}return u&8256|_&134209471}function Wf(n,a){return Bl(n,c=>wf(c,a))}function oA(n,a){let c=Nke(Wf(H&&n.flags&2?zs:n,a));if(H)switch(a){case 524288:return Gs(c,u=>wf(u,65536)?Zo([u,wf(u,131072)&&!ol(c,65536)?Br([da,se]):da]):u);case 1048576:return Gs(c,u=>wf(u,131072)?Zo([u,wf(u,65536)&&!ol(c,32768)?Br([da,Re]):da]):u);case 2097152:case 4194304:return Gs(c,u=>wf(u,262144)?Zrt(u):u)}return c}function Nke(n){return n===zs?Zt:n}function phe(n,a){return a?Br([Zr(n),td(a)]):n}function Pke(n,a){var c;let u=Pv(a);if(!Af(u))return it;let _=If(u);return Fe(n,_)||Aw((c=m1(n,_))==null?void 0:c.type)||it}function Mke(n,a){return Lu(n,VP)&&Urt(n,a)||Aw(Ov(65,n,Re,void 0))||it}function Aw(n){return n&&(F.noUncheckedIndexedAccess?Br([n,M]):n)}function Lke(n){return _d(Ov(65,n,Re,void 0)||it)}function kit(n){return n.parent.kind===209&&fhe(n.parent)||n.parent.kind===303&&fhe(n.parent.parent)?phe(r5(n),n.right):td(n.right)}function fhe(n){return n.parent.kind===226&&n.parent.left===n||n.parent.kind===250&&n.parent.initializer===n}function Oit(n,a){return Mke(r5(n),n.elements.indexOf(a))}function wit(n){return Lke(r5(n.parent))}function kke(n){return Pke(r5(n.parent),n.name)}function Wit(n){return phe(kke(n),n.objectAssignmentInitializer)}function r5(n){let{parent:a}=n;switch(a.kind){case 249:return Ie;case 250:return F5(a)||it;case 226:return kit(a);case 220:return Re;case 209:return Oit(a,n);case 230:return wit(a);case 303:return kke(a);case 304:return Wit(a)}return it}function Fit(n){let a=n.parent,c=wke(a.parent),u=a.kind===206?Pke(c,n.propertyName||n.name):n.dotDotDotToken?Lke(c):Mke(c,a.elements.indexOf(n));return phe(u,n.initializer)}function Oke(n){return Fr(n).resolvedType||td(n)}function zit(n){return n.initializer?Oke(n.initializer):n.parent.parent.kind===249?Ie:n.parent.parent.kind===250&&F5(n.parent.parent)||it}function wke(n){return n.kind===260?zit(n):Fit(n)}function Bit(n){return n.kind===260&&n.initializer&&Vy(n.initializer)||n.kind!==208&&n.parent.kind===226&&Vy(n.parent.right)}function tS(n){switch(n.kind){case 217:return tS(n.expression);case 226:switch(n.operatorToken.kind){case 64:case 76:case 77:case 78:return tS(n.left);case 28:return tS(n.right)}}return n}function Wke(n){let{parent:a}=n;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===n||a.kind===226&&a.operatorToken.kind===28&&a.right===n?Wke(a):n}function Git(n){return n.kind===296?qd(td(n.expression)):Ar}function IQ(n){let a=Fr(n);if(!a.switchTypes){a.switchTypes=[];for(let c of n.caseBlock.clauses)a.switchTypes.push(Git(c))}return a.switchTypes}function Fke(n){if(ct(n.caseBlock.clauses,c=>c.kind===296&&!Ga(c.expression)))return;let a=[];for(let c of n.caseBlock.clauses){let u=c.kind===296?c.expression.text:void 0;a.push(u&&!To(a,u)?u:void 0)}return a}function Vit(n,a){return n.flags&1048576?!an(n.types,c=>!To(a,c)):To(a,n)}function qP(n,a){return!!(n===a||n.flags&131072||a.flags&1048576&&jit(n,a))}function jit(n,a){if(n.flags&1048576){for(let c of n.types)if(!Mg(a.types,c))return!1;return!0}return n.flags&1056&&M$(n)===a?!0:Mg(a.types,n)}function aA(n,a){return n.flags&1048576?an(n.types,a):a(n)}function dm(n,a){return n.flags&1048576?ct(n.types,a):a(n)}function Lu(n,a){return n.flags&1048576?ji(n.types,a):a(n)}function Uit(n,a){return n.flags&3145728?ji(n.types,a):a(n)}function Bl(n,a){if(n.flags&1048576){let c=n.types,u=Cr(c,a);if(u===c)return n;let _=n.origin,g;if(_&&_.flags&1048576){let T=_.types,N=Cr(T,O=>!!(O.flags&1048576)||a(O));if(T.length-N.length===c.length-u.length){if(N.length===1)return N[0];g=f_e(1048576,N)}}return __e(u,n.objectFlags&16809984,void 0,void 0,g)}return n.flags&131072||a(n)?n:Ar}function xQ(n,a){return Bl(n,c=>c!==a)}function Hit(n){return n.flags&1048576?n.types.length:1}function Gs(n,a,c){if(n.flags&131072)return n;if(!(n.flags&1048576))return a(n);let u=n.origin,_=u&&u.flags&1048576?u.types:n.types,g,T=!1;for(let N of _){let O=N.flags&1048576?Gs(N,a,c):a(N);T||(T=N!==O),O&&(g?g.push(O):g=[O])}return T?g&&Br(g,c?0:1):n}function zke(n,a,c,u){return n.flags&1048576&&c?Br(nn(n.types,a),1,c,u):Gs(n,a)}function JP(n,a){return Bl(n,c=>(c.flags&a)!==0)}function Bke(n,a){return ol(n,134217804)&&ol(a,402655616)?Gs(n,c=>c.flags&4?JP(a,402653316):$T(c)&&!ol(a,402653188)?JP(a,128):c.flags&8?JP(a,264):c.flags&64?JP(a,2112):c):n}function SD(n){return n.flags===0}function sA(n){return n.flags===0?n.type:n}function TD(n,a){return a?{flags:0,type:n.flags&131072?Zi:n}:n}function qit(n){let a=af(256);return a.elementType=n,a}function mhe(n){return Tn[n.id]||(Tn[n.id]=qit(n))}function Gke(n,a){let c=Ew(wg(M5(a)));return qP(c,n.elementType)?n:mhe(Br([n.elementType,c]))}function Jit(n){return n.flags&131072?Sc:_d(n.flags&1048576?Br(n.types,2):n)}function Kit(n){return n.finalArrayType||(n.finalArrayType=Jit(n.elementType))}function i5(n){return br(n)&256?Kit(n):n}function Xit(n){return br(n)&256?n.elementType:Ar}function Yit(n){let a=!1;for(let c of n)if(!(c.flags&131072)){if(!(br(c)&256))return!1;a=!0}return a}function Vke(n){let a=Wke(n),c=a.parent,u=Er(c)&&(c.name.escapedText==="length"||c.parent.kind===213&&Me(c.name)&&K9(c.name)),_=c.kind===212&&c.expression===a&&c.parent.kind===226&&c.parent.operatorToken.kind===64&&c.parent.left===c&&!Sh(c.parent)&&ed(td(c.argumentExpression),296);return u||_}function $it(n){return(yi(n)||xo(n)||Gu(n)||ao(n))&&!!(Jc(n)||Jn(n)&&$v(n)&&n.initializer&&e0(n.initializer)&&Tf(n.initializer))}function RQ(n,a){if(n=yl(n),n.flags&8752)return Yn(n);if(n.flags&7){if(tl(n)&262144){let u=n.links.syntheticOrigin;if(u&&RQ(u))return Yn(n)}let c=n.valueDeclaration;if(c){if($it(c))return Yn(n);if(yi(c)&&c.parent.parent.kind===250){let u=c.parent.parent,_=o5(u.expression,void 0);if(_){let g=u.awaitModifier?15:13;return Ov(g,_,Re,void 0)}}a&&pa(a,vr(c,f._0_needs_an_explicit_type_annotation,ai(n)))}}}function o5(n,a){if(!(n.flags&67108864))switch(n.kind){case 80:let c=Fp(cm(n));return RQ(c,a);case 110:return vot(n);case 108:return Ehe(n);case 211:{let u=o5(n.expression,a);if(u){let _=n.name,g;if(Ci(_)){if(!u.symbol)return;g=Qo(u,wL(u.symbol,_.escapedText))}else g=Qo(u,_.escapedText);return g&&RQ(g,a)}return}case 217:return o5(n.expression,a)}}function a5(n){let a=Fr(n),c=a.effectsSignature;if(c===void 0){let u;if(Zn(n)){let T=AD(n.right);u=pge(T)}else n.parent.kind===244?u=o5(n.expression,void 0):n.expression.kind!==108&&(yd(n)?u=b_(yw(Xi(n.expression),n.expression),n.expression):u=AD(n.expression));let _=Co(u&&ou(u)||Zt,0),g=_.length===1&&!_[0].typeParameters?_[0]:ct(_,jke)?xD(n):void 0;c=a.effectsSignature=g&&jke(g)?g:$t}return c===$t?void 0:c}function jke(n){return!!(df(n)||n.declaration&&(mD(n.declaration)||Zt).flags&131072)}function Qit(n,a){if(n.kind===1||n.kind===3)return a.arguments[n.parameterIndex];let c=Ka(a.expression);return ds(c)?Ka(c.expression):void 0}function Zit(n){let a=Rn(n,YG),c=Nn(n),u=w_(c,a.statements.pos);La.add(Rc(c,u.start,u.length,f.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function s5(n){let a=DQ(n,!1);return Tt=n,Pt=a,a}function l5(n){let a=Ka(n,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(l5(a.left)||l5(a.right))||a.operatorToken.kind===57&&l5(a.left)&&l5(a.right))}function DQ(n,a){for(;;){if(n===Tt)return Pt;let c=n.flags;if(c&4096){if(!a){let u=che(n),_=vT[u];return _!==void 0?_:vT[u]=DQ(n,!0)}a=!1}if(c&368)n=n.antecedent;else if(c&512){let u=a5(n.node);if(u){let _=df(u);if(_&&_.kind===3&&!_.type){let g=n.node.arguments[_.parameterIndex];if(g&&l5(g))return!1}if(Ha(u).flags&131072)return!1}n=n.antecedent}else{if(c&4)return ct(n.antecedents,u=>DQ(u,!1));if(c&8){let u=n.antecedents;if(u===void 0||u.length===0)return!1;n=u[0]}else if(c&128){if(n.clauseStart===n.clauseEnd&&Awe(n.switchStatement))return!1;n=n.antecedent}else if(c&1024){Tt=void 0;let u=n.target,_=u.antecedents;u.antecedents=n.antecedents;let g=DQ(n.antecedent,!1);return u.antecedents=_,g}else return!(c&1)}}}function CQ(n,a){for(;;){let c=n.flags;if(c&4096){if(!a){let u=che(n),_=YI[u];return _!==void 0?_:YI[u]=CQ(n,!0)}a=!1}if(c&496)n=n.antecedent;else if(c&512){if(n.node.expression.kind===108)return!0;n=n.antecedent}else{if(c&4)return ji(n.antecedents,u=>CQ(u,!1));if(c&8)n=n.antecedents[0];else if(c&1024){let u=n.target,_=u.antecedents;u.antecedents=n.antecedents;let g=CQ(n.antecedent,!1);return u.antecedents=_,g}else return!!(c&1)}}}function Uke(n){switch(n.kind){case 110:return!0;case 80:if(!zA(n)){let c=cm(n);return KP(c)||PQ(c)&&!Hke(c)}break;case 211:case 212:return Uke(n.expression)&&Bm(Fr(n).resolvedSymbol||tt);case 206:case 207:let a=Xm(n.parent);return ao(a)||pre(a)?!_he(a):yi(a)&&U5(a)}return!1}function ab(n,a,c=a,u,_=(g=>(g=Vr(n,DL))==null?void 0:g.flowNode)()){let g,T=!1,N=0;if(Ne)return it;if(!_)return a;Ve++;let O=hg,B=sA(ue(_));hg=O;let Q=br(B)&256&&Vke(n)?Sc:i5(B);if(Q===ui||n.parent&&n.parent.kind===235&&!(Q.flags&131072)&&Wf(Q,2097152).flags&131072)return a;return Q===V?Zt:Q;function me(){return T?g:(T=!0,g=AQ(n,a,c,u))}function ue($e){var It;if(N===2e3)return(It=qn)==null||It.instant(qn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:$e.id}),Ne=!0,Zit(n),it;N++;let Gt;for(;;){let Ft=$e.flags;if(Ft&4096){for(let xn=O;xn<hg;xn++)if(KI[xn]===$e)return N--,XI[xn];Gt=$e}let Yt;if(Ft&16){if(Yt=at($e),!Yt){$e=$e.antecedent;continue}}else if(Ft&512){if(Yt=qt($e),!Yt){$e=$e.antecedent;continue}}else if(Ft&96)Yt=Hn($e);else if(Ft&128)Yt=En($e);else if(Ft&12){if($e.antecedents.length===1){$e=$e.antecedents[0];continue}Yt=Ft&4?Kt($e):In($e)}else if(Ft&256){if(Yt=Xt($e),!Yt){$e=$e.antecedent;continue}}else if(Ft&1024){let xn=$e.target,ii=xn.antecedents;xn.antecedents=$e.antecedents,Yt=ue($e.antecedent),xn.antecedents=ii}else if(Ft&2){let xn=$e.node;if(xn&&xn!==u&&n.kind!==211&&n.kind!==212&&!(n.kind===110&&xn.kind!==219)){$e=xn.flowNode;continue}Yt=c}else Yt=zw(a);return Gt&&(KI[hg]=Gt,XI[hg]=Yt,hg++),N--,Yt}}function We($e){let It=$e.node;return hhe(It.kind===260||It.kind===208?wke(It):r5(It),n)}function at($e){let It=$e.node;if(Zc(n,It)){if(!s5($e))return ui;if(WA(It)===2){let Ft=ue($e.antecedent);return TD(wg(sA(Ft)),SD(Ft))}if(a===Je||a===Sc){if(Bit(It))return mhe(Ar);let Ft=eS(We($e));return ea(Ft,a)?Ft:Nl}let Gt=B9(It)?wg(a):a;return Gt.flags&1048576?Pit(Gt,We($e)):Gt}if(Ike(n,It)){if(!s5($e))return ui;if(yi(It)&&(Jn(It)||U5(It))){let Gt=yL(It);if(Gt&&(Gt.kind===218||Gt.kind===219))return ue($e.antecedent)}return a}if(yi(It)&&It.parent.parent.kind===249&&(Zc(n,It.parent.parent.expression)||iA(It.parent.parent.expression,n)))return Fhe(i5(sA(ue($e.antecedent))))}function ht($e,It){let Gt=Ka(It,!0);if(Gt.kind===97)return ui;if(Gt.kind===226){if(Gt.operatorToken.kind===56)return ht(ht($e,Gt.left),Gt.right);if(Gt.operatorToken.kind===57)return Br([ht($e,Gt.left),ht($e,Gt.right)])}return xr($e,Gt,!0)}function qt($e){let It=a5($e.node);if(It){let Gt=df(It);if(Gt&&(Gt.kind===2||Gt.kind===3)){let Ft=ue($e.antecedent),Yt=i5(sA(Ft)),xn=Gt.type?ci(Yt,Gt,$e.node,!0):Gt.kind===3&&Gt.parameterIndex>=0&&Gt.parameterIndex<$e.node.arguments.length?ht(Yt,$e.node.arguments[Gt.parameterIndex]):Yt;return xn===Yt?Ft:TD(xn,SD(Ft))}if(Ha(It).flags&131072)return ui}}function Xt($e){if(a===Je||a===Sc){let It=$e.node,Gt=It.kind===213?It.expression.expression:It.left.expression;if(Zc(n,tS(Gt))){let Ft=ue($e.antecedent),Yt=sA(Ft);if(br(Yt)&256){let xn=Yt;if(It.kind===213)for(let ii of It.arguments)xn=Gke(xn,ii);else{let ii=M5(It.left.argumentExpression);ed(ii,296)&&(xn=Gke(xn,It.right))}return xn===Yt?Ft:TD(xn,SD(Ft))}return Ft}}}function Hn($e){let It=ue($e.antecedent),Gt=sA(It);if(Gt.flags&131072)return It;let Ft=($e.flags&32)!==0,Yt=i5(Gt),xn=xr(Yt,$e.node,Ft);return xn===Yt?It:TD(xn,SD(It))}function En($e){let It=Ka($e.switchStatement.expression),Gt=ue($e.antecedent),Ft=sA(Gt);if(Zc(n,It))Ft=es(Ft,$e.switchStatement,$e.clauseStart,$e.clauseEnd);else if(It.kind===221&&Zc(n,It.expression))Ft=au(Ft,$e.switchStatement,$e.clauseStart,$e.clauseEnd);else if(It.kind===112)Ft=fl(Ft,$e.switchStatement,$e.clauseStart,$e.clauseEnd);else{H&&(iA(It,n)?Ft=za(Ft,$e.switchStatement,$e.clauseStart,$e.clauseEnd,xn=>!(xn.flags&163840)):It.kind===221&&iA(It.expression,n)&&(Ft=za(Ft,$e.switchStatement,$e.clauseStart,$e.clauseEnd,xn=>!(xn.flags&131072||xn.flags&128&&xn.value==="undefined"))));let Yt=Mn(It,Ft);Yt&&(Ft=no(Ft,Yt,$e.switchStatement,$e.clauseStart,$e.clauseEnd))}return TD(Ft,SD(Gt))}function Kt($e){let It=[],Gt=!1,Ft=!1,Yt;for(let xn of $e.antecedents){if(!Yt&&xn.flags&128&&xn.clauseStart===xn.clauseEnd){Yt=xn;continue}let ii=ue(xn),Yr=sA(ii);if(Yr===a&&a===c)return Yr;jp(It,Yr),qP(Yr,c)||(Gt=!0),SD(ii)&&(Ft=!0)}if(Yt){let xn=ue(Yt),ii=sA(xn);if(!(ii.flags&131072)&&!To(It,ii)&&!Awe(Yt.switchStatement)){if(ii===a&&a===c)return ii;It.push(ii),qP(ii,c)||(Gt=!0),SD(xn)&&(Ft=!0)}}return TD(Sn(It,Gt?2:1),Ft)}function In($e){let It=che($e),Gt=HI[It]||(HI[It]=new Map),Ft=me();if(!Ft)return a;let Yt=Gt.get(Ft);if(Yt)return Yt;for(let fn=u_;fn<Op;fn++)if(UR[fn]===$e&&qI[fn]===Ft&&JI[fn].length)return TD(Sn(JI[fn],1),!0);let xn=[],ii=!1,Yr;for(let fn of $e.antecedents){let zr;if(!Yr)zr=Yr=ue(fn);else{UR[Op]=$e,qI[Op]=Ft,JI[Op]=xn,Op++;let Ji=rn;rn=void 0,zr=ue(fn),rn=Ji,Op--;let Ho=Gt.get(Ft);if(Ho)return Ho}let Ai=sA(zr);if(jp(xn,Ai),qP(Ai,c)||(ii=!0),Ai===a)break}let qi=Sn(xn,ii?2:1);return SD(Yr)?TD(qi,!0):(Gt.set(Ft,qi),qi)}function Sn($e,It){if(Yit($e))return mhe(Br(nn($e,Xit)));let Gt=Nke(Br(sc($e,i5),It));return Gt!==a&&Gt.flags&a.flags&1048576&&dM(Gt.types,a.types)?a:Gt}function zn($e){if(ko(n)||e0(n)||qf(n)){if(Me($e)){let Gt=cm($e).valueDeclaration;if(Gt&&(Na(Gt)||ao(Gt))&&n===Gt.parent&&!Gt.initializer&&!Gt.dotDotDotToken)return Gt}}else if(ds($e)){if(Zc(n,$e.expression))return $e}else if(Me($e)){let It=cm($e);if(KP(It)){let Gt=It.valueDeclaration;if(yi(Gt)&&!Gt.type&&Gt.initializer&&ds(Gt.initializer)&&Zc(n,Gt.initializer.expression))return Gt.initializer;if(Na(Gt)&&!Gt.initializer){let Ft=Gt.parent.parent;if(yi(Ft)&&!Ft.type&&Ft.initializer&&(Me(Ft.initializer)||ds(Ft.initializer))&&Zc(n,Ft.initializer))return Gt}}}}function Mn($e,It){if(a.flags&1048576||It.flags&1048576){let Gt=zn($e);if(Gt){let Ft=rA(Gt);if(Ft){let Yt=a.flags&1048576&&qP(It,a)?a:It;if(UP(Yt,Ft))return Gt}}}}function Bn($e,It,Gt){let Ft=rA(It);if(Ft===void 0)return $e;let Yt=yd(It),xn=H&&(Yt||mre(It))&&ol($e,98304),ii=Fe(xn?Wf($e,2097152):$e,Ft);if(!ii)return $e;ii=xn&&Yt?ib(ii):ii;let Yr=Gt(ii);return Bl($e,qi=>{let fn=mt(qi,Ft)||Zt;return!(fn.flags&131072)&&!(Yr.flags&131072)&&q7(Yr,fn)})}function co($e,It,Gt,Ft,Yt){if((Gt===37||Gt===38)&&$e.flags&1048576){let xn=t5($e);if(xn&&xn===rA(It)){let ii=n5($e,td(Ft));if(ii)return Gt===(Yt?37:38)?ii:Fm(Fe(ii,xn)||Zt)?xQ($e,ii):$e}}return Bn($e,It,xn=>Bi(xn,Gt,Ft,Yt))}function no($e,It,Gt,Ft,Yt){if(Ft<Yt&&$e.flags&1048576&&t5($e)===rA(It)){let xn=IQ(Gt).slice(Ft,Yt),ii=Br(nn(xn,Yr=>n5($e,Yr)||Zt));if(ii!==Zt)return ii}return Bn($e,It,xn=>es(xn,Gt,Ft,Yt))}function Eo($e,It,Gt){if(Zc(n,It))return oA($e,Gt?4194304:8388608);H&&Gt&&iA(It,n)&&($e=oA($e,2097152));let Ft=Mn(It,$e);return Ft?Bn($e,Ft,Yt=>Wf(Yt,Gt?4194304:8388608)):$e}function Yi($e,It,Gt){let Ft=Qo($e,It);return Ft?!!(Ft.flags&16777216||tl(Ft)&48)||Gt:!!m1($e,It)||!Gt}function ic($e,It,Gt){let Ft=If(It);if(dm($e,xn=>Yi(xn,Ft,!0)))return Bl($e,xn=>Yi(xn,Ft,Gt));if(Gt){let xn=int();if(xn)return Zo([$e,hD(xn,[It,Zt])])}return $e}function mf($e,It,Gt,Ft,Yt){return Yt=Yt!==(Gt.kind===112)!=(Ft!==38&&Ft!==36),xr($e,It,Yt)}function ku($e,It,Gt){switch(It.operatorToken.kind){case 64:case 76:case 77:case 78:return Eo(xr($e,It.right,Gt),It.left,Gt);case 35:case 36:case 37:case 38:let Ft=It.operatorToken.kind,Yt=tS(It.left),xn=tS(It.right);if(Yt.kind===221&&Ga(xn))return or($e,Yt,Ft,xn,Gt);if(xn.kind===221&&Ga(Yt))return or($e,xn,Ft,Yt,Gt);if(Zc(n,Yt))return Bi($e,Ft,xn,Gt);if(Zc(n,xn))return Bi($e,Ft,Yt,Gt);H&&(iA(Yt,n)?$e=Fn($e,Ft,xn,Gt):iA(xn,n)&&($e=Fn($e,Ft,Yt,Gt)));let ii=Mn(Yt,$e);if(ii)return co($e,ii,Ft,xn,Gt);let Yr=Mn(xn,$e);if(Yr)return co($e,Yr,Ft,Yt,Gt);if(Ys(Yt))return Qe($e,Ft,xn,Gt);if(Ys(xn))return Qe($e,Ft,Yt,Gt);if(sC(xn)&&!ds(Yt))return mf($e,Yt,xn,Ft,Gt);if(sC(Yt)&&!ds(xn))return mf($e,xn,Yt,Ft,Gt);break;case 104:return ve($e,It,Gt);case 103:if(Ci(It.left))return bn($e,It,Gt);let qi=tS(It.right);if(bw($e)&&ds(n)&&Zc(n.expression,qi)){let fn=td(It.left);if(Af(fn)&&rA(n)===If(fn))return Wf($e,Gt?524288:65536)}if(Zc(n,qi)){let fn=td(It.left);if(Af(fn))return ic($e,fn,Gt)}break;case 28:return xr($e,It.right,Gt);case 56:return Gt?xr(xr($e,It.left,!0),It.right,!0):Br([xr($e,It.left,!1),xr($e,It.right,!1)]);case 57:return Gt?Br([xr($e,It.left,!0),xr($e,It.right,!0)]):xr(xr($e,It.left,!1),It.right,!1)}return $e}function bn($e,It,Gt){let Ft=tS(It.right);if(!Zc(n,Ft))return $e;x.assertNode(It.left,Ci);let Yt=VQ(It.left);if(Yt===void 0)return $e;let xn=Yt.parent,ii=jl(x.checkDefined(Yt.valueDeclaration,"should always have a declaration"))?Yn(xn):Cs(xn);return _r($e,ii,Gt,!0)}function Fn($e,It,Gt,Ft){let Yt=It===35||It===37,xn=It===35||It===36?98304:32768,ii=td(Gt);return Yt!==Ft&&Lu(ii,qi=>!!(qi.flags&xn))||Yt===Ft&&Lu(ii,qi=>!(qi.flags&(3|xn)))?oA($e,2097152):$e}function Bi($e,It,Gt,Ft){if($e.flags&1)return $e;(It===36||It===38)&&(Ft=!Ft);let Yt=td(Gt),xn=It===35||It===36;if(Yt.flags&98304){if(!H)return $e;let ii=xn?Ft?262144:2097152:Yt.flags&65536?Ft?131072:1048576:Ft?65536:524288;return oA($e,ii)}if(Ft){if(!xn&&($e.flags&2||dm($e,lh))){if(Yt.flags&469893116||lh(Yt))return Yt;if(Yt.flags&524288)return Mr}let ii=Bl($e,Yr=>q7(Yr,Yt)||xn&&eit(Yr,Yt));return Bke(ii,Yt)}return Fm(Yt)?Bl($e,ii=>!(ake(ii)&&q7(ii,Yt))):$e}function or($e,It,Gt,Ft,Yt){(Gt===36||Gt===38)&&(Yt=!Yt);let xn=tS(It.expression);if(!Zc(n,xn)){H&&iA(xn,n)&&Yt===(Ft.text!=="undefined")&&($e=oA($e,2097152));let ii=Mn(xn,$e);return ii?Bn($e,ii,Yr=>po(Yr,Ft,Yt)):$e}return po($e,Ft,Yt)}function po($e,It,Gt){return Gt?hd($e,It.text):oA($e,GU.get(It.text)||32768)}function za($e,It,Gt,Ft,Yt){return Gt!==Ft&&ji(IQ(It).slice(Gt,Ft),Yt)?Wf($e,2097152):$e}function es($e,It,Gt,Ft){let Yt=IQ(It);if(!Yt.length)return $e;let xn=Yt.slice(Gt,Ft),ii=Gt===Ft||To(xn,Ar);if($e.flags&2&&!ii){let zr;for(let Ai=0;Ai<xn.length;Ai+=1){let Ji=xn[Ai];if(Ji.flags&469893116)zr!==void 0&&zr.push(Ji);else if(Ji.flags&524288)zr===void 0&&(zr=xn.slice(0,Ai)),zr.push(Mr);else return $e}return Br(zr===void 0?xn:zr)}let Yr=Br(xn),qi=Yr.flags&131072?Ar:Bke(Bl($e,zr=>q7(Yr,zr)),Yr);if(!ii)return qi;let fn=Bl($e,zr=>!(ake(zr)&&To(Yt,qd(qrt(zr)))));return qi.flags&131072?fn:Br([qi,fn])}function hd($e,It){switch(It){case"string":return ga($e,Ie,1);case"number":return ga($e,gt,2);case"bigint":return ga($e,bt,4);case"boolean":return ga($e,ti,8);case"symbol":return ga($e,di,16);case"object":return $e.flags&1?$e:Br([ga($e,Mr,32),ga($e,se,131072)]);case"function":return $e.flags&1?$e:ga($e,At,64);case"undefined":return ga($e,Re,65536)}return ga($e,Mr,128)}function ga($e,It,Gt){return Gs($e,Ft=>y_(Ft,It,rf)?wf(Ft,Gt)?Ft:Ar:tb(It,Ft)?It:wf(Ft,Gt)?Zo([Ft,It]):Ar)}function au($e,It,Gt,Ft){let Yt=Fke(It);if(!Yt)return $e;let xn=Tl(It.caseBlock.clauses,qi=>qi.kind===297);if(Gt===Ft||xn>=Gt&&xn<Ft){let qi=Twe(Gt,Ft,Yt);return Bl($e,fn=>HP(fn,qi)===qi)}let Yr=Yt.slice(Gt,Ft);return Br(nn(Yr,qi=>qi?hd($e,qi):Ar))}function fl($e,It,Gt,Ft){let Yt=Tl(It.caseBlock.clauses,Yr=>Yr.kind===297),xn=Gt===Ft||Yt>=Gt&&Yt<Ft;for(let Yr=0;Yr<Gt;Yr++){let qi=It.caseBlock.clauses[Yr];qi.kind===296&&($e=xr($e,qi.expression,!1))}if(xn){for(let Yr=Ft;Yr<It.caseBlock.clauses.length;Yr++){let qi=It.caseBlock.clauses[Yr];qi.kind===296&&($e=xr($e,qi.expression,!1))}return $e}let ii=It.caseBlock.clauses.slice(Gt,Ft);return Br(nn(ii,Yr=>Yr.kind===296?xr($e,Yr.expression,!0):Ar))}function Ys($e){return(Er($e)&&ar($e.name)==="constructor"||Rs($e)&&Ga($e.argumentExpression)&&$e.argumentExpression.text==="constructor")&&Zc(n,$e.expression)}function Qe($e,It,Gt,Ft){if(Ft?It!==35&&It!==37:It!==36&&It!==38)return $e;let Yt=td(Gt);if(!Vge(Yt)&&!wa(Yt))return $e;let xn=Qo(Yt,"prototype");if(!xn)return $e;let ii=Yn(xn),Yr=vt(ii)?void 0:ii;if(!Yr||Yr===Se||Yr===At)return $e;if(vt($e))return Yr;return Bl($e,fn=>qi(fn,Yr));function qi(fn,zr){return fn.flags&524288&&br(fn)&1||zr.flags&524288&&br(zr)&1?fn.symbol===zr.symbol:tb(fn,zr)}}function ve($e,It,Gt){let Ft=tS(It.left);if(!Zc(n,Ft))return Gt&&H&&iA(Ft,n)?oA($e,2097152):$e;let Yt=It.right,xn=td(Yt);if(!TE(xn,Se))return $e;let ii=a5(It),Yr=ii&&df(ii);if(Yr&&Yr.kind===1&&Yr.parameterIndex===0)return _r($e,Yr.type,Gt,!0);if(!TE(xn,At))return $e;let qi=Gs(xn,vn);return vt($e)&&(qi===Se||qi===At)||!Gt&&!(qi.flags&524288&&!lh(qi))?$e:_r($e,qi,Gt,!0)}function vn($e){let It=Fe($e,"prototype");if(It&&!vt(It))return It;let Gt=Co($e,1);return Gt.length?Br(nn(Gt,Ft=>Ha(sw(Ft)))):da}function _r($e,It,Gt,Ft){let Yt=$e.flags&1048576?`N${Hd($e)},${Hd(It)},${(Gt?1:0)|(Ft?2:0)}`:void 0;return $I(Yt)??Ry(Yt,Xr($e,It,Gt,Ft))}function Xr($e,It,Gt,Ft){if(!Gt){if($e===It)return Ar;if(Ft)return Bl($e,qi=>!TE(qi,It));let Yr=_r($e,It,!0,!1);return Bl($e,qi=>!qP(qi,Yr))}if($e.flags&3||$e===It)return It;let Yt=Ft?TE:tb,xn=$e.flags&1048576?t5($e):void 0,ii=Gs(It,Yr=>{let qi=xn&&Fe(Yr,xn),fn=qi&&n5($e,qi),zr=Gs(fn||$e,Ft?Ai=>TE(Ai,Yr)?Ai:TE(Yr,Ai)?Yr:Ar:Ai=>H7(Ai,Yr)?Ai:H7(Yr,Ai)?Yr:tb(Ai,Yr)?Ai:tb(Yr,Ai)?Yr:Ar);return zr.flags&131072?Gs($e,Ai=>ol(Ai,465829888)&&Yt(Yr,md(Ai)||Zt)?Zo([Ai,Yr]):Ar):zr});return ii.flags&131072?tb(It,$e)?It:ea($e,It)?$e:ea(It,$e)?It:Zo([$e,It]):ii}function li($e,It,Gt){if(Cke(It,n)){let Ft=Gt||!gS(It)?a5(It):void 0,Yt=Ft&&df(Ft);if(Yt&&(Yt.kind===0||Yt.kind===1))return ci($e,Yt,It,Gt)}if(bw($e)&&ds(n)&&Er(It.expression)){let Ft=It.expression;if(Zc(n.expression,tS(Ft.expression))&&Me(Ft.name)&&Ft.name.escapedText==="hasOwnProperty"&&It.arguments.length===1){let Yt=It.arguments[0];if(Ga(Yt)&&rA(n)===Hs(Yt.text))return Wf($e,Gt?524288:65536)}}return $e}function ci($e,It,Gt,Ft){if(It.type&&!(vt($e)&&(It.type===Se||It.type===At))){let Yt=Qit(It,Gt);if(Yt){if(Zc(n,Yt))return _r($e,It.type,Ft,!1);H&&iA(Yt,n)&&(Ft&&!wf(It.type,65536)||!Ft&&Lu(It.type,h5))&&($e=oA($e,2097152));let xn=Mn(Yt,$e);if(xn)return Bn($e,xn,ii=>_r(ii,It.type,Ft,!1))}}return $e}function xr($e,It,Gt){if(F8(It)||Zn(It.parent)&&(It.parent.operatorToken.kind===61||It.parent.operatorToken.kind===78)&&It.parent.left===It)return ur($e,It,Gt);switch(It.kind){case 80:if(!Zc(n,It)&&C<5){let Ft=cm(It);if(KP(Ft)){let Yt=Ft.valueDeclaration;if(Yt&&yi(Yt)&&!Yt.type&&Yt.initializer&&Uke(n)){C++;let xn=xr($e,Yt.initializer,Gt);return C--,xn}}}case 110:case 108:case 211:case 212:return Eo($e,It,Gt);case 213:return li($e,It,Gt);case 217:case 235:return xr($e,It.expression,Gt);case 226:return ku($e,It,Gt);case 224:if(It.operator===54)return xr($e,It.operand,!Gt);break}return $e}function ur($e,It,Gt){if(Zc(n,It))return oA($e,Gt?2097152:262144);let Ft=Mn(It,$e);return Ft?Bn($e,Ft,Yt=>Wf(Yt,Gt?2097152:262144)):$e}}function eot(n,a){if(n=Fp(n),(a.kind===80||a.kind===81)&&(LC(a)&&(a=a.parent),bh(a)&&(!Sh(a)||VA(a)))){let c=mQ(VA(a)&&a.kind===211?BQ(a,void 0,!0):td(a));if(Fp(Fr(a).resolvedSymbol)===n)return c}return ng(a)&&$g(a.parent)&&lm(a.parent)?T7(a.parent.symbol):pV(a)&&VA(a.parent)?q0(n):qy(n)}function Iw(n){return Rn(n.parent,a=>Lo(a)&&!RS(a)||a.kind===268||a.kind===312||a.kind===172)}function Hke(n){return!qke(n,void 0)}function qke(n,a){let c=Rn(n.valueDeclaration,NQ);if(!c)return!1;let u=Fr(c);return u.flags&131072||(u.flags|=131072,tot(c)||Kke(c)),!n.lastAssignmentPos||a&&n.lastAssignmentPos<a.pos}function _he(n){return x.assert(yi(n)||ao(n)),Jke(n.name)}function Jke(n){return n.kind===80?Hke(dr(n.parent)):ct(n.elements,a=>a.kind!==232&&Jke(a.name))}function tot(n){return!!Rn(n.parent,a=>NQ(a)&&!!(Fr(a).flags&131072))}function NQ(n){return _s(n)||Li(n)}function Kke(n){switch(n.kind){case 80:if(Sh(n)){let c=cm(n);if(PQ(c)&&c.lastAssignmentPos!==Number.MAX_VALUE){let u=Rn(n,NQ),_=Rn(c.valueDeclaration,NQ);c.lastAssignmentPos=u===_?not(n,c.valueDeclaration):Number.MAX_VALUE}}return;case 281:let a=n.parent.parent;if(!n.isTypeOnly&&!a.isTypeOnly&&!a.moduleSpecifier){let c=bs(n.propertyName||n.name,111551,!0,!0);c&&PQ(c)&&(c.lastAssignmentPos=Number.MAX_VALUE)}return;case 264:case 265:case 266:return}xi(n)||Ao(n,Kke)}function not(n,a){let c=n.pos;for(;n&&n.pos>a.pos;){switch(n.kind){case 243:case 244:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 258:case 263:c=n.end}n=n.parent}return c}function KP(n){return n.flags&3&&(Ohe(n)&6)!==0}function PQ(n){let a=n.valueDeclaration&&Xm(n.valueDeclaration);return!!a&&(ao(a)||yi(a)&&(u0(a.parent)||rot(a)))}function rot(n){return!!(n.parent.flags&1)&&!(gb(n)&32||n.parent.parent.kind===243&&Y_(n.parent.parent.parent))}function iot(n){let a=Fr(n);if(a.parameterInitializerContainsUndefined===void 0){if(!nh(n,9))return cD(n.symbol),!0;let c=!!wf($P(n,0),16777216);if(!h_())return cD(n.symbol),!0;a.parameterInitializerContainsUndefined=c}return a.parameterInitializerContainsUndefined}function oot(n,a){return H&&a.kind===169&&a.initializer&&wf(n,16777216)&&!iot(a)?Wf(n,524288):n}function aot(n,a){let c=a.parent;return c.kind===211||c.kind===166||c.kind===213&&c.expression===a||c.kind===212&&c.expression===a&&!(dm(n,Yke)&&ZT(td(c.argumentExpression)))}function Xke(n){return n.flags&2097152?ct(n.types,Xke):!!(n.flags&465829888&&Pg(n).flags&1146880)}function Yke(n){return n.flags&2097152?ct(n.types,Yke):!!(n.flags&465829888&&!ol(Pg(n),98304))}function sot(n,a){let c=(Me(n)||Er(n)||Rs(n))&&!((n_(n.parent)||KS(n.parent))&&n.parent.tagName===n)&&(a&&a&32?bu(n,8):bu(n,void 0));return c&&!yD(c)}function hhe(n,a,c){return!(c&&c&2)&&dm(n,Xke)&&(aot(n,a)||sot(a,c))?Gs(n,Pg):n}function $ke(n){return!!Rn(n,a=>{let c=a.parent;return c===void 0?"quit":dl(c)?c.expression===a&&gl(a):Ed(c)?c.name===a||c.propertyName===a:!1})}function MQ(n,a){if(ot&&MT(n,111551)&&!OS(a)){let c=fc(n);Qc(n,!0)&1160127&&(xf(F)||n0(F)&&$ke(a)||!Bw(Fp(c))?Oy(n):Lc(n))}}function lot(n,a,c){var u;let _=Yn(n,c),g=n.valueDeclaration;if(g){if(Na(g)&&!g.initializer&&!g.dotDotDotToken&&g.parent.elements.length>=2){let T=g.parent.parent,N=Xm(T);if(N.kind===260&&lS(N)&6||N.kind===169){let O=Fr(T);if(!(O.flags&4194304)){O.flags|=4194304;let B=Sr(T,0),Q=B&&Gs(B,Pg);if(O.flags&=-4194305,Q&&Q.flags&1048576&&!(N.kind===169&&_he(N))){let me=g.parent,ue=ab(me,Q,Q,void 0,a.flowNode);return ue.flags&131072?Ar:Vh(g,ue,!0)}}}}if(ao(g)&&!g.type&&!g.initializer&&!g.dotDotDotToken){let T=g.parent;if(T.parameters.length>=2&&nQ(T)){let N=Rw(T);if(N&&N.parameters.length===1&&Td(N)){let O=LP(Gi(Yn(N.parameters[0]),(u=nS(T))==null?void 0:u.nonFixingMapper));if(O.flags&1048576&&Lu(O,ha)&&!ct(T.parameters,_he)){let B=ab(T,O,O,void 0,a.flowNode),Q=T.parameters.indexOf(g)-(KE(T)?1:0);return tp(B,Wm(Q))}}}}}return _}function cot(n,a){if(zA(n))return c5(n);let c=cm(n);if(c===tt)return it;if(c===Dt){if(kOe(n))return we(n,f.arguments_cannot_be_referenced_in_property_initializers),it;let Kt=cp(n);if(Kt)for(oe<2&&(Kt.kind===219?we(n,f.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Wr(Kt,1024)&&we(n,f.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Fr(Kt).flags|=512;Kt&&hs(Kt);)Kt=cp(Kt),Kt&&(Fr(Kt).flags|=512);return Yn(c)}uot(n)&&MQ(c,n);let u=Fp(c),_=wge(u,n);Dy(_)&&v_e(n,_)&&_.declarations&&Tv(n,_.declarations,n.escapedText);let g=u.valueDeclaration;if(g&&u.flags&32&&Kr(g)&&g.name!==n){let Kt=lu(n,!1,!1);for(;Kt.kind!==312&&Kt.parent!==g;)Kt=lu(Kt,!1,!1);Kt.kind!==312&&(Fr(g).flags|=262144,Fr(Kt).flags|=262144,Fr(n).flags|=536870912)}mot(n,c);let T=lot(u,n,a),N=WA(n);if(N){if(!(u.flags&3)&&!(Jn(n)&&u.flags&512)){let Kt=u.flags&384?f.Cannot_assign_to_0_because_it_is_an_enum:u.flags&32?f.Cannot_assign_to_0_because_it_is_a_class:u.flags&1536?f.Cannot_assign_to_0_because_it_is_a_namespace:u.flags&16?f.Cannot_assign_to_0_because_it_is_a_function:u.flags&2097152?f.Cannot_assign_to_0_because_it_is_an_import:f.Cannot_assign_to_0_because_it_is_not_a_variable;return we(n,Kt,ai(c)),it}if(Bm(u))return u.flags&3?we(n,f.Cannot_assign_to_0_because_it_is_a_constant,ai(c)):we(n,f.Cannot_assign_to_0_because_it_is_a_read_only_property,ai(c)),it}let O=u.flags&2097152;if(u.flags&3){if(N===1)return B9(n)?wg(T):T}else if(O)g=im(c);else return T;if(!g)return T;T=hhe(T,n,a);let B=Xm(g).kind===169,Q=Iw(g),me=Iw(n),ue=me!==Q,We=n.parent&&n.parent.parent&&lv(n.parent)&&fhe(n.parent.parent),at=c.flags&134217728,ht=T===Je||T===Sc,qt=ht&&n.parent.kind===235;for(;me!==Q&&(me.kind===218||me.kind===219||pW(me))&&(KP(u)&&T!==Sc||PQ(u)&&qke(u,n));)me=Iw(me);let Xt=B||O||ue||We||at||dot(n,g)||T!==Je&&T!==Sc&&(!H||(T.flags&16387)!==0||OS(n)||she(n)||n.parent.kind===281)||n.parent.kind===235||g.kind===260&&g.exclamationToken||g.flags&33554432,Hn=qt?Re:Xt?B?oot(T,g):T:ht?Re:ib(T),En=qt?Wg(ab(n,T,Hn,me)):ab(n,T,Hn,me);if(!Vke(n)&&(T===Je||T===Sc)){if(En===Je||En===Sc)return ce&&(we(mo(g),f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ai(c),Pn(En)),we(n,f.Variable_0_implicitly_has_an_1_type,ai(c),Pn(En))),zw(En)}else if(!Xt&&!zP(T)&&zP(En))return we(n,f.Variable_0_is_used_before_being_assigned,ai(c)),T;return N?wg(En):En}function dot(n,a){if(Na(a)){let c=Rn(n,Na);return c&&Xm(c)===Xm(a)}}function uot(n){var a;let c=n.parent;if(c){if(Er(c)&&c.expression===n||Ed(c)&&c.isTypeOnly)return!1;let u=(a=c.parent)==null?void 0:a.parent;if(u&&xl(u)&&u.isTypeOnly)return!1}return!0}function pot(n,a){return!!Rn(n,c=>c===a?"quit":Lo(c)||c.parent&&xo(c.parent)&&!jl(c.parent)&&c.parent.initializer===c)}function fot(n,a){return Rn(n,c=>c===a?"quit":c===a.initializer||c===a.condition||c===a.incrementor||c===a.statement)}function ghe(n){return Rn(n,a=>!a||X9(a)?"quit":Xv(a,!1))}function mot(n,a){if(oe>=2||!(a.flags&34)||!a.valueDeclaration||Li(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let c=O_(a.valueDeclaration),u=pot(n,c),_=ghe(c);if(_){if(u){let g=!0;if(qS(c)){let T=Db(a.valueDeclaration,261);if(T&&T.parent===c){let N=fot(n.parent,c);if(N){let O=Fr(N);O.flags|=8192;let B=O.capturedBlockScopeBindings||(O.capturedBlockScopeBindings=[]);jp(B,a),N===c.initializer&&(g=!1)}}}g&&(Fr(_).flags|=4096)}if(qS(c)){let g=Db(a.valueDeclaration,261);g&&g.parent===c&&hot(n,c)&&(Fr(a.valueDeclaration).flags|=65536)}Fr(a.valueDeclaration).flags|=32768}u&&(Fr(a.valueDeclaration).flags|=16384)}function _ot(n,a){let c=Fr(n);return!!c&&To(c.capturedBlockScopeBindings,dr(a))}function hot(n,a){let c=n;for(;c.parent.kind===217;)c=c.parent;let u=!1;if(Sh(c))u=!0;else if(c.parent.kind===224||c.parent.kind===225){let _=c.parent;u=_.operator===46||_.operator===47}return u?!!Rn(c,_=>_===a?"quit":_===a.statement):!1}function vhe(n,a){if(Fr(n).flags|=2,a.kind===172||a.kind===176){let c=a.parent;Fr(c).flags|=4}else Fr(a).flags|=4}function Qke(n){return xS(n)?n:Lo(n)?void 0:Ao(n,Qke)}function yhe(n){let a=dr(n),c=Cs(a);return Zu(c)===Pe}function Zke(n,a,c){let u=a.parent;qE(u)&&!yhe(u)&&DL(n)&&n.flowNode&&!CQ(n.flowNode,!1)&&we(n,c)}function got(n,a){xo(a)&&jl(a)&&$&&a.initializer&&wM(a.initializer,n.pos)&&Hp(a.parent)&&we(n,f.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function c5(n){let a=OS(n),c=lu(n,!0,!0),u=!1,_=!1;for(c.kind===176&&Zke(n,c,f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(c.kind===219&&(c=lu(c,!1,!_),u=!0),c.kind===167){c=lu(c,!u,!1),_=!0;continue}break}if(got(n,c),_)we(n,f.this_cannot_be_referenced_in_a_computed_property_name);else switch(c.kind){case 267:we(n,f.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:we(n,f.this_cannot_be_referenced_in_current_location);break;case 176:eOe(n,c)&&we(n,f.this_cannot_be_referenced_in_constructor_arguments);break}!a&&u&&oe<2&&vhe(n,c);let g=bhe(n,!0,c);if(Z){let T=Yn(Ke);if(g===T&&u)we(n,f.The_containing_arrow_function_captures_the_global_value_of_this);else if(!g){let N=we(n,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Li(c)){let O=bhe(c);O&&O!==T&&pa(N,vr(c,f.An_outer_value_of_this_is_shadowed_by_this_container))}}}return g||z}function bhe(n,a=!0,c=lu(n,!1,!1)){let u=Jn(n);if(Lo(c)&&(!The(n)||KE(c))){let _=Tme(c)||u&&bot(c);if(!_){let g=yot(c);if(u&&g){let T=Xi(g).symbol;T&&T.members&&T.flags&16&&(_=Cs(T).thisType)}else S_(c)&&(_=Cs(Oa(c.symbol)).thisType);_||(_=iOe(c))}if(_)return ab(n,_)}if(Kr(c.parent)){let _=dr(c.parent),g=zo(c)?Yn(_):Cs(_).thisType;return ab(n,g)}if(Li(c))if(c.commonJsModuleIndicator){let _=dr(c);return _&&Yn(_)}else{if(c.externalModuleIndicator)return Re;if(a)return Yn(Ke)}}function vot(n){let a=lu(n,!1,!1);if(Lo(a)){let c=kf(a);if(c.thisParameter)return RQ(c.thisParameter)}if(Kr(a.parent)){let c=dr(a.parent);return zo(a)?Yn(c):Cs(c).thisType}}function yot(n){if(n.kind===218&&Zn(n.parent)&&hl(n.parent)===3)return n.parent.left.expression.expression;if(n.kind===174&&n.parent.kind===210&&Zn(n.parent.parent)&&hl(n.parent.parent)===6)return n.parent.parent.left.expression;if(n.kind===218&&n.parent.kind===303&&n.parent.parent.kind===210&&Zn(n.parent.parent.parent)&&hl(n.parent.parent.parent)===6)return n.parent.parent.parent.left.expression;if(n.kind===218&&Hl(n.parent)&&Me(n.parent.name)&&(n.parent.name.escapedText==="value"||n.parent.name.escapedText==="get"||n.parent.name.escapedText==="set")&&fa(n.parent.parent)&&Bo(n.parent.parent.parent)&&n.parent.parent.parent.arguments[2]===n.parent.parent&&hl(n.parent.parent.parent)===9)return n.parent.parent.parent.arguments[0].expression;if(El(n)&&Me(n.name)&&(n.name.escapedText==="value"||n.name.escapedText==="get"||n.name.escapedText==="set")&&fa(n.parent)&&Bo(n.parent.parent)&&n.parent.parent.arguments[2]===n.parent&&hl(n.parent.parent)===9)return n.parent.parent.arguments[0].expression}function bot(n){let a=k8(n);if(a&&a.typeExpression)return si(a.typeExpression);let c=kP(n);if(c)return bE(c)}function eOe(n,a){return!!Rn(n,c=>_s(c)?"quit":c.kind===169&&c.parent===a)}function Ehe(n){let a=n.parent.kind===213&&n.parent.expression===n,c=pL(n,!0),u=c,_=!1,g=!1;if(!a){for(;u&&u.kind===219;)Wr(u,1024)&&(g=!0),u=pL(u,!0),_=oe<2;u&&Wr(u,1024)&&(g=!0)}let T=0;if(!u||!Q(u)){let me=Rn(n,ue=>ue===u?"quit":ue.kind===167);return me&&me.kind===167?we(n,f.super_cannot_be_referenced_in_a_computed_property_name):a?we(n,f.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!u||!u.parent||!(Kr(u.parent)||u.parent.kind===210)?we(n,f.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):we(n,f.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),it}if(!a&&c.kind===176&&Zke(n,u,f.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),zo(u)||a?(T=32,!a&&oe>=2&&oe<=8&&(xo(u)||nl(u))&&Dte(n.parent,me=>{(!Li(me)||sp(me))&&(Fr(me).flags|=2097152)})):T=16,Fr(n).flags|=T,u.kind===174&&g&&(cu(n.parent)&&Sh(n.parent)?Fr(u).flags|=256:Fr(u).flags|=128),_&&vhe(n.parent,u),u.parent.kind===210)return oe<2?(we(n,f.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),it):z;let N=u.parent;if(!qE(N))return we(n,f.super_can_only_be_referenced_in_a_derived_class),it;if(yhe(N))return a?it:Pe;let O=Cs(dr(N)),B=O&&ep(O)[0];if(!B)return it;if(u.kind===176&&eOe(n,u))return we(n,f.super_cannot_be_referenced_in_constructor_arguments),it;return T===32?Zu(O):hp(B,O.thisType);function Q(me){return a?me.kind===176:Kr(me.parent)||me.parent.kind===210?zo(me)?me.kind===174||me.kind===173||me.kind===177||me.kind===178||me.kind===172||me.kind===175:me.kind===174||me.kind===173||me.kind===177||me.kind===178||me.kind===172||me.kind===171||me.kind===176:!1}}function tOe(n){return(n.kind===174||n.kind===177||n.kind===178)&&n.parent.kind===210?n.parent:n.kind===218&&n.parent.kind===303?n.parent.parent:void 0}function nOe(n){return br(n)&4&&n.target===vl?Ss(n)[0]:void 0}function Eot(n){return Gs(n,a=>a.flags&2097152?an(a.types,nOe):nOe(a))}function rOe(n,a){let c=n,u=a;for(;u;){let _=Eot(u);if(_)return _;if(c.parent.kind!==303)break;c=c.parent.parent,u=CE(c,void 0)}}function iOe(n){if(n.kind===219)return;if(nQ(n)){let c=Rw(n);if(c){let u=c.thisParameter;if(u)return Yn(u)}}let a=Jn(n);if(Z||a){let c=tOe(n);if(c){let _=CE(c,void 0),g=rOe(c,_);return g?Gi(g,Q_e(nS(c))):gp(_?Wg(_):Ml(c))}let u=Zg(n.parent);if(lc(u)){let _=u.left;if(ds(_)){let{expression:g}=_;if(a&&Me(g)){let T=Nn(u);if(T.commonJsModuleIndicator&&cm(g)===T.symbol)return}return gp(Ml(g))}}}}function oOe(n){let a=n.parent;if(!nQ(a))return;let c=RS(a);if(c&&c.arguments){let _=KQ(c),g=a.parameters.indexOf(n);if(n.dotDotDotToken)return Xhe(_,g,_.length,z,void 0,0);let T=Fr(c),N=T.resolvedSignature;T.resolvedSignature=dt;let O=g<_.length?eS(Xi(_[g])):n.initializer?void 0:St;return T.resolvedSignature=N,O}let u=Rw(a);if(u){let _=a.parameters.indexOf(n)-(KE(a)?1:0);return n.dotDotDotToken&&Ns(a.parameters)===n?I5(u,_):iS(u,_)}}function She(n,a){let c=Jc(n)||(Jn(n)?bF(n):void 0);if(c)return si(c);switch(n.kind){case 169:return oOe(n);case 208:return Sot(n,a);case 172:if(zo(n))return Tot(n,a)}}function Sot(n,a){let c=n.parent.parent,u=n.propertyName||n.name,_=She(c,a)||c.kind!==208&&c.initializer&&$P(c,n.dotDotDotToken?32:0);if(!_||ko(u)||aL(u))return;if(c.name.kind===207){let T=Y1(n.parent.elements,n);return T<0?void 0:xhe(_,T)}let g=Pv(u);if(Af(g)){let T=If(g);return Fe(_,T)}}function Tot(n,a){let c=lt(n.parent)&&bu(n.parent,a);if(c)return DE(c,dr(n).escapedName)}function Aot(n,a){let c=n.parent;if($v(c)&&n===c.initializer){let u=She(c,a);if(u)return u;if(!(a&8)&&ko(c.name)&&c.name.elements.length>0)return D(c.name,!0,!1)}}function Iot(n,a){let c=cp(n);if(c){let u=LQ(c,a);if(u){let _=gc(c);if(_&1){let g=(_&2)!==0;u.flags&1048576&&(u=Bl(u,N=>!!oS(1,N,g)));let T=oS(1,u,(_&2)!==0);if(!T)return;u=T}if(_&2){let g=Gs(u,kv);return g&&Br([g,bwe(g)])}return u}}}function xot(n,a){let c=bu(n,a);if(c){let u=kv(c);return u&&Br([u,bwe(u)])}}function Rot(n,a){let c=cp(n);if(c){let u=gc(c),_=LQ(c,a);if(_){let g=(u&2)!==0;return!n.asteriskToken&&_.flags&1048576&&(_=Bl(_,T=>!!oS(1,T,g))),n.asteriskToken?_:oS(0,_,g)}}}function The(n){let a=!1;for(;n.parent&&!Lo(n.parent);){if(ao(n.parent)&&(a||n.parent.initializer===n))return!0;Na(n.parent)&&n.parent.initializer===n&&(a=!0),n=n.parent}return!1}function aOe(n,a){let c=!!(gc(a)&2),u=LQ(a,void 0);if(u)return oS(n,u,c)||void 0}function LQ(n,a){let c=mD(n);if(c)return c;let u=Dhe(n);if(u&&!W$(u)){let g=Ha(u),T=gc(n);return T&1?Bl(g,N=>!!(N.flags&58998787)||hge(N,T,void 0)):T&2?Bl(g,N=>!!(N.flags&58998787)||!!eM(N)):g}let _=RS(n);if(_)return bu(_,a)}function sOe(n,a){let u=KQ(n).indexOf(a);return u===-1?void 0:Ahe(n,u)}function Ahe(n,a){if(lp(n))return a===0?Ie:a===1?XLe(!1):z;let c=Fr(n).resolvedSignature===sr?sr:xD(n);if(Od(n)&&a===0)return WQ(c,n);let u=c.parameters.length-1;return Td(c)&&a>=u?tp(Yn(c.parameters[u]),Wm(a-u),256):zm(c,a)}function Dot(n){let a=lge(n);return a?XT(a):void 0}function Cot(n,a){if(n.parent.kind===215)return sOe(n.parent,a)}function Not(n,a){let c=n.parent,{left:u,operatorToken:_,right:g}=c;switch(_.kind){case 64:case 77:case 76:case 78:return n===g?Mot(c):void 0;case 57:case 61:let T=bu(c,a);return n===g&&(T&&T.pattern||!T&&!Xte(c))?td(u):T;case 56:case 28:return n===g?bu(c,a):void 0;default:return}}function Pot(n){if(Hm(n)&&n.symbol)return n.symbol;if(Me(n))return cm(n);if(Er(n)){let c=td(n.expression);return Ci(n.name)?a(c,n.name):Qo(c,n.name.escapedText)}if(Rs(n)){let c=Ml(n.argumentExpression);if(!Af(c))return;let u=td(n.expression);return Qo(u,If(c))}return;function a(c,u){let _=GQ(u.escapedText,u);return _&&zhe(c,_)}}function Mot(n){var a,c;let u=hl(n);switch(u){case 0:case 4:let _=Pot(n.left),g=_&&_.valueDeclaration;if(g&&(xo(g)||Gu(g))){let O=Jc(g);return O&&Gi(si(O),Pi(_).mapper)||(xo(g)?g.initializer&&td(n.left):void 0)}return u===0?td(n.left):lOe(n);case 5:if(kQ(n,u))return lOe(n);if(!Hm(n.left)||!n.left.symbol)return td(n.left);{let O=n.left.symbol.valueDeclaration;if(!O)return;let B=Fo(n.left,ds),Q=Jc(O);if(Q)return si(Q);if(Me(B.expression)){let me=B.expression,ue=Xs(me,me.escapedText,111551,void 0,me.escapedText,!0);if(ue){let We=ue.valueDeclaration&&Jc(ue.valueDeclaration);if(We){let at=tg(B);if(at!==void 0)return DE(si(We),at)}return}}return Jn(O)||O===n.left?void 0:td(n.left)}case 1:case 6:case 3:case 2:let T;u!==2&&(T=Hm(n.left)?(a=n.left.symbol)==null?void 0:a.valueDeclaration:void 0),T||(T=(c=n.symbol)==null?void 0:c.valueDeclaration);let N=T&&Jc(T);return N?si(N):void 0;case 7:case 8:case 9:return x.fail("Does not apply");default:return x.assertNever(u)}}function kQ(n,a=hl(n)){if(a===4)return!0;if(!Jn(n)||a!==5||!Me(n.left.expression))return!1;let c=n.left.expression.escapedText,u=Xs(n.left,c,111551,void 0,void 0,!0,!0);return gW(u?.valueDeclaration)}function lOe(n){if(!n.symbol)return td(n.left);if(n.symbol.valueDeclaration){let _=Jc(n.symbol.valueDeclaration);if(_){let g=si(_);if(g)return g}}let a=Fo(n.left,ds);if(!qf(lu(a.expression,!1,!1)))return;let c=c5(a.expression),u=tg(a);return u!==void 0&&DE(c,u)||void 0}function Lot(n){return!!(tl(n)&262144&&!n.links.type&&u1(n,0)>=0)}function DE(n,a,c){return Gs(n,u=>{var _;if(vu(u)&&!u.declaration.nameType){let g=Gp(u),T=md(g)||g,N=c||yu(Ii(a));if(ea(N,T))return K$(u,N)}else if(u.flags&3670016){let g=Qo(u,a);if(g)return Lot(g)?void 0:ob(Yn(g),!!(g&&g.flags&16777216));if(ha(u)&&Rh(a)&&+a>=0){let T=jP(u,u.target.fixedLength,0,!1,!0);if(T)return T}return(_=Gme(Vme(u),c||yu(Ii(a))))==null?void 0:_.type}},!0)}function cOe(n,a){if(x.assert(qf(n)),!(n.flags&67108864))return Ihe(n,a)}function Ihe(n,a){let c=n.parent,u=Hl(n)&&She(n,a);if(u)return u;let _=CE(c,a);if(_){if(pD(n)){let g=dr(n);return DE(_,g.escapedName,Pi(g).nameType)}if(ty(n)){let g=mo(n);if(g&&Pa(g)){let T=Xi(g.expression),N=Af(T)&&DE(_,If(T));if(N)return N}}if(n.name){let g=Pv(n.name);return Gs(_,T=>{var N;return(N=Gme(Vme(T),g))==null?void 0:N.type},!0)}}}function kot(n){let a,c;for(let u=0;u<n.length;u++)bm(n[u])&&(a??(a=u),c=u);return{first:a,last:c}}function xhe(n,a,c,u,_){return n&&Gs(n,g=>{if(ha(g)){if((u===void 0||a<u)&&a<g.target.fixedLength)return ob(Ss(g)[a],!!g.target.elementFlags[a]);let T=c!==void 0&&(_===void 0||a>_)?c-a:0,N=T>0&&g.target.hasRestElement?cw(g.target,3):0;return T>0&&T<=N?Ss(g)[Nv(g)-T]:jP(g,u===void 0?g.target.fixedLength:Math.min(g.target.fixedLength,u),c===void 0||_===void 0?N:Math.min(N,c-_),!1,!0)}return(!u||a<u)&&DE(g,""+a)||Rge(1,g,Re,void 0,!1)},!0)}function Oot(n,a){let c=n.parent;return n===c.whenTrue||n===c.whenFalse?bu(c,a):void 0}function wot(n,a,c){let u=CE(n.openingElement.attributes,c),_=f5(lA(n));if(!(u&&!vt(u)&&_&&_!==""))return;let g=_x(n.children),T=g.indexOf(a),N=DE(u,_);return N&&(g.length===1?N:Gs(N,O=>Lv(O)?tp(O,Wm(T)):O,!0))}function Wot(n,a){let c=n.parent;return H8(c)?bu(n,a):Ch(c)?wot(c,n,a):void 0}function dOe(n,a){if(r_(n)){let c=CE(n.parent,a);return!c||vt(c)?void 0:DE(c,QC(n.name))}else return bu(n.parent,a)}function d5(n){switch(n.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return d5(n.expression);case 294:return!n.expression||d5(n.expression)}return!1}function Fot(n,a){return Cit(a,n)||W_e(a,ro(nn(Cr(n.properties,c=>c.symbol?c.kind===303?d5(c.initializer)&&UP(a,c.symbol.escapedName):c.kind===304?UP(a,c.symbol.escapedName):!1:!1),c=>[()=>M5(c.kind===303?c.initializer:c.name),c.symbol.escapedName]),nn(Cr(Xa(a),c=>{var u;return!!(c.flags&16777216)&&!!((u=n?.symbol)!=null&&u.members)&&!n.symbol.members.has(c.escapedName)&&UP(a,c.escapedName)}),c=>[()=>Re,c.escapedName])),ea)}function zot(n,a){let c=f5(lA(n));return W_e(a,ro(nn(Cr(n.properties,u=>!!u.symbol&&u.kind===291&&UP(a,u.symbol.escapedName)&&(!u.initializer||d5(u.initializer))),u=>[u.initializer?()=>M5(u.initializer):()=>An,u.symbol.escapedName]),nn(Cr(Xa(a),u=>{var _;if(!(u.flags&16777216)||!((_=n?.symbol)!=null&&_.members))return!1;let g=n.parent.parent;return u.escapedName===c&&Ch(g)&&_x(g.children).length?!1:!n.symbol.members.has(u.escapedName)&&UP(a,u.escapedName)}),u=>[()=>Re,u.escapedName])),ea)}function CE(n,a){let c=qf(n)?cOe(n,a):bu(n,a),u=OQ(c,n,a);if(u&&!(a&&a&2&&u.flags&8650752)){let _=Gs(u,g=>br(g)&32?g:ou(g),!0);return _.flags&1048576&&fa(n)?Fot(n,_):_.flags&1048576&&d0(n)?zot(n,_):_}}function OQ(n,a,c){if(n&&ol(n,465829888)){let u=nS(a);if(u&&c&1&&ct(u.inferences,Slt))return wQ(n,u.nonFixingMapper);if(u?.returnMapper){let _=wQ(n,u.returnMapper);return _.flags&1048576&&Mg(_.types,dn)&&Mg(_.types,Cn)?Bl(_,g=>g!==dn&&g!==Cn):_}}return n}function wQ(n,a){return n.flags&465829888?Gi(n,a):n.flags&1048576?Br(nn(n.types,c=>wQ(c,a)),0):n.flags&2097152?Zo(nn(n.types,c=>wQ(c,a))):n}function bu(n,a){var c;if(n.flags&67108864)return;let u=pOe(n,!a);if(u>=0)return tn[u];let{parent:_}=n;switch(_.kind){case 260:case 169:case 172:case 171:case 208:return Aot(n,a);case 219:case 253:return Iot(n,a);case 229:return Rot(_,a);case 223:return xot(_,a);case 213:case 214:return sOe(_,n);case 170:return Dot(_);case 216:case 234:return Qh(_.type)?bu(_,a):si(_.type);case 226:return Not(n,a);case 303:case 304:return Ihe(_,a);case 305:return bu(_.parent,a);case 209:{let g=_,T=CE(g,a),N=Y1(g.elements,n),O=(c=Fr(g)).spreadIndices??(c.spreadIndices=kot(g.elements));return xhe(T,N,g.elements.length,O.first,O.last)}case 227:return Oot(n,a);case 239:return x.assert(_.parent.kind===228),Cot(_.parent,n);case 217:{if(Jn(_)){if(wV(_))return si(WV(_));let g=yb(_);if(g&&!Qh(g.typeExpression.type))return si(g.typeExpression.type)}return bu(_,a)}case 235:return bu(_,a);case 238:return si(_.type);case 277:return Wi(_);case 294:return Wot(_,a);case 291:case 293:return dOe(_,a);case 286:case 285:return jot(_,a);case 301:return Vot(_)}}function uOe(n){u5(n,bu(n,void 0),!0)}function u5(n,a,c){wn[Qr]=n,tn[Qr]=a,Wn[Qr]=c,Qr++}function xw(){Qr--}function pOe(n,a){for(let c=Qr-1;c>=0;c--)if(n===wn[c]&&(a||!Wn[c]))return c;return-1}function Bot(n,a){Kn[Qn]=n,Gr[Qn]=a,Qn++}function Got(){Qn--}function nS(n){for(let a=Qn-1;a>=0;a--)if(HE(n,Kn[a]))return Gr[a]}function Vot(n){return DE(i_e(!1),SF(n))}function jot(n,a){if(n_(n)&&a!==4){let c=pOe(n.parent,!a);if(c>=0)return tn[c]}return Ahe(n,0)}function WQ(n,a){return XOe(a)!==0?Uot(n,a):Jot(n,a)}function Uot(n,a){let c=age(n,Zt);c=fOe(a,lA(a),c);let u=rS(Rp.IntrinsicAttributes,a);return Lt(u)||(c=C7(u,c)),c}function Hot(n,a){if(n.compositeSignatures){let u=[];for(let _ of n.compositeSignatures){let g=Ha(_);if(vt(g))return g;let T=Fe(g,a);if(!T)return;u.push(T)}return Zo(u)}let c=Ha(n);return vt(c)?c:Fe(c,a)}function qot(n){if(b1(n.tagName)){let c=SOe(n),u=XQ(n,c);return XT(u)}let a=Ml(n.tagName);if(a.flags&128){let c=EOe(a,n);if(!c)return it;let u=XQ(n,c);return XT(u)}return a}function fOe(n,a,c){let u=fat(a);if(u){let _=qot(n),g=IOe(u,Jn(n),_,c);if(g)return g}return c}function Jot(n,a){let c=lA(a),u=_at(c),_=u===void 0?age(n,Zt):u===""?Ha(n):Hot(n,u);if(!_)return u&&yn(a.attributes.properties)&&we(a,f.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ii(u)),Zt;if(_=fOe(a,c,_),vt(_))return _;{let g=_,T=rS(Rp.IntrinsicClassAttributes,a);if(!Lt(T)){let O=gr(T.symbol),B=Ha(n),Q;if(O){let me=Yy([B],O,oh(O),Jn(a));Q=Gi(T,np(O,me))}else Q=T;g=C7(Q,g)}let N=rS(Rp.IntrinsicAttributes,a);return Lt(N)||(g=C7(N,g)),g}}function Kot(n){return Fd(F,"noImplicitAny")?Nd(n,(a,c)=>a===c||!a?a:pLe(a.typeParameters,c.typeParameters)?$ot(a,c):void 0):void 0}function Xot(n,a,c){if(!n||!a)return n||a;let u=Br([Yn(n),Gi(Yn(a),c)]);return nA(n,u)}function Yot(n,a,c){let u=vp(n),_=vp(a),g=u>=_?n:a,T=g===n?a:n,N=g===n?u:_,O=ch(n)||ch(a),B=O&&!ch(g),Q=new Array(N+(B?1:0));for(let me=0;me<N;me++){let ue=iS(g,me);g===a&&(ue=Gi(ue,c));let We=iS(T,me)||Zt;T===a&&(We=Gi(We,c));let at=Br([ue,We]),ht=O&&!B&&me===N-1,qt=me>=T_(g)&&me>=T_(T),Xt=me>=u?void 0:YP(n,me),Hn=me>=_?void 0:YP(a,me),En=Xt===Hn?Xt:Xt?Hn?void 0:Xt:Hn,Kt=xa(1|(qt&&!ht?16777216:0),En||`arg${me}`);Kt.links.type=ht?_d(at):at,Q[me]=Kt}if(B){let me=xa(1,"args");me.links.type=_d(zm(T,N)),T===a&&(me.links.type=Gi(me.links.type,c)),Q[N]=me}return Q}function $ot(n,a){let c=n.typeParameters||a.typeParameters,u;n.typeParameters&&a.typeParameters&&(u=np(a.typeParameters,n.typeParameters));let _=n.declaration,g=Yot(n,a,u),T=Xot(n.thisParameter,a.thisParameter,u),N=Math.max(n.minArgumentCount,a.minArgumentCount),O=jh(_,c,T,g,void 0,void 0,N,(n.flags|a.flags)&167);return O.compositeKind=2097152,O.compositeSignatures=ro(n.compositeKind===2097152&&n.compositeSignatures||[n],[a]),u&&(O.mapper=n.compositeKind===2097152&&n.mapper&&n.compositeSignatures?Z0(n.mapper,u):u),O}function Rhe(n,a){let c=Co(n,0),u=Cr(c,_=>!Qot(_,a));return u.length===1?u[0]:Kot(u)}function Qot(n,a){let c=0;for(;c<a.parameters.length;c++){let u=a.parameters[c];if(u.initializer||u.questionToken||u.dotDotDotToken||n2(u))break}return a.parameters.length&&XE(a.parameters[0])&&c--,!ch(n)&&vp(n)<c}function Dhe(n){return e0(n)||qf(n)?Rw(n):void 0}function Rw(n){x.assert(n.kind!==174||qf(n));let a=kP(n);if(a)return a;let c=CE(n,1);if(!c)return;if(!(c.flags&1048576))return Rhe(c,n);let u,_=c.types;for(let g of _){let T=Rhe(g,n);if(T)if(!u)u=[T];else if($7(u[0],T,!1,!0,!0,_w))u.push(T);else return}if(u)return u.length===1?u[0]:dLe(u[0],u)}function Zot(n,a){oe<2&&rc(n,F.downlevelIteration?1536:1024);let c=Xi(n.expression,a);return Ov(33,c,Re,n.expression)}function eat(n){return n.isSpread?tp(n.type,gt):n.type}function XP(n){return n.kind===208&&!!n.initializer||n.kind===226&&n.operatorToken.kind===64}function tat(n){let a=Zg(n.parent);return bm(a)&&Um(a.parent)}function mOe(n,a,c){let u=n.elements,_=u.length,g=[],T=[];uOe(n);let N=Sh(n),O=QP(n),B=CE(n,void 0),Q=tat(n)||!!B&&dm(B,ue=>VP(ue)||vu(ue)&&!ue.nameType&&!!fw(ue.target||ue)),me=!1;for(let ue=0;ue<_;ue++){let We=u[ue];if(We.kind===230){oe<2&&rc(We,F.downlevelIteration?1536:1024);let at=Xi(We.expression,a,c);if(Lv(at))g.push(at),T.push(8);else if(N){let ht=yE(at,gt)||Rge(65,at,Re,void 0,!1)||Zt;g.push(ht),T.push(4)}else g.push(Ov(33,at,Re,We.expression)),T.push(4)}else if(be&&We.kind===232)me=!0,g.push(te),T.push(2);else{let at=ZP(We,a,c);if(g.push(Mu(at,!0,me)),T.push(me?2:1),Q&&a&&a&2&&!(a&4)&&uf(We)){let ht=nS(n);x.assert(ht),Y_e(ht,We,at)}}}return xw(),N?sh(g,T):_Oe(c||O||Q?sh(g,T,O&&!(B&&dm(B,G_e))):_d(g.length?Br(sc(g,(ue,We)=>T[We]&8?Qy(ue,gt)||z:ue),2):H?_i:St,O))}function _Oe(n){if(!(br(n)&4))return n;let a=n.literalType;return a||(a=n.literalType=WLe(n),a.objectFlags|=147456),a}function nat(n){switch(n.kind){case 167:return rat(n);case 80:return Rh(n.escapedText);case 9:case 11:return Rh(n.text);default:return!1}}function rat(n){return ed(Hh(n),296)}function Hh(n){let a=Fr(n.expression);if(!a.resolvedType){if((ju(n.parent.parent)||Kr(n.parent.parent)||Gd(n.parent.parent))&&Zn(n.expression)&&n.expression.operatorToken.kind===103&&n.parent.kind!==177&&n.parent.kind!==178)return a.resolvedType=it;if(a.resolvedType=Xi(n.expression),xo(n.parent)&&!jl(n.parent)&&Dc(n.parent.parent)){let c=O_(n.parent.parent),u=ghe(c);u&&(Fr(u).flags|=4096,Fr(n).flags|=32768,Fr(n.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!ed(a.resolvedType,402665900)&&!ea(a.resolvedType,_n))&&we(n,f.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function iat(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return Rh(n.escapedName)||c&&Ld(c)&&nat(c.name)}function hOe(n){var a;let c=(a=n.declarations)==null?void 0:a[0];return WL(n)||c&&Ld(c)&&Pa(c.name)&&ed(Hh(c.name),4096)}function Che(n,a,c,u){let _=[];for(let T=a;T<c.length;T++){let N=c[T];(u===Ie&&!hOe(N)||u===gt&&iat(N)||u===di&&hOe(N))&&_.push(Yn(c[T]))}let g=_.length?Br(_,2):Re;return ah(u,g,QP(n))}function Nhe(n){x.assert((n.flags&2097152)!==0,"Should only get Alias here.");let a=Pi(n);if(!a.immediateTarget){let c=im(n);if(!c)return x.fail();a.immediateTarget=fp(c,!0)}return a.immediateTarget}function oat(n,a=0){var c;let u=Sh(n);upt(n,u);let _=H?Vo():void 0,g=Vo(),T=[],N=da;uOe(n);let O=CE(n,void 0),B=O&&O.pattern&&(O.pattern.kind===206||O.pattern.kind===210),Q=QP(n),me=Q?8:0,ue=Jn(n)&&!SW(n),We=ue?BG(n):void 0,at=!O&&ue&&!We,ht=_e,qt=!1,Xt=!1,Hn=!1,En=!1;for(let Sn of n.properties)Sn.name&&Pa(Sn.name)&&Hh(Sn.name);let Kt=0;for(let Sn of n.properties){let zn=dr(Sn),Mn=Sn.name&&Sn.name.kind===167?Hh(Sn.name):void 0;if(Sn.kind===303||Sn.kind===304||qf(Sn)){let Bn=Sn.kind===303?Owe(Sn,a):Sn.kind===304?ZP(!u&&Sn.objectAssignmentInitializer?Sn.objectAssignmentInitializer:Sn.name,a):wwe(Sn,a);if(ue){let Eo=xg(Sn);Eo?(Cd(Bn,Eo,Sn),Bn=Eo):We&&We.typeExpression&&Cd(Bn,si(We.typeExpression),Sn)}ht|=br(Bn)&458752;let co=Mn&&Af(Mn)?Mn:void 0,no=co?xa(4|zn.flags,If(co),me|4096):xa(4|zn.flags,zn.escapedName,me);if(co&&(no.links.nameType=co),u)(Sn.kind===303&&XP(Sn.initializer)||Sn.kind===304&&Sn.objectAssignmentInitializer)&&(no.flags|=16777216);else if(B&&!(br(O)&512)){let Eo=Qo(O,zn.escapedName);Eo?no.flags|=Eo.flags&16777216:!F.suppressExcessPropertyErrors&&!Uh(O,Ie)&&we(Sn.name,f.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ai(zn),Pn(O))}if(no.declarations=zn.declarations,no.parent=zn.parent,zn.valueDeclaration&&(no.valueDeclaration=zn.valueDeclaration),no.links.type=Bn,no.links.target=zn,zn=no,_?.set(no.escapedName,no),O&&a&2&&!(a&4)&&(Sn.kind===303||Sn.kind===174)&&uf(Sn)){let Eo=nS(n);x.assert(Eo);let Yi=Sn.kind===303?Sn.initializer:Sn;Y_e(Eo,Yi,Bn)}}else if(Sn.kind===305){oe<2&&rc(Sn,2),T.length>0&&(N=Y0(N,In(),n.symbol,ht,Q),T=[],g=Vo(),Xt=!1,Hn=!1,En=!1);let Bn=wm(Xi(Sn.expression,a&2));if(p5(Bn)){let co=T_e(Bn,Q);if(_&&vOe(co,_,Sn),Kt=T.length,Lt(N))continue;N=Y0(N,co,n.symbol,ht,Q)}else we(Sn,f.Spread_types_may_only_be_created_from_object_types),N=it;continue}else x.assert(Sn.kind===177||Sn.kind===178),E1(Sn);Mn&&!(Mn.flags&8576)?ea(Mn,_n)&&(ea(Mn,gt)?Hn=!0:ea(Mn,di)?En=!0:Xt=!0,u&&(qt=!0)):g.set(zn.escapedName,zn),T.push(zn)}if(xw(),B){let Sn=Rn(O.pattern.parent,Mn=>Mn.kind===260||Mn.kind===226||Mn.kind===169);if(Rn(n,Mn=>Mn===Sn||Mn.kind===305).kind!==305)for(let Mn of Xa(O))!g.get(Mn.escapedName)&&!Qo(N,Mn.escapedName)&&(Mn.flags&16777216||we(Mn.valueDeclaration||((c=Vr(Mn,L_))==null?void 0:c.links.bindingElement),f.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),g.set(Mn.escapedName,Mn),T.push(Mn))}if(Lt(N))return it;if(N!==da)return T.length>0&&(N=Y0(N,In(),n.symbol,ht,Q),T=[],g=Vo(),Xt=!1,Hn=!1),Gs(N,Sn=>Sn===da?In():Sn);return In();function In(){let Sn=[];Xt&&Sn.push(Che(n,Kt,T,Ie)),Hn&&Sn.push(Che(n,Kt,T,gt)),En&&Sn.push(Che(n,Kt,T,di));let zn=cs(n.symbol,g,je,je,Sn);return zn.objectFlags|=ht|128|131072,at&&(zn.objectFlags|=4096),qt&&(zn.objectFlags|=512),u&&(zn.pattern=n),zn}}function p5(n){let a=uke(Gs(n,Pg));return!!(a.flags&126615553||a.flags&3145728&&ji(a.types,p5))}function aat(n){Lhe(n)}function sat(n,a){return E1(n),m5(n)||z}function lat(n){Lhe(n.openingElement),b1(n.closingElement.tagName)?zQ(n.closingElement):Xi(n.closingElement.tagName),FQ(n)}function cat(n,a){return E1(n),m5(n)||z}function dat(n){Lhe(n.openingFragment);let a=Nn(n);return oF(F)&&(F.jsxFactory||a.pragmas.has("jsx"))&&!F.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&we(n,F.jsxFactory?f.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:f.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),FQ(n),m5(n)||z}function Phe(n){return n.includes("-")}function b1(n){return Me(n)&&gx(n.escapedText)||Em(n)}function gOe(n,a){return n.initializer?ZP(n.initializer,a):An}function uat(n,a=0){let c=n.attributes,u=bu(c,0),_=H?Vo():void 0,g=Vo(),T=Us,N=!1,O,B=!1,Q=2048,me=f5(lA(n));for(let at of c.properties){let ht=at.symbol;if(r_(at)){let qt=gOe(at,a);Q|=br(qt)&458752;let Xt=xa(4|ht.flags,ht.escapedName);if(Xt.declarations=ht.declarations,Xt.parent=ht.parent,ht.valueDeclaration&&(Xt.valueDeclaration=ht.valueDeclaration),Xt.links.type=qt,Xt.links.target=ht,g.set(Xt.escapedName,Xt),_?.set(Xt.escapedName,Xt),QC(at.name)===me&&(B=!0),u){let Hn=Qo(u,ht.escapedName);Hn&&Hn.declarations&&Dy(Hn)&&Me(at.name)&&Tv(at.name,Hn.declarations,at.name.escapedText)}if(u&&a&2&&!(a&4)&&uf(at)){let Hn=nS(c);x.assert(Hn);let En=at.initializer.expression;Y_e(Hn,En,qt)}}else{x.assert(at.kind===293),g.size>0&&(T=Y0(T,We(),c.symbol,Q,!1),g=Vo());let qt=wm(Xi(at.expression,a&2));vt(qt)&&(N=!0),p5(qt)?(T=Y0(T,qt,c.symbol,Q,!1),_&&vOe(qt,_,at)):(we(at.expression,f.Spread_types_may_only_be_created_from_object_types),O=O?Zo([O,qt]):qt)}}N||g.size>0&&(T=Y0(T,We(),c.symbol,Q,!1));let ue=n.parent.kind===284?n.parent:void 0;if(ue&&ue.openingElement===n&&_x(ue.children).length>0){let at=FQ(ue,a);if(!N&&me&&me!==""){B&&we(c,f._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ii(me));let ht=CE(n.attributes,void 0),qt=ht&&DE(ht,me),Xt=xa(4,me);Xt.links.type=at.length===1?at[0]:qt&&dm(qt,VP)?sh(at):_d(Br(at)),Xt.valueDeclaration=P.createPropertySignature(void 0,Ii(me),void 0,void 0),Ta(Xt.valueDeclaration,c),Xt.valueDeclaration.symbol=Xt;let Hn=Vo();Hn.set(me,Xt),T=Y0(T,cs(c.symbol,Hn,je,je,je),c.symbol,Q,!1)}}if(N)return z;if(O&&T!==Us)return Zo([O,T]);return O||(T===Us?We():T);function We(){Q|=_e;let at=cs(c.symbol,g,je,je,je);return at.objectFlags|=Q|128|131072,at}}function FQ(n,a){let c=[];for(let u of n.children)if(u.kind===12)u.containsOnlyTriviaWhiteSpaces||c.push(Ie);else{if(u.kind===294&&!u.expression)continue;c.push(ZP(u,a))}return c}function vOe(n,a,c){for(let u of Xa(n))if(!(u.flags&16777216)){let _=a.get(u.escapedName);if(_){let g=we(_.valueDeclaration,f._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ii(_.escapedName));pa(g,vr(c,f.This_spread_always_overwrites_this_property))}}}function pat(n,a){return uat(n.parent,a)}function rS(n,a){let c=lA(a),u=c&&Qu(c),_=u&&gu(u,n,788968);return _?Cs(_):it}function zQ(n){let a=Fr(n);if(!a.resolvedSymbol){let c=rS(Rp.IntrinsicElements,n);if(Lt(c))return ce&&we(n,f.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ii(Rp.IntrinsicElements)),a.resolvedSymbol=tt;{if(!Me(n.tagName)&&!Em(n.tagName))return x.fail();let u=Em(n.tagName)?JA(n.tagName):n.tagName.escapedText,_=Qo(c,u);if(_)return a.jsxFlags|=1,a.resolvedSymbol=_;let g=q8e(c,yu(Ii(u)));return g?(a.jsxFlags|=2,a.resolvedSymbol=g):mt(c,u)?(a.jsxFlags|=2,a.resolvedSymbol=c.symbol):(we(n,f.Property_0_does_not_exist_on_type_1,FV(n.tagName),"JSX."+Rp.IntrinsicElements),a.resolvedSymbol=tt)}}return a.resolvedSymbol}function Mhe(n){let a=n&&Nn(n),c=a&&Fr(a);if(c&&c.jsxImplicitImportContainer===!1)return;if(c&&c.jsxImplicitImportContainer)return c.jsxImplicitImportContainer;let u=sF(aF(F,a),F);if(!u)return;let g=zd(F)===1?f.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:f.Cannot_find_module_0_or_its_corresponding_type_declarations,T=F.importHelpers?1:0,N=a?.imports[T];N&&x.assert(xs(N)&&N.text===u,`Expected sourceFile.imports[${T}] to be the synthesized JSX runtime import`);let O=m_(N||n,u,g,n),B=O&&O!==tt?Oa(yl(O)):void 0;return c&&(c.jsxImplicitImportContainer=B||!1),B}function lA(n){let a=n&&Fr(n);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let u=Mhe(n);if(!u||u===tt){let _=tE(n);u=Xs(n,_,1920,void 0,_,!1)}if(u){let _=yl(gu(Qu(yl(u)),Rp.JSX,1920));if(_&&_!==tt)return a&&(a.jsxNamespace=_),_}a&&(a.jsxNamespace=!1)}let c=yl(WP(Rp.JSX,1920,void 0));if(c!==tt)return c}function yOe(n,a){let c=a&&gu(a.exports,n,788968),u=c&&Cs(c),_=u&&Xa(u);if(_){if(_.length===0)return"";if(_.length===1)return _[0].escapedName;_.length>1&&c.declarations&&we(c.declarations[0],f.The_global_type_JSX_0_may_not_have_more_than_one_property,Ii(n))}}function fat(n){return n&&gu(n.exports,Rp.LibraryManagedAttributes,788968)}function mat(n){return n&&gu(n.exports,Rp.ElementType,788968)}function _at(n){return yOe(Rp.ElementAttributesPropertyNameContainer,n)}function f5(n){return yOe(Rp.ElementChildrenAttributeNameContainer,n)}function bOe(n,a){if(n.flags&4)return[dt];if(n.flags&128){let _=EOe(n,a);return _?[XQ(a,_)]:(we(a,f.Property_0_does_not_exist_on_type_1,n.value,"JSX."+Rp.IntrinsicElements),je)}let c=ou(n),u=Co(c,1);return u.length===0&&(u=Co(c,0)),u.length===0&&c.flags&1048576&&(u=Cme(nn(c.types,_=>bOe(_,a)))),u}function EOe(n,a){let c=rS(Rp.IntrinsicElements,a);if(!Lt(c)){let u=n.value,_=Qo(c,Hs(u));if(_)return Yn(_);let g=yE(c,Ie);return g||void 0}return z}function hat(n,a,c){if(n===1){let _=AOe(c);_&&pf(a,_,hu,c.tagName,f.Its_return_type_0_is_not_a_valid_JSX_element,u)}else if(n===0){let _=TOe(c);_&&pf(a,_,hu,c.tagName,f.Its_instance_type_0_is_not_a_valid_JSX_element,u)}else{let _=AOe(c),g=TOe(c);if(!_||!g)return;let T=Br([_,g]);pf(a,T,hu,c.tagName,f.Its_element_type_0_is_not_a_valid_JSX_element,u)}function u(){let _=Vl(c.tagName);return So(void 0,f._0_cannot_be_used_as_a_JSX_component,_)}}function SOe(n){var a;x.assert(b1(n.tagName));let c=Fr(n);if(!c.resolvedJsxElementAttributesType){let u=zQ(n);if(c.jsxFlags&1)return c.resolvedJsxElementAttributesType=Yn(u)||it;if(c.jsxFlags&2){let _=Em(n.tagName)?JA(n.tagName):n.tagName.escapedText;return c.resolvedJsxElementAttributesType=((a=m1(rS(Rp.IntrinsicElements,n),_))==null?void 0:a.type)||it}else return c.resolvedJsxElementAttributesType=it}return c.resolvedJsxElementAttributesType}function TOe(n){let a=rS(Rp.ElementClass,n);if(!Lt(a))return a}function m5(n){return rS(Rp.Element,n)}function AOe(n){let a=m5(n);if(a)return Br([a,se])}function gat(n){let a=lA(n);if(!a)return;let c=mat(a);if(!c)return;let u=IOe(c,Jn(n));if(!(!u||Lt(u)))return u}function IOe(n,a,...c){let u=Cs(n);if(n.flags&524288){let _=Pi(n).typeParameters;if(yn(_)>=c.length){let g=Yy(c,_,c.length,a);return yn(g)===0?u:hD(n,g)}}if(yn(u.typeParameters)>=c.length){let _=Yy(c,u.typeParameters,c.length,a);return Cv(u,_)}}function vat(n){let a=rS(Rp.IntrinsicElements,n);return a?Xa(a):je}function yat(n){(F.jsx||0)===0&&we(n,f.Cannot_use_JSX_unless_the_jsx_flag_is_provided),m5(n)===void 0&&ce&&we(n,f.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Lhe(n){let a=Od(n);if(a&&ppt(n),yat(n),!Mhe(n)){let c=La&&F.jsx===2?f.Cannot_find_name_0:void 0,u=tE(n),_=a?n.tagName:n,g;if(fI(n)&&u==="null"||(g=Xs(_,u,111551,c,u,!0)),g&&(g.isReferenced=-1,ot&&g.flags&2097152&&!of(g)&&Oy(g)),fI(n)){let T=Nn(n),N=QI(T);N&&Xs(_,N,111551,c,N,!0)}}if(a){let c=n,u=xD(c);$Q(u,n);let _=gat(c);if(_!==void 0){let g=c.tagName,T=b1(g)?yu(FV(g)):Xi(g);pf(T,_,hu,g,f.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let N=Vl(g);return So(void 0,f._0_cannot_be_used_as_a_JSX_component,N)})}else hat(XOe(c),Ha(u),c)}}function khe(n,a,c){if(n.flags&524288){if(vE(n,a)||m1(n,a)||nw(a)&&Uh(n,Ie)||c&&Phe(a))return!0}else if(n.flags&3145728&&_5(n)){for(let u of n.types)if(khe(u,a,c))return!0}return!1}function _5(n){return!!(n.flags&524288&&!(br(n)&512)||n.flags&67108864||n.flags&1048576&&ct(n.types,_5)||n.flags&2097152&&ji(n.types,_5))}function bat(n,a){if(mpt(n),n.expression){let c=Xi(n.expression,a);return n.dotDotDotToken&&c!==z&&!ff(c)&&we(n,f.JSX_spread_child_must_be_an_array_type),c}else return it}function Ohe(n){return n.valueDeclaration?lS(n.valueDeclaration):0}function whe(n){if(n.flags&8192||tl(n)&4)return!0;if(Jn(n.valueDeclaration)){let a=n.valueDeclaration.parent;return a&&Zn(a)&&hl(a)===3}}function Whe(n,a,c,u,_,g=!0){let T=g?n.kind===166?n.right:n.kind===205?n:n.kind===208&&n.propertyName?n.propertyName:n.name:void 0;return xOe(n,a,c,u,_,T)}function xOe(n,a,c,u,_,g){var T;let N=Kp(_,c);if(a){if(oe<2&&ROe(_))return g&&we(g,f.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(N&64)return g&&we(g,f.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ai(_),Pn(y1(_))),!1;if(!(N&256)&&((T=_.declarations)!=null&&T.some(Kee)))return g&&we(g,f.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ai(_)),!1}if(N&64&&ROe(_)&&(fL(n)||qte(n)||Rf(n.parent)&&gW(n.parent.parent))){let B=ig(nu(_));if(B&&uut(n))return g&&we(g,f.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ai(_),Ef(B.name)),!1}if(!(N&6))return!0;if(N&2){let B=ig(nu(_));return zge(n,B)?!0:(g&&we(g,f.Property_0_is_private_and_only_accessible_within_class_1,ai(_),Pn(y1(_))),!1)}if(a)return!0;let O=U8e(n,B=>{let Q=Cs(dr(B));return tke(Q,_,c)});return!O&&(O=Eat(n),O=O&&tke(O,_,c),N&256||!O)?(g&&we(g,f.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ai(_),Pn(y1(_)||u)),!1):N&256?!0:(u.flags&262144&&(u=u.isThisType?iu(u):md(u)),!u||!dD(u,O)?(g&&we(g,f.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ai(_),Pn(O),Pn(u)),!1):!0)}function Eat(n){let a=Sat(n),c=a?.type&&si(a.type);if(c&&c.flags&262144&&(c=iu(c)),c&&br(c)&7)return Rv(c)}function Sat(n){let a=lu(n,!1,!1);return a&&Lo(a)?KE(a):void 0}function ROe(n){return!!Y7(n,a=>!(a.flags&8192))}function AD(n){return b_(Xi(n),n)}function h5(n){return wf(n,50331648)}function Fhe(n){return h5(n)?Wg(n):n}function Tat(n,a){let c=gl(n)?Wu(n):void 0;if(n.kind===106){we(n,f.The_value_0_cannot_be_used_here,"null");return}if(c!==void 0&&c.length<100){if(Me(n)&&c==="undefined"){we(n,f.The_value_0_cannot_be_used_here,"undefined");return}we(n,a&16777216?a&33554432?f._0_is_possibly_null_or_undefined:f._0_is_possibly_undefined:f._0_is_possibly_null,c)}else we(n,a&16777216?a&33554432?f.Object_is_possibly_null_or_undefined:f.Object_is_possibly_undefined:f.Object_is_possibly_null)}function Aat(n,a){we(n,a&16777216?a&33554432?f.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:f.Cannot_invoke_an_object_which_is_possibly_undefined:f.Cannot_invoke_an_object_which_is_possibly_null)}function DOe(n,a,c){if(H&&n.flags&2){if(gl(a)){let _=Wu(a);if(_.length<100)return we(a,f._0_is_of_type_unknown,_),it}return we(a,f.Object_is_of_type_unknown),it}let u=HP(n,50331648);if(u&50331648){c(a,u);let _=Wg(n);return _.flags&229376?it:_}return n}function b_(n,a){return DOe(n,a,Tat)}function COe(n,a){let c=b_(n,a);if(c.flags&16384){if(gl(a)){let u=Wu(a);if(Me(a)&&u==="undefined")return we(a,f.The_value_0_cannot_be_used_here,u),c;if(u.length<100)return we(a,f._0_is_possibly_undefined,u),c}we(a,f.Object_is_possibly_undefined)}return c}function BQ(n,a,c){return n.flags&64?Iat(n,a):Bhe(n,n.expression,AD(n.expression),n.name,a,c)}function Iat(n,a){let c=Xi(n.expression),u=yw(c,n.expression);return _Q(Bhe(n,n.expression,b_(u,n.expression),n.name,a),n,u!==c)}function NOe(n,a){let c=EW(n)&&YE(n.left)?b_(c5(n.left),n.left):AD(n.left);return Bhe(n,n.left,c,n.right,a)}function POe(n){for(;n.parent.kind===217;)n=n.parent;return Um(n.parent)&&n.parent.expression===n}function GQ(n,a){for(let c=_W(a);c;c=Oc(c)){let{symbol:u}=c,_=wL(u,n),g=u.members&&u.members.get(_)||u.exports&&u.exports.get(_);if(g)return g}}function xat(n){if(!Oc(n))return sn(n,f.Private_identifiers_are_not_allowed_outside_class_bodies);if(!y6(n.parent)){if(!bh(n))return sn(n,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);let a=Zn(n.parent)&&n.parent.operatorToken.kind===103;if(!VQ(n)&&!a)return sn(n,f.Cannot_find_name_0,ar(n))}return!1}function Rat(n){xat(n);let a=VQ(n);return a&&v5(a,void 0,!1),z}function VQ(n){if(!bh(n))return;let a=Fr(n);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=GQ(n.escapedText,n)),a.resolvedSymbol}function zhe(n,a){return Qo(n,a.escapedName)}function Dat(n,a,c){let u,_=Xa(n);_&&an(_,T=>{let N=T.valueDeclaration;if(N&&Ld(N)&&Ci(N.name)&&N.name.escapedText===a.escapedText)return u=T,!0});let g=rm(a);if(u){let T=x.checkDefined(u.valueDeclaration),N=x.checkDefined(Oc(T));if(c?.valueDeclaration){let O=c.valueDeclaration,B=Oc(O);if(x.assert(!!B),Rn(B,Q=>N===Q)){let Q=we(a,f.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,g,Pn(n));return pa(Q,vr(O,f.The_shadowing_declaration_of_0_is_defined_here,g),vr(T,f.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,g)),!0}}return we(a,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,g,rm(N.name||s4)),!0}return!1}function MOe(n,a){return(sD(a)||fL(n)&&DP(a))&&lu(n,!0,!1)===CP(a)}function Bhe(n,a,c,u,_,g){let T=Fr(a).resolvedSymbol,N=WA(n),O=ou(N!==0||POe(n)?gp(c):c),B=vt(O)||O===Zi,Q;if(Ci(u)){oe<99&&(N!==0&&rc(n,1048576),N!==1&&rc(n,524288));let ue=GQ(u.escapedText,u);if(N&&ue&&ue.valueDeclaration&&El(ue.valueDeclaration)&&sn(u,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,ar(u)),B){if(ue)return Lt(O)?it:O;if(_W(u)===void 0)return sn(u,f.Private_identifiers_are_not_allowed_outside_class_bodies),z}if(Q=ue&&zhe(c,ue),Q===void 0){if(Dat(c,u,ue))return it;let We=_W(u);We&&nL(Nn(We),F.checkJs)&&sn(u,f.Private_field_0_must_be_declared_in_an_enclosing_class,ar(u))}else Q.flags&65536&&!(Q.flags&32768)&&N!==1&&we(n,f.Private_accessor_was_defined_without_a_getter)}else{if(B)return Me(a)&&T&&MQ(T,n),Lt(O)?it:O;Q=Qo(O,u.escapedText,eZ(O),n.kind===166)}Me(a)&&T&&(xf(F)||!(Q&&(Bw(Q)||Q.flags&8&&n.parent.kind===306))||n0(F)&&$ke(n))&&MQ(T,n);let me;if(Q){let ue=wge(Q,u);if(Dy(ue)&&v_e(n,ue)&&ue.declarations&&Tv(u,ue.declarations,u.escapedText),Cat(Q,n,u),v5(Q,n,zOe(a,T)),Fr(n).resolvedSymbol=Q,Whe(n,a.kind===108,VA(n),O,Q),Dwe(n,Q,N))return we(u,f.Cannot_assign_to_0_because_it_is_a_read_only_property,ar(u)),it;me=MOe(n,Q)?Je:g||$W(n)?q0(Q):Yn(Q)}else{let ue=!Ci(u)&&(N===0||!QT(c)||YC(c))?m1(O,u.escapedText):void 0;if(!(ue&&ue.type)){let We=Ghe(n,c.symbol,!0);return!We&&dw(c)?z:c.symbol===Ke?(Ke.exports.has(u.escapedText)&&Ke.exports.get(u.escapedText).flags&418?we(u,f.Property_0_does_not_exist_on_type_1,Ii(u.escapedText),Pn(c)):ce&&we(u,f.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,Pn(c)),z):(u.escapedText&&!IT(n)&&OOe(u,YC(c)?O:c,We),it)}ue.isReadonly&&(Sh(n)||G9(n))&&we(n,f.Index_signature_in_type_0_only_permits_reading,Pn(O)),me=F.noUncheckedIndexedAccess&&!Sh(n)?Br([ue.type,M]):ue.type,F.noPropertyAccessFromIndexSignature&&Er(n)&&we(u,f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ii(u.escapedText)),ue.declaration&&Sv(ue.declaration)&&Tv(u,[ue.declaration],u.escapedText)}return LOe(n,Q,me,u,_)}function Ghe(n,a,c){var u;let _=Nn(n);if(_&&F.checkJs===void 0&&_.checkJsDirective===void 0&&(_.scriptKind===1||_.scriptKind===2)){let g=an(a?.declarations,Nn),T=!a?.valueDeclaration||!Kr(a.valueDeclaration)||((u=a.valueDeclaration.heritageClauses)==null?void 0:u.length)||Qg(!1,a.valueDeclaration);return!(_!==g&&g&&Y_(g))&&!(c&&a&&a.flags&32&&T)&&!(n&&c&&Er(n)&&n.expression.kind===110&&T)}return!1}function LOe(n,a,c,u,_){let g=WA(n);if(g===1)return ob(c,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&c.flags&1048576)&&!_Z(a.declarations))return c;if(c===Je)return lD(n,a);c=hhe(c,n,_);let T=!1;if(H&&Ee&&ds(n)&&n.expression.kind===110){let O=a&&a.valueDeclaration;if(O&&P8e(O)&&!zo(O)){let B=Iw(n);B.kind===176&&B.parent===O.parent&&!(O.flags&33554432)&&(T=!0)}}else H&&a&&a.valueDeclaration&&Er(a.valueDeclaration)&&TL(a.valueDeclaration)&&Iw(n)===Iw(a.valueDeclaration)&&(T=!0);let N=ab(n,c,T?ib(c):c);return T&&!zP(c)&&zP(N)?(we(u,f.Property_0_is_used_before_being_assigned,ai(a)),c):g?wg(N):N}function Cat(n,a,c){let{valueDeclaration:u}=n;if(!u||Nn(a).isDeclarationFile)return;let _,g=ar(c);kOe(a)&&!gtt(u)&&!(ds(a)&&ds(a.expression))&&!bg(u,c)&&!(El(u)&&AZ(u)&256)&&(de||!Nat(n))?_=we(c,f.Property_0_is_used_before_its_initialization,g):u.kind===263&&a.parent.kind!==183&&!(u.flags&33554432)&&!bg(u,c)&&(_=we(c,f.Class_0_used_before_its_declaration,g)),_&&pa(_,vr(u,f._0_is_declared_here,g))}function kOe(n){return!!Rn(n,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Do(a.parent)&&nl(a.parent.parent)?!0:"quit";default:return bh(a)?!1:"quit"}})}function Nat(n){if(!(n.parent.flags&32))return!1;let a=Yn(n.parent);for(;;){if(a=a.symbol&&Pat(a),!a)return!1;let c=Qo(a,n.escapedName);if(c&&c.valueDeclaration)return!0}}function Pat(n){let a=ep(n);if(a.length!==0)return Zo(a)}function OOe(n,a,c){let u,_;if(!Ci(n)&&a.flags&1048576&&!(a.flags&402784252)){for(let T of a.types)if(!Qo(T,n.escapedText)&&!m1(T,n.escapedText)){u=So(u,f.Property_0_does_not_exist_on_type_1,is(n),Pn(T));break}}if(wOe(n.escapedText,a)){let T=is(n),N=Pn(a);u=So(u,f.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,N,N+"."+T)}else{let T=kw(a);if(T&&Qo(T,n.escapedText))u=So(u,f.Property_0_does_not_exist_on_type_1,is(n),Pn(a)),_=vr(n,f.Did_you_forget_to_use_await);else{let N=is(n),O=Pn(a),B=kat(N,a);if(B!==void 0)u=So(u,f.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,N,O,B);else{let Q=Vhe(n,a);if(Q!==void 0){let me=$s(Q),ue=c?f.Property_0_may_not_exist_on_type_1_Did_you_mean_2:f.Property_0_does_not_exist_on_type_1_Did_you_mean_2;u=So(u,ue,N,O,me),_=Q.valueDeclaration&&vr(Q.valueDeclaration,f._0_is_declared_here,me)}else{let me=Mat(a)?f.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:f.Property_0_does_not_exist_on_type_1;u=So(zme(u,a),me,N,O)}}}}let g=eg(Nn(n),n,u);_&&pa(g,_),Rm(!c||u.code!==f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,g)}function Mat(n){return F.lib&&!F.lib.includes("dom")&&Uit(n,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Ii(a.symbol.escapedName)))&&Og(n)}function wOe(n,a){let c=a.symbol&&Qo(Yn(a.symbol),n);return c!==void 0&&!!c.valueDeclaration&&zo(c.valueDeclaration)}function Lat(n){let a=rm(n),u=IF().get(a);return u&&rB(u.keys())}function kat(n,a){let c=ou(a).symbol;if(!c)return;let u=$s(c),g=IF().get(u);if(g){for(let[T,N]of g)if(To(N,n))return T}}function WOe(n,a){return g5(n,Xa(a),106500)}function Vhe(n,a){let c=Xa(a);if(typeof n!="string"){let u=n.parent;Er(u)&&(c=Cr(c,_=>BOe(u,a,_))),n=ar(n)}return g5(n,c,111551)}function FOe(n,a){let c=fo(n)?n:ar(n),u=Xa(a);return(c==="for"?Dr(u,g=>$s(g)==="htmlFor"):c==="class"?Dr(u,g=>$s(g)==="className"):void 0)??g5(c,u,111551)}function jhe(n,a){let c=Vhe(n,a);return c&&$s(c)}function Uhe(n,a,c){return x.assert(a!==void 0,"outername should always be defined"),pp(n,a,c,void 0,a,!1,!1,!0,(_,g,T)=>{x.assertEqual(a,g,"name should equal outerName");let N=gu(_,g,T);if(N)return N;let O;return _===he?O=Fi(["string","number","boolean","object","bigint","symbol"],Q=>_.has(Q.charAt(0).toUpperCase()+Q.slice(1))?xa(524288,Q):void 0).concat(bo(_.values())):O=bo(_.values()),g5(Ii(g),O,T)})}function Oat(n,a,c){let u=Uhe(n,a,c);return u&&$s(u)}function jQ(n,a){return a.exports&&g5(ar(n),wT(a),2623475)}function wat(n,a){let c=jQ(n,a);return c&&$s(c)}function Wat(n,a,c){function u(T){let N=vE(n,T);if(N){let O=dA(Yn(N));return!!O&&T_(O)>=1&&ea(c,zm(O,0))}return!1}let _=Sh(a)?"set":"get";if(!u(_))return;let g=HL(a.expression);return g===void 0?g=_:g+="."+_,g}function Fat(n,a){let c=a.types.filter(u=>!!(u.flags&128));return VD(n.value,c,u=>u.value)}function g5(n,a,c){return VD(n,a,u);function u(_){let g=$s(_);if(!Ui(g,'"')){if(_.flags&c)return g;if(_.flags&2097152){let T=LT(_);if(T&&T.flags&c)return g}}}}function v5(n,a,c){let u=n&&n.flags&106500&&n.valueDeclaration;if(!u)return;let _=zu(u,2),g=n.valueDeclaration&&Ld(n.valueDeclaration)&&Ci(n.valueDeclaration.name);if(!(!_&&!g)&&!(a&&$W(a)&&!(n.flags&65536))){if(c){let T=Rn(a,_s);if(T&&T.symbol===n)return}(tl(n)&1?Pi(n).target:n).isReferenced=-1}}function zOe(n,a){return n.kind===110||!!a&&gl(n)&&a===cm(dp(n))}function zat(n,a){switch(n.kind){case 211:return Hhe(n,n.expression.kind===108,a,gp(Xi(n.expression)));case 166:return Hhe(n,!1,a,gp(Xi(n.left)));case 205:return Hhe(n,!1,a,si(n))}}function BOe(n,a,c){return qhe(n,n.kind===211&&n.expression.kind===108,!1,a,c)}function Hhe(n,a,c,u){if(vt(u))return!0;let _=Qo(u,c);return!!_&&qhe(n,a,!1,u,_)}function qhe(n,a,c,u,_){if(vt(u))return!0;if(_.valueDeclaration&&kd(_.valueDeclaration)){let g=Oc(_.valueDeclaration);return!yd(n)&&!!Rn(n,T=>T===g)}return xOe(n,a,c,u,_)}function Bat(n){let a=n.initializer;if(a.kind===261){let c=a.declarations[0];if(c&&!ko(c.name))return dr(c)}else if(a.kind===80)return cm(a)}function Gat(n){return Ud(n).length===1&&!!Uh(n,gt)}function Vat(n){let a=Ka(n);if(a.kind===80){let c=cm(a);if(c.flags&3){let u=n,_=n.parent;for(;_;){if(_.kind===249&&u===_.statement&&Bat(_)===c&&Gat(td(_.expression)))return!0;u=_,_=_.parent}}}return!1}function jat(n,a){return n.flags&64?Uat(n,a):GOe(n,AD(n.expression),a)}function Uat(n,a){let c=Xi(n.expression),u=yw(c,n.expression);return _Q(GOe(n,b_(u,n.expression),a),n,u!==c)}function GOe(n,a,c){let u=WA(n)!==0||POe(n)?gp(a):a,_=n.argumentExpression,g=Xi(_);if(Lt(u)||u===Zi)return u;if(eZ(u)&&!Ga(_))return we(_,f.A_const_enum_member_can_only_be_accessed_using_a_string_literal),it;let T=Vat(_)?gt:g,N=Sh(n)?4|(QT(u)&&!YC(u)?2:0):32,O=Qy(u,T,N,n)||it;return Xwe(LOe(n,Fr(n).resolvedSymbol,O,_,c),n)}function VOe(n){return Um(n)||a0(n)||Od(n)}function cA(n){return VOe(n)&&an(n.typeArguments,sa),n.kind===215?Xi(n.template):Od(n)?Xi(n.attributes):Zn(n)?Xi(n.left):Um(n)&&an(n.arguments,a=>{Xi(a)}),dt}function E_(n){return cA(n),$t}function Hat(n,a,c){let u,_,g=0,T,N=-1,O;x.assert(!a.length);for(let B of n){let Q=B.declaration&&dr(B.declaration),me=B.declaration&&B.declaration.parent;!_||Q===_?u&&me===u?T=T+1:(u=me,T=g):(T=g=a.length,u=me),_=Q,zU(B)?(N++,O=N,g++):O=T,a.splice(O,0,c?zet(B,c):B)}}function UQ(n){return!!n&&(n.kind===230||n.kind===237&&n.isSpread)}function HQ(n){return Tl(n,UQ)}function jOe(n){return!!(n.flags&16384)}function qat(n){return!!(n.flags&49155)}function qQ(n,a,c,u=!1){let _,g=!1,T=vp(c),N=T_(c);if(n.kind===215)if(_=a.length,n.template.kind===228){let O=Da(n.template.templateSpans);g=_l(O.literal)||!!O.literal.isUnterminated}else{let O=n.template;x.assert(O.kind===15),g=!!O.isUnterminated}else if(n.kind===170)_=$Oe(n,c);else if(n.kind===226)_=1;else if(Od(n)){if(g=n.attributes.end===n.end,g)return!0;_=N===0?a.length:1,T=a.length===0?T:1,N=Math.min(N,1)}else if(n.arguments){_=u?a.length+1:a.length,g=n.arguments.end===n.end;let O=HQ(a);if(O>=0)return O>=T_(c)&&(ch(c)||O<vp(c))}else return x.assert(n.kind===214),T_(c)===0;if(!ch(c)&&_>T)return!1;if(g||_>=N)return!0;for(let O=_;O<N;O++){let B=zm(c,O);if(Bl(B,Jn(n)&&!H?qat:jOe).flags&131072)return!1}return!0}function Jhe(n,a){let c=yn(n.typeParameters),u=oh(n.typeParameters);return!ct(a)||a.length>=u&&a.length<=c}function UOe(n,a){let c;return!!(n.target&&(c=iS(n.target,a))&&yD(c))}function dA(n){return Dw(n,0,!1)}function HOe(n){return Dw(n,0,!1)||Dw(n,1,!1)}function Dw(n,a,c){if(n.flags&524288){let u=Om(n);if(c||u.properties.length===0&&u.indexInfos.length===0){if(a===0&&u.callSignatures.length===1&&u.constructSignatures.length===0)return u.callSignatures[0];if(a===1&&u.constructSignatures.length===1&&u.callSignatures.length===0)return u.constructSignatures[0]}}}function qOe(n,a,c,u){let _=Sw(n.typeParameters,n,0,u),g=Cw(a),T=c&&(g&&g.flags&262144?c.nonFixingMapper:c.mapper),N=T?ED(a,T):a;return J_e(N,n,(O,B)=>{Fg(_.inferences,O,B)}),c||K_e(a,n,(O,B)=>{Fg(_.inferences,O,B,128)}),aw(n,ahe(_),Jn(a.declaration))}function Jat(n,a,c,u){let _=WQ(a,n),g=RD(n.attributes,_,u,c);return Fg(u.inferences,g,_),ahe(u)}function JOe(n){if(!n)return jn;let a=Xi(n);return Rne(n)?a:tC(n.parent)?Wg(a):yd(n.parent)?mQ(a):a}function Khe(n,a,c,u,_){if(Od(n))return Jat(n,a,u,_);if(n.kind!==170&&n.kind!==226){let O=ji(a.typeParameters,Q=>!!KT(Q)),B=bu(n,O?8:0);if(B){let Q=Ha(a);if(xE(Q)){let me=nS(n);if(!(!O&&bu(n,8)!==B)){let ht=Q_e(ait(me,1)),qt=Gi(B,ht),Xt=dA(qt),Hn=Xt&&Xt.typeParameters?XT(qme(Xt,Xt.typeParameters)):qt;Fg(_.inferences,Hn,Q,128)}let We=Sw(a.typeParameters,a,_.flags),at=Gi(B,me&&me.returnMapper);Fg(We.inferences,at,Q),_.returnMapper=ct(We.inferences,DD)?Q_e(dit(We)):void 0}}}let g=Nw(a),T=g?Math.min(vp(a)-1,c.length):c.length;if(g&&g.flags&262144){let O=Dr(_.inferences,B=>B.typeParameter===g);O&&(O.impliedArity=Tl(c,UQ,T)<0?c.length-T:void 0)}let N=bE(a);if(N&&xE(N)){let O=YOe(n);Fg(_.inferences,JOe(O),N)}for(let O=0;O<T;O++){let B=c[O];if(B.kind!==232){let Q=zm(a,O);if(xE(Q)){let me=RD(B,Q,_,u);Fg(_.inferences,me,Q)}}}if(g&&xE(g)){let O=Xhe(c,T,c.length,g,_,u);Fg(_.inferences,O,g)}return ahe(_)}function KOe(n){return n.flags&1048576?Gs(n,KOe):n.flags&1||Q7(md(n)||n)?n:ha(n)?sh(X0(n),n.target.elementFlags,!1,n.target.labeledElementDeclarations):sh([n],[8])}function Xhe(n,a,c,u,_,g){let T=JT(u);if(a>=c-1){let Q=n[c-1];if(UQ(Q)){let me=Q.kind===237?Q.type:RD(Q.expression,u,_,g);return Lv(me)?KOe(me):_d(Ov(33,me,Re,Q.kind===230?Q.expression:Q),T)}}let N=[],O=[],B=[];for(let Q=a;Q<c;Q++){let me=n[Q];if(UQ(me)){let ue=me.kind===237?me.type:Xi(me.expression);Lv(ue)?(N.push(ue),O.push(8)):(N.push(Ov(33,ue,Re,me.kind===230?me.expression:me)),O.push(4))}else{let ue=ha(u)?xhe(u,Q-a,c-a)||Zt:tp(u,Wm(Q-a),256),We=RD(me,ue,_,g),at=T||ol(ue,406978556);N.push(at?qd(We):eS(We)),O.push(1)}me.kind===237&&me.tupleNameSource?B.push(me.tupleNameSource):B.push(void 0)}return sh(N,O,T&&!dm(u,G_e),B)}function Yhe(n,a,c,u){let _=Jn(n.declaration),g=n.typeParameters,T=Yy(nn(a,si),g,oh(g),_),N;for(let O=0;O<a.length;O++){x.assert(g[O]!==void 0,"Should not call checkTypeArguments with too many type arguments");let B=iu(g[O]);if(B){let Q=c&&u?()=>So(void 0,f.Type_0_does_not_satisfy_the_constraint_1):void 0,me=u||f.Type_0_does_not_satisfy_the_constraint_1;N||(N=np(g,T));let ue=T[O];if(!Cd(ue,hp(Gi(B,N),ue),c?a[O]:void 0,me,Q))return}}return T}function XOe(n){if(b1(n.tagName))return 2;let a=ou(Xi(n.tagName));return yn(Co(a,1))?0:yn(Co(a,0))?1:2}function Kat(n,a,c,u,_,g,T){let N=WQ(a,n),O=RD(n.attributes,N,void 0,u),B=u&4?Ew(O):O;return Q()&&M_e(B,N,c,_?n.tagName:void 0,n.attributes,void 0,g,T);function Q(){var me;if(Mhe(n))return!0;let ue=(n_(n)||KS(n))&&!(b1(n.tagName)||Em(n.tagName))?Xi(n.tagName):void 0;if(!ue)return!0;let We=Co(ue,0);if(!yn(We))return!0;let at=nWe(n);if(!at)return!0;let ht=bs(at,111551,!0,!1,n);if(!ht)return!0;let qt=Yn(ht),Xt=Co(qt,0);if(!yn(Xt))return!0;let Hn=!1,En=0;for(let In of Xt){let Sn=zm(In,0),zn=Co(Sn,0);if(yn(zn))for(let Mn of zn){if(Hn=!0,ch(Mn))return!0;let Bn=vp(Mn);Bn>En&&(En=Bn)}}if(!Hn)return!0;let Kt=1/0;for(let In of We){let Sn=T_(In);Sn<Kt&&(Kt=Sn)}if(Kt<=En)return!0;if(_){let In=vr(n.tagName,f.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3,Wu(n.tagName),Kt,Wu(at),En),Sn=(me=um(n.tagName))==null?void 0:me.valueDeclaration;Sn&&pa(In,vr(Sn,f._0_is_declared_here,Wu(n.tagName))),T&&T.skipLogging&&(T.errors||(T.errors=[])).push(In),T.skipLogging||La.add(In)}return!1}}function JQ(n){return n=Ka(n),Sj(n)?Ka(n.expression):n}function y5(n,a,c,u,_,g,T){let N={errors:void 0,skipLogging:!0};if(Od(n))return Kat(n,c,u,_,g,T,N)?void 0:(x.assert(!g||!!N.errors,"jsx should have errors when reporting errors"),N.errors||je);let O=bE(c);if(O&&O!==jn&&!(o0(n)||Bo(n)&&cu(n.expression))){let We=YOe(n),at=JOe(We),ht=g?We||n:void 0,qt=f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;if(!pf(at,O,u,ht,qt,T,N))return x.assert(!g||!!N.errors,"this parameter should have errors when reporting errors"),N.errors||je}let B=f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1,Q=Nw(c),me=Q?Math.min(vp(c)-1,a.length):a.length;for(let We=0;We<me;We++){let at=a[We];if(at.kind!==232){let ht=zm(c,We),qt=RD(at,ht,void 0,_),Xt=_&4?Ew(qt):qt,Hn=JQ(at);if(!M_e(Xt,ht,u,g?Hn:void 0,Hn,B,T,N))return x.assert(!g||!!N.errors,"parameter should have errors when reporting errors"),ue(at,Xt,ht),N.errors||je}}if(Q){let We=Xhe(a,me,a.length,Q,void 0,_),at=a.length-me,ht=g?at===0?n:at===1?JQ(a[me]):W_(b5(n,We),a[me].pos,a[a.length-1].end):void 0;if(!pf(We,Q,u,ht,B,void 0,N))return x.assert(!g||!!N.errors,"rest parameter should have errors when reporting errors"),ue(ht,We,Q),N.errors||je}return;function ue(We,at,ht){if(We&&g&&N.errors&&N.errors.length){if(eM(ht))return;let qt=eM(at);qt&&y_(qt,ht,u)&&pa(N.errors[0],vr(We,f.Did_you_forget_to_use_await))}}}function YOe(n){if(n.kind===226)return n.right;let a=n.kind===213?n.expression:n.kind===215?n.tag:n.kind===170&&!$?n.expression:void 0;if(a){let c=Rl(a);if(ds(c))return c.expression}}function b5(n,a,c,u){let _=U_.createSyntheticExpression(a,c,u);return Ze(_,n),Ta(_,n),_}function KQ(n){if(n.kind===215){let u=n.template,_=[b5(u,ktt())];return u.kind===228&&an(u.templateSpans,g=>{_.push(g.expression)}),_}if(n.kind===170)return Xat(n);if(n.kind===226)return[n.left];if(Od(n))return n.attributes.properties.length>0||n_(n)&&n.parent.children.length>0?[n.attributes]:je;let a=n.arguments||je,c=HQ(a);if(c>=0){let u=a.slice(0,c);for(let _=c;_<a.length;_++){let g=a[_],T=g.kind===230&&(Op?Xi(g.expression):Ml(g.expression));T&&ha(T)?an(X0(T),(N,O)=>{var B;let Q=T.target.elementFlags[O],me=b5(g,Q&4?_d(N):N,!!(Q&12),(B=T.target.labeledElementDeclarations)==null?void 0:B[O]);u.push(me)}):u.push(g)}return u}return a}function Xat(n){let a=n.expression,c=lge(n);if(c){let u=[];for(let _ of c.parameters){let g=Yn(_);u.push(b5(a,g))}return u}return x.fail()}function $Oe(n,a){return F.experimentalDecorators?Yat(n,a):2}function Yat(n,a){switch(n.parent.kind){case 263:case 231:return 1;case 172:return Ym(n.parent)?3:2;case 174:case 177:case 178:return oe===0||a.parameters.length<=2?2:3;case 169:return 3;default:return x.fail()}}function QOe(n){let a=Nn(n),{start:c,length:u}=IS(a,Er(n.expression)?n.expression.name:n.expression);return{start:c,length:u,sourceFile:a}}function E5(n,a,...c){if(Bo(n)){let{sourceFile:u,start:_,length:g}=QOe(n);return"message"in a?Rc(u,_,g,a,...c):T9(u,a)}else return"message"in a?vr(n,a,...c):eg(Nn(n),n,a)}function $at(n){return Um(n)?Er(n.expression)?n.expression.name:n.expression:a0(n)?Er(n.tag)?n.tag.name:n.tag:Od(n)?n.tagName:n}function Qat(n){if(!Bo(n)||!Me(n.expression))return!1;let a=Xs(n.expression,n.expression.escapedText,111551,void 0,void 0,!1),c=a?.valueDeclaration;if(!c||!ao(c)||!e0(c.parent)||!o0(c.parent.parent)||!Me(c.parent.parent.expression))return!1;let u=o_e(!1);return u?um(c.parent.parent.expression,!0)===u:!1}function ZOe(n,a,c,u){var _;let g=HQ(c);if(g>-1)return vr(c[g],f.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let T=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY,O=Number.NEGATIVE_INFINITY,B=Number.POSITIVE_INFINITY,Q;for(let ht of a){let qt=T_(ht),Xt=vp(ht);qt<T&&(T=qt,Q=ht),N=Math.max(N,Xt),qt<c.length&&qt>O&&(O=qt),c.length<Xt&&Xt<B&&(B=Xt)}let me=ct(a,ch),ue=me?T:T<N?T+"-"+N:T,We=!me&&ue===1&&c.length===0&&Qat(n);if(We&&Jn(n))return E5(n,f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments);let at=Xc(n)?me?f.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:f.The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:me?f.Expected_at_least_0_arguments_but_got_1:We?f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:f.Expected_0_arguments_but_got_1;if(T<c.length&&c.length<N){if(u){let ht=So(void 0,f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,O,B);return ht=So(ht,u),E5(n,ht)}return E5(n,f.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments,c.length,O,B)}else if(c.length<T){let ht;if(u){let Xt=So(void 0,at,ue,c.length);Xt=So(Xt,u),ht=E5(n,Xt)}else ht=E5(n,at,ue,c.length);let qt=(_=Q?.declaration)==null?void 0:_.parameters[Q.thisParameter?c.length+1:c.length];if(qt){let Xt=ko(qt.name)?[f.An_argument_matching_this_binding_pattern_was_not_provided]:gh(qt)?[f.Arguments_for_the_rest_parameter_0_were_not_provided,ar(dp(qt.name))]:[f.An_argument_for_0_was_not_provided,qt.name?ar(dp(qt.name)):c.length],Hn=vr(qt,...Xt);return pa(ht,Hn)}return ht}else{let ht=P.createNodeArray(c.slice(N)),qt=Sa(ht).pos,Xt=Da(ht).end;if(Xt===qt&&Xt++,W_(ht,qt,Xt),u){let Hn=So(void 0,at,ue,c.length);return Hn=So(Hn,u),sL(Nn(n),ht,Hn)}return Q1(Nn(n),ht,at,ue,c.length)}}function Zat(n,a,c,u){let _=c.length;if(a.length===1){let N=a[0],O=oh(N.typeParameters),B=yn(N.typeParameters);if(u){let Q=So(void 0,f.Expected_0_type_arguments_but_got_1,O<B?O+"-"+B:O,_);return Q=So(Q,u),sL(Nn(n),c,Q)}return Q1(Nn(n),c,f.Expected_0_type_arguments_but_got_1,O<B?O+"-"+B:O,_)}let g=-1/0,T=1/0;for(let N of a){let O=oh(N.typeParameters),B=yn(N.typeParameters);O>_?T=Math.min(T,O):B<_&&(g=Math.max(g,B))}if(g!==-1/0&&T!==1/0){if(u){let N=So(void 0,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T);return N=So(N,u),sL(Nn(n),c,N)}return Q1(Nn(n),c,f.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments,_,g,T)}if(u){let N=So(void 0,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_);return N=So(N,u),sL(Nn(n),c,N)}return Q1(Nn(n),c,f.Expected_0_type_arguments_but_got_1,g===-1/0?T:g,_)}function ID(n,a,c,u,_,g){let T=n.kind===215,N=n.kind===170,O=Od(n),B=n.kind===226,Q=!G&&!c,me;!N&&!B&&!xS(n)&&(me=n.typeArguments,(T||O||n.expression.kind!==108)&&an(me,sa));let ue=c||[];Hat(a,ue,_),x.assert(ue.length,"Revert #54442 and add a testcase with whatever triggered this");let We=KQ(n),at=ue.length===1&&!ue[0].typeParameters,ht=!N&&!at&&ct(We,uf)?4:0,qt,Xt,Hn,En,Kt=!!(u&16)&&n.kind===213&&n.arguments.hasTrailingComma;if(ue.length>1&&(En=Sn(ue,X_,at,Kt)),En||(En=Sn(ue,hu,at,Kt)),En)return En;if(En=est(n,ue,We,!!c,u),Fr(n).resolvedSignature=En,Q)if(!g&&B&&(g=f.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),qt)if(qt.length===1||qt.length>3){let zn=qt[qt.length-1],Mn;qt.length>3&&(Mn=So(Mn,f.The_last_overload_gave_the_following_error),Mn=So(Mn,f.No_overload_matches_this_call)),g&&(Mn=So(Mn,g));let Bn=y5(n,We,zn,hu,0,!0,()=>Mn);if(Bn)for(let co of Bn)zn.declaration&&qt.length>3&&pa(co,vr(zn.declaration,f.The_last_overload_is_declared_here)),In(zn,co),La.add(co);else x.fail("No error for last overload signature")}else{let zn=[],Mn=0,Bn=Number.MAX_VALUE,co=0,no=0;for(let ku of qt){let Fn=y5(n,We,ku,hu,0,!0,()=>So(void 0,f.Overload_0_of_1_2_gave_the_following_error,no+1,ue.length,eh(ku)));Fn?(Fn.length<=Bn&&(Bn=Fn.length,co=no),Mn=Math.max(Mn,Fn.length),zn.push(Fn)):x.fail("No error for 3 or fewer overload signatures"),no++}let Eo=Mn>1?zn[co]:Ff(zn);x.assert(Eo.length>0,"No errors reported for 3 or fewer overload signatures");let Yi=So(nn(Eo,Pte),f.No_overload_matches_this_call);g&&(Yi=So(Yi,g));let ic=[...ta(Eo,ku=>ku.relatedInformation)],mf;if(ji(Eo,ku=>ku.start===Eo[0].start&&ku.length===Eo[0].length&&ku.file===Eo[0].file)){let{file:ku,start:bn,length:Fn}=Eo[0];mf={file:ku,start:bn,length:Fn,code:Yi.code,category:Yi.category,messageText:Yi,relatedInformation:ic}}else mf=eg(Nn(n),$at(n),Yi,ic);In(qt[0],mf),La.add(mf)}else if(Xt)La.add(ZOe(n,[Xt],We,g));else if(Hn)Yhe(Hn,n.typeArguments,!0,g);else{let zn=Cr(a,Mn=>Jhe(Mn,me));zn.length===0?La.add(Zat(n,a,me,g)):La.add(ZOe(n,zn,We,g))}return En;function In(zn,Mn){var Bn,co;let no=qt,Eo=Xt,Yi=Hn,ic=((co=(Bn=zn.declaration)==null?void 0:Bn.symbol)==null?void 0:co.declarations)||je,ku=ic.length>1?Dr(ic,bn=>_s(bn)&&gf(bn.body)):void 0;if(ku){let bn=kf(ku),Fn=!bn.typeParameters;Sn([bn],hu,Fn)&&pa(Mn,vr(ku,f.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}qt=no,Xt=Eo,Hn=Yi}function Sn(zn,Mn,Bn,co=!1){if(qt=void 0,Xt=void 0,Hn=void 0,Bn){let no=zn[0];if(ct(me)||!qQ(n,We,no,co))return;if(y5(n,We,no,Mn,0,!1,void 0)){qt=[no];return}return no}for(let no=0;no<zn.length;no++){let Eo=zn[no];if(!Jhe(Eo,me)||!qQ(n,We,Eo,co))continue;let Yi,ic;if(Eo.typeParameters){let mf;if(ct(me)){if(mf=Yhe(Eo,me,!1),!mf){Hn=Eo;continue}}else ic=Sw(Eo.typeParameters,Eo,Jn(n)?2:0),mf=Khe(n,Eo,We,ht|8,ic),ht|=ic.flags&4?8:0;if(Yi=aw(Eo,mf,Jn(Eo.declaration),ic&&ic.inferredTypeParameters),Nw(Eo)&&!qQ(n,We,Yi,co)){Xt=Yi;continue}}else Yi=Eo;if(y5(n,We,Yi,Mn,ht,!1,void 0)){(qt||(qt=[])).push(Yi);continue}if(ht){if(ht=0,ic){let mf=Khe(n,Eo,We,ht,ic);if(Yi=aw(Eo,mf,Jn(Eo.declaration),ic.inferredTypeParameters),Nw(Eo)&&!qQ(n,We,Yi,co)){Xt=Yi;continue}}if(y5(n,We,Yi,Mn,ht,!1,void 0)){(qt||(qt=[])).push(Yi);continue}}return zn[no]=Yi,Yi}}}function est(n,a,c,u,_){return x.assert(a.length>0),E1(n),u||a.length===1||a.some(g=>!!g.typeParameters)?rst(n,a,c,_):tst(a)}function tst(n){let a=Fi(n,O=>O.thisParameter),c;a.length&&(c=ewe(a,a.map(A5)));let{min:u,max:_}=ore(n,nst),g=[];for(let O=0;O<_;O++){let B=Fi(n,Q=>Td(Q)?O<Q.parameters.length-1?Q.parameters[O]:Da(Q.parameters):O<Q.parameters.length?Q.parameters[O]:void 0);x.assert(B.length!==0),g.push(ewe(B,Fi(n,Q=>iS(Q,O))))}let T=Fi(n,O=>Td(O)?Da(O.parameters):void 0),N=128;if(T.length!==0){let O=_d(Br(Fi(n,LLe),2));g.push(twe(T,O)),N|=1}return n.some(zU)&&(N|=2),jh(n[0].declaration,void 0,c,g,Zo(n.map(Ha)),void 0,u,N)}function nst(n){let a=n.parameters.length;return Td(n)?a-1:a}function ewe(n,a){return twe(n,Br(a,2))}function twe(n,a){return nA(Sa(n),a)}function rst(n,a,c,u){let _=ast(a,Vt===void 0?c.length:Vt),g=a[_],{typeParameters:T}=g;if(!T)return g;let N=VOe(n)?n.typeArguments:void 0,O=N?F$(g,ist(N,T,Jn(n))):ost(n,T,g,c,u);return a[_]=O,O}function ist(n,a,c){let u=n.map(S1);for(;u.length>a.length;)u.pop();for(;u.length<a.length;)u.push(KT(a[u.length])||iu(a[u.length])||ohe(c));return u}function ost(n,a,c,u,_){let g=Sw(a,c,Jn(n)?2:0),T=Khe(n,c,u,_|4|8,g);return F$(c,T)}function ast(n,a){let c=-1,u=-1;for(let _=0;_<n.length;_++){let g=n[_],T=vp(g);if(ch(g)||T>=a)return _;T>u&&(u=T,c=_)}return c}function sst(n,a,c){if(n.expression.kind===108){let O=Ehe(n.expression);if(vt(O)){for(let B of n.arguments)Xi(B);return dt}if(!Lt(O)){let B=Jm(Oc(n));if(B){let Q=rh(O,B.typeArguments,B);return ID(n,Q,a,c,0)}}return cA(n)}let u,_=Xi(n.expression);if(gS(n)){let O=yw(_,n.expression);u=O===_?0:nC(n)?16:8,_=O}else u=0;if(_=DOe(_,n.expression,Aat),_===Zi)return tr;let g=ou(_);if(Lt(g))return E_(n);let T=Co(g,0),N=Co(g,1).length;if(S5(_,g,T.length,N))return!Lt(_)&&n.typeArguments&&we(n,f.Untyped_function_calls_may_not_accept_type_arguments),cA(n);if(!T.length){if(N)we(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Pn(_));else{let O;if(n.arguments.length===1){let B=Nn(n).text;vd(B.charCodeAt(ua(B,n.expression.end,!0)-1))&&(O=vr(n.expression,f.Are_you_missing_a_semicolon))}Qhe(n.expression,g,0,O)}return E_(n)}return c&8&&!n.typeArguments&&T.some(lst)?(Fwe(n,c),sr):T.some(O=>Jn(O.declaration)&&!!FG(O.declaration))?(we(n,f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,Pn(_)),E_(n)):ID(n,T,a,c,u)}function lst(n){return!!(n.typeParameters&&Vge(Ha(n)))}function S5(n,a,c,u){return vt(n)||vt(a)&&!!(n.flags&262144)||!c&&!u&&!(a.flags&1048576)&&!(wm(a).flags&131072)&&ea(n,At)}function cst(n,a,c){if(n.arguments&&oe<1){let T=HQ(n.arguments);T>=0&&we(n.arguments[T],f.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let u=AD(n.expression);if(u===Zi)return tr;if(u=ou(u),Lt(u))return E_(n);if(vt(u))return n.typeArguments&&we(n,f.Untyped_function_calls_may_not_accept_type_arguments),cA(n);let _=Co(u,1);if(_.length){if(!dst(n,_[0]))return E_(n);if(nwe(_,N=>!!(N.flags&4)))return we(n,f.Cannot_create_an_instance_of_an_abstract_class),E_(n);let T=u.symbol&&ig(u.symbol);return T&&Wr(T,64)?(we(n,f.Cannot_create_an_instance_of_an_abstract_class),E_(n)):ID(n,_,a,c,0)}let g=Co(u,0);if(g.length){let T=ID(n,g,a,c,0);return ce||(T.declaration&&!S_(T.declaration)&&Ha(T)!==jn&&we(n,f.Only_a_void_function_can_be_called_with_the_new_keyword),bE(T)===jn&&we(n,f.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return Qhe(n.expression,u,1),E_(n)}function nwe(n,a){return oo(n)?ct(n,c=>nwe(c,a)):n.compositeKind===1048576?ct(n.compositeSignatures,a):a(n)}function $he(n,a){let c=ep(a);if(!yn(c))return!1;let u=c[0];if(u.flags&2097152){let _=u.types,g=mLe(_),T=0;for(let N of u.types){if(!g[T]&&br(N)&3&&(N.symbol===n||$he(n,N)))return!0;T++}return!1}return u.symbol===n?!0:$he(n,u)}function dst(n,a){if(!a||!a.declaration)return!0;let c=a.declaration,u=BA(c,6);if(!u||c.kind!==176)return!0;let _=ig(c.parent.symbol),g=Cs(c.parent.symbol);if(!zge(n,_)){let T=Oc(n);if(T&&u&4){let N=S1(T);if($he(c.parent.symbol,N))return!0}return u&2&&we(n,f.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,Pn(g)),u&4&&we(n,f.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,Pn(g)),!1}return!0}function rwe(n,a,c){let u,_=c===0,g=pA(a),T=g&&Co(g,c).length>0;if(a.flags&1048576){let O=a.types,B=!1;for(let Q of O)if(Co(Q,c).length!==0){if(B=!0,u)break}else if(u||(u=So(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Pn(Q)),u=So(u,_?f.Not_all_constituents_of_type_0_are_callable:f.Not_all_constituents_of_type_0_are_constructable,Pn(a))),B)break;B||(u=So(void 0,_?f.No_constituent_of_type_0_is_callable:f.No_constituent_of_type_0_is_constructable,Pn(a))),u||(u=So(u,_?f.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:f.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,Pn(a)))}else u=So(u,_?f.Type_0_has_no_call_signatures:f.Type_0_has_no_construct_signatures,Pn(a));let N=_?f.This_expression_is_not_callable:f.This_expression_is_not_constructable;if(Bo(n.parent)&&n.parent.arguments.length===0){let{resolvedSymbol:O}=Fr(n);O&&O.flags&32768&&(N=f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:So(u,N),relatedMessage:T?f.Did_you_forget_to_use_await:void 0}}function Qhe(n,a,c,u){let{messageChain:_,relatedMessage:g}=rwe(n,a,c),T=eg(Nn(n),n,_);if(g&&pa(T,vr(n,g)),Bo(n.parent)){let{start:N,length:O}=QOe(n.parent);T.start=N,T.length=O}La.add(T),iwe(a,c,u?pa(T,u):T)}function iwe(n,a,c){if(!n.symbol)return;let u=Pi(n.symbol).originatingImport;if(u&&!lp(u)){let _=Co(Yn(Pi(n.symbol).target),a);if(!_||!_.length)return;pa(c,vr(u,f.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function ust(n,a,c){let u=Xi(n.tag),_=ou(u);if(Lt(_))return E_(n);let g=Co(_,0),T=Co(_,1).length;if(S5(u,_,g.length,T))return cA(n);if(!g.length){if(Bd(n.parent)){let N=vr(n.tag,f.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return La.add(N),E_(n)}return Qhe(n.tag,_,0),E_(n)}return ID(n,g,a,c,0)}function pst(n){switch(n.parent.kind){case 263:case 231:return f.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return f.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return f.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return f.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return x.fail()}}function fst(n,a,c){let u=Xi(n.expression),_=ou(u);if(Lt(_))return E_(n);let g=Co(_,0),T=Co(_,1).length;if(S5(u,_,g.length,T))return cA(n);if(hst(n,g)&&!uu(n.expression)){let O=Vl(n.expression,!1);return we(n,f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,O),E_(n)}let N=pst(n);if(!g.length){let O=rwe(n.expression,_,0),B=So(O.messageChain,N),Q=eg(Nn(n.expression),n.expression,B);return O.relatedMessage&&pa(Q,vr(n.expression,O.relatedMessage)),La.add(Q),iwe(_,0,Q),E_(n)}return ID(n,g,a,c,0,N)}function XQ(n,a){let c=lA(n),u=c&&Qu(c),_=u&&gu(u,Rp.Element,788968),g=_&&ft.symbolToEntityName(_,788968,n),T=P.createFunctionTypeNode(void 0,[P.createParameterDeclaration(void 0,void 0,"props",void 0,ft.typeToTypeNode(a,n))],g?P.createTypeReferenceNode(g,void 0):P.createKeywordTypeNode(133)),N=xa(1,"props");return N.links.type=a,jh(T,void 0,void 0,[N],_?Cs(_):it,void 0,1,0)}function mst(n,a,c){if(b1(n.tagName)){let T=SOe(n),N=XQ(n,T);return nb(RD(n.attributes,WQ(N,n),void 0,0),T,n.tagName,n.attributes),yn(n.typeArguments)&&(an(n.typeArguments,sa),La.add(Q1(Nn(n),n.typeArguments,f.Expected_0_type_arguments_but_got_1,0,yn(n.typeArguments)))),N}let u=Xi(n.tagName),_=ou(u);if(Lt(_))return E_(n);let g=bOe(u,n);return S5(u,_,g.length,0)?cA(n):g.length===0?(we(n.tagName,f.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Vl(n.tagName)),E_(n)):ID(n,g,a,c,0)}function _st(n,a,c){let u=Xi(n.right);if(!vt(u)){let _=pge(u);if(_){let g=ou(_);if(Lt(g))return E_(n);let T=Co(g,0),N=Co(g,1);if(S5(_,g,T.length,N.length))return cA(n);if(T.length)return ID(n,T,a,c,0)}else if(!(vZ(u)||tb(u,At)))return we(n.right,f.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),E_(n)}return dt}function hst(n,a){return a.length&&ji(a,c=>c.minArgumentCount===0&&!Td(c)&&c.parameters.length<$Oe(n,c))}function gst(n,a,c){switch(n.kind){case 213:return sst(n,a,c);case 214:return cst(n,a,c);case 215:return ust(n,a,c);case 170:return fst(n,a,c);case 286:case 285:return mst(n,a,c);case 226:return _st(n,a,c)}x.assertNever(n,"Branch in 'resolveSignature' should be unreachable.")}function xD(n,a,c){let u=Fr(n),_=u.resolvedSignature;if(_&&_!==sr&&!a)return _;u.resolvedSignature=sr;let g=gst(n,a,c||0);return g!==sr&&(u.resolvedSignature!==sr&&(g=u.resolvedSignature),u.resolvedSignature=u_===Op?g:_),g}function S_(n){var a;if(!n||!Jn(n))return!1;let c=Ql(n)||us(n)?n:(yi(n)||Hl(n))&&n.initializer&&us(n.initializer)?n.initializer:void 0;if(c){if(FG(n))return!0;if(Hl(Zg(c.parent)))return!1;let u=dr(c);return!!((a=u?.members)!=null&&a.size)}return!1}function Zhe(n,a){var c,u;if(a){let _=Pi(a);if(!_.inferredClassSymbol||!_.inferredClassSymbol.has(na(n))){let g=L_(n)?n:AT(n);return g.exports=g.exports||Vo(),g.members=g.members||Vo(),g.flags|=a.flags&32,(c=a.exports)!=null&&c.size&&Cm(g.exports,a.exports),(u=a.members)!=null&&u.size&&Cm(g.members,a.members),(_.inferredClassSymbol||(_.inferredClassSymbol=new Map)).set(na(g),g),g}return _.inferredClassSymbol.get(na(n))}}function vst(n){var a;let c=n&&YQ(n,!0),u=(a=c?.exports)==null?void 0:a.get("prototype"),_=u?.valueDeclaration&&yst(u.valueDeclaration);return _?dr(_):void 0}function YQ(n,a){if(!n.parent)return;let c,u;if(yi(n.parent)&&n.parent.initializer===n){if(!Jn(n)&&!(U5(n.parent)&&_s(n)))return;c=n.parent.name,u=n.parent}else if(Zn(n.parent)){let _=n.parent,g=n.parent.operatorToken.kind;if(g===64&&(a||_.right===n))c=_.left,u=c;else if((g===57||g===61)&&(yi(_.parent)&&_.parent.initializer===_?(c=_.parent.name,u=_.parent):Zn(_.parent)&&_.parent.operatorToken.kind===64&&(a||_.parent.right===_)&&(c=_.parent.left,u=c),!c||!NS(c)||!ax(c,_.left)))return}else a&&Ql(n)&&(c=n.name,u=n);if(!(!u||!c||!a&&!Ib(n,ry(c))))return Wp(u)}function yst(n){if(!n.parent)return!1;let a=n.parent;for(;a&&a.kind===211;)a=a.parent;if(a&&Zn(a)&&ry(a.left)&&a.operatorToken.kind===64){let c=O9(a);return fa(c)&&c}}function bst(n,a){var c,u,_;j5(n,n.typeArguments);let g=xD(n,void 0,a);if(g===sr)return Zi;if($Q(g,n),n.expression.kind===108)return jn;if(n.kind===214){let N=g.declaration;if(N&&N.kind!==176&&N.kind!==180&&N.kind!==185&&!(wb(N)&&((u=(c=ux(N))==null?void 0:c.parent)==null?void 0:u.kind)===176)&&!dx(N)&&!S_(N))return ce&&we(n,f.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type),z}if(Jn(n)&&lwe(n))return PLe(n.arguments[0]);let T=Ha(g);if(T.flags&12288&&owe(n))return I_e(Zg(n.parent));if(n.kind===213&&!n.questionDotToken&&n.parent.kind===244&&T.flags&16384&&df(g)){if(!MC(n.expression))we(n.expression,f.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);else if(!a5(n)){let N=we(n.expression,f.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);o5(n.expression,N)}}if(Jn(n)){let N=YQ(n,!1);if((_=N?.exports)!=null&&_.size){let O=cs(N,N.exports,je,je,je);return O.objectFlags|=4096,Zo([T,O])}}return T}function $Q(n,a){if(!(n.flags&128)&&n.declaration&&n.declaration.flags&536870912){let c=T5(a),u=HL(vW(a));SP(c,n.declaration,u,eh(n))}}function T5(n){switch(n=Ka(n),n.kind){case 213:case 170:case 214:return T5(n.expression);case 215:return T5(n.tag);case 286:case 285:return T5(n.tagName);case 212:return n.argumentExpression;case 211:return n.name;case 183:let a=n;return $d(a.typeName)?a.typeName.right:a;default:return n}}function owe(n){if(!Bo(n))return!1;let a=n.expression;if(Er(a)&&a.name.escapedText==="for"&&(a=a.expression),!Me(a)||a.escapedText!=="Symbol")return!1;let c=YLe(!1);return c?c===Xs(a,"Symbol",111551,void 0,void 0,!1):!1}function Est(n){if(wpt(n),n.arguments.length===0)return D5(n,z);let a=n.arguments[0],c=Ml(a),u=n.arguments.length>1?Ml(n.arguments[1]):void 0;for(let g=2;g<n.arguments.length;++g)Ml(n.arguments[g]);if((c.flags&32768||c.flags&65536||!ea(c,Ie))&&we(a,f.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0,Pn(c)),u){let g=XLe(!0);g!==da&&Cd(u,e5(g,32768),n.arguments[1])}let _=jd(n,a);if(_){let g=Pu(_,a,!0,!1);if(g)return D5(n,awe(Yn(g),g,_,a)||swe(Yn(g),g,_,a))}return D5(n,z)}function ege(n,a,c){let u=Vo(),_=xa(2097152,"default");return _.parent=a,_.links.nameType=yu("default"),_.links.aliasTarget=yl(n),u.set("default",_),cs(c,u,je,je,je)}function awe(n,a,c,u){if(Iv(u)&&n&&!Lt(n)){let g=n;if(!g.defaultOnlyType){let T=ege(a,c);g.defaultOnlyType=T}return g.defaultOnlyType}}function swe(n,a,c,u){var _;if(q&&n&&!Lt(n)){let g=n;if(!g.syntheticType){let T=(_=c.declarations)==null?void 0:_.find(Li);if(f_(T,c,!1,u)){let O=xa(2048,"__type"),B=ege(a,c,O);O.links.type=B,g.syntheticType=p5(n)?Y0(n,B,O,0,!1):B}else g.syntheticType=n}return g.syntheticType}return n}function lwe(n){if(!Xd(n,!0))return!1;if(!Me(n.expression))return x.fail();let a=Xs(n.expression,n.expression.escapedText,111551,void 0,void 0,!0);if(a===st)return!0;if(a.flags&2097152)return!1;let c=a.flags&16?262:a.flags&3?260:0;if(c!==0){let u=Vs(a,c);return!!u&&!!(u.flags&33554432)}return!1}function Sst(n){lpt(n)||j5(n,n.typeArguments),oe<2&&rc(n,262144);let a=xD(n);return $Q(a,n),Ha(a)}function Tst(n,a){if(n.kind===216){let c=Nn(n);c&&$l(c.fileName,[".cts",".mts"])&&sn(n,f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead)}return cwe(n,a)}function tge(n){switch(n.kind){case 11:case 15:case 9:case 10:case 112:case 97:case 209:case 210:case 228:return!0;case 217:return tge(n.expression);case 224:let a=n.operator,c=n.operand;return a===41&&(c.kind===9||c.kind===10)||a===40&&c.kind===9;case 211:case 212:let u=Ka(n.expression),_=gl(u)?bs(u,111551,!0):void 0;return!!(_&&_.flags&384)}return!1}function cwe(n,a){let{type:c,expression:u}=dwe(n),_=Xi(u,a);if(Qh(c))return tge(u)||we(u,f.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals),qd(_);let g=Fr(n);return g.assertionExpressionType=_,sa(c),E1(n),si(c)}function dwe(n){let a,c;switch(n.kind){case 234:case 216:a=n.type,c=n.expression;break;case 217:a=D6(n),c=n.expression;break}return{type:a,expression:c}}function Ast(n){let{type:a}=dwe(n),c=uu(n)?a:n,u=Fr(n);x.assertIsDefined(u.assertionExpressionType);let _=Ew(wg(u.assertionExpressionType)),g=si(a);Lt(g)||r(()=>{let T=gp(_);rQ(g,T)||J2e(_,g,c,f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Ist(n){let a=Xi(n.expression),c=yw(a,n.expression);return _Q(Wg(c),n,c!==a)}function xst(n){return n.flags&64?Ist(n):Wg(Xi(n.expression))}function uwe(n){if(oWe(n),an(n.typeArguments,sa),n.kind===233){let c=Zg(n.parent);c.kind===226&&c.operatorToken.kind===104&&HE(n,c.right)&&we(n,f.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=n.kind===233?Xi(n.expression):YE(n.exprName)?c5(n.exprName):Xi(n.exprName);return pwe(a,n)}function pwe(n,a){let c=a.typeArguments;if(n===Zi||Lt(n)||!ct(c))return n;let u=!1,_,g=N(n),T=u?_:n;return T&&La.add(Q1(Nn(a),c,f.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,Pn(T))),g;function N(B){let Q=!1,me=!1,ue=We(B);return u||(u=me),Q&&!me&&(_??(_=B)),ue;function We(at){if(at.flags&524288){let ht=Om(at),qt=O(ht.callSignatures),Xt=O(ht.constructSignatures);if(Q||(Q=ht.callSignatures.length!==0||ht.constructSignatures.length!==0),me||(me=qt.length!==0||Xt.length!==0),qt!==ht.callSignatures||Xt!==ht.constructSignatures){let Hn=cs(xa(0,"__instantiationExpression"),ht.members,qt,Xt,ht.indexInfos);return Hn.objectFlags|=8388608,Hn.node=a,Hn}}else if(at.flags&58982400){let ht=md(at);if(ht){let qt=We(ht);if(qt!==ht)return qt}}else{if(at.flags&1048576)return Gs(at,N);if(at.flags&2097152)return Zo(sc(at.types,We))}return at}}function O(B){let Q=Cr(B,me=>!!me.typeParameters&&Jhe(me,c));return sc(Q,me=>{let ue=Yhe(me,c,!0);return ue?aw(me,ue,Jn(me.declaration)):me})}}function Rst(n){return sa(n.type),nge(n.expression,n.type)}function nge(n,a,c){let u=Xi(n,c),_=si(a);if(Lt(_))return _;let g=Rn(a.parent,T=>T.kind===238||T.kind===357);return nb(u,_,g,n,f.Type_0_does_not_satisfy_the_expected_type_1),u}function Dst(n){return Apt(n),n.keywordToken===105?rge(n):n.keywordToken===102?Cst(n):x.assertNever(n.keywordToken)}function fwe(n){switch(n.keywordToken){case 102:return KLe();case 105:let a=rge(n);return Lt(a)?it:qst(a);default:x.assertNever(n.keywordToken)}}function rge(n){let a=Hte(n);if(a)if(a.kind===176){let c=dr(a.parent);return Yn(c)}else{let c=dr(a);return Yn(c)}else return we(n,f.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),it}function Cst(n){W===100||W===199?Nn(n).impliedNodeFormat!==99&&we(n,f.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):W<6&&W!==4&&we(n,f.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let a=Nn(n);return x.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),n.name.escapedText==="meta"?JLe():it}function A5(n){let a=n.valueDeclaration;return Mu(Yn(n),!1,!!a&&($v(a)||$C(a)))}function ige(n,a,c="arg"){return n?(x.assert(Me(n.name)),n.name.escapedText):`${c}_${a}`}function YP(n,a,c){let u=n.parameters.length-(Td(n)?1:0);if(a<u)return n.parameters[a].escapedName;let _=n.parameters[u]||tt,g=c||Yn(_);if(ha(g)){let T=g.target.labeledElementDeclarations,N=a-u;return ige(T?.[N],N,_.escapedName)}return _.escapedName}function Nst(n,a){var c;if(((c=n.declaration)==null?void 0:c.kind)===324)return;let u=n.parameters.length-(Td(n)?1:0);if(a<u){let N=n.parameters[a],O=mwe(N);return O?{parameter:O,parameterName:N.escapedName,isRestParameter:!1}:void 0}let _=n.parameters[u]||tt,g=mwe(_);if(!g)return;let T=Yn(_);if(ha(T)){let N=T.target.labeledElementDeclarations,O=a-u,B=N?.[O],Q=!!B?.dotDotDotToken;return B?(x.assert(Me(B.name)),{parameter:B.name,parameterName:B.name.escapedText,isRestParameter:Q}):void 0}if(a===u)return{parameter:g,parameterName:_.escapedName,isRestParameter:!0}}function mwe(n){return n.valueDeclaration&&ao(n.valueDeclaration)&&Me(n.valueDeclaration.name)&&n.valueDeclaration.name}function _we(n){return n.kind===202||ao(n)&&n.name&&Me(n.name)}function Pst(n,a){let c=n.parameters.length-(Td(n)?1:0);if(a<c){let g=n.parameters[a].valueDeclaration;return g&&_we(g)?g:void 0}let u=n.parameters[c]||tt,_=Yn(u);if(ha(_)){let g=_.target.labeledElementDeclarations,T=a-c;return g&&g[T]}return u.valueDeclaration&&_we(u.valueDeclaration)?u.valueDeclaration:void 0}function zm(n,a){return iS(n,a)||z}function iS(n,a){let c=n.parameters.length-(Td(n)?1:0);if(a<c)return A5(n.parameters[a]);if(Td(n)){let u=Yn(n.parameters[c]),_=a-c;if(!ha(u)||u.target.hasRestElement||_<u.target.fixedLength)return tp(u,Wm(_))}}function I5(n,a,c){let u=vp(n),_=T_(n),g=Cw(n);if(g&&a>=u-1)return a===u-1?g:_d(tp(g,gt));let T=[],N=[],O=[];for(let B=a;B<u;B++)!g||B<u-1?(T.push(zm(n,B)),N.push(B<_?1:2)):(T.push(g),N.push(8)),O.push(Pst(n,B));return sh(T,N,c,O)}function hwe(n,a){let c=I5(n,a),u=c&&Z7(c);return u&&vt(u)?z:c}function vp(n){let a=n.parameters.length;if(Td(n)){let c=Yn(n.parameters[a-1]);if(ha(c))return a+c.target.fixedLength-(c.target.hasRestElement?0:1)}return a}function T_(n,a){let c=a&1,u=a&2;if(u||n.resolvedMinArgumentCount===void 0){let _;if(Td(n)){let g=Yn(n.parameters[n.parameters.length-1]);if(ha(g)){let T=Tl(g.target.elementFlags,O=>!(O&1)),N=T<0?g.target.fixedLength:T;N>0&&(_=n.parameters.length-1+N)}}if(_===void 0){if(!c&&n.flags&32)return 0;_=n.minArgumentCount}if(u)return _;for(let g=_-1;g>=0;g--){let T=zm(n,g);if(Bl(T,jOe).flags&131072)break;_=g}n.resolvedMinArgumentCount=_}return n.resolvedMinArgumentCount}function ch(n){if(Td(n)){let a=Yn(n.parameters[n.parameters.length-1]);return!ha(a)||a.target.hasRestElement}return!1}function Cw(n){if(Td(n)){let a=Yn(n.parameters[n.parameters.length-1]);if(!ha(a))return vt(a)?Nl:a;if(a.target.hasRestElement)return FP(a,a.target.fixedLength)}}function Nw(n){let a=Cw(n);return a&&!ff(a)&&!vt(a)?a:void 0}function oge(n){return age(n,Ar)}function age(n,a){return n.parameters.length>0?zm(n,0):a}function gwe(n,a,c){let u=n.parameters.length-(Td(n)?1:0);for(let _=0;_<u;_++){let g=n.parameters[_].valueDeclaration,T=Jc(g);if(T){let N=Mu(si(T),!1,$C(g)),O=zm(a,_);Fg(c.inferences,N,O)}}}function Mst(n,a){if(a.typeParameters)if(!n.typeParameters)n.typeParameters=a.typeParameters;else return;if(a.thisParameter){let u=n.thisParameter;(!u||u.valueDeclaration&&!u.valueDeclaration.type)&&(u||(n.thisParameter=nA(a.thisParameter,void 0)),x5(n.thisParameter,Yn(a.thisParameter)))}let c=n.parameters.length-(Td(n)?1:0);for(let u=0;u<c;u++){let _=n.parameters[u],g=_.valueDeclaration;if(!Jc(g)){let T=iS(a,u);if(T&&g.initializer){let N=$P(g,0);!ea(N,T)&&ea(T,N=tZ(g,N))&&(T=N)}x5(_,T)}}if(Td(n)){let u=Da(n.parameters);if(u.valueDeclaration?!Jc(u.valueDeclaration):tl(u)&65536){let _=I5(a,c);x5(u,_)}}}function Lst(n){n.thisParameter&&x5(n.thisParameter);for(let a of n.parameters)x5(a)}function x5(n,a){let c=Pi(n);if(c.type)a&&x.assertEqual(c.type,a,"Parameter symbol already has a cached type which differs from newly assigned type");else{let u=n.valueDeclaration;c.type=Mu(a||(u?w(u,!0):Yn(n)),!1,!!u&&!u.initializer&&$C(u)),u&&u.name.kind!==80&&(c.type===Zt&&(c.type=D(u.name)),vwe(u.name,c.type))}}function vwe(n,a){for(let c of n.elements)if(!vc(c)){let u=Vh(c,a,!1);c.name.kind===80?Pi(dr(c)).type=u:vwe(c.name,u)}}function kst(n){return _D(Xtt(!0),[n])}function Ost(n,a){return _D(Ytt(!0),[n,a])}function wst(n,a){return _D($tt(!0),[n,a])}function Wst(n,a){return _D(Qtt(!0),[n,a])}function Fst(n,a){return _D(Ztt(!0),[n,a])}function zst(n,a){return _D(nnt(!0),[n,a])}function Bst(n,a,c){let u=`${a?"p":"P"}${c?"s":"S"}${n.id}`,_=ba.get(u);if(!_){let g=Vo();g.set("name",ST("name",n)),g.set("private",ST("private",a?An:Ot)),g.set("static",ST("static",c?An:Ot)),_=cs(void 0,g,je,je,je),ba.set(u,_)}return _}function ywe(n,a,c){let u=jl(n),_=Ci(n.name),g=_?yu(ar(n.name)):Pv(n.name),T=El(n)?Ost(a,c):Ap(n)?wst(a,c):Vu(n)?Wst(a,c):su(n)?Fst(a,c):xo(n)?zst(a,c):x.failBadSyntaxKind(n),N=Bst(g,_,u);return Zo([T,N])}function Gst(n,a){return _D(ent(!0),[n,a])}function Vst(n,a){return _D(tnt(!0),[n,a])}function jst(n,a){let c=Dm("this",n),u=Dm("value",a);return Ege(void 0,c,[u],a,void 0,1)}function sge(n,a,c){let u=Dm("target",n),_=Dm("context",a),g=Br([c,jn]);return ww(void 0,void 0,[u,_],g)}function Ust(n){let{parent:a}=n,c=Fr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=dt,a.kind){case 263:case 231:{let _=Yn(dr(a)),g=kst(_);c.decoratorSignature=sge(_,g,_);break}case 174:case 177:case 178:{let u=a;if(!Kr(u.parent))break;let _=El(u)?XT(kf(u)):S1(u),g=jl(u)?Yn(dr(u.parent)):cf(dr(u.parent)),T=Ap(u)?Qwe(_):Vu(u)?Zwe(_):_,N=ywe(u,g,_),O=Ap(u)?Qwe(_):Vu(u)?Zwe(_):_;c.decoratorSignature=sge(T,N,O);break}case 172:{let u=a;if(!Kr(u.parent))break;let _=S1(u),g=jl(u)?Yn(dr(u.parent)):cf(dr(u.parent)),T=Ym(u)?Gst(g,_):Re,N=ywe(u,g,_),O=Ym(u)?Vst(g,_):jst(g,_);c.decoratorSignature=sge(T,N,O);break}}return c.decoratorSignature===dt?void 0:c.decoratorSignature}function Hst(n){let{parent:a}=n,c=Fr(a);if(!c.decoratorSignature)switch(c.decoratorSignature=dt,a.kind){case 263:case 231:{let _=Yn(dr(a)),g=Dm("target",_);c.decoratorSignature=ww(void 0,void 0,[g],Br([_,jn]));break}case 169:{let u=a;if(!ll(u.parent)&&!(El(u.parent)||Vu(u.parent)&&Kr(u.parent.parent))||KE(u.parent)===u)break;let _=KE(u.parent)?u.parent.parameters.indexOf(u)-1:u.parent.parameters.indexOf(u);x.assert(_>=0);let g=ll(u.parent)?Yn(dr(u.parent.parent)):K8e(u.parent),T=ll(u.parent)?Re:X8e(u.parent),N=Wm(_),O=Dm("target",g),B=Dm("propertyKey",T),Q=Dm("parameterIndex",N);c.decoratorSignature=ww(void 0,void 0,[O,B,Q],jn);break}case 174:case 177:case 178:case 172:{let u=a;if(!Kr(u.parent))break;let _=K8e(u),g=Dm("target",_),T=X8e(u),N=Dm("propertyKey",T),O=xo(u)?jn:t2e(S1(u));if(oe!==0&&(!xo(a)||Ym(a))){let Q=t2e(S1(u)),me=Dm("descriptor",Q);c.decoratorSignature=ww(void 0,void 0,[g,N,me],Br([O,jn]))}else c.decoratorSignature=ww(void 0,void 0,[g,N],Br([O,jn]));break}}return c.decoratorSignature===dt?void 0:c.decoratorSignature}function lge(n){return $?Hst(n):Ust(n)}function R5(n){let a=W7(!0);return a!==ho?(n=kv(tM(n))||Zt,Cv(a,[n])):Zt}function bwe(n){let a=QLe(!0);return a!==ho?(n=kv(tM(n))||Zt,Cv(a,[n])):Zt}function D5(n,a){let c=R5(a);return c===Zt?(we(n,lp(n)?f.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),it):(o_e(!0)||we(n,lp(n)?f.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),c)}function qst(n){let a=xa(0,"NewTargetExpression"),c=xa(4,"target",8);c.parent=a,c.links.type=n;let u=Vo([c]);return a.members=u,cs(a,u,je,je,je)}function QQ(n,a){if(!n.body)return it;let c=gc(n),u=(c&2)!==0,_=(c&1)!==0,g,T,N,O=jn;if(n.body.kind!==241)g=Ml(n.body,a&&a&-9),u&&(g=tM(Ow(g,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(_){let B=xwe(n,a);B?B.length>0&&(g=Br(B,2)):O=Ar;let{yieldTypes:Q,nextTypes:me}=Jst(n,a);T=ct(Q)?Br(Q,2):void 0,N=ct(me)?Zo(me):void 0}else{let B=xwe(n,a);if(!B)return c&2?D5(n,Ar):Ar;if(B.length===0){let Q=LQ(n,void 0),me=Q&&(z5(Q,c)||jn).flags&32768?Re:jn;return c&2?D5(n,me):me}g=Br(B,2)}if(g||T||N){if(T&&yQ(n,T,3),g&&yQ(n,g,1),N&&yQ(n,N,2),g&&Fm(g)||T&&Fm(T)||N&&Fm(N)){let B=Dhe(n),Q=B?B===kf(n)?_?void 0:g:OQ(Ha(B),n,void 0):void 0;_?(T=H_e(T,Q,0,u),g=H_e(g,Q,1,u),N=H_e(N,Q,2,u)):g=Krt(g,Q,u)}T&&(T=gp(T)),g&&(g=gp(g)),N&&(N=gp(N))}return _?Ewe(T||Ar,g||O,N||aOe(2,n)||Zt,u):u?R5(g||O):g||O}function Ewe(n,a,c,u){let _=u?ys:Jl,g=_.getGlobalGeneratorType(!1);if(n=_.resolveIterationType(n,void 0)||Zt,a=_.resolveIterationType(a,void 0)||Zt,c=_.resolveIterationType(c,void 0)||Zt,g===ho){let T=_.getGlobalIterableIteratorType(!1),N=T!==ho?f8e(T,_):void 0,O=N?N.returnType:z,B=N?N.nextType:Re;return ea(a,O)&&ea(B,c)?T!==ho?lw(T,[n]):(_.getGlobalIterableIteratorType(!0),da):(_.getGlobalGeneratorType(!0),da)}return lw(g,[n,a,c])}function Jst(n,a){let c=[],u=[],_=(gc(n)&2)!==0;return kte(n.body,g=>{let T=g.expression?Xi(g.expression,a):St;jp(c,Swe(g,T,z,_));let N;if(g.asteriskToken){let O=uZ(T,_?19:17,g.expression);N=O&&O.nextType}else N=bu(g,void 0);N&&jp(u,N)}),{yieldTypes:c,nextTypes:u}}function Swe(n,a,c,u){let _=n.expression||n,g=n.asteriskToken?Ov(u?19:17,a,c,_):a;return u?pA(g,_,n.asteriskToken?f.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:f.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g}function Twe(n,a,c){let u=0;for(let _=0;_<c.length;_++){let g=_<n||_>=a?c[_]:void 0;u|=g!==void 0?GU.get(g)||32768:0}return u}function Awe(n){let a=Fr(n);if(a.isExhaustive===void 0){a.isExhaustive=0;let c=Kst(n);a.isExhaustive===0&&(a.isExhaustive=c)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function Kst(n){if(n.expression.kind===221){let u=Fke(n);if(!u)return!1;let _=Pg(Ml(n.expression.expression)),g=Twe(0,0,u);return _.flags&3?(556800&g)===556800:!dm(_,T=>HP(T,g)===g)}let a=Ml(n.expression);if(!vw(a))return!1;let c=IQ(n);return!c.length||ct(c,Hrt)?!1:Vit(Gs(a,qd),c)}function Iwe(n){return n.endFlowNode&&s5(n.endFlowNode)}function xwe(n,a){let c=gc(n),u=[],_=Iwe(n),g=!1;if(GE(n.body,T=>{let N=T.expression;if(N){if(N=Ka(N,!0),c&2&&N.kind===223&&(N=Ka(N.expression,!0)),N.kind===213&&N.expression.kind===80&&Ml(N.expression).symbol===n.symbol){g=!0;return}let O=Ml(N,a&&a&-9);c&2&&(O=tM(Ow(O,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),O.flags&131072&&(g=!0),jp(u,O)}else _=!0}),!(u.length===0&&!_&&(g||Xst(n))))return H&&u.length&&_&&!(S_(n)&&u.some(T=>T.symbol===n.symbol))&&jp(u,Re),u}function Xst(n){switch(n.kind){case 218:case 219:return!0;case 174:return n.parent.kind===210;default:return!1}}function cge(n,a){r(c);return;function c(){let u=gc(n),_=a&&z5(a,u);if(_&&(ol(_,16384)||_.flags&32769)||n.kind===173||_l(n.body)||n.body.kind!==241||!Iwe(n))return;let g=n.flags&1024,T=Tf(n)||n;if(_&&_.flags&131072)we(T,f.A_function_returning_never_cannot_have_a_reachable_end_point);else if(_&&!g)we(T,f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(_&&H&&!ea(Re,_))we(T,f.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(F.noImplicitReturns){if(!_){if(!g)return;let N=Ha(kf(n));if(E8e(n,N))return}we(T,f.Not_all_code_paths_return_a_value)}}}function Rwe(n,a){if(x.assert(n.kind!==174||qf(n)),E1(n),us(n)&&nM(n,n.name),a&&a&4&&uf(n)){if(!Tf(n)&&!gF(n)){let u=Rw(n);if(u&&xE(Ha(u))){let _=Fr(n);if(_.contextFreeType)return _.contextFreeType;let g=QQ(n,a),T=jh(void 0,void 0,void 0,je,g,void 0,0,64),N=cs(n.symbol,U,[T],je,je);return N.objectFlags|=262144,_.contextFreeType=N}}return Ut}return!SZ(n)&&n.kind===218&&Hge(n),Yst(n,a),Yn(dr(n))}function Yst(n,a){let c=Fr(n);if(!(c.flags&64)){let u=Rw(n);if(!(c.flags&64)){c.flags|=64;let _=Ac(Co(Yn(dr(n)),0));if(!_)return;if(uf(n))if(u){let g=nS(n),T;if(a&&a&2){gwe(_,u,g);let N=Cw(u);N&&N.flags&262144&&(T=ED(u,g.nonFixingMapper))}T||(T=g?ED(u,g.mapper):u),Mst(_,T)}else Lst(_);else if(u&&!n.typeParameters&&u.parameters.length>n.parameters.length){let g=nS(n);a&&a&2&&gwe(_,u,g)}if(u&&!mD(n)&&!_.resolvedReturnType){let g=QQ(n,a);_.resolvedReturnType||(_.resolvedReturnType=g)}Mw(n)}}}function $st(n){x.assert(n.kind!==174||qf(n));let a=gc(n),c=mD(n);if(cge(n,c),n.body)if(Tf(n)||Ha(kf(n)),n.body.kind===241)sa(n.body);else{let u=Xi(n.body),_=c&&z5(c,a);if(_){let g=JQ(n.body);if((a&3)===2){let T=Ow(u,!1,g,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);nb(T,_,g,g)}else nb(u,_,g,g)}}}function ZQ(n,a,c,u=!1){if(!ea(a,Dl)){let _=u&&eM(a);return nE(n,!!_&&ea(_,Dl),c),!1}return!0}function Qst(n){if(!Bo(n)||!CS(n))return!1;let a=Ml(n.arguments[2]);if(Fe(a,"value")){let _=Qo(a,"writable"),g=_&&Yn(_);if(!g||g===Ot||g===dn)return!0;if(_&&_.valueDeclaration&&Hl(_.valueDeclaration)){let T=_.valueDeclaration.initializer,N=Xi(T);if(N===Ot||N===dn)return!0}return!1}return!Qo(a,"set")}function Bm(n){return!!(tl(n)&8||n.flags&4&&Kp(n)&8||n.flags&3&&Ohe(n)&6||n.flags&98304&&!(n.flags&65536)||n.flags&8||ct(n.declarations,Qst))}function Dwe(n,a,c){var u,_;if(c===0)return!1;if(Bm(a)){if(a.flags&4&&ds(n)&&n.expression.kind===110){let g=cp(n);if(!(g&&(g.kind===176||S_(g))))return!0;if(a.valueDeclaration){let T=Zn(a.valueDeclaration),N=g.parent===a.valueDeclaration.parent,O=g===a.valueDeclaration.parent,B=T&&((u=a.parent)==null?void 0:u.valueDeclaration)===g.parent,Q=T&&((_=a.parent)==null?void 0:_.valueDeclaration)===g;return!(N||O||B||Q)}}return!0}if(ds(n)){let g=Ka(n.expression);if(g.kind===80){let T=Fr(g).resolvedSymbol;if(T.flags&2097152){let N=im(T);return!!N&&N.kind===274}}}return!1}function Pw(n,a,c){let u=Rl(n,7);return u.kind!==80&&!ds(u)?(we(n,a),!1):u.flags&64?(we(n,c),!1):!0}function Zst(n){Xi(n.expression);let a=Ka(n.expression);if(!ds(a))return we(a,f.The_operand_of_a_delete_operator_must_be_a_property_reference),ti;Er(a)&&Ci(a.name)&&we(a,f.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let c=Fr(a),u=Fp(c.resolvedSymbol);return u&&(Bm(u)?we(a,f.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):elt(a,u)),ti}function elt(n,a){let c=Yn(a);H&&!(c.flags&131075)&&!(be?a.flags&16777216:wf(c,16777216))&&we(n,f.The_operand_of_a_delete_operator_must_be_optional)}function tlt(n){return Xi(n.expression),HR}function nlt(n){return E1(n),St}function Cwe(n){let a=!1,c=mW(n);if(c&&nl(c)){let u=py(n)?f.await_expression_cannot_be_used_inside_a_class_static_block:f.await_using_statements_cannot_be_used_inside_a_class_static_block;we(n,u),a=!0}else if(!(n.flags&65536))if(hW(n)){let u=Nn(n);if(!aS(u)){let _;if(!MA(u,F)){_??(_=w_(u,n.pos));let g=py(n)?f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,T=Rc(u,_.start,_.length,g);La.add(T),a=!0}switch(W){case 100:case 199:if(u.impliedNodeFormat===1){_??(_=w_(u,n.pos)),La.add(Rc(u,_.start,_.length,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 200:case 4:if(oe>=4)break;default:_??(_=w_(u,n.pos));let g=py(n)?f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher:f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher;La.add(Rc(u,_.start,_.length,g)),a=!0;break}}}else{let u=Nn(n);if(!aS(u)){let _=w_(u,n.pos),g=py(n)?f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,T=Rc(u,_.start,_.length,g);if(c&&c.kind!==176&&!(gc(c)&2)){let N=vr(c,f.Did_you_mean_to_mark_this_function_as_async);pa(T,N)}La.add(T),a=!0}}return py(n)&&The(n)&&(we(n,f.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function rlt(n){r(()=>Cwe(n));let a=Xi(n.expression),c=Ow(a,!0,n,f.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return c===a&&!Lt(c)&&!(a.flags&3)&&Rm(!1,vr(n,f.await_has_no_effect_on_the_type_of_this_expression)),c}function ilt(n){let a=Xi(n.operand);if(a===Zi)return Zi;switch(n.operand.kind){case 9:switch(n.operator){case 41:return v1(Wm(-n.operand.text));case 40:return v1(Wm(+n.operand.text))}break;case 10:if(n.operator===41)return v1($$({negative:!0,base10Value:HC(n.operand.text)}))}switch(n.operator){case 40:case 41:case 55:return b_(a,n.operand),C5(a,12288)&&we(n.operand,f.The_0_operator_cannot_be_applied_to_type_symbol,qo(n.operator)),n.operator===40?(C5(a,2112)&&we(n.operand,f.Operator_0_cannot_be_applied_to_type_1,qo(n.operator),Pn(wg(a))),gt):dge(a);case 54:xge(a,n.operand);let c=HP(a,12582912);return c===4194304?Ot:c===8388608?An:ti;case 46:case 47:return ZQ(n.operand,b_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Pw(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),dge(a)}return it}function olt(n){let a=Xi(n.operand);return a===Zi?Zi:(ZQ(n.operand,b_(a,n.operand),f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&Pw(n.operand,f.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,f.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),dge(a))}function dge(n){return ol(n,2112)?ed(n,3)||ol(n,296)?Dl:bt:gt}function C5(n,a){if(ol(n,a))return!0;let c=Pg(n);return!!c&&ol(c,a)}function ol(n,a){if(n.flags&a)return!0;if(n.flags&3145728){let c=n.types;for(let u of c)if(ol(u,a))return!0}return!1}function ed(n,a,c){return n.flags&a?!0:c&&n.flags&114691?!1:!!(a&296)&&ea(n,gt)||!!(a&2112)&&ea(n,bt)||!!(a&402653316)&&ea(n,Ie)||!!(a&528)&&ea(n,ti)||!!(a&16384)&&ea(n,jn)||!!(a&131072)&&ea(n,Ar)||!!(a&65536)&&ea(n,se)||!!(a&32768)&&ea(n,Re)||!!(a&4096)&&ea(n,di)||!!(a&67108864)&&ea(n,Mr)}function N5(n,a,c){return n.flags&1048576?ji(n.types,u=>N5(u,a,c)):ed(n,a,c)}function eZ(n){return!!(br(n)&16)&&!!n.symbol&&uge(n.symbol)}function uge(n){return(n.flags&128)!==0}function pge(n){let a=_8e("hasInstance"),c=vE(n,a);if(c){let u=Yn(c);if(u&&Co(u,0).length!==0)return u}}function alt(n,a,c,u,_){if(c===Zi||u===Zi)return Zi;!vt(c)&&N5(c,402784252)&&we(n,f.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),x.assert(qW(n.parent));let g=xD(n.parent,void 0,_);if(g===sr)return Zi;let T=Ha(g);return Cd(T,ti,a,f.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),ti}function slt(n){return dm(n,a=>a===il||!!(a.flags&2097152)&&lh(Pg(a)))}function llt(n,a,c,u){if(c===Zi||u===Zi)return Zi;if(Ci(n)){if(oe<99&&rc(n,2097152),!Fr(n).resolvedSymbol&&Oc(n)){let _=Ghe(n,u.symbol,!0);OOe(n,u,_)}}else Cd(b_(c,n),_n,n);return Cd(b_(u,a),Mr,a)&&slt(u)&&we(a,f.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,Pn(u)),ti}function clt(n,a,c){let u=n.properties;if(H&&u.length===0)return b_(a,n);for(let _=0;_<u.length;_++)Nwe(n,a,_,u,c);return a}function Nwe(n,a,c,u,_=!1){let g=n.properties,T=g[c];if(T.kind===303||T.kind===304){let N=T.name,O=Pv(N);if(Af(O)){let me=If(O),ue=Qo(a,me);ue&&(v5(ue,T,_),Whe(T,!1,!0,a,ue))}let B=tp(a,O,32,N),Q=Mi(T,B);return uA(T.kind===304?T:T.initializer,Q)}else if(T.kind===305)if(c<g.length-1)we(T,f.A_rest_element_must_be_last_in_a_destructuring_pattern);else{oe<99&&rc(T,4);let N=[];if(u)for(let B of u)lv(B)||N.push(B.name);let O=bi(a,N,a.symbol);return T1(u,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),uA(T.expression,O)}else we(T,f.Property_assignment_expected)}function dlt(n,a,c){let u=n.elements;oe<2&&F.downlevelIteration&&rc(n,512);let _=Ov(193,a,Re,n)||it,g=F.noUncheckedIndexedAccess?void 0:_;for(let T=0;T<u.length;T++){let N=_;n.elements[T].kind===230&&(N=g=g??(Ov(65,a,Re,n)||it)),Pwe(n,a,T,N,c)}return a}function Pwe(n,a,c,u,_){let g=n.elements,T=g[c];if(T.kind!==232){if(T.kind!==230){let N=Wm(c);if(Lv(a)){let O=32|(XP(T)?16:0),B=Qy(a,N,O,b5(T,N))||it,Q=XP(T)?Wf(B,524288):B,me=Mi(T,Q);return uA(T,me,_)}return uA(T,u,_)}if(c<g.length-1)we(T,f.A_rest_element_must_be_last_in_a_destructuring_pattern);else{let N=T.expression;if(N.kind===226&&N.operatorToken.kind===64)we(N.operatorToken,f.A_rest_element_cannot_have_an_initializer);else{T1(n.elements,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);let O=Lu(a,ha)?Gs(a,B=>FP(B,c)):_d(u);return uA(N,O,_)}}}}function uA(n,a,c,u){let _;if(n.kind===304){let g=n;g.objectAssignmentInitializer&&(H&&!wf(Xi(g.objectAssignmentInitializer),16777216)&&(a=Wf(a,524288)),mlt(g.name,g.equalsToken,g.objectAssignmentInitializer,c)),_=n.name}else _=n;return _.kind===226&&_.operatorToken.kind===64&&(Te(_,c),_=_.left,H&&(a=Wf(a,524288))),_.kind===210?clt(_,a,u):_.kind===209?dlt(_,a,c):ult(_,a,c)}function ult(n,a,c){let u=Xi(n,c),_=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,g=n.parent.kind===305?f.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return Pw(n,_,g)&&nb(a,u,n,n),j1(n)&&rc(n.parent,1048576),a}function P5(n){switch(n=Ka(n),n.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return P5(n.whenTrue)&&P5(n.whenFalse);case 226:return tv(n.operatorToken.kind)?!1:P5(n.left)&&P5(n.right);case 224:case 225:switch(n.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function fge(n,a){return(a.flags&98304)!==0||rQ(n,a)}function plt(){let n=M6(a,c,u,_,g,T);return(ue,We)=>{let at=n(ue,We);return x.assertIsDefined(at),at};function a(ue,We,at){return We?(We.stackIndex++,We.skip=!1,B(We,void 0),me(We,void 0)):We={checkMode:at,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Jn(ue)&&LA(ue)?(We.skip=!0,me(We,Xi(ue.right,at)),We):(flt(ue),ue.operatorToken.kind===64&&(ue.left.kind===210||ue.left.kind===209)&&(We.skip=!0,me(We,uA(ue.left,Xi(ue.right,at),at,ue.right.kind===110))),We)}function c(ue,We,at){if(!We.skip)return N(We,ue)}function u(ue,We,at){if(!We.skip){let ht=Q(We);x.assertIsDefined(ht),B(We,ht),me(We,void 0);let qt=ue.kind;if(VL(qt)){let Xt=at.parent;for(;Xt.kind===217||jL(Xt);)Xt=Xt.parent;(qt===56||HS(Xt))&&Ige(at.left,ht,HS(Xt)?Xt.thenStatement:void 0),xge(ht,at.left)}}}function _(ue,We,at){if(!We.skip)return N(We,ue)}function g(ue,We){let at;if(We.skip)at=Q(We);else{let ht=O(We);x.assertIsDefined(ht);let qt=Q(We);x.assertIsDefined(qt),at=Mwe(ue.left,ue.operatorToken,ue.right,ht,qt,We.checkMode,ue)}return We.skip=!1,B(We,void 0),me(We,void 0),We.stackIndex--,at}function T(ue,We,at){return me(ue,We),ue}function N(ue,We){if(Zn(We))return We;me(ue,Xi(We,ue.checkMode))}function O(ue){return ue.typeStack[ue.stackIndex]}function B(ue,We){ue.typeStack[ue.stackIndex]=We}function Q(ue){return ue.typeStack[ue.stackIndex+1]}function me(ue,We){ue.typeStack[ue.stackIndex+1]=We}}function flt(n){let{left:a,operatorToken:c,right:u}=n;c.kind===61&&(Zn(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&sn(a,f._0_and_1_operations_cannot_be_mixed_without_parentheses,qo(a.operatorToken.kind),qo(c.kind)),Zn(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===56)&&sn(u,f._0_and_1_operations_cannot_be_mixed_without_parentheses,qo(u.operatorToken.kind),qo(c.kind)))}function mlt(n,a,c,u,_){let g=a.kind;if(g===64&&(n.kind===210||n.kind===209))return uA(n,Xi(c,u),u,c.kind===110);let T;VL(g)?T=rM(n,u):T=Xi(n,u);let N=Xi(c,u);return Mwe(n,a,c,T,N,u,_)}function Mwe(n,a,c,u,_,g,T){let N=a.kind;switch(N){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(u===Zi||_===Zi)return Zi;u=b_(u,n),_=b_(_,c);let Kt;if(u.flags&528&&_.flags&528&&(Kt=ue(a.kind))!==void 0)return we(T||a,f.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,qo(a.kind),qo(Kt)),gt;{let zn=ZQ(n,u,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Mn=ZQ(c,_,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),Bn;if(ed(u,3)&&ed(_,3)||!(ol(u,2112)||ol(_,2112)))Bn=gt;else if(O(u,_)){switch(N){case 50:case 73:qt();break;case 43:case 68:oe<3&&we(T,f.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}Bn=bt}else qt(O),Bn=it;return zn&&Mn&&We(Bn),Bn}case 40:case 65:if(u===Zi||_===Zi)return Zi;!ed(u,402653316)&&!ed(_,402653316)&&(u=b_(u,n),_=b_(_,c));let In;return ed(u,296,!0)&&ed(_,296,!0)?In=gt:ed(u,2112,!0)&&ed(_,2112,!0)?In=bt:ed(u,402653316,!0)||ed(_,402653316,!0)?In=Ie:(vt(u)||vt(_))&&(In=Lt(u)||Lt(_)?it:z),In&&!me(N)?In:In?(N===65&&We(In),In):(qt((Mn,Bn)=>ed(Mn,402655727)&&ed(Bn,402655727)),z);case 30:case 32:case 33:case 34:return me(N)&&(u=j_e(b_(u,n)),_=j_e(b_(_,c)),ht((zn,Mn)=>{if(vt(zn)||vt(Mn))return!0;let Bn=ea(zn,Dl),co=ea(Mn,Dl);return Bn&&co||!Bn&&!co&&q7(zn,Mn)})),ti;case 35:case 36:case 37:case 38:if(!(g&&g&64)){if((JG(n)||JG(c))&&(!Jn(n)||N===37||N===38)){let zn=N===35||N===37;we(T,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,zn?"false":"true")}Hn(T,N,n,c),ht((zn,Mn)=>fge(zn,Mn)||fge(Mn,zn))}return ti;case 104:return alt(n,c,u,_,g);case 103:return llt(n,c,u,_);case 56:case 77:{let zn=wf(u,4194304)?Br([$rt(H?u:wg(_)),_]):u;return N===77&&We(_),zn}case 57:case 76:{let zn=wf(u,8388608)?Br([Wg(uke(u)),_],2):u;return N===76&&We(_),zn}case 61:case 78:{let zn=wf(u,262144)?Br([Wg(u),_],2):u;return N===78&&We(_),zn}case 64:let Sn=Zn(n.parent)?hl(n.parent):0;return B(Sn,_),at(Sn)?((!(_.flags&524288)||Sn!==2&&Sn!==6&&!Og(_)&&!dhe(_)&&!(br(_)&1))&&We(_),u):(We(_),_);case 28:if(!F.allowUnreachableCode&&P5(n)&&!Q(n.parent)){let zn=Nn(n),Mn=zn.text,Bn=ua(Mn,n.pos);zn.parseDiagnostics.some(no=>no.code!==f.JSX_expressions_must_have_one_parent_element.code?!1:OG(no,Bn))||we(n,f.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return _;default:return x.fail()}function O(Kt,In){return ed(Kt,2112)&&ed(In,2112)}function B(Kt,In){if(Kt===2)for(let Sn of Xy(In)){let zn=Yn(Sn);if(zn.symbol&&zn.symbol.flags&32){let Mn=Sn.escapedName,Bn=Xs(Sn.valueDeclaration,Mn,788968,void 0,Mn,!1);Bn?.declarations&&Bn.declarations.some($S)&&(Mf(Bn,f.Duplicate_identifier_0,Ii(Mn),Sn),Mf(Sn,f.Duplicate_identifier_0,Ii(Mn),Bn))}}}function Q(Kt){return Kt.parent.kind===217&&Bu(Kt.left)&&Kt.left.text==="0"&&(Bo(Kt.parent.parent)&&Kt.parent.parent.expression===Kt.parent||Kt.parent.parent.kind===215)&&(ds(Kt.right)||Me(Kt.right)&&Kt.right.escapedText==="eval")}function me(Kt){let In=C5(u,12288)?n:C5(_,12288)?c:void 0;return In?(we(In,f.The_0_operator_cannot_be_applied_to_type_symbol,qo(Kt)),!1):!0}function ue(Kt){switch(Kt){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function We(Kt){tv(N)&&r(In);function In(){let Sn=u;if(PN(a.kind)&&n.kind===211&&(Sn=BQ(n,void 0,!0)),Pw(n,f.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let zn;if(be&&Er(n)&&ol(Kt,32768)){let Mn=Fe(td(n.expression),n.name.escapedText);oQ(Kt,Mn)&&(zn=f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}nb(Kt,Sn,n,c,zn)}}}function at(Kt){var In;switch(Kt){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let Sn=Wp(n),zn=LA(c);return!!zn&&fa(zn)&&!!((In=Sn?.exports)!=null&&In.size);default:return!1}}function ht(Kt){return Kt(u,_)?!1:(qt(Kt),!0)}function qt(Kt){let In=!1,Sn=T||a;if(Kt){let no=kv(u),Eo=kv(_);In=!(no===u&&Eo===_)&&!!(no&&Eo)&&Kt(no,Eo)}let zn=u,Mn=_;!In&&Kt&&([zn,Mn]=_lt(u,_,Kt));let[Bn,co]=d1(zn,Mn);Xt(Sn,In,Bn,co)||nE(Sn,In,f.Operator_0_cannot_be_applied_to_types_1_and_2,qo(a.kind),Bn,co)}function Xt(Kt,In,Sn,zn){switch(a.kind){case 37:case 35:case 38:case 36:return nE(Kt,In,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Sn,zn);default:return}}function Hn(Kt,In,Sn,zn){let Mn=En(Ka(Sn)),Bn=En(Ka(zn));if(Mn||Bn){let co=we(Kt,f.This_condition_will_always_return_0,qo(In===37||In===35?97:112));if(Mn&&Bn)return;let no=In===38||In===36?qo(54):"",Eo=Mn?zn:Sn,Yi=Ka(Eo);pa(co,vr(Eo,f.Did_you_mean_0,`${no}Number.isNaN(${gl(Yi)?Wu(Yi):"..."})`))}}function En(Kt){if(Me(Kt)&&Kt.escapedText==="NaN"){let In=rnt();return!!In&&In===cm(Kt)}return!1}}function _lt(n,a,c){let u=n,_=a,g=wg(n),T=wg(a);return c(g,T)||(u=g,_=T),[u,_]}function hlt(n){r(ue);let a=cp(n);if(!a)return z;let c=gc(a);if(!(c&1))return z;let u=(c&2)!==0;n.asteriskToken&&(u&&oe<99&&rc(n,26624),!u&&oe<2&&F.downlevelIteration&&rc(n,256));let _=mD(a);_&&_.flags&1048576&&(_=Bl(_,We=>hge(We,c,void 0)));let g=_&&b8e(_,u),T=g&&g.yieldType||z,N=g&&g.nextType||z,O=u?pA(N)||z:N,B=n.expression?Xi(n.expression):St,Q=Swe(n,B,O,u);if(_&&Q&&nb(Q,T,n.expression||n,n.expression),n.asteriskToken)return Dge(u?19:17,1,B,n.expression)||z;if(_)return oS(2,_,u)||z;let me=aOe(2,a);return me||(me=z,r(()=>{if(ce&&!dre(n)){let We=bu(n,void 0);(!We||vt(We))&&we(n,f.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),me;function ue(){n.flags&16384||Uc(n,f.A_yield_expression_is_only_allowed_in_a_generator_body),The(n)&&we(n,f.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function glt(n,a){let c=rM(n.condition,a);Ige(n.condition,c,n.whenTrue);let u=Xi(n.whenTrue,a),_=Xi(n.whenFalse,a);return Br([u,_],2)}function Lwe(n){let a=n.parent;return uu(a)&&Lwe(a)||Rs(a)&&a.argumentExpression===n}function vlt(n){let a=[n.head.text],c=[];for(let _ of n.templateSpans){let g=Xi(_.expression);C5(g,12288)&&we(_.expression,f.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(_.literal.text),c.push(ea(g,_o)?g:Ie)}if(QP(n)||Lwe(n)||dm(bu(n,void 0)||Zt,ylt))return YT(a,c);let u=n.parent.kind!==215&&O8e(n);return u?v1(yu(u)):Ie}function ylt(n){return!!(n.flags&134217856||n.flags&58982400&&ol(md(n)||Zt,402653316))}function blt(n){return d0(n)&&!KS(n.parent)?n.parent.parent:n}function RD(n,a,c,u){let _=blt(n);u5(_,a,!1),Bot(_,c);let g=Xi(n,u|1|(c?2:0));c&&c.intraExpressionInferenceSites&&(c.intraExpressionInferenceSites=void 0);let T=ol(g,2944)&&nZ(g,OQ(a,n,void 0))?qd(g):g;return Got(),xw(),T}function Ml(n,a){if(a)return Xi(n,a);let c=Fr(n);if(!c.resolvedType){let u=u_,_=rn;u_=Op,rn=void 0,c.resolvedType=Xi(n,a),rn=_,u_=u}return c.resolvedType}function kwe(n){return n=Ka(n,!0),n.kind===216||n.kind===234||Ux(n)}function $P(n,a,c){let u=vL(n);if(Jn(n)){let g=bF(n);if(g)return nge(u,g,a)}let _=_ge(u)||(c?RD(u,c,void 0,a||0):Ml(u,a));return ao(n)&&n.name.kind===207&&ha(_)&&!_.target.hasRestElement&&Nv(_)<n.name.elements.length?Elt(_,n.name):_}function Elt(n,a){let c=a.elements,u=X0(n).slice(),_=n.target.elementFlags.slice();for(let g=Nv(n);g<c.length;g++){let T=c[g];(g<c.length-1||!(T.kind===208&&T.dotDotDotToken))&&(u.push(!vc(T)&&XP(T)?PP(T,!1,!1):z),_.push(2),!vc(T)&&!XP(T)&&IE(T,z))}return sh(u,_,n.target.readonly)}function tZ(n,a){let c=lS(n)&6||sW(n)?a:eS(a);if(Jn(n)){if(oke(c))return IE(n,z),z;if(uQ(c))return IE(n,Nl),Nl}return c}function nZ(n,a){if(a){if(a.flags&3145728){let c=a.types;return ct(c,u=>nZ(n,u))}if(a.flags&58982400){let c=md(a)||Zt;return ol(c,4)&&ol(n,128)||ol(c,8)&&ol(n,256)||ol(c,64)&&ol(n,2048)||ol(c,4096)&&ol(n,8192)||nZ(n,c)}return!!(a.flags&406847616&&ol(n,128)||a.flags&256&&ol(n,256)||a.flags&2048&&ol(n,2048)||a.flags&512&&ol(n,512)||a.flags&8192&&ol(n,8192))}return!1}function QP(n){let a=n.parent;return ES(a)&&Qh(a.type)||Ux(a)&&Qh(D6(a))||tge(n)&&JT(bu(n,0))||(uu(a)||Bd(a)||bm(a))&&QP(a)||(Hl(a)||xu(a)||uN(a))&&QP(a.parent)}function ZP(n,a,c){let u=Xi(n,a,c);return QP(n)||Wte(n)?qd(u):kwe(n)?u:U_e(u,OQ(bu(n,void 0),n,void 0))}function Owe(n,a){return n.name.kind===167&&Hh(n.name),ZP(n.initializer,a)}function wwe(n,a){lWe(n),n.name.kind===167&&Hh(n.name);let c=Rwe(n,a);return Wwe(n,c,a)}function Wwe(n,a,c){if(c&&c&10){let u=Dw(a,0,!0),_=Dw(a,1,!0),g=u||_;if(g&&g.typeParameters){let T=CE(n,2);if(T){let N=Dw(Wg(T),u?0:1,!1);if(N&&!N.typeParameters){if(c&8)return Fwe(n,c),Ut;let O=nS(n),B=O.signature&&Ha(O.signature),Q=B&&HOe(B);if(Q&&!Q.typeParameters&&!ji(O.inferences,DD)){let me=Ilt(O,g.typeParameters),ue=qme(g,me),We=nn(O.inferences,at=>$_e(at.typeParameter));if(J_e(ue,N,(at,ht)=>{Fg(We,at,ht,0,!0)}),ct(We,DD)&&(K_e(ue,N,(at,ht)=>{Fg(We,at,ht)}),!Tlt(O.inferences,We)))return Alt(O.inferences,We),O.inferredTypeParameters=ro(O.inferredTypeParameters,me),XT(ue)}return XT(qOe(g,N,O))}}}}return a}function Fwe(n,a){if(a&2){let c=nS(n);c.flags|=4}}function DD(n){return!!(n.candidates||n.contraCandidates)}function Slt(n){return!!(n.candidates||n.contraCandidates||SLe(n.typeParameter))}function Tlt(n,a){for(let c=0;c<n.length;c++)if(DD(n[c])&&DD(a[c]))return!0;return!1}function Alt(n,a){for(let c=0;c<n.length;c++)!DD(n[c])&&DD(a[c])&&(n[c]=a[c])}function Ilt(n,a){let c=[],u,_;for(let g of a){let T=g.symbol.escapedName;if(mge(n.inferredTypeParameters,T)||mge(c,T)){let N=xlt(ro(n.inferredTypeParameters,c),T),O=xa(262144,N),B=zp(O);B.target=g,u=pn(u,g),_=pn(_,B),c.push(B)}else c.push(g)}if(_){let g=np(u,_);for(let T of _)T.mapper=g}return c}function mge(n,a){return ct(n,c=>c.symbol.escapedName===a)}function xlt(n,a){let c=a.length;for(;c>1&&a.charCodeAt(c-1)>=48&&a.charCodeAt(c-1)<=57;)c--;let u=a.slice(0,c);for(let _=1;;_++){let g=u+_;if(!mge(n,g))return g}}function zwe(n){let a=dA(n);if(a&&!a.typeParameters)return Ha(a)}function Rlt(n){let a=Xi(n.expression),c=yw(a,n.expression),u=zwe(a);return u&&_Q(u,n,c!==a)}function td(n){let a=_ge(n);if(a)return a;if(n.flags&268435456&&rn){let _=rn[Fa(n)];if(_)return _}let c=Ve,u=Xi(n,64);if(Ve!==c){let _=rn||(rn=[]);_[Fa(n)]=u,cre(n,n.flags|268435456)}return u}function _ge(n){let a=Ka(n,!0);if(Ux(a)){let c=D6(a);if(!Qh(c))return si(c)}if(a=Ka(n),py(a)){let c=_ge(a.expression);return c?pA(c):void 0}if(Bo(a)&&a.expression.kind!==108&&!Xd(a,!0)&&!owe(a))return gS(a)?Rlt(a):zwe(AD(a.expression));if(ES(a)&&!Qh(a.type))return si(a.type);if(wE(n)||sC(n))return Xi(n)}function M5(n){let a=Fr(n);if(a.contextFreeType)return a.contextFreeType;u5(n,z,!1);let c=a.contextFreeType=Xi(n,4);return xw(),c}function Xi(n,a,c){var u,_;(u=qn)==null||u.push(qn.Phase.Check,"checkExpression",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let g=R;R=n,S=0;let T=Nlt(n,a,c),N=Wwe(n,T,a);return eZ(N)&&Dlt(n,N),R=g,(_=qn)==null||_.pop(),N}function Dlt(n,a){n.parent.kind===211&&n.parent.expression===n||n.parent.kind===212&&n.parent.expression===n||(n.kind===80||n.kind===166)&&hZ(n)||n.parent.kind===186&&n.parent.exprName===n||n.parent.kind===281||we(n,f.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),xf(F)&&(x.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!Pb(n)&&we(n,f.Cannot_access_ambient_const_enums_when_0_is_enabled,Ge))}function Clt(n,a){if(ap(n)){if(wV(n))return nge(n.expression,WV(n),a);if(Ux(n))return cwe(n,a)}return Xi(n.expression,a)}function Nlt(n,a,c){let u=n.kind;if(i)switch(u){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(u){case 80:return cot(n,a);case 81:return Rat(n);case 110:return c5(n);case 108:return Ehe(n);case 106:return Pe;case 15:case 11:return nhe(n)?ze:v1(yu(n.text));case 9:return Xge(n),v1(Wm(+n.text));case 10:return Mpt(n),v1($$({negative:!1,base10Value:HC(n.text)}));case 112:return An;case 97:return Ot;case 228:return vlt(n);case 14:return Ks;case 209:return mOe(n,a,c);case 210:return oat(n,a);case 211:return BQ(n,a);case 166:return NOe(n,a);case 212:return jat(n,a);case 213:if(n.expression.kind===102)return Est(n);case 214:return bst(n,a);case 215:return Sst(n);case 217:return Clt(n,a);case 231:return gdt(n);case 218:case 219:return Rwe(n,a);case 221:return tlt(n);case 216:case 234:return Tst(n,a);case 235:return xst(n);case 233:return uwe(n);case 238:return Rst(n);case 236:return Dst(n);case 220:return Zst(n);case 222:return nlt(n);case 223:return rlt(n);case 224:return ilt(n);case 225:return olt(n);case 226:return Te(n,a);case 227:return glt(n,a);case 230:return Zot(n,a);case 232:return St;case 229:return hlt(n);case 237:return eat(n);case 294:return bat(n,a);case 284:return cat(n,a);case 285:return sat(n,a);case 288:return dat(n);case 292:return pat(n,a);case 286:x.fail("Shouldn't ever directly check a JsxOpeningElement")}return it}function Bwe(n){Jh(n),n.expression&&Uc(n.expression,f.Type_expected),sa(n.constraint),sa(n.default);let a=UT(dr(n));md(a),dtt(a)||we(n.default,f.Type_parameter_0_has_a_circular_default,Pn(a));let c=iu(a),u=KT(a);c&&u&&Cd(u,hp(Gi(c,Q0(a,u)),u),n.default,f.Type_0_does_not_satisfy_the_constraint_1),E1(n),r(()=>iM(n.name,f.Type_parameter_name_cannot_be_0))}function Plt(n){var a,c;if(Gd(n.parent)||Kr(n.parent)||Xf(n.parent)){let u=UT(dr(n)),_=z_e(u)&24576;if(_){let g=dr(n.parent);if(Xf(n.parent)&&!(br(Cs(g))&52))we(n,f.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(_===8192||_===16384){(a=qn)==null||a.push(qn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Hd(Cs(g)),id:Hd(u)});let T=X7(g,u,_===16384?X:ae),N=X7(g,u,_===16384?ae:X),O=u;L=u,Cd(T,N,n,f.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),L=O,(c=qn)==null||c.pop()}}}}function Gwe(n){Jh(n),W5(n);let a=cp(n);Wr(n,31)&&(a.kind===176&&gf(a.body)||we(n,f.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Me(n.name)&&n.name.escapedText==="constructor"&&we(n.name,f.constructor_cannot_be_used_as_a_parameter_property_name)),!n.initializer&&$C(n)&&ko(n.name)&&a.body&&we(n,f.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),n.name&&Me(n.name)&&(n.name.escapedText==="this"||n.name.escapedText==="new")&&(a.parameters.indexOf(n)!==0&&we(n,f.A_0_parameter_must_be_the_first_parameter,n.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&we(n,f.A_constructor_cannot_have_a_this_parameter),a.kind===219&&we(n,f.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&we(n,f.get_and_set_accessors_cannot_declare_this_parameters)),n.dotDotDotToken&&!ko(n.name)&&!ea(wm(Yn(n.symbol)),Lp)&&we(n,f.A_rest_parameter_must_be_of_an_array_type)}function Mlt(n){let a=Llt(n);if(!a){we(n,f.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let c=kf(a),u=df(c);if(!u)return;sa(n.type);let{parameterName:_}=n;if(u.kind===0||u.kind===2)Q$(_);else if(u.parameterIndex>=0){if(Td(c)&&u.parameterIndex===c.parameters.length-1)we(_,f.A_type_predicate_cannot_reference_a_rest_parameter);else if(u.type){let g=()=>So(void 0,f.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Cd(u.type,Yn(c.parameters[u.parameterIndex]),n.type,void 0,g)}}else if(_){let g=!1;for(let{name:T}of a.parameters)if(ko(T)&&Vwe(T,_,u.parameterName)){g=!0;break}g||we(n.parameterName,f.Cannot_find_parameter_0,u.parameterName)}}function Llt(n){switch(n.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let a=n.parent;if(n===a.type)return a}}function Vwe(n,a,c){for(let u of n.elements){if(vc(u))continue;let _=u.name;if(_.kind===80&&_.escapedText===c)return we(a,f.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,c),!0;if((_.kind===207||_.kind===206)&&Vwe(_,a,c))return!0}}function Mw(n){n.kind===181?apt(n):(n.kind===184||n.kind===262||n.kind===185||n.kind===179||n.kind===176||n.kind===180)&&SZ(n);let a=gc(n);a&4||((a&3)===3&&oe<99&&rc(n,6144),(a&3)===2&&oe<4&&rc(n,64),a&3&&oe<2&&rc(n,128)),B5(qv(n)),mdt(n),an(n.parameters,Gwe),n.type&&sa(n.type),r(c);function c(){Pct(n);let u=Tf(n),_=u;if(Jn(n)){let g=yb(n);if(g&&g.typeExpression&&Yp(g.typeExpression.type)){let T=dA(si(g.typeExpression));T&&T.declaration&&(u=Tf(T.declaration),_=g.typeExpression.type)}}if(ce&&!u)switch(n.kind){case 180:we(n,f.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:we(n,f.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(u&&_){let g=gc(n);if((g&5)===1){let T=si(u);T===jn?we(_,f.A_generator_cannot_have_a_void_type_annotation):hge(T,g,_)}else(g&3)===2&&dct(n,u,_)}n.kind!==181&&n.kind!==324&&sb(n)}}function hge(n,a,c){let u=oS(0,n,(a&2)!==0)||z,_=oS(1,n,(a&2)!==0)||u,g=oS(2,n,(a&2)!==0)||Zt,T=Ewe(u,_,g,!!(a&2));return Cd(T,n,c)}function klt(n){let a=new Map,c=new Map,u=new Map;for(let g of n.members)if(g.kind===176)for(let T of g.parameters)wu(T,g)&&!ko(T.name)&&_(a,T.name,T.name.escapedText,3);else{let T=zo(g),N=g.name;if(!N)continue;let O=Ci(N),B=O&&T?16:0,Q=O?u:T?c:a,me=N&&Yge(N);if(me)switch(g.kind){case 177:_(Q,N,me,1|B);break;case 178:_(Q,N,me,2|B);break;case 172:_(Q,N,me,3|B);break;case 174:_(Q,N,me,8|B);break}}function _(g,T,N,O){let B=g.get(N);if(B)if((B&16)!==(O&16))we(T,f.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Vl(T));else{let Q=!!(B&8),me=!!(O&8);Q||me?Q!==me&&we(T,f.Duplicate_identifier_0,Vl(T)):B&O&-17?we(T,f.Duplicate_identifier_0,Vl(T)):g.set(N,B|O)}else g.set(N,O)}}function Olt(n){for(let a of n.members){let c=a.name;if(zo(a)&&c){let _=Yge(c);switch(_){case"name":case"length":case"caller":case"arguments":if(de)break;case"prototype":let g=f.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,T=pE(dr(n));we(c,g,_,T);break}}}}function jwe(n){let a=new Map;for(let c of n.members)if(c.kind===171){let u,_=c.name;switch(_.kind){case 11:case 9:u=_.text;break;case 80:u=ar(_);break;default:continue}a.get(u)?(we(mo(c.symbol.valueDeclaration),f.Duplicate_identifier_0,u),we(c.name,f.Duplicate_identifier_0,u)):a.set(u,!0)}}function gge(n){if(n.kind===264){let c=dr(n);if(c.declarations&&c.declarations.length>0&&c.declarations[0]!==n)return}let a=Jme(dr(n));if(a?.declarations){let c=new Map;for(let u of a.declarations)u.parameters.length===1&&u.parameters[0].type&&aA(si(u.parameters[0].type),_=>{let g=c.get(Hd(_));g?g.declarations.push(u):c.set(Hd(_),{type:_,declarations:[u]})});c.forEach(u=>{if(u.declarations.length>1)for(let _ of u.declarations)we(_,f.Duplicate_index_signature_for_type_0,Pn(u.type))})}}function Uwe(n){!Jh(n)&&!Dpt(n)&&TZ(n.name),W5(n),vge(n),Wr(n,64)&&n.kind===172&&n.initializer&&we(n,f.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,is(n.name))}function wlt(n){return Ci(n.name)&&we(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),Uwe(n)}function Wlt(n){lWe(n)||TZ(n.name),El(n)&&n.asteriskToken&&Me(n.name)&&ar(n.name)==="constructor"&&we(n.name,f.Class_constructor_may_not_be_a_generator),r8e(n),Wr(n,64)&&n.kind===174&&n.body&&we(n,f.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,is(n.name)),Ci(n.name)&&!Oc(n)&&we(n,f.Private_identifiers_are_not_allowed_outside_class_bodies),vge(n)}function vge(n){if(Ci(n.name)&&oe<99){for(let a=O_(n);a;a=O_(a))Fr(a).flags|=1048576;if(Dc(n.parent)){let a=ghe(n.parent);a&&(Fr(n.name).flags|=32768,Fr(a).flags|=4096)}}}function Flt(n){Jh(n),Ao(n,sa)}function zlt(n){Mw(n),xpt(n)||Rpt(n),sa(n.body);let a=dr(n),c=Vs(a,n.kind);if(n===c&&oZ(a),_l(n.body))return;r(_);return;function u(g){return kd(g)?!0:g.kind===172&&!zo(g)&&!!g.initializer}function _(){let g=n.parent;if(qE(g)){vhe(n.parent,g);let T=yhe(g),N=Qke(n.body);if(N){if(T&&we(N,f.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!fe&&(ct(n.parent.members,u)||ct(n.parameters,B=>Wr(B,31))))if(!Blt(N,n.body))we(N,f.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let B;for(let Q of n.body.statements){if(Cc(Q)&&xS(Rl(Q.expression))){B=Q;break}if(Hwe(Q))break}B===void 0&&we(n,f.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else T||we(n,f.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Blt(n,a){let c=Zg(n.parent);return Cc(c)&&c.parent===a}function Hwe(n){return n.kind===108||n.kind===110?!0:Ute(n)?!1:!!Ao(n,Hwe)}function qwe(n){Me(n.name)&&ar(n.name)==="constructor"&&Kr(n.parent)&&we(n.name,f.Class_constructor_may_not_be_an_accessor),r(a),sa(n.body),vge(n);function a(){if(!SZ(n)&&!_pt(n)&&TZ(n.name),k5(n),Mw(n),n.kind===177&&!(n.flags&33554432)&&gf(n.body)&&n.flags&512&&(n.flags&1024||we(n.name,f.A_get_accessor_must_return_a_value)),n.name.kind===167&&Hh(n.name),pD(n)){let u=dr(n),_=Vs(u,177),g=Vs(u,178);if(_&&g&&!(PD(_)&1)){Fr(_).flags|=1;let T=Wd(_),N=Wd(g);(T&64)!==(N&64)&&(we(_.name,f.Accessors_must_both_be_abstract_or_non_abstract),we(g.name,f.Accessors_must_both_be_abstract_or_non_abstract)),(T&4&&!(N&6)||T&2&&!(N&2))&&(we(_.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),we(g.name,f.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let c=hE(dr(n));n.kind===177&&cge(n,c)}}function Glt(n){k5(n)}function Vlt(n,a,c){return n.typeArguments&&c<n.typeArguments.length?si(n.typeArguments[c]):rZ(n,a)[c]}function rZ(n,a){return Yy(nn(n.typeArguments,si),a,oh(a),Jn(n))}function Jwe(n,a){let c,u,_=!0;for(let g=0;g<a.length;g++){let T=iu(a[g]);T&&(c||(c=rZ(n,a),u=np(a,c)),_=_&&Cd(c[g],Gi(T,u),n.typeArguments[g],f.Type_0_does_not_satisfy_the_constraint_1))}return _}function jlt(n,a){if(!Lt(n))return a.flags&524288&&Pi(a).typeParameters||(br(n)&4?n.target.localTypeParameters:void 0)}function yge(n){let a=si(n);if(!Lt(a)){let c=Fr(n).resolvedSymbol;if(c)return jlt(a,c)}}function bge(n){if(j5(n,n.typeArguments),n.kind===183&&!Jn(n)&&!hL(n)&&n.typeArguments&&n.typeName.end!==n.typeArguments.pos){let a=Nn(n);Lte(a,n.typeName.end)===25&&sS(n,ua(a.text,n.typeName.end),1,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}an(n.typeArguments,sa),Kwe(n)}function Kwe(n){let a=si(n);if(!Lt(a)){n.typeArguments&&r(()=>{let u=yge(n);u&&Jwe(n,u)});let c=Fr(n).resolvedSymbol;c&&ct(c.declarations,u=>Cx(u)&&!!(u.flags&536870912))&&Tv(T5(n),c.declarations,c.escapedName)}}function Ult(n){let a=Vr(n.parent,X8);if(!a)return;let c=yge(a);if(!c)return;let u=iu(c[a.typeArguments.indexOf(n)]);return u&&Gi(u,np(c,rZ(a,c)))}function Hlt(n){HLe(n)}function qlt(n){an(n.members,sa),r(a);function a(){let c=M2e(n);pZ(c,c.symbol),gge(n),jwe(n)}}function Jlt(n){sa(n.elementType)}function Klt(n){let a=!1,c=!1;for(let u of n.elements){let _=l_e(u);if(_&8){let g=si(u.type);if(!Lv(g)){we(u,f.A_rest_element_type_must_be_an_array_type);break}(ff(g)||ha(g)&&g.target.combinedFlags&4)&&(_|=4)}if(_&4){if(c){sn(u,f.A_rest_element_cannot_follow_another_rest_element);break}c=!0}else if(_&2){if(c){sn(u,f.An_optional_element_cannot_follow_a_rest_element);break}a=!0}else if(_&1&&a){sn(u,f.A_required_element_cannot_follow_an_optional_element);break}}an(n.elements,sa),si(n)}function Xlt(n){an(n.types,sa),si(n)}function Xwe(n,a){if(!(n.flags&8388608))return n;let c=n.objectType,u=n.indexType,_=vu(c)&&O$(c)===2?h2e(c,0):v_(c,0),g=!!Uh(c,gt);if(Lu(u,T=>ea(T,_)||g&&f1(T,gt)))return a.kind===212&&Sh(a)&&br(c)&32&&ih(c)&1&&we(a,f.Index_signature_in_type_0_only_permits_reading,Pn(c)),n;if(QT(c)){let T=J$(u,a);if(T){let N=aA(ou(c),O=>Qo(O,T));if(N&&Kp(N)&6)return we(a,f.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ii(T)),it}}return we(a,f.Type_0_cannot_be_used_to_index_type_1,Pn(u),Pn(c)),it}function Ylt(n){sa(n.objectType),sa(n.indexType),Xwe(x2e(n),n)}function $lt(n){Qlt(n),sa(n.typeParameter),sa(n.nameType),sa(n.type),n.type||IE(n,z);let a=b_e(n),c=Dv(a);if(c)Cd(c,fs,n.nameType);else{let u=Gp(a);Cd(u,fs,V1(n.typeParameter))}}function Qlt(n){var a;if((a=n.members)!=null&&a.length)return sn(n.members[0],f.A_mapped_type_may_not_declare_properties_or_methods)}function Zlt(n){Q$(n)}function ect(n){gpt(n),sa(n.type)}function tct(n){Ao(n,sa)}function nct(n){Rn(n,c=>c.parent&&c.parent.kind===194&&c.parent.extendsType===c)||sn(n,f.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),sa(n.typeParameter);let a=dr(n.typeParameter);if(a.declarations&&a.declarations.length>1){let c=Pi(a);if(!c.typeParametersChecked){c.typeParametersChecked=!0;let u=UT(a),_=pte(a,168);if(!A8e(_,[u],g=>[g])){let g=ai(a);for(let T of _)we(T.name,f.All_declarations_of_0_must_have_identical_constraints,g)}}}sb(n)}function rct(n){for(let a of n.templateSpans){sa(a.type);let c=si(a.type);Cd(c,_o,a.type)}si(n)}function ict(n){sa(n.argument),n.attributes&&oR(n.attributes,sn),Kwe(n)}function oct(n){n.dotDotDotToken&&n.questionToken&&sn(n,f.A_tuple_member_cannot_be_both_optional_and_rest),n.type.kind===190&&sn(n.type,f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),n.type.kind===191&&sn(n.type,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),sa(n.type),si(n)}function L5(n){return(zu(n,2)||kd(n))&&!!(n.flags&33554432)}function iZ(n,a){let c=AZ(n);if(n.parent.kind!==264&&n.parent.kind!==263&&n.parent.kind!==231&&n.flags&33554432){let u=S9(n);u&&u.flags&128&&!(c&128)&&!(t_(n.parent)&&Il(n.parent.parent)&&qm(n.parent.parent))&&(c|=32),c|=128}return c&a}function oZ(n){r(()=>act(n))}function act(n){function a(Kt,In){return In!==void 0&&In.parent===Kt[0].parent?In:Kt[0]}function c(Kt,In,Sn,zn,Mn){if((zn^Mn)!==0){let co=iZ(a(Kt,In),Sn);an(Kt,no=>{let Eo=iZ(no,Sn)^co;Eo&32?we(mo(no),f.Overload_signatures_must_all_be_exported_or_non_exported):Eo&128?we(mo(no),f.Overload_signatures_must_all_be_ambient_or_non_ambient):Eo&6?we(mo(no)||no,f.Overload_signatures_must_all_be_public_private_or_protected):Eo&64&&we(mo(no),f.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function u(Kt,In,Sn,zn){if(Sn!==zn){let Mn=OA(a(Kt,In));an(Kt,Bn=>{OA(Bn)!==Mn&&we(mo(Bn),f.Overload_signatures_must_all_be_optional_or_required)})}}let _=230,g=0,T=_,N=!1,O=!0,B=!1,Q,me,ue,We=n.declarations,at=(n.flags&16384)!==0;function ht(Kt){if(Kt.name&&_l(Kt.name))return;let In=!1,Sn=Ao(Kt.parent,Mn=>{if(In)return Mn;In=Mn===Kt});if(Sn&&Sn.pos===Kt.end&&Sn.kind===Kt.kind){let Mn=Sn.name||Sn,Bn=Sn.name;if(Kt.name&&Bn&&(Ci(Kt.name)&&Ci(Bn)&&Kt.name.escapedText===Bn.escapedText||Pa(Kt.name)&&Pa(Bn)&&kg(Hh(Kt.name),Hh(Bn))||Km(Kt.name)&&Km(Bn)&&AC(Kt.name)===AC(Bn))){if((Kt.kind===174||Kt.kind===173)&&zo(Kt)!==zo(Sn)){let no=zo(Kt)?f.Function_overload_must_be_static:f.Function_overload_must_not_be_static;we(Mn,no)}return}if(gf(Sn.body)){we(Mn,f.Function_implementation_name_must_be_0,is(Kt.name));return}}let zn=Kt.name||Kt;at?we(zn,f.Constructor_implementation_is_missing):Wr(Kt,64)?we(zn,f.All_declarations_of_an_abstract_method_must_be_consecutive):we(zn,f.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let qt=!1,Xt=!1,Hn=!1,En=[];if(We)for(let Kt of We){let In=Kt,Sn=In.flags&33554432,zn=In.parent&&(In.parent.kind===264||In.parent.kind===187)||Sn;if(zn&&(ue=void 0),(In.kind===263||In.kind===231)&&!Sn&&(Hn=!0),In.kind===262||In.kind===174||In.kind===173||In.kind===176){En.push(In);let Mn=iZ(In,_);g|=Mn,T&=Mn,N=N||OA(In),O=O&&OA(In);let Bn=gf(In.body);Bn&&Q?at?Xt=!0:qt=!0:ue?.parent===In.parent&&ue.end!==In.pos&&ht(ue),Bn?Q||(Q=In):B=!0,ue=In,zn||(me=In)}Jn(Kt)&&Lo(Kt)&&Kt.jsDoc&&(B=yn(z9(Kt))>0)}if(Xt&&an(En,Kt=>{we(Kt,f.Multiple_constructor_implementations_are_not_allowed)}),qt&&an(En,Kt=>{we(mo(Kt)||Kt,f.Duplicate_function_implementation)}),Hn&&!at&&n.flags&16&&We){let Kt=Cr(We,In=>In.kind===263).map(In=>vr(In,f.Consider_adding_a_declare_modifier_to_this_class));an(We,In=>{let Sn=In.kind===263?f.Class_declaration_cannot_implement_overload_list_for_0:In.kind===262?f.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Sn&&pa(we(mo(In)||In,Sn,$s(n)),...Kt)})}if(me&&!me.body&&!Wr(me,64)&&!me.questionToken&&ht(me),B&&(We&&(c(We,Q,_,g,T),u(We,Q,N,O)),Q)){let Kt=J0(n),In=kf(Q);for(let Sn of Kt)if(!xrt(In,Sn)){let zn=Sn.declaration&&wb(Sn.declaration)?Sn.declaration.parent.tagName:Sn.declaration;pa(we(zn,f.This_overload_signature_is_not_compatible_with_its_implementation_signature),vr(Q,f.The_implementation_signature_is_declared_here));break}}}function Lw(n){r(()=>sct(n))}function sct(n){let a=n.localSymbol;if(!a&&(a=dr(n),!a.exportSymbol)||Vs(a,n.kind)!==n)return;let c=0,u=0,_=0;for(let B of a.declarations){let Q=O(B),me=iZ(B,2080);me&32?me&2048?_|=Q:c|=Q:u|=Q}let g=c|u,T=c&u,N=_&g;if(T||N)for(let B of a.declarations){let Q=O(B),me=mo(B);Q&N?we(me,f.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,is(me)):Q&T&&we(me,f.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,is(me))}function O(B){let Q=B;switch(Q.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return sd(Q)||dg(Q)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:let me=Q,ue=dl(me)?me.expression:me.right;if(!gl(ue))return 1;Q=ue;case 271:case 274:case 273:let We=0,at=fc(dr(Q));return an(at.declarations,ht=>{We|=O(ht)}),We;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return x.failBadSyntaxKind(Q)}}}function eM(n,a,c,...u){let _=kw(n,a);return _&&pA(_,a,c,...u)}function kw(n,a,c){if(vt(n))return;let u=n;if(u.promisedTypeOfPromise)return u.promisedTypeOfPromise;if(Jy(n,W7(!1)))return u.promisedTypeOfPromise=Ss(n)[0];if(N5(Pg(n),402915324))return;let _=Fe(n,"then");if(vt(_))return;let g=_?Co(_,0):je;if(g.length===0){a&&we(a,f.A_promise_must_have_a_then_method);return}let T,N;for(let Q of g){let me=bE(Q);me&&me!==jn&&!y_(n,me,X_)?T=me:N=pn(N,Q)}if(!N){x.assertIsDefined(T),c&&(c.value=T),a&&we(a,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Pn(n),Pn(T));return}let O=Wf(Br(nn(N,oge)),2097152);if(vt(O))return;let B=Co(O,0);if(B.length===0){a&&we(a,f.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return u.promisedTypeOfPromise=Br(nn(B,oge),2)}function Ow(n,a,c,u,..._){return(a?pA(n,c,u,..._):kv(n,c,u,..._))||it}function Ywe(n){if(N5(Pg(n),402915324))return!1;let a=Fe(n,"then");return!!a&&Co(Wf(a,2097152),0).length>0}function aZ(n){var a;if(n.flags&16777216){let c=s_e(!1);return!!c&&n.aliasSymbol===c&&((a=n.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function tM(n){return n.flags&1048576?Gs(n,tM):aZ(n)?n.aliasTypeArguments[0]:n}function $we(n){if(vt(n)||aZ(n))return!1;if(QT(n)){let a=md(n);if(a?a.flags&3||Og(a)||dm(a,Ywe):ol(n,8650752))return!0}return!1}function lct(n){let a=s_e(!0);if(a)return hD(a,[tM(n)])}function cct(n){if($we(n)){let a=lct(n);if(a)return a}return x.assert(aZ(n)||kw(n)===void 0,"type provided should not be a non-generic 'promise'-like."),n}function pA(n,a,c,...u){let _=kv(n,a,c,...u);return _&&cct(_)}function kv(n,a,c,...u){if(vt(n)||aZ(n))return n;let _=n;if(_.awaitedTypeOfType)return _.awaitedTypeOfType;if(n.flags&1048576){if(Zb.lastIndexOf(n.id)>=0){a&&we(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let N=a?B=>kv(B,a,c,...u):kv;Zb.push(n.id);let O=Gs(n,N);return Zb.pop(),_.awaitedTypeOfType=O}if($we(n))return _.awaitedTypeOfType=n;let g={value:void 0},T=kw(n,void 0,g);if(T){if(n.id===T.id||Zb.lastIndexOf(T.id)>=0){a&&we(a,f.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}Zb.push(n.id);let N=kv(T,a,c,...u);return Zb.pop(),N?_.awaitedTypeOfType=N:void 0}if(Ywe(n)){if(a){x.assertIsDefined(c);let N;g.value&&(N=So(N,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,Pn(n),Pn(g.value))),N=So(N,c,...u),La.add(eg(Nn(a),a,N))}return}return _.awaitedTypeOfType=n}function dct(n,a,c){let u=si(a);if(oe>=2){if(Lt(u))return;let g=W7(!0);if(g!==ho&&!Jy(u,g)){_(f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,c,Pn(kv(u)||jn));return}}else{if(pct(a),Lt(u))return;let g=mL(a);if(g===void 0){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Pn(u));return}let T=bs(g,111551,!0),N=T?Yn(T):it;if(Lt(N)){g.kind===80&&g.escapedText==="Promise"&&Rv(u)===W7(!1)?we(c,f.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Wu(g));return}let O=wtt(!0);if(O===da){_(f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,c,Wu(g));return}let B=f.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Cd(N,O,c,B,()=>a===c?void 0:So(void 0,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let me=g&&dp(g),ue=gu(n.locals,me.escapedText,111551);if(ue){we(ue.valueDeclaration,f.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,ar(me),Wu(g));return}}Ow(u,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function _(g,T,N,O){if(T===N)we(N,g,O);else{let B=we(N,f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);pa(B,vr(T,g,O))}}}function uct(n){let a=xD(n);$Q(a,n);let c=Ha(a);if(c.flags&1)return;let u=lge(n);if(!u?.resolvedReturnType)return;let _,g=u.resolvedReturnType;switch(n.parent.kind){case 263:case 231:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!$){_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:_=f.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:_=f.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return x.failBadSyntaxKind(n.parent)}Cd(c,g,n.expression,_)}function ww(n,a,c,u,_,g=c.length,T=0){let N=P.createFunctionTypeNode(void 0,je,P.createKeywordTypeNode(133));return jh(N,n,a,c,u,_,g,T)}function Ege(n,a,c,u,_,g,T){let N=ww(n,a,c,u,_,g,T);return XT(N)}function Qwe(n){return Ege(void 0,void 0,je,n)}function Zwe(n){let a=Dm("value",n);return Ege(void 0,void 0,[a],jn)}function pct(n){e8e(n&&mL(n),!1)}function e8e(n,a){if(!n)return;let c=dp(n),u=(n.kind===80?788968:1920)|2097152,_=Xs(c,c.escapedText,u,void 0,void 0,!0);if(_&&_.flags&2097152){if(ot&&sm(_)&&!Bw(fc(_))&&!of(_))Oy(_);else if(a&&xf(F)&&ld(F)>=5&&!sm(_)&&!ct(_.declarations,Sb)){let g=we(n,f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),T=Dr(_.declarations||je,Py);T&&pa(g,vr(T,f._0_was_imported_here,ar(c)))}}}function CD(n){let a=Sge(n);a&&Su(a)&&e8e(a,!0)}function Sge(n){if(n)switch(n.kind){case 193:case 192:return t8e(n.types);case 194:return t8e([n.trueType,n.falseType]);case 196:case 202:return Sge(n.type);case 183:return n.typeName}}function t8e(n){let a;for(let c of n){for(;c.kind===196||c.kind===202;)c=c.type;if(c.kind===146||!H&&(c.kind===201&&c.literal.kind===106||c.kind===157))continue;let u=Sge(c);if(!u)return;if(a){if(!Me(a)||!Me(u)||a.escapedText!==u.escapedText)return}else a=u}return a}function sZ(n){let a=Jc(n);return gh(n)?x9(a):a}function k5(n){if(!ZS(n)||!Hp(n)||!n.modifiers||!yW($,n,n.parent,n.parent.parent))return;let a=Dr(n.modifiers,Xc);if(a){if($?(rc(a,8),n.kind===169&&rc(a,32)):oe<99&&(rc(a,8),Zl(n)?n.name?I8e(n)&&rc(a,8388608):rc(a,8388608):Dc(n)||(Ci(n.name)&&(El(n)||Kv(n)||su(n))&&rc(a,8388608),Pa(n.name)&&rc(a,16777216))),F.emitDecoratorMetadata)switch(rc(a,16),n.kind){case 263:let c=Ah(n);if(c)for(let T of c.parameters)CD(sZ(T));break;case 177:case 178:let u=n.kind===177?178:177,_=Vs(dr(n),u);CD(lm(n)||_&&lm(_));break;case 174:for(let T of n.parameters)CD(sZ(T));CD(Tf(n));break;case 172:CD(Jc(n));break;case 169:CD(sZ(n));let g=n.parent;for(let T of g.parameters)CD(sZ(T));CD(Tf(g));break}for(let c of n.modifiers)Xc(c)&&uct(c)}}function fct(n){r(a);function a(){r8e(n),Hge(n),nM(n,n.name)}}function mct(n){n.typeExpression||we(n.name,f.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),n.name&&iM(n.name,f.Type_alias_name_cannot_be_0),sa(n.typeExpression),B5(qv(n))}function _ct(n){sa(n.constraint);for(let a of n.typeParameters)sa(a)}function hct(n){sa(n.typeExpression)}function gct(n){sa(n.typeExpression);let a=Rb(n);if(a){let c=O8(a,I6);if(yn(c)>1)for(let u=1;u<yn(c);u++){let _=c[u].tagName;we(_,f._0_tag_already_specified,ar(_))}}}function vct(n){n.name&&V5(n.name,!0)}function yct(n){sa(n.typeExpression)}function bct(n){sa(n.typeExpression)}function Ect(n){r(a),Mw(n);function a(){!n.type&&!dx(n)&&IE(n,z)}}function Sct(n){let a=Rb(n);a&&hs(a)&&we(n.tagName,f.An_arrow_function_cannot_have_a_this_parameter)}function Tct(n){let a=Rb(n);(!a||!Zl(a)&&!Dc(a))&&we(a,f.JSDoc_0_is_not_attached_to_a_class,ar(n.tagName))}function Act(n){let a=Rb(n);if(!a||!Zl(a)&&!Dc(a)){we(a,f.JSDoc_0_is_not_attached_to_a_class,ar(n.tagName));return}let c=Eb(a).filter(_I);x.assert(c.length>0),c.length>1&&we(c[1],f.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let u=n8e(n.class.expression),_=qE(a);if(_){let g=n8e(_.expression);g&&u.escapedText!==g.escapedText&&we(u,f.JSDoc_0_1_does_not_match_the_extends_2_clause,ar(n.tagName),ar(u),ar(g))}}function Ict(n){let a=PS(n);a&&kd(a)&&we(n,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function n8e(n){switch(n.kind){case 80:return n;case 211:return n.name;default:return}}function r8e(n){var a;k5(n),Mw(n);let c=gc(n);if(n.name&&n.name.kind===167&&Hh(n.name),pD(n)){let g=dr(n),T=n.localSymbol||g,N=(a=T.declarations)==null?void 0:a.find(O=>O.kind===n.kind&&!(O.flags&524288));n===N&&oZ(T),g.parent&&oZ(g)}let u=n.kind===173?void 0:n.body;if(sa(u),cge(n,mD(n)),r(_),Jn(n)){let g=yb(n);g&&g.typeExpression&&!Rhe(si(g.typeExpression),n)&&we(g.typeExpression.type,f.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function _(){Tf(n)||(_l(u)&&!L5(n)&&IE(n,z),c&1&&gf(u)&&Ha(kf(n)))}}function sb(n){r(a);function a(){let c=Nn(n),u=kp.get(c.path);u||(u=[],kp.set(c.path,u)),u.push(n)}}function i8e(n,a){for(let c of n)switch(c.kind){case 263:case 231:xct(c,a),Tge(c,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:s8e(c,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:c.body&&s8e(c,a),Tge(c,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Tge(c,a);break;case 195:Rct(c,a);break;default:x.assertNever(c,"Node should not have been registered for unused identifiers check")}}function o8e(n,a,c){let u=mo(n)||n,_=Cx(n)?f._0_is_declared_but_never_used:f._0_is_declared_but_its_value_is_never_read;c(n,0,vr(u,_,a))}function Ww(n){return Me(n)&&ar(n).charCodeAt(0)===95}function xct(n,a){for(let c of n.members)switch(c.kind){case 174:case 172:case 177:case 178:if(c.kind===178&&c.symbol.flags&32768)break;let u=dr(c);!u.isReferenced&&(zu(c,2)||Ld(c)&&Ci(c.name))&&!(c.flags&33554432)&&a(c,0,vr(c.name,f._0_is_declared_but_its_value_is_never_read,ai(u)));break;case 176:for(let _ of c.parameters)!_.symbol.isReferenced&&Wr(_,2)&&a(_,0,vr(_.name,f.Property_0_is_declared_but_its_value_is_never_read,$s(_.symbol)));break;case 181:case 240:case 175:break;default:x.fail("Unexpected class member")}}function Rct(n,a){let{typeParameter:c}=n;Age(c)&&a(n,1,vr(n,f._0_is_declared_but_its_value_is_never_read,ar(c.name)))}function Tge(n,a){let c=dr(n).declarations;if(!c||Da(c)!==n)return;let u=qv(n),_=new Set;for(let g of u){if(!Age(g))continue;let T=ar(g.name),{parent:N}=g;if(N.kind!==195&&N.typeParameters.every(Age)){if(db(_,N)){let O=Nn(N),B=Df(N)?PV(N):MV(O,N.typeParameters),me=N.typeParameters.length===1?[f._0_is_declared_but_its_value_is_never_read,T]:[f.All_type_parameters_are_unused];a(g,1,Rc(O,B.pos,B.end-B.pos,...me))}}else a(g,1,vr(g,f._0_is_declared_but_its_value_is_never_read,T))}}function Age(n){return!(Oa(n.symbol).isReferenced&262144)&&!Ww(n.name)}function O5(n,a,c,u){let _=String(u(a)),g=n.get(_);g?g[1].push(c):n.set(_,[a,[c]])}function a8e(n){return Vr(Xm(n),ao)}function Dct(n){return Na(n)?Rf(n.parent)?!!(n.propertyName&&Ww(n.name)):Ww(n.name):sd(n)||(yi(n)&&H1(n.parent.parent)||l8e(n))&&Ww(n.name)}function s8e(n,a){let c=new Map,u=new Map,_=new Map;n.locals.forEach(g=>{if(!(g.flags&262144?!(g.flags&3&&!(g.isReferenced&3)):g.isReferenced||g.exportSymbol)&&g.declarations){for(let T of g.declarations)if(!Dct(T))if(l8e(T))O5(c,Nct(T),T,Fa);else if(Na(T)&&Rf(T.parent)){let N=Da(T.parent.elements);(T===N||!Da(T.parent.elements).dotDotDotToken)&&O5(u,T.parent,T,Fa)}else if(yi(T)){let N=lS(T)&7,O=mo(T);(N!==4&&N!==6||!O||!Ww(O))&&O5(_,T.parent,T,Fa)}else{let N=g.valueDeclaration&&a8e(g.valueDeclaration),O=g.valueDeclaration&&mo(g.valueDeclaration);N&&O?!wu(N,N.parent)&&!XE(N)&&!Ww(O)&&(Na(T)&&i0(T.parent)?O5(u,T.parent,T,Fa):a(N,1,vr(O,f._0_is_declared_but_its_value_is_never_read,$s(g)))):o8e(T,$s(g),a)}}}),c.forEach(([g,T])=>{let N=g.parent;if((g.name?1:0)+(g.namedBindings?g.namedBindings.kind===274?1:g.namedBindings.elements.length:0)===T.length)a(N,0,T.length===1?vr(N,f._0_is_declared_but_its_value_is_never_read,ar(Sa(T).name)):vr(N,f.All_imports_in_import_declaration_are_unused));else for(let B of T)o8e(B,ar(B.name),a)}),u.forEach(([g,T])=>{let N=a8e(g.parent)?1:0;if(g.elements.length===T.length)T.length===1&&g.parent.kind===260&&g.parent.parent.kind===261?O5(_,g.parent.parent,g.parent,Fa):a(g,N,T.length===1?vr(g,f._0_is_declared_but_its_value_is_never_read,w5(Sa(T).name)):vr(g,f.All_destructured_elements_are_unused));else for(let O of T)a(O,N,vr(O,f._0_is_declared_but_its_value_is_never_read,w5(O.name)))}),_.forEach(([g,T])=>{if(g.declarations.length===T.length)a(g,0,T.length===1?vr(Sa(T).name,f._0_is_declared_but_its_value_is_never_read,w5(Sa(T).name)):vr(g.parent.kind===243?g.parent:g,f.All_variables_are_unused));else for(let N of T)a(N,0,vr(N,f._0_is_declared_but_its_value_is_never_read,w5(N.name)))})}function Cct(){var n;for(let a of kh)if(!((n=dr(a))!=null&&n.isReferenced)){let c=B1(a);x.assert(JE(c),"Only parameter declaration should be checked here");let u=vr(a.name,f._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,is(a.name),is(a.propertyName));c.type||pa(u,Rc(Nn(c),c.end,1,f.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,is(a.propertyName))),La.add(u)}}function w5(n){switch(n.kind){case 80:return ar(n);case 207:case 206:return w5(Fo(Sa(n.elements),Na).name);default:return x.assertNever(n)}}function l8e(n){return n.kind===273||n.kind===276||n.kind===274}function Nct(n){return n.kind===273?n:n.kind===274?n.parent:n.parent.parent}function lZ(n){if(n.kind===241&&zg(n),YG(n)){let a=Ne;an(n.statements,sa),Ne=a}else an(n.statements,sa);n.locals&&sb(n)}function Pct(n){oe>=2||!i9(n)||n.flags&33554432||_l(n.body)||an(n.parameters,a=>{a.name&&!ko(a.name)&&a.name.escapedText===Dt.escapedName&&xm("noEmit",a,f.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function Fw(n,a,c){if(a?.escapedText!==c||n.kind===172||n.kind===171||n.kind===174||n.kind===173||n.kind===177||n.kind===178||n.kind===303||n.flags&33554432||(G_(n)||Nc(n)||Iu(n))&&Sb(n))return!1;let u=Xm(n);return!(ao(u)&&_l(u.parent.body))}function Mct(n){Rn(n,a=>PD(a)&4?(n.kind!==80?we(mo(n),f.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):we(n,f.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Lct(n){Rn(n,a=>PD(a)&8?(n.kind!==80?we(mo(n),f.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):we(n,f.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function kct(n,a){if(W>=5&&!(W>=100&&Nn(n).impliedNodeFormat===1)||!a||!Fw(n,a,"require")&&!Fw(n,a,"exports")||Il(n)&&dg(n)!==1)return;let c=J(n);c.kind===312&&sp(c)&&xm("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,is(a),is(a))}function Oct(n,a){if(!a||oe>=4||!Fw(n,a,"Promise")||Il(n)&&dg(n)!==1)return;let c=J(n);c.kind===312&&sp(c)&&c.flags&4096&&xm("noEmit",a,f.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,is(a),is(a))}function wct(n,a){oe<=8&&(Fw(n,a,"WeakMap")||Fw(n,a,"WeakSet"))&&Iy.push(n)}function Wct(n){let a=O_(n);PD(a)&1048576&&(x.assert(Ld(n)&&Me(n.name)&&typeof n.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),xm("noEmit",n,f.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,n.name.escapedText))}function Fct(n,a){a&&oe>=2&&oe<=8&&Fw(n,a,"Reflect")&&xy.push(n)}function zct(n){let a=!1;if(Dc(n)){for(let c of n.members)if(PD(c)&2097152){a=!0;break}}else if(us(n))PD(n)&2097152&&(a=!0);else{let c=O_(n);c&&PD(c)&2097152&&(a=!0)}a&&(x.assert(Ld(n)&&Me(n.name),"The target of a Reflect collision check should be an identifier"),xm("noEmit",n,f.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,is(n.name),"Reflect"))}function nM(n,a){a&&(kct(n,a),Oct(n,a),wct(n,a),Fct(n,a),Kr(n)?(iM(a,f.Class_name_cannot_be_0),n.flags&33554432||fdt(a)):kb(n)&&iM(a,f.Enum_name_cannot_be_0))}function Bct(n){if(lS(n)&7||JE(n))return;let a=dr(n);if(a.flags&1){if(!Me(n.name))return x.fail();let c=Xs(n,n.name.escapedText,3,void 0,void 0,!1);if(c&&c!==a&&c.flags&2&&Ohe(c)&7){let u=Db(c.valueDeclaration,261),_=u.parent.kind===243&&u.parent.parent?u.parent.parent:void 0;if(!(_&&(_.kind===241&&Lo(_.parent)||_.kind===268||_.kind===267||_.kind===312))){let T=ai(c);we(n,f.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}function zw(n){return n===Je?z:n===Sc?Nl:n}function W5(n){var a;if(k5(n),Na(n)||sa(n.type),!n.name)return;if(n.name.kind===167&&(Hh(n.name),SS(n)&&n.initializer&&Ml(n.initializer)),Na(n)){if(n.propertyName&&Me(n.name)&&JE(n)&&_l(cp(n).body)){kh.push(n);return}Rf(n.parent)&&n.dotDotDotToken&&oe<5&&rc(n,4),n.propertyName&&n.propertyName.kind===167&&Hh(n.propertyName);let _=n.parent.parent,g=n.dotDotDotToken?32:0,T=Sr(_,g),N=n.propertyName||n.name;if(T&&!ko(N)){let O=Pv(N);if(Af(O)){let B=If(O),Q=Qo(T,B);Q&&(v5(Q,void 0,!1),Whe(n,!!_.initializer&&_.initializer.kind===108,!1,T,Q))}}}if(ko(n.name)&&(n.name.kind===207&&oe<2&&F.downlevelIteration&&rc(n,512),an(n.name.elements,sa)),n.initializer&&JE(n)&&_l(cp(n).body)){we(n,f.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(ko(n.name)){if(she(n))return;let _=SS(n)&&n.initializer&&n.parent.parent.kind!==249,g=!ct(n.name.elements,e8(vc));if(_||g){let T=w(n);if(_){let N=Ml(n.initializer);H&&g?COe(N,n):nb(N,w(n),n,n.initializer)}g&&(i0(n.name)?Ov(65,T,Re,n):H&&COe(T,n))}return}let c=dr(n);if(c.flags&2097152&&(jE(n)||Kte(n))){fZ(n);return}let u=zw(Yn(c));if(n===c.valueDeclaration){let _=SS(n)&&vL(n);if(_&&!(Jn(n)&&fa(_)&&(_.properties.length===0||ry(n.name))&&!!((a=c.exports)!=null&&a.size))&&n.parent.parent.kind!==249){let T=Ml(_);nb(T,u,n,_,void 0);let N=lS(n)&7;if(N===6){let O=Htt(!0),B=ZLe(!0);if(O!==da&&B!==da){let Q=Br([O,B,se,Re]);Cd(T,Q,_,f.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(N===4){let O=ZLe(!0);if(O!==da){let B=Br([O,se,Re]);Cd(T,B,_,f.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}c.declarations&&c.declarations.length>1&&ct(c.declarations,g=>g!==n&&tx(g)&&!d8e(g,n))&&we(n.name,f.All_declarations_of_0_must_have_identical_modifiers,is(n.name))}else{let _=zw(w(n));!Lt(u)&&!Lt(_)&&!kg(u,_)&&!(c.flags&67108864)&&c8e(c.valueDeclaration,u,n,_),SS(n)&&n.initializer&&nb(Ml(n.initializer),_,n,n.initializer,void 0),c.valueDeclaration&&!d8e(n,c.valueDeclaration)&&we(n.name,f.All_declarations_of_0_must_have_identical_modifiers,is(n.name))}n.kind!==172&&n.kind!==171&&(Lw(n),(n.kind===260||n.kind===208)&&Bct(n),nM(n,n.name))}function c8e(n,a,c,u){let _=mo(c),g=c.kind===172||c.kind===171?f.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:f.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=is(_),N=we(_,g,T,Pn(a),Pn(u));n&&pa(N,vr(n,f._0_was_also_declared_here,T))}function d8e(n,a){if(n.kind===169&&a.kind===260||n.kind===260&&a.kind===169)return!0;if(OA(n)!==OA(a))return!1;let c=1358;return BA(n,c)===BA(a,c)}function Gct(n){var a,c;(a=qn)==null||a.push(qn.Phase.Check,"checkVariableDeclaration",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath}),Spt(n),W5(n),(c=qn)==null||c.pop()}function Vct(n){return ypt(n),W5(n)}function cZ(n){let a=Xg(n)&7;(a===4||a===6)&&rc(n,33554432),an(n.declarations,sa)}function jct(n){!Jh(n)&&!Kge(n.declarationList)&&Tpt(n),cZ(n.declarationList)}function Uct(n){zg(n),Xi(n.expression)}function Hct(n){zg(n);let a=rM(n.expression);Ige(n.expression,a,n.thenStatement),sa(n.thenStatement),n.thenStatement.kind===242&&we(n.thenStatement,f.The_body_of_an_if_statement_cannot_be_the_empty_statement),sa(n.elseStatement)}function Ige(n,a,c){if(!H)return;u(n,c);function u(g,T){for(g=Ka(g),_(g,T);Zn(g)&&(g.operatorToken.kind===57||g.operatorToken.kind===61);)g=Ka(g.left),_(g,T)}function _(g,T){let N=jL(g)?Ka(g.right):g;if(Eh(N))return;if(jL(N)){u(N,T);return}let O=N===g?a:rM(N),B=Er(N)&&kwe(N.expression);if(!wf(O,4194304)||B)return;let Q=Co(O,0),me=!!eM(O);if(Q.length===0&&!me)return;let ue=Me(N)?N:Er(N)?N.name:void 0,We=ue&&um(ue);if(!We&&!me)return;We&&Zn(g.parent)&&Jct(g.parent,We)||We&&T&&qct(g,T,ue,We)||(me?nE(N,!0,f.This_condition_will_always_return_true_since_this_0_is_always_defined,zy(O)):we(N,f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function qct(n,a,c,u){return!!Ao(a,function _(g){if(Me(g)){let T=um(g);if(T&&T===u){if(Me(n)||Me(c)&&Zn(c.parent))return!0;let N=c.parent,O=g.parent;for(;N&&O;){if(Me(N)&&Me(O)||N.kind===110&&O.kind===110)return um(N)===um(O);if(Er(N)&&Er(O)){if(um(N.name)!==um(O.name))return!1;O=O.expression,N=N.expression}else if(Bo(N)&&Bo(O))O=O.expression,N=N.expression;else return!1}}}return Ao(g,_)})}function Jct(n,a){for(;Zn(n)&&n.operatorToken.kind===56;){if(Ao(n.right,function u(_){if(Me(_)){let g=um(_);if(g&&g===a)return!0}return Ao(_,u)}))return!0;n=n.parent}return!1}function Kct(n){zg(n),sa(n.statement),rM(n.expression)}function Xct(n){zg(n),rM(n.expression),sa(n.statement)}function xge(n,a){return n.flags&16384&&we(a,f.An_expression_of_type_void_cannot_be_tested_for_truthiness),n}function rM(n,a){return xge(Xi(n,a),n)}function Yct(n){zg(n)||n.initializer&&n.initializer.kind===261&&Kge(n.initializer),n.initializer&&(n.initializer.kind===261?cZ(n.initializer):Xi(n.initializer)),n.condition&&rM(n.condition),n.incrementor&&Xi(n.incrementor),sa(n.statement),n.locals&&sb(n)}function $ct(n){sWe(n);let a=mW(n);if(n.awaitModifier?a&&nl(a)?sn(n.awaitModifier,f.for_await_loops_cannot_be_used_inside_a_class_static_block):(gc(a)&6)===2&&oe<99&&rc(n,16384):F.downlevelIteration&&oe<2&&rc(n,256),n.initializer.kind===261)cZ(n.initializer);else{let c=n.initializer,u=F5(n);if(c.kind===209||c.kind===210)uA(c,u||it);else{let _=Xi(c);Pw(c,f.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),u&&nb(u,_,c,n.expression)}}sa(n.statement),n.locals&&sb(n)}function Qct(n){sWe(n);let a=Fhe(Xi(n.expression));if(n.initializer.kind===261){let c=n.initializer.declarations[0];c&&ko(c.name)&&we(c.name,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),cZ(n.initializer)}else{let c=n.initializer,u=Xi(c);c.kind===209||c.kind===210?we(c,f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ea(Mnt(a),u)?Pw(c,f.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,f.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):we(c,f.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===Ar||!ed(a,126091264))&&we(n.expression,f.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,Pn(a)),sa(n.statement),n.locals&&sb(n)}function F5(n){let a=n.awaitModifier?15:13;return Ov(a,AD(n.expression),Re,n.expression)}function Ov(n,a,c,u){return vt(a)?a:Rge(n,a,c,u,!0)||z}function Rge(n,a,c,u,_){let g=(n&2)!==0;if(a===Ar){Mge(u,a,g);return}let T=oe>=2,N=!T&&F.downlevelIteration,O=F.noUncheckedIndexedAccess&&!!(n&128);if(T||N||g){let at=uZ(a,n,T?u:void 0);if(_&&at){let ht=n&8?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:n&32?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:n&64?f.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:n&16?f.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;ht&&Cd(c,at.nextType,u,ht)}if(at||T)return O?Aw(at&&at.yieldType):at&&at.yieldType}let B=a,Q=!1,me=!1;if(n&4){if(B.flags&1048576){let at=a.types,ht=Cr(at,qt=>!(qt.flags&402653316));ht!==at&&(B=Br(ht,2))}else B.flags&402653316&&(B=Ar);if(me=B!==a,me&&(oe<1&&u&&(we(u,f.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Q=!0),B.flags&131072))return O?Aw(Ie):Ie}if(!Lv(B)){if(u&&!Q){let at=!!(n&4)&&!me,[ht,qt]=We(at,N);nE(u,qt&&!!eM(B),ht,Pn(B))}return me?O?Aw(Ie):Ie:void 0}let ue=yE(B,gt);if(me&&ue)return ue.flags&402653316&&!F.noUncheckedIndexedAccess?Ie:Br(O?[ue,Ie,Re]:[ue,Ie],2);return n&128?Aw(ue):ue;function We(at,ht){var qt;return ht?at?[f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Dge(n,0,a,void 0)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Zct((qt=a.symbol)==null?void 0:qt.escapedName)?[f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:at?[f.Type_0_is_not_an_array_type_or_a_string_type,!0]:[f.Type_0_is_not_an_array_type,!0]}}function Zct(n){switch(n){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Dge(n,a,c,u){if(vt(c))return;let _=uZ(c,n,u);return _&&_[TSe(a)]}function wv(n=Ar,a=Ar,c=Zt){if(n.flags&67359327&&a.flags&180227&&c.flags&180227){let u=Of([n,a,c]),_=pi.get(u);return _||(_={yieldType:n,returnType:a,nextType:c},pi.set(u,_)),_}return{yieldType:n,returnType:a,nextType:c}}function u8e(n){let a,c,u;for(let _ of n)if(!(_===void 0||_===hr)){if(_===No)return No;a=pn(a,_.yieldType),c=pn(c,_.returnType),u=pn(u,_.nextType)}return a||c||u?wv(a&&Br(a),c&&Br(c),u&&Zo(u)):hr}function dZ(n,a){return n[a]}function qh(n,a,c){return n[a]=c}function uZ(n,a,c){var u,_;if(vt(n))return No;if(!(n.flags&1048576)){let B=c?{errors:void 0}:void 0,Q=p8e(n,a,c,B);if(Q===hr){if(c){let me=Mge(c,n,!!(a&2));B?.errors&&pa(me,...B.errors)}return}else if((u=B?.errors)!=null&&u.length)for(let me of B.errors)La.add(me);return Q}let g=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=dZ(n,g);if(T)return T===hr?void 0:T;let N;for(let B of n.types){let Q=c?{errors:void 0}:void 0,me=p8e(B,a,c,Q);if(me===hr){if(c){let ue=Mge(c,n,!!(a&2));Q?.errors&&pa(ue,...Q.errors)}qh(n,g,hr);return}else if((_=Q?.errors)!=null&&_.length)for(let ue of Q.errors)La.add(ue);N=pn(N,me)}let O=N?u8e(N):hr;return qh(n,g,O),O===hr?void 0:O}function Cge(n,a){if(n===hr)return hr;if(n===No)return No;let{yieldType:c,returnType:u,nextType:_}=n;return a&&s_e(!0),wv(pA(c,a)||z,pA(u,a)||z,_)}function p8e(n,a,c,u){if(vt(n))return No;let _=!1;if(a&2){let g=Nge(n,ys)||m8e(n,ys);if(g)if(g===hr&&c)_=!0;else return a&8?Cge(g,c):g}if(a&1){let g=Nge(n,Jl)||m8e(n,Jl);if(g)if(g===hr&&c)_=!0;else if(a&2){if(g!==hr)return g=Cge(g,c),_?g:qh(n,"iterationTypesOfAsyncIterable",g)}else return g}if(a&2){let g=Pge(n,ys,c,u,_);if(g!==hr)return g}if(a&1){let g=Pge(n,Jl,c,u,_);if(g!==hr)return a&2?(g=Cge(g,c),_?g:qh(n,"iterationTypesOfAsyncIterable",g)):g}return hr}function Nge(n,a){return dZ(n,a.iterableCacheKey)}function f8e(n,a){let c=Nge(n,a)||Pge(n,a,void 0,void 0,!1);return c===hr?bc:c}function m8e(n,a){let c;if(Jy(n,c=a.getGlobalIterableType(!1))||Jy(n,c=a.getGlobalIterableIteratorType(!1))){let[u]=Ss(n),{returnType:_,nextType:g}=f8e(c,a);return qh(n,a.iterableCacheKey,wv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}if(Jy(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Ss(n);return qh(n,a.iterableCacheKey,wv(a.resolveIterationType(u,void 0)||u,a.resolveIterationType(_,void 0)||_,g))}}function _8e(n){let a=YLe(!1),c=a&&Fe(Yn(a),Hs(n));return c&&Af(c)?If(c):`__@${n}`}function Pge(n,a,c,u,_){let g=Qo(n,_8e(a.iteratorSymbolName)),T=g&&!(g.flags&16777216)?Yn(g):void 0;if(vt(T))return _?No:qh(n,a.iterableCacheKey,No);let N=T?Co(T,0):void 0;if(!ct(N))return _?hr:qh(n,a.iterableCacheKey,hr);let O=Zo(nn(N,Ha)),B=h8e(O,a,c,u,_)??hr;return _?B:qh(n,a.iterableCacheKey,B)}function Mge(n,a,c){let u=c?f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,_=!!eM(a)||!c&&R2(n.parent)&&n.parent.expression===n&&q$(!1)!==ho&&ea(a,q$(!1));return nE(n,_,u,Pn(a))}function edt(n,a,c,u){return h8e(n,a,c,u,!1)}function h8e(n,a,c,u,_){if(vt(n))return No;let g=g8e(n,a)||tdt(n,a);return g===hr&&c&&(g=void 0,_=!0),g??(g=y8e(n,a,c,u,_)),g===hr?void 0:g}function g8e(n,a){return dZ(n,a.iteratorCacheKey)}function tdt(n,a){let c=a.getGlobalIterableIteratorType(!1);if(Jy(n,c)){let[u]=Ss(n),_=g8e(c,a)||y8e(c,a,void 0,void 0,!1),{returnType:g,nextType:T}=_===hr?bc:_;return qh(n,a.iteratorCacheKey,wv(u,g,T))}if(Jy(n,a.getGlobalIteratorType(!1))||Jy(n,a.getGlobalGeneratorType(!1))){let[u,_,g]=Ss(n);return qh(n,a.iteratorCacheKey,wv(u,_,g))}}function v8e(n,a){let c=Fe(n,"done")||Ot;return ea(a===0?Ot:An,c)}function ndt(n){return v8e(n,0)}function rdt(n){return v8e(n,1)}function idt(n){if(vt(n))return No;let a=dZ(n,"iterationTypesOfIteratorResult");if(a)return a;if(Jy(n,jtt(!1))){let T=Ss(n)[0];return qh(n,"iterationTypesOfIteratorResult",wv(T,void 0,void 0))}if(Jy(n,Utt(!1))){let T=Ss(n)[0];return qh(n,"iterationTypesOfIteratorResult",wv(void 0,T,void 0))}let c=Bl(n,ndt),u=c!==Ar?Fe(c,"value"):void 0,_=Bl(n,rdt),g=_!==Ar?Fe(_,"value"):void 0;return!u&&!g?qh(n,"iterationTypesOfIteratorResult",hr):qh(n,"iterationTypesOfIteratorResult",wv(u,g||jn,void 0))}function Lge(n,a,c,u,_){var g,T,N,O;let B=Qo(n,c);if(!B&&c!=="next")return;let Q=B&&!(c==="next"&&B.flags&16777216)?c==="next"?Yn(B):Wf(Yn(B),2097152):void 0;if(vt(Q))return c==="next"?No:Qs;let me=Q?Co(Q,0):je;if(me.length===0){if(u){let Kt=c==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;_?(_.errors??(_.errors=[]),_.errors.push(vr(u,Kt,c))):we(u,Kt,c)}return c==="next"?hr:void 0}if(Q?.symbol&&me.length===1){let Kt=a.getGlobalGeneratorType(!1),In=a.getGlobalIteratorType(!1),Sn=((T=(g=Kt.symbol)==null?void 0:g.members)==null?void 0:T.get(c))===Q.symbol,zn=!Sn&&((O=(N=In.symbol)==null?void 0:N.members)==null?void 0:O.get(c))===Q.symbol;if(Sn||zn){let Mn=Sn?Kt:In,{mapper:Bn}=Q;return wv(eb(Mn.typeParameters[0],Bn),eb(Mn.typeParameters[1],Bn),c==="next"?eb(Mn.typeParameters[2],Bn):void 0)}}let ue,We;for(let Kt of me)c!=="throw"&&ct(Kt.parameters)&&(ue=pn(ue,zm(Kt,0))),We=pn(We,Ha(Kt));let at,ht;if(c!=="throw"){let Kt=ue?Br(ue):Zt;if(c==="next")ht=Kt;else if(c==="return"){let In=a.resolveIterationType(Kt,u)||z;at=pn(at,In)}}let qt,Xt=We?Zo(We):Ar,Hn=a.resolveIterationType(Xt,u)||z,En=idt(Hn);return En===hr?(u&&(_?(_.errors??(_.errors=[]),_.errors.push(vr(u,a.mustHaveAValueDiagnostic,c))):we(u,a.mustHaveAValueDiagnostic,c)),qt=z,at=pn(at,z)):(qt=En.yieldType,at=pn(at,En.returnType)),wv(qt,Br(at),ht)}function y8e(n,a,c,u,_){let g=u8e([Lge(n,a,"next",c,u),Lge(n,a,"return",c,u),Lge(n,a,"throw",c,u)]);return _?g:qh(n,a.iteratorCacheKey,g)}function oS(n,a,c){if(vt(a))return;let u=b8e(a,c);return u&&u[TSe(n)]}function b8e(n,a){if(vt(n))return No;let c=a?2:1,u=a?ys:Jl;return uZ(n,c,void 0)||edt(n,u,void 0,void 0)}function odt(n){zg(n)||vpt(n)}function z5(n,a){let c=!!(a&1),u=!!(a&2);if(c){let _=oS(1,n,u);return _?u?kv(tM(_)):_:it}return u?kv(n)||it:n}function E8e(n,a){let c=z5(a,gc(n));return!!(c&&(ol(c,16384)||c.flags&32769))}function adt(n){if(zg(n))return;let a=mW(n);if(a&&nl(a)){Uc(n,f.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){Uc(n,f.A_return_statement_can_only_be_used_within_a_function_body);return}let c=kf(a),u=Ha(c),_=gc(a);if(H||n.expression||u.flags&131072){let g=n.expression?Ml(n.expression):Re;if(a.kind===178)n.expression&&we(n,f.Setters_cannot_return_a_value);else if(a.kind===176)n.expression&&!nb(g,u,n,n.expression)&&we(n,f.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(mD(a)){let T=z5(u,_)??u,N=_&2?Ow(g,!1,n,f.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):g;T&&nb(N,T,n,n.expression)}}else a.kind!==176&&F.noImplicitReturns&&!E8e(a,u)&&we(n,f.Not_all_code_paths_return_a_value)}function sdt(n){zg(n)||n.flags&65536&&Uc(n,f.with_statements_are_not_allowed_in_an_async_function_block),Xi(n.expression);let a=Nn(n);if(!aS(a)){let c=w_(a,n.pos).start,u=n.statement.pos;sS(a,c,u-c,f.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function ldt(n){zg(n);let a,c=!1,u=Xi(n.expression);an(n.caseBlock.clauses,_=>{_.kind===297&&!c&&(a===void 0?a=_:(sn(_,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),c=!0)),_.kind===296&&r(g(_)),an(_.statements,sa),F.noFallthroughCasesInSwitch&&_.fallthroughFlowNode&&s5(_.fallthroughFlowNode)&&we(_,f.Fallthrough_case_in_switch);function g(T){return()=>{let N=Xi(T.expression);fge(u,N)||J2e(N,u,T.expression,void 0)}}}),n.caseBlock.locals&&sb(n.caseBlock)}function cdt(n){zg(n)||Rn(n.parent,a=>Lo(a)?"quit":a.kind===256&&a.label.escapedText===n.label.escapedText?(sn(n.label,f.Duplicate_label_0,Vl(n.label)),!0):!1),sa(n.statement)}function ddt(n){zg(n)||Me(n.expression)&&!n.expression.escapedText&&Lpt(n,f.Line_break_not_permitted_here),n.expression&&Xi(n.expression)}function udt(n){zg(n),lZ(n.tryBlock);let a=n.catchClause;if(a){if(a.variableDeclaration){let c=a.variableDeclaration;W5(c);let u=Jc(c);if(u){let _=si(u);_&&!(_.flags&3)&&Uc(u,f.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(c.initializer)Uc(c.initializer,f.Catch_clause_variable_cannot_have_an_initializer);else{let _=a.block.locals;_&&k_(a.locals,g=>{let T=_.get(g);T?.valueDeclaration&&T.flags&2&&sn(T.valueDeclaration,f.Cannot_redeclare_identifier_0_in_catch_clause,Ii(g))})}}lZ(a.block)}n.finallyBlock&&lZ(n.finallyBlock)}function pZ(n,a,c){let u=Ud(n);if(u.length===0)return;for(let g of Xy(n))c&&g.flags&4194304||S8e(n,g,vD(g,8576,!0),qy(g));let _=a.valueDeclaration;if(_&&Kr(_)){for(let g of _.members)if(!zo(g)&&!pD(g)){let T=dr(g);S8e(n,T,td(g.name.expression),qy(T))}}if(u.length>1)for(let g of u)pdt(n,g)}function S8e(n,a,c,u){let _=a.valueDeclaration,g=mo(_);if(g&&Ci(g))return;let T=jme(n,c),N=br(n)&2?Vs(n.symbol,264):void 0,O=_&&_.kind===226||g&&g.kind===167?_:void 0,B=nu(a)===n.symbol?_:void 0;for(let Q of T){let me=Q.declaration&&nu(dr(Q.declaration))===n.symbol?Q.declaration:void 0,ue=B||me||(N&&!ct(ep(n),We=>!!vE(We,a.escapedName)&&!!yE(We,Q.keyType))?N:void 0);if(ue&&!ea(u,Q.type)){let We=ET(ue,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ai(a),Pn(u),Pn(Q.keyType),Pn(Q.type));O&&ue!==O&&pa(We,vr(O,f._0_is_declared_here,ai(a))),La.add(We)}}}function pdt(n,a){let c=a.declaration,u=jme(n,a.keyType),_=br(n)&2?Vs(n.symbol,264):void 0,g=c&&nu(dr(c))===n.symbol?c:void 0;for(let T of u){if(T===a)continue;let N=T.declaration&&nu(dr(T.declaration))===n.symbol?T.declaration:void 0,O=g||N||(_&&!ct(ep(n),B=>!!Uh(B,a.keyType)&&!!yE(B,T.keyType))?_:void 0);O&&!ea(a.type,T.type)&&we(O,f._0_index_type_1_is_not_assignable_to_2_index_type_3,Pn(a.keyType),Pn(a.type),Pn(T.keyType),Pn(T.type))}}function iM(n,a){switch(n.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":we(n,a,n.escapedText)}}function fdt(n){oe>=1&&n.escapedText==="Object"&&(W<5||Nn(n).impliedNodeFormat===1)&&we(n,f.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,HD[W])}function mdt(n){let a=Cr(Eb(n),Tm);if(!yn(a))return;let c=Jn(n),u=new Set,_=new Set;if(an(n.parameters,({name:T},N)=>{Me(T)&&u.add(T.escapedText),ko(T)&&_.add(N)}),Hme(n)){let T=a.length-1,N=a[T];c&&N&&Me(N.name)&&N.typeExpression&&N.typeExpression.type&&!u.has(N.name.escapedText)&&!_.has(T)&&!ff(si(N.typeExpression.type))&&we(N.name,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,ar(N.name))}else an(a,({name:T,isNameFirst:N},O)=>{_.has(O)||Me(T)&&u.has(T.escapedText)||($d(T)?c&&we(T,f.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Wu(T),Wu(T.left)):N||jc(c,T,f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,ar(T)))})}function B5(n){let a=!1;if(n)for(let u=0;u<n.length;u++){let _=n[u];Bwe(_),r(c(_,u))}function c(u,_){return()=>{u.default?(a=!0,_dt(u.default,n,_)):a&&we(u,f.Required_type_parameters_may_not_follow_optional_type_parameters);for(let g=0;g<_;g++)n[g].symbol===u.symbol&&we(u.name,f.Duplicate_identifier_0,is(u.name))}}}function _dt(n,a,c){u(n);function u(_){if(_.kind===183){let g=t_e(_);if(g.flags&262144)for(let T=c;T<a.length;T++)g.symbol===dr(a[T])&&we(_,f.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters)}Ao(_,u)}}function T8e(n){if(n.declarations&&n.declarations.length===1)return;let a=Pi(n);if(!a.typeParametersChecked){a.typeParametersChecked=!0;let c=Tdt(n);if(!c||c.length<=1)return;let u=Cs(n);if(!A8e(c,u.localTypeParameters,qv)){let _=ai(n);for(let g of c)we(g.name,f.All_declarations_of_0_must_have_identical_type_parameters,_)}}}function A8e(n,a,c){let u=yn(a),_=oh(a);for(let g of n){let T=c(g),N=T.length;if(N<_||N>u)return!1;for(let O=0;O<N;O++){let B=T[O],Q=a[O];if(B.name.escapedText!==Q.symbol.escapedName)return!1;let me=V1(B),ue=me&&si(me),We=iu(Q);if(ue&&We&&!kg(ue,We))return!1;let at=B.default&&si(B.default),ht=KT(Q);if(at&&ht&&!kg(at,ht))return!1}}return!0}function I8e(n){let a=!$&&oe<99&&Qg(!1,n),c=oe<=9,u=!fe;if(a||c)for(let _ of n.members){if(a&&D9(!1,_,n))return Ac(Hv(n))??n;if(c){if(nl(_))return _;if(zo(_)&&(kd(_)||u&&uk(_)))return _}}}function hdt(n){if(n.name)return;let a=_ie(n);if(!J9(a))return;let c=!$&&oe<99,u;c&&Qg(!1,n)?u=Ac(Hv(n))??n:u=I8e(n),u&&(rc(u,8388608),(Hl(a)||xo(a)||Na(a))&&Pa(a.name)&&rc(u,16777216))}function gdt(n){return x8e(n),E1(n),hdt(n),Yn(dr(n))}function vdt(n){an(n.members,sa),sb(n)}function ydt(n){let a=Dr(n.modifiers,Xc);$&&a&&ct(n.members,c=>jl(c)&&kd(c))&&sn(a,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!n.name&&!Wr(n,2048)&&Uc(n,f.A_class_declaration_without_the_default_modifier_must_have_a_name),x8e(n),an(n.members,sa),sb(n)}function x8e(n){rpt(n),k5(n),nM(n,n.name),B5(qv(n)),Lw(n);let a=dr(n),c=Cs(a),u=hp(c),_=Yn(a);T8e(a),oZ(a),klt(n),!!(n.flags&33554432)||Olt(n);let T=Jm(n);if(T){an(T.typeArguments,sa),oe<2&&rc(T.parent,1);let B=qE(n);B&&B!==T&&Xi(B.expression);let Q=ep(c);Q.length&&r(()=>{let me=Q[0],ue=Zu(c),We=ou(ue);if(Edt(We,T),sa(T.expression),ct(T.typeArguments)){an(T.typeArguments,sa);for(let ht of Dd(We,T.typeArguments,T))if(!Jwe(T,ht.typeParameters))break}let at=hp(me,c.thisType);if(Cd(u,at,void 0)?Cd(_,G2e(We),n.name||n,f.Class_static_side_0_incorrectly_extends_base_class_static_side_1):C8e(n,u,at,f.Class_0_incorrectly_extends_base_class_1),ue.flags&8650752&&(hi(_)?Co(ue,1).some(qt=>qt.flags&4)&&!Wr(n,64)&&we(n.name||n,f.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):we(n.name||n,f.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(We.symbol&&We.symbol.flags&32)&&!(ue.flags&8650752)){let ht=rh(We,T.typeArguments,T);an(ht,qt=>!S_(qt.declaration)&&!kg(Ha(qt),me))&&we(T.expression,f.Base_constructors_must_all_have_the_same_return_type)}Adt(c,me)})}bdt(n,c,u,_);let N=fx(n);if(N)for(let B of N)(!gl(B.expression)||yd(B.expression))&&we(B.expression,f.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),bge(B),r(O(B));r(()=>{pZ(c,a),pZ(_,a,!0),gge(n),Rdt(n)});function O(B){return()=>{let Q=wm(si(B));if(!Lt(Q))if(x7(Q)){let me=Q.symbol&&Q.symbol.flags&32?f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:f.Class_0_incorrectly_implements_interface_1,ue=hp(Q,c.thisType);Cd(u,ue,void 0)||C8e(n,u,ue,me)}else we(B,f.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function bdt(n,a,c,u){let g=Jm(n)&&ep(a),T=g?.length?hp(Sa(g),a.thisType):void 0,N=Zu(a);for(let O of n.members)sV(O)||(ll(O)&&an(O.parameters,B=>{wu(B,O)&&R8e(n,u,N,T,a,c,B,!0)}),R8e(n,u,N,T,a,c,O,!1))}function R8e(n,a,c,u,_,g,T,N,O=!0){let B=T.name&&um(T.name)||um(T);return B?D8e(n,a,c,u,_,g,UW(T),$E(T),zo(T),N,$s(B),O?T:void 0):0}function D8e(n,a,c,u,_,g,T,N,O,B,Q,me){let ue=Jn(n),We=!!(n.flags&33554432);if(u&&(T||F.noImplicitOverride)){let at=Hs(Q),ht=O?a:g,qt=O?c:u,Xt=Qo(ht,at),Hn=Qo(qt,at),En=Pn(u);if(Xt&&!Hn&&T){if(me){let Kt=WOe(Q,qt);Kt?we(me,ue?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,En,ai(Kt)):we(me,ue?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,En)}return 2}else if(Xt&&Hn?.declarations&&F.noImplicitOverride&&!We){let Kt=ct(Hn.declarations,$E);if(T)return 0;if(Kt){if(N&&Kt)return me&&we(me,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,En),1}else{if(me){let In=B?ue?f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:ue?f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;we(me,In,En)}return 1}}}else if(T){if(me){let at=Pn(_);we(me,ue?f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,at)}return 2}return 0}function C8e(n,a,c,u){let _=!1;for(let g of n.members){if(zo(g))continue;let T=g.name&&um(g.name)||um(g);if(T){let N=Qo(a,T.escapedName),O=Qo(c,T.escapedName);if(N&&O){let B=()=>So(void 0,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ai(T),Pn(a),Pn(c));Cd(Yn(N),Yn(O),g.name||g,void 0,B)||(_=!0)}}}_||Cd(a,c,n.name||n,u)}function Edt(n,a){let c=Co(n,1);if(c.length){let u=c[0].declaration;if(u&&zu(u,2)){let _=ig(n.symbol);zge(a,_)||we(a,f.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,mp(n.symbol))}}}function Sdt(n,a,c){if(!a.name)return 0;let u=dr(n),_=Cs(u),g=hp(_),T=Yn(u),O=Jm(n)&&ep(_),B=O?.length?hp(Sa(O),_.thisType):void 0,Q=Zu(_),me=a.parent?UW(a):Wr(a,16);return D8e(n,T,Q,B,_,g,me,$E(a),zo(a),!1,$s(c))}function ND(n){return tl(n)&1?n.links.target:n}function Tdt(n){return Cr(n.declarations,a=>a.kind===263||a.kind===264)}function Adt(n,a){var c,u,_,g;let T=Xa(a),N;e:for(let O of T){let B=ND(O);if(B.flags&4194304)continue;let Q=vE(n,B.escapedName);if(!Q)continue;let me=ND(Q),ue=Kp(B);if(x.assert(!!me,"derived should point to something, even if it is the base class' declaration."),me===B){let We=ig(n.symbol);if(ue&64&&(!We||!Wr(We,64))){for(let at of ep(n)){if(at===a)continue;let ht=vE(at,B.escapedName),qt=ht&&ND(ht);if(qt&&qt!==B)continue e}N||(N=we(We,f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,Pn(n),Pn(a))),We.kind===231?pa(N,vr(O.valueDeclaration??(O.declarations&&Sa(O.declarations))??We,f.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ai(O),Pn(a))):pa(N,vr(O.valueDeclaration??(O.declarations&&Sa(O.declarations))??We,f.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,Pn(n),ai(O),Pn(a)))}}else{let We=Kp(me);if(ue&2||We&2)continue;let at,ht=B.flags&98308,qt=me.flags&98308;if(ht&&qt){if((tl(B)&6?(c=B.declarations)!=null&&c.some(En=>N8e(En,ue)):(u=B.declarations)!=null&&u.every(En=>N8e(En,ue)))||tl(B)&262144||me.valueDeclaration&&Zn(me.valueDeclaration))continue;let Xt=ht!==4&&qt===4;if(Xt||ht===4&&qt!==4){let En=Xt?f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;we(mo(me.valueDeclaration)||me.valueDeclaration,En,ai(B),Pn(a),Pn(n))}else if(de){let En=(_=me.declarations)==null?void 0:_.find(Kt=>Kt.kind===172&&!Kt.initializer);if(En&&!(me.flags&33554432)&&!(ue&64)&&!(We&64)&&!((g=me.declarations)!=null&&g.some(Kt=>!!(Kt.flags&33554432)))){let Kt=Ag(ig(n.symbol)),In=En.name;if(En.exclamationToken||!Kt||!Me(In)||!H||!M8e(In,n,Kt)){let Sn=f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;we(mo(me.valueDeclaration)||me.valueDeclaration,Sn,ai(B),Pn(a))}}}continue}else if(whe(B)){if(whe(me)||me.flags&4)continue;x.assert(!!(me.flags&98304)),at=f.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else B.flags&98304?at=f.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:at=f.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;we(mo(me.valueDeclaration)||me.valueDeclaration,at,Pn(a),ai(B),Pn(n))}}}function N8e(n,a){return a&64&&(!xo(n)||!n.initializer)||Gd(n.parent)}function Idt(n,a,c){if(!yn(a))return c;let u=new Map;an(c,_=>{u.set(_.escapedName,_)});for(let _ of a){let g=Xa(hp(_,n.thisType));for(let T of g){let N=u.get(T.escapedName);N&&T.parent===N.parent&&u.delete(T.escapedName)}}return bo(u.values())}function xdt(n,a){let c=ep(n);if(c.length<2)return!0;let u=new Map;an(xme(n).declaredProperties,g=>{u.set(g.escapedName,{prop:g,containingType:n})});let _=!0;for(let g of c){let T=Xa(hp(g,n.thisType));for(let N of T){let O=u.get(N.escapedName);if(!O)u.set(N.escapedName,{prop:N,containingType:g});else if(O.containingType!==n&&!Frt(O.prop,N)){_=!1;let Q=Pn(O.containingType),me=Pn(g),ue=So(void 0,f.Named_property_0_of_types_1_and_2_are_not_identical,ai(N),Q,me);ue=So(ue,f.Interface_0_cannot_simultaneously_extend_types_1_and_2,Pn(n),Q,me),La.add(eg(Nn(a),a,ue))}}}return _}function Rdt(n){if(!H||!Ee||n.flags&33554432)return;let a=Ag(n);for(let c of n.members)if(!(Wd(c)&128)&&!zo(c)&&P8e(c)){let u=c.name;if(Me(u)||Ci(u)||Pa(u)){let _=Yn(dr(c));_.flags&3||zP(_)||(!a||!M8e(u,_,a))&&we(c.name,f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,is(u))}}}function P8e(n){return n.kind===172&&!$E(n)&&!n.exclamationToken&&!n.initializer}function Ddt(n,a,c,u,_){for(let g of c)if(g.pos>=u&&g.pos<=_){let T=P.createPropertyAccessExpression(P.createThis(),n);Ta(T.expression,T),Ta(T,g),T.flowNode=g.returnFlowNode;let N=ab(T,a,ib(a));if(!zP(N))return!0}return!1}function M8e(n,a,c){let u=Pa(n)?P.createElementAccessExpression(P.createThis(),n.expression):P.createPropertyAccessExpression(P.createThis(),n);Ta(u.expression,u),Ta(u,c),u.flowNode=c.returnFlowNode;let _=ab(u,a,ib(a));return!zP(_)}function Cdt(n){Jh(n)||dpt(n),B5(n.typeParameters),r(()=>{iM(n.name,f.Interface_name_cannot_be_0),Lw(n);let a=dr(n);T8e(a);let c=Vs(a,264);if(n===c){let u=Cs(a),_=hp(u);if(xdt(u,n.name)){for(let g of ep(u))Cd(_,hp(g,u.thisType),n.name,f.Interface_0_incorrectly_extends_interface_1);pZ(u,a)}}jwe(n)}),an(SC(n),a=>{(!gl(a.expression)||yd(a.expression))&&we(a.expression,f.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),bge(a)}),an(n.members,sa),r(()=>{gge(n),sb(n)})}function Ndt(n){Jh(n),iM(n.name,f.Type_alias_name_cannot_be_0),Lw(n),B5(n.typeParameters),n.type.kind===141?(!u4.has(n.name.escapedText)||yn(n.typeParameters)!==1)&&we(n.type,f.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(sa(n.type),sb(n))}function L8e(n){let a=Fr(n);if(!(a.flags&1024)){a.flags|=1024;let c=0;for(let u of n.members){let _=Pdt(u,c);Fr(u).enumMemberValue=_,c=typeof _=="number"?_+1:void 0}}}function Pdt(n,a){if(aL(n.name))we(n.name,f.Computed_property_names_are_not_allowed_in_enums);else{let c=$1(n.name);Rh(c)&&!XC(c)&&we(n.name,f.An_enum_member_cannot_have_a_numeric_name)}if(n.initializer)return Mdt(n);if(!(n.parent.flags&33554432&&!BE(n.parent))){if(a!==void 0)return a;we(n.name,f.Enum_member_must_have_initializer)}}function Mdt(n){let a=BE(n.parent),c=n.initializer,u=oM(c,n);return u!==void 0?a&&typeof u=="number"&&!isFinite(u)&&we(c,isNaN(u)?f.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:f.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?we(c,f.const_enum_member_initializers_must_be_constant_expressions):n.parent.flags&33554432?we(c,f.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Cd(Xi(c),gt,c,f.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),u}function oM(n,a){switch(n.kind){case 224:let c=oM(n.operand,a);if(typeof c=="number")switch(n.operator){case 40:return c;case 41:return-c;case 55:return~c}break;case 226:let u=oM(n.left,a),_=oM(n.right,a);if(typeof u=="number"&&typeof _=="number")switch(n.operatorToken.kind){case 52:return u|_;case 51:return u&_;case 49:return u>>_;case 50:return u>>>_;case 48:return u<<_;case 53:return u^_;case 42:return u*_;case 44:return u/_;case 40:return u+_;case 41:return u-_;case 45:return u%_;case 43:return u**_}else if((typeof u=="string"||typeof u=="number")&&(typeof _=="string"||typeof _=="number")&&n.operatorToken.kind===40)return""+u+_;break;case 11:case 15:return n.text;case 228:return O8e(n,a);case 9:return Xge(n),+n.text;case 217:return oM(n.expression,a);case 80:{let T=n;if(XC(T.escapedText)&&bs(T,111551,!0)===WP(T.escapedText,111551,void 0))return+T.escapedText}case 211:if(gl(n)){let T=bs(n,111551,!0);if(T){if(T.flags&8)return a?k8e(n,T,a):MD(T.valueDeclaration);if(KP(T)){let N=T.valueDeclaration;if(N&&yi(N)&&!N.type&&N.initializer&&(!a||N!==a&&bg(N,a)))return oM(N.initializer,N)}}}break;case 212:let g=n.expression;if(gl(g)&&Ga(n.argumentExpression)){let T=bs(g,111551,!0);if(T&&T.flags&384){let N=Hs(n.argumentExpression.text),O=T.exports.get(N);if(O)return a?k8e(n,O,a):MD(O.valueDeclaration)}}break}}function k8e(n,a,c){let u=a.valueDeclaration;if(!u||u===c){we(n,f.Property_0_is_used_before_being_assigned,ai(a));return}return bg(u,c)?MD(u):(we(n,f.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums),0)}function O8e(n,a){let c=n.head.text;for(let u of n.templateSpans){let _=oM(u.expression,a);if(_===void 0)return;c+=_,c+=u.literal.text}return c}function Ldt(n){r(()=>kdt(n))}function kdt(n){Jh(n),nM(n,n.name),Lw(n),n.members.forEach(Odt),L8e(n);let a=dr(n),c=Vs(a,n.kind);if(n===c){if(a.declarations&&a.declarations.length>1){let _=BE(n);an(a.declarations,g=>{kb(g)&&BE(g)!==_&&we(mo(g),f.Enum_declarations_must_all_be_const_or_non_const)})}let u=!1;an(a.declarations,_=>{if(_.kind!==266)return!1;let g=_;if(!g.members.length)return!1;let T=g.members[0];T.initializer||(u?we(T.name,f.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):u=!0)})}}function Odt(n){Ci(n.name)&&we(n,f.An_enum_member_cannot_be_named_with_a_private_identifier),n.initializer&&Xi(n.initializer)}function wdt(n){let a=n.declarations;if(a){for(let c of a)if((c.kind===263||c.kind===262&&gf(c.body))&&!(c.flags&33554432))return c}}function Wdt(n,a){let c=O_(n),u=O_(a);return Y_(c)?Y_(u):Y_(u)?!1:c===u}function Fdt(n){n.body&&(sa(n.body),qm(n)||sb(n)),r(a);function a(){var c,u;let _=qm(n),g=n.flags&33554432;_&&!g&&we(n.name,f.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let T=sd(n),N=T?f.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:f.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(G5(n,N))return;Jh(n)||!g&&n.name.kind===11&&sn(n.name,f.Only_ambient_modules_can_use_quoted_names),Me(n.name)&&nM(n,n.name),Lw(n);let O=dr(n);if(O.flags&512&&!g&&FU(n,n0(F))){if(xf(F)&&!Nn(n).externalModuleIndicator&&we(n.name,f.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,Ge),((c=O.declarations)==null?void 0:c.length)>1){let B=wdt(O);B&&(Nn(n)!==Nn(B)?we(n.name,f.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):n.pos<B.pos&&we(n.name,f.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged));let Q=Vs(O,263);Q&&Wdt(n,Q)&&(Fr(n).flags|=2048)}if(F.verbatimModuleSyntax&&n.parent.kind===312&&(W===1||n.parent.impliedNodeFormat===1)){let B=(u=n.modifiers)==null?void 0:u.find(Q=>Q.kind===95);B&&we(B,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(T)if(zE(n)){if((_||dr(n).flags&33554432)&&n.body)for(let Q of n.body.statements)kge(Q,_)}else Y_(n.parent)?_?we(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Ic(Ef(n.name))&&we(n.name,f.Ambient_module_declaration_cannot_specify_relative_module_name):_?we(n.name,f.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):we(n.name,f.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function kge(n,a){switch(n.kind){case 243:for(let u of n.declarationList.declarations)kge(u,a);break;case 277:case 278:Uc(n,f.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:Uc(n,f.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let c=n.name;if(ko(c)){for(let u of c.elements)kge(u,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function zdt(n){switch(n.kind){case 80:return n;case 166:do n=n.left;while(n.kind!==80);return n;case 211:do{if(Eh(n.expression)&&!Ci(n.name))return n.name;n=n.expression}while(n.kind!==80);return n}}function Oge(n){let a=lx(n);if(!a||_l(a))return!1;if(!ca(a))return we(a,f.String_literal_expected),!1;let c=n.parent.kind===268&&sd(n.parent.parent);if(n.parent.kind!==312&&!c)return we(a,n.kind===278?f.Export_declarations_are_not_permitted_in_a_namespace:f.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(c&&Ic(a.text)&&!Gy(n))return we(n,f.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Nc(n)&&n.attributes){let u=n.attributes.token===118?f.Import_attribute_values_must_be_string_literal_expressions:f.Import_assertion_values_must_be_string_literal_expressions,_=!1;for(let g of n.attributes.elements)ca(g.value)||(_=!0,we(g.value,u));return!_}return!0}function fZ(n){var a,c,u,_;let g=dr(n),T=fc(g);if(T!==tt){if(g=Oa(g.exportSymbol||g),Jn(n)&&!(T.flags&111551)&&!Sb(n)){let B=RA(n)?n.propertyName||n.name:Ld(n)?n.name:n;if(x.assert(n.kind!==280),n.kind===281){let Q=we(B,f.Types_cannot_appear_in_export_declarations_in_JavaScript_files),me=(c=(a=Nn(n).symbol)==null?void 0:a.exports)==null?void 0:c.get((n.propertyName||n.name).escapedText);if(me===T){let ue=(u=me.declarations)==null?void 0:u.find(q1);ue&&pa(Q,vr(ue,f._0_is_automatically_exported_here,Ii(me.escapedName)))}}else{x.assert(n.kind!==260);let Q=Rn(n,hm(cc,Nc)),me=(Q&&((_=sx(Q))==null?void 0:_.text))??"...",ue=Ii(Me(B)?B.escapedText:g.escapedName);we(B,f._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,ue,`import("${me}").${ue}`)}return}let N=Qc(T),O=(g.flags&1160127?111551:0)|(g.flags&788968?788968:0)|(g.flags&1920?1920:0);if(N&O){let B=n.kind===281?f.Export_declaration_conflicts_with_exported_declaration_of_0:f.Import_declaration_conflicts_with_local_declaration_of_0;we(n,B,ai(g))}else n.kind!==281&&F.isolatedModules&&!Rn(n,Sb)&&g.flags&1160127&&we(n,f.Import_0_conflicts_with_local_value_so_must_be_declared_with_a_type_only_import_when_isolatedModules_is_enabled,ai(g),Ge);if(xf(F)&&!Sb(n)&&!(n.flags&33554432)){let B=of(g),Q=!(N&111551);if(Q||B)switch(n.kind){case 273:case 276:case 271:{if(F.preserveValueImports||F.verbatimModuleSyntax){x.assertIsDefined(n.name,"An ImportClause with a symbol should have a name");let me=F.verbatimModuleSyntax&&ox(n)?f.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Q?F.verbatimModuleSyntax?f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:F.verbatimModuleSyntax?f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,ue=ar(n.kind===276&&n.propertyName||n.name);Oh(we(n,me,ue),Q?void 0:B,ue)}Q&&n.kind===271&&zu(n,32)&&we(n,f.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Ge);break}case 281:if(F.verbatimModuleSyntax||Nn(B)!==Nn(n)){let me=ar(n.propertyName||n.name),ue=Q?we(n,f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Ge):we(n,f._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,me,Ge);Oh(ue,Q?void 0:B,me);break}}F.verbatimModuleSyntax&&n.kind!==271&&!Jn(n)&&(W===1||Nn(n).impliedNodeFormat===1)&&we(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Iu(n)){let B=wge(g,n);Dy(B)&&B.declarations&&Tv(n,B.declarations,B.escapedName)}}}function wge(n,a){if(!(n.flags&2097152)||Dy(n)||!im(n))return n;let c=fc(n);if(c===tt)return c;for(;n.flags&2097152;){let u=Nhe(n);if(u){if(u===c)break;if(u.declarations&&yn(u.declarations))if(Dy(u)){Tv(a,u.declarations,u.escapedName);break}else{if(n===c)break;n=u}}else break}return c}function mZ(n){nM(n,n.name),fZ(n),n.kind===276&&ar(n.propertyName||n.name)==="default"&&F_(F)&&W!==4&&(W<5||Nn(n).impliedNodeFormat===1)&&rc(n,131072)}function w8e(n){var a;let c=n.attributes;if(c){let u=i_e(!0);u!==da&&Cd(ie(c),e5(u,32768),c);let _=RH(n),g=oR(c,_?sn:void 0),T=n.attributes.token===118;if(_&&g)return;if((W===199&&n.moduleSpecifier&&Oi(n.moduleSpecifier))!==99&&W!==99&&W!==200){let O=T?W===199?f.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve:W===199?f.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:f.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_nodenext_or_preserve;return sn(c,O)}if(cc(n)?(a=n.importClause)!=null&&a.isTypeOnly:n.isTypeOnly)return sn(c,T?f.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:f.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(g)return sn(c,f.resolution_mode_can_only_be_set_for_type_only_imports)}}function Bdt(n){return qd(Ml(n.value))}function Gdt(n){if(!G5(n,Jn(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Jh(n)&&jW(n)&&Uc(n,f.An_import_declaration_cannot_have_modifiers),Oge(n)){let a=n.importClause;a&&!Opt(a)&&(a.name&&mZ(a),a.namedBindings&&(a.namedBindings.kind===274?(mZ(a.namedBindings),W!==4&&(W<5||Nn(n).impliedNodeFormat===1)&&F_(F)&&rc(n,65536)):jd(n,n.moduleSpecifier)&&an(a.namedBindings.elements,mZ)))}w8e(n)}}function Vdt(n){if(!G5(n,Jn(n)?f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Jh(n),ox(n)||Oge(n)))if(mZ(n),Wr(n,32)&&ky(n),n.moduleReference.kind!==283){let a=fc(dr(n));if(a!==tt){let c=Qc(a);if(c&111551){let u=dp(n.moduleReference);bs(u,112575).flags&1920||we(u,f.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,is(u))}c&788968&&iM(n.name,f.Import_name_cannot_be_0)}n.isTypeOnly&&sn(n,f.An_import_alias_cannot_use_import_type)}else W>=5&&W!==200&&Nn(n).impliedNodeFormat===void 0&&!n.isTypeOnly&&!(n.flags&33554432)&&sn(n,f.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function jdt(n){if(!G5(n,Jn(n)?f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Jh(n)&&bne(n)&&Uc(n,f.An_export_declaration_cannot_have_modifiers),n.moduleSpecifier&&n.exportClause&&$p(n.exportClause)&&yn(n.exportClause.elements)&&oe===0&&rc(n,4194304),Udt(n),!n.moduleSpecifier||Oge(n))if(n.exportClause&&!V_(n.exportClause)){an(n.exportClause.elements,Ydt);let a=n.parent.kind===268&&sd(n.parent.parent),c=!a&&n.parent.kind===268&&!n.moduleSpecifier&&n.flags&33554432;n.parent.kind!==312&&!a&&!c&&we(n,f.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=jd(n,n.moduleSpecifier);a&&xv(a)?we(n.moduleSpecifier,f.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ai(a)):n.exportClause&&fZ(n.exportClause),W!==4&&(W<5||Nn(n).impliedNodeFormat===1)&&(n.exportClause?F_(F)&&rc(n,65536):rc(n,32768))}w8e(n)}}function Udt(n){var a;return n.isTypeOnly&&((a=n.exportClause)==null?void 0:a.kind)===279?mWe(n.exportClause):!1}function G5(n,a){let c=n.parent.kind===312||n.parent.kind===268||n.parent.kind===267;return c||Uc(n,a),!c}function Hdt(n){return CW(n,a=>!!dr(a).isReferenced)}function qdt(n){return CW(n,a=>!!Pi(dr(a)).constEnumReferenced)}function Jdt(n){return cc(n)&&n.importClause&&!n.importClause.isTypeOnly&&Hdt(n.importClause)&&!bZ(n.importClause,!0)&&!qdt(n.importClause)}function Kdt(n){return Nc(n)&&j_(n.moduleReference)&&!n.isTypeOnly&&dr(n).isReferenced&&!bZ(n,!1)&&!Pi(dr(n)).constEnumReferenced}function Xdt(n){if(ot)for(let a of n.statements)(Jdt(a)||Kdt(a))&&we(a,f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function Ydt(n){if(fZ(n),Xp(F)&&RP(n.propertyName||n.name,!0),n.parent.parent.moduleSpecifier)F_(F)&&W!==4&&(W<5||Nn(n).impliedNodeFormat===1)&&ar(n.propertyName||n.name)==="default"&&rc(n,131072);else{let a=n.propertyName||n.name,c=Xs(a,a.escapedText,2998271,void 0,void 0,!0);if(c&&(c===Le||c===Ke||c.declarations&&Y_(J(c.declarations[0]))))we(a,f.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,ar(a));else{!n.isTypeOnly&&!n.parent.parent.isTypeOnly&&ky(n);let u=c&&(c.flags&2097152?fc(c):c);(!u||Qc(u)&111551)&&Ml(n.propertyName||n.name)}}}function $dt(n){let a=n.isExportEquals?f.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(G5(n,a))return;let c=n.parent.kind===312?n.parent:n.parent.parent;if(c.kind===267&&!sd(c)){n.isExportEquals?we(n,f.An_export_assignment_cannot_be_used_in_a_namespace):we(n,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Jh(n)&&jW(n)&&Uc(n,f.An_export_assignment_cannot_have_modifiers);let u=Jc(n);u&&Cd(Ml(n.expression),si(u),n.expression);let _=!n.isExportEquals&&!(n.flags&33554432)&&F.verbatimModuleSyntax&&(W===1||Nn(n).impliedNodeFormat===1);if(n.expression.kind===80){let g=n.expression,T=Fp(bs(g,-1,!0,!0,n));if(T){let N=of(T,111551);if(MQ(T,g),Qc(T)&111551?(Ml(g),!_&&!(n.flags&33554432)&&F.verbatimModuleSyntax&&N&&we(g,n.isExportEquals?f.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:f.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,ar(g))):!_&&!(n.flags&33554432)&&F.verbatimModuleSyntax&&we(g,n.isExportEquals?f.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:f.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,ar(g)),!_&&!(n.flags&33554432)&&xf(F)&&!(T.flags&111551)){let O=Qc(T,!1,!0);T.flags&2097152&&O&788968&&!(O&111551)&&(!N||Nn(N)!==Nn(n))?we(g,n.isExportEquals?f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,ar(g),Ge):N&&Nn(N)!==Nn(n)&&Oh(we(g,n.isExportEquals?f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_import_type_where_0_is_imported:f._0_resolves_to_a_type_only_declaration_and_must_be_marked_type_only_in_this_file_before_re_exporting_when_1_is_enabled_Consider_using_export_type_0_as_default,ar(g),Ge),N,ar(g))}}else Ml(g);Xp(F)&&RP(g,!0)}else Ml(n.expression);_&&we(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),W8e(c),n.flags&33554432&&!gl(n.expression)&&sn(n.expression,f.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),n.isExportEquals&&(W>=5&&W!==200&&(n.flags&33554432&&Nn(n).impliedNodeFormat===99||!(n.flags&33554432)&&Nn(n).impliedNodeFormat!==1)?sn(n,f.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):W===4&&!(n.flags&33554432)&&sn(n,f.Export_assignment_is_not_supported_when_module_flag_is_system))}function Qdt(n){return hc(n.exports,(a,c)=>c!=="export=")}function W8e(n){let a=dr(n),c=Pi(a);if(!c.exportsChecked){let u=a.exports.get("export=");if(u&&Qdt(a)){let g=im(u)||u.valueDeclaration;g&&!Gy(g)&&!Jn(g)&&we(g,f.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let _=Q_(a);_&&_.forEach(({declarations:g,flags:T},N)=>{if(N==="__export"||T&1920)return;let O=Wv(g,Zw(ASe,e8(Gd)));if(!(T&524288&&O<=2)&&O>1&&!_Z(g))for(let B of g)ESe(B)&&La.add(vr(B,f.Cannot_redeclare_exported_variable_0,Ii(N)))}),c.exportsChecked=!0}}function _Z(n){return n&&n.length>1&&n.every(a=>Jn(a)&&ds(a)&&(DS(a.expression)||Eh(a.expression)))}function sa(n){if(n){let a=R;R=n,S=0,Zdt(n),R=a}}function Zdt(n){CL(n)&&an(n.jsDoc,({comment:c,tags:u})=>{F8e(c),an(u,_=>{F8e(_.comment),Jn(n)&&sa(_)})});let a=n.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&DL(n)&&n.flowNode&&!s5(n.flowNode)&&jc(F.allowUnreachableCode===!1,n,f.Unreachable_code_detected),a){case 168:return Bwe(n);case 169:return Gwe(n);case 172:return Uwe(n);case 171:return wlt(n);case 185:case 184:case 179:case 180:case 181:return Mw(n);case 174:case 173:return Wlt(n);case 175:return Flt(n);case 176:return zlt(n);case 177:case 178:return qwe(n);case 183:return bge(n);case 182:return Mlt(n);case 186:return Hlt(n);case 187:return qlt(n);case 188:return Jlt(n);case 189:return Klt(n);case 192:case 193:return Xlt(n);case 196:case 190:case 191:return sa(n.type);case 197:return Zlt(n);case 198:return ect(n);case 194:return tct(n);case 195:return nct(n);case 203:return rct(n);case 205:return ict(n);case 202:return oct(n);case 335:return Act(n);case 336:return Tct(n);case 353:case 345:case 347:return mct(n);case 352:return _ct(n);case 351:return hct(n);case 331:case 332:case 333:return vct(n);case 348:return yct(n);case 355:return bct(n);case 324:Ect(n);case 322:case 321:case 319:case 320:case 329:z8e(n),Ao(n,sa);return;case 325:eut(n);return;case 316:return sa(n.type);case 340:case 342:case 341:return Ict(n);case 357:return gct(n);case 350:return Sct(n);case 199:return Ylt(n);case 200:return $lt(n);case 262:return fct(n);case 241:case 268:return lZ(n);case 243:return jct(n);case 244:return Uct(n);case 245:return Hct(n);case 246:return Kct(n);case 247:return Xct(n);case 248:return Yct(n);case 249:return Qct(n);case 250:return $ct(n);case 251:case 252:return odt(n);case 253:return adt(n);case 254:return sdt(n);case 255:return ldt(n);case 256:return cdt(n);case 257:return ddt(n);case 258:return udt(n);case 260:return Gct(n);case 208:return Vct(n);case 263:return ydt(n);case 264:return Cdt(n);case 265:return Ndt(n);case 266:return Ldt(n);case 267:return Fdt(n);case 272:return Gdt(n);case 271:return Vdt(n);case 278:return jdt(n);case 277:return $dt(n);case 242:case 259:zg(n);return;case 282:return Glt(n)}}function F8e(n){oo(n)&&an(n,a=>{PA(a)&&sa(a)})}function z8e(n){if(!Jn(n))if(b6(n)||Bx(n)){let a=qo(b6(n)?54:58),c=n.postfix?f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,u=n.type,_=si(u);sn(n,c,a,Pn(Bx(n)&&!(_===Ar||_===jn)?Br(pn([_,Re],n.postfix?void 0:se)):_))}else sn(n,f.JSDoc_types_can_only_be_used_inside_documentation_comments)}function eut(n){z8e(n),sa(n.type);let{parent:a}=n;if(ao(a)&&Gx(a.parent)){Da(a.parent.parameters)!==a&&we(n,f.A_rest_parameter_must_be_last_in_a_parameter_list);return}f0(a)||we(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let c=n.parent.parent;if(!Tm(c)){we(n,f.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let u=NL(c);if(!u)return;let _=xb(c);(!_||Da(_.parameters).symbol!==u)&&we(n,f.A_rest_parameter_must_be_last_in_a_parameter_list)}function tut(n){let a=si(n.type),{parent:c}=n,u=n.parent.parent;if(f0(n.parent)&&Tm(u)){let _=xb(u),g=Dj(u.parent.parent);if(_||g){let T=Ns(g?u.parent.parent.typeExpression.parameters:_.parameters),N=NL(u);if(!T||N&&T.symbol===N&&gh(T))return _d(a)}}return ao(c)&&Gx(c.parent)?_d(a):Mu(a)}function E1(n){let a=Nn(n),c=Fr(a);c.flags&1?x.assert(!c.deferredNodes,"A type-checked file should have no deferred nodes."):(c.deferredNodes||(c.deferredNodes=new Set),c.deferredNodes.add(n))}function nut(n){let a=Fr(n);a.deferredNodes&&a.deferredNodes.forEach(rut),a.deferredNodes=void 0}function rut(n){var a,c;(a=qn)==null||a.push(qn.Phase.Check,"checkDeferredNode",{kind:n.kind,pos:n.pos,end:n.end,path:n.tracingPath});let u=R;switch(R=n,S=0,n.kind){case 213:case 214:case 215:case 170:case 286:cA(n);break;case 218:case 219:case 174:case 173:$st(n);break;case 177:case 178:qwe(n);break;case 231:vdt(n);break;case 168:Plt(n);break;case 285:aat(n);break;case 284:lat(n);break;case 216:case 234:case 217:Ast(n);break;case 222:Xi(n.expression);break;case 226:qW(n)&&cA(n);break}R=u,(c=qn)==null||c.pop()}function iut(n){var a,c;(a=qn)==null||a.push(qn.Phase.Check,"checkSourceFile",{path:n.path},!0),Ls("beforeCheck"),out(n),Ls("afterCheck"),Ep("Check","beforeCheck","afterCheck"),(c=qn)==null||c.pop()}function B8e(n,a){if(a)return!1;switch(n){case 0:return!!F.noUnusedLocals;case 1:return!!F.noUnusedParameters;default:return x.assertNever(n)}}function G8e(n){return kp.get(n.path)||je}function out(n){let a=Fr(n);if(!(a.flags&1)){if(UC(n,F,e))return;Ppt(n),ph(P0),ph(M0),ph(Iy),ph(xy),ph(kh),an(n.statements,sa),sa(n.endOfFileToken),nut(n),sp(n)&&sb(n),r(()=>{!n.isDeclarationFile&&(F.noUnusedLocals||F.noUnusedParameters)&&i8e(G8e(n),(c,u,_)=>{!X1(c)&&B8e(u,!!(c.flags&33554432))&&La.add(_)}),n.isDeclarationFile||Cct()}),F.importsNotUsedAsValues===2&&!n.isDeclarationFile&&wl(n)&&Xdt(n),sp(n)&&W8e(n),P0.length&&(an(P0,Mct),ph(P0)),M0.length&&(an(M0,Lct),ph(M0)),Iy.length&&(an(Iy,Wct),ph(Iy)),xy.length&&(an(xy,zct),ph(xy)),a.flags|=1}}function V8e(n,a){try{return i=a,aut(n)}finally{i=void 0}}function Wge(){for(let n of t)n();t=[]}function Fge(n){Wge();let a=r;r=c=>c(),iut(n),r=a}function aut(n){if(n){Wge();let a=La.getGlobalDiagnostics(),c=a.length;Fge(n);let u=La.getDiagnostics(n.fileName),_=La.getGlobalDiagnostics();if(_!==a){let g=LZ(a,_,zC);return ro(g,u)}else if(c===0&&_.length>0)return ro(_,u);return u}return an(e.getSourceFiles(),Fge),La.getDiagnostics()}function sut(){return Wge(),La.getGlobalDiagnostics()}function lut(n,a){if(n.flags&67108864)return[];let c=Vo(),u=!1;return _(),c.delete("this"),Ume(c);function _(){for(;n;){switch(M_(n)&&n.locals&&!Y_(n)&&T(n.locals,a),n.kind){case 312:if(!wl(n))break;case 267:N(dr(n).exports,a&2623475);break;case 266:T(dr(n).exports,a&8);break;case 231:n.name&&g(n.symbol,a);case 263:case 264:u||T(Ky(dr(n)),a&788968);break;case 218:n.name&&g(n.symbol,a);break}zte(n)&&g(Dt,a),u=zo(n),n=n.parent}T(he,a)}function g(O,B){if(Sx(O)&B){let Q=O.escapedName;c.has(Q)||c.set(Q,O)}}function T(O,B){B&&O.forEach(Q=>{g(Q,B)})}function N(O,B){B&&O.forEach(Q=>{!Vs(Q,281)&&!Vs(Q,280)&&Q.escapedName!=="default"&&g(Q,B)})}}function cut(n){return n.kind===80&&Cx(n.parent)&&mo(n.parent)===n}function j8e(n){for(;n.parent.kind===166;)n=n.parent;return n.parent.kind===183}function dut(n){for(;n.parent.kind===211;)n=n.parent;return n.parent.kind===233}function U8e(n,a){let c,u=Oc(n);for(;u&&!(c=a(u));)u=Oc(u);return c}function uut(n){return!!Rn(n,a=>ll(a)&&gf(a.body)||xo(a)?!0:Kr(a)||_s(a)?"quit":!1)}function zge(n,a){return!!U8e(n,c=>c===a)}function put(n){for(;n.parent.kind===166;)n=n.parent;if(n.parent.kind===271)return n.parent.moduleReference===n?n.parent:void 0;if(n.parent.kind===277)return n.parent.expression===n?n.parent:void 0}function hZ(n){return put(n)!==void 0}function fut(n){switch(hl(n.parent.parent)){case 1:case 3:return Wp(n.parent);case 5:if(Er(n.parent)&&Tx(n.parent)===n)return;case 4:case 2:return dr(n.parent.parent)}}function mut(n){let a=n.parent;for(;$d(a);)n=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===n)return a}function _ut(n){if(n.expression.kind===110){let a=lu(n,!1,!1);if(Lo(a)){let c=tOe(a);if(c){let u=CE(c,void 0),_=rOe(c,u);return _&&!vt(_)}}}}function H8e(n){if(ng(n))return Wp(n.parent);if(Jn(n)&&n.parent.kind===211&&n.parent===n.parent.parent.left&&!Ci(n)&&!Ob(n)&&!_ut(n.parent)){let a=fut(n);if(a)return a}if(n.parent.kind===277&&gl(n)){let a=bs(n,2998271,!0);if(a&&a!==tt)return a}else if(Su(n)&&hZ(n)){let a=Db(n,271);return x.assert(a!==void 0),i1(n,!0)}if(Su(n)){let a=mut(n);if(a){si(a);let c=Fr(n).resolvedSymbol;return c===tt?void 0:c}}for(;xne(n);)n=n.parent;if(dut(n)){let a=0;n.parent.kind===233?(a=yh(n)?788968:111551,HW(n.parent)&&(a|=111551)):a=1920,a|=2097152;let c=gl(n)?bs(n,a,!0):void 0;if(c)return c}if(n.parent.kind===348)return NL(n.parent);if(n.parent.kind===168&&n.parent.parent.kind===352){x.assert(!Jn(n));let a=Qte(n.parent);return a&&a.symbol}if(bh(n)){if(_l(n))return;let a=Rn(n,hm(PA,hN,Ob)),c=a?901119:111551;if(n.kind===80){if(ix(n)&&b1(n)){let _=zQ(n.parent);return _===tt?void 0:_}let u=bs(n,c,!0,!0,xb(n));if(!u&&a){let _=Rn(n,hm(Kr,Gd));if(_)return V5(n,!0,dr(_))}if(u&&a){let _=PS(n);if(_&&p0(_)&&_===u.valueDeclaration)return bs(n,c,!0,!0,Nn(_))||u}return u}else{if(Ci(n))return VQ(n);if(n.kind===211||n.kind===166){let u=Fr(n);return u.resolvedSymbol?u.resolvedSymbol:(n.kind===211?(BQ(n,0),u.resolvedSymbol||(u.resolvedSymbol=q8e(Ml(n.expression),Pv(n.name)))):NOe(n,0),!u.resolvedSymbol&&a&&$d(n)?V5(n):u.resolvedSymbol)}else if(Ob(n))return V5(n)}}else if(j8e(n)){let a=n.parent.kind===183?788968:1920,c=bs(n,a,!1,!0);return c&&c!==tt?c:V$(n)}if(n.parent.kind===182)return bs(n,1)}function q8e(n,a){let c=jme(n,a);if(c.length&&n.members){let u=z$(Om(n).members);if(c===Ud(n))return u;if(u){let _=Pi(u),g=Fi(c,N=>N.declaration),T=nn(g,Fa).join(",");if(_.filteredIndexSymbolCache||(_.filteredIndexSymbolCache=new Map),_.filteredIndexSymbolCache.has(T))return _.filteredIndexSymbolCache.get(T);{let N=xa(131072,"__index");return N.declarations=Fi(c,O=>O.declaration),N.parent=n.aliasSymbol?n.aliasSymbol:n.symbol?n.symbol:um(N.declarations[0].parent),_.filteredIndexSymbolCache.set(T,N),N}}}}function V5(n,a,c){if(Su(n)){let T=bs(n,901119,a,!0,xb(n));if(!T&&Me(n)&&c&&(T=Oa(gu(Qu(c),n.escapedText,901119))),T)return T}let u=Me(n)?c:V5(n.left,a,c),_=Me(n)?n.escapedText:n.right.escapedText;if(u){let g=u.flags&111551&&Qo(Yn(u),"prototype"),T=g?Yn(g):Cs(u);return Qo(T,_)}}function um(n,a){if(Li(n))return wl(n)?Oa(n.symbol):void 0;let{parent:c}=n,u=c.parent;if(!(n.flags&67108864)){if(SSe(n)){let _=dr(c);return RA(n.parent)&&n.parent.propertyName===n?Nhe(_):_}else if(LL(n))return dr(c.parent);if(n.kind===80){if(hZ(n))return H8e(n);if(c.kind===208&&u.kind===206&&n===c.propertyName){let _=S1(u),g=Qo(_,n.escapedText);if(g)return g}else if(cN(c)&&c.name===n)return c.keywordToken===105&&ar(n)==="target"?rge(c).symbol:c.keywordToken===102&&ar(n)==="meta"?KLe().members.get("meta"):void 0}switch(n.kind){case 80:case 81:case 211:case 166:if(!zA(n))return H8e(n);case 110:let _=lu(n,!1,!1);if(Lo(_)){let N=kf(_);if(N.thisParameter)return N.thisParameter}if(bW(n))return Xi(n).symbol;case 197:return Q$(n).symbol;case 108:return Xi(n).symbol;case 137:let g=n.parent;return g&&g.kind===176?g.parent.symbol:void 0;case 11:case 15:if(Ab(n.parent.parent)&&gC(n.parent.parent)===n||(n.parent.kind===272||n.parent.kind===278)&&n.parent.moduleSpecifier===n||Jn(n)&&Xd(n.parent,!1)||lp(n.parent)||uy(n.parent)&&ey(n.parent.parent)&&n.parent.parent.argument===n.parent)return jd(n,n,a);if(Bo(c)&&CS(c)&&c.arguments[1]===n)return dr(c);case 9:let T=Rs(c)?c.argumentExpression===n?td(c.expression):void 0:uy(c)&&US(u)?si(u.objectType):void 0;return T&&Qo(T,Hs(n.text));case 90:case 100:case 39:case 86:return Wp(n.parent);case 205:return ey(n)?um(n.argument.literal,a):void 0;case 95:return dl(n.parent)?x.checkDefined(n.parent.symbol):void 0;case 102:case 105:return cN(n.parent)?fwe(n.parent).symbol:void 0;case 104:if(Zn(n.parent)){let N=td(n.parent.right),O=pge(N);return O?.symbol??N.symbol}return;case 236:return Xi(n).symbol;case 295:if(ix(n)&&b1(n)){let N=zQ(n.parent);return N===tt?void 0:N}default:return}}}function hut(n){if(Me(n)&&Er(n.parent)&&n.parent.name===n){let a=Pv(n),c=td(n.parent.expression),u=c.flags&1048576?c.types:[c];return ta(u,_=>Cr(Ud(_),g=>f1(a,g.keyType)))}}function gut(n){if(n&&n.kind===304)return bs(n.name,2208703)}function vut(n){return Ed(n)?n.parent.parent.moduleSpecifier?Sg(n.parent.parent,n):bs(n.propertyName||n.name,2998271):bs(n,2998271)}function S1(n){if(Li(n)&&!wl(n)||n.flags&67108864)return it;let a=uV(n),c=a&&cf(dr(a.class));if(yh(n)){let u=si(n);return c?hp(u,c.thisType):u}if(bh(n))return J8e(n);if(c&&!a.isImplements){let u=Ac(ep(c));return u?hp(u,c.thisType):it}if(Cx(n)){let u=dr(n);return Cs(u)}if(cut(n)){let u=um(n);return u?Cs(u):it}if(Na(n))return jT(n,!0,0)||it;if(bd(n)){let u=dr(n);return u?Yn(u):it}if(SSe(n)){let u=um(n);return u?Yn(u):it}if(ko(n))return jT(n.parent,!0,0)||it;if(hZ(n)){let u=um(n);if(u){let _=Cs(u);return Lt(_)?Yn(u):_}}return cN(n.parent)&&n.parent.keywordToken===n.kind?fwe(n.parent):uI(n)?i_e(!1):it}function gZ(n){if(x.assert(n.kind===210||n.kind===209),n.parent.kind===250){let _=F5(n.parent);return uA(n,_||it)}if(n.parent.kind===226){let _=td(n.parent.right);return uA(n,_||it)}if(n.parent.kind===303){let _=Fo(n.parent.parent,fa),g=gZ(_)||it,T=Y1(_.properties,n.parent);return Nwe(_,g,T)}let a=Fo(n.parent,Bd),c=gZ(a)||it,u=Ov(65,c,Re,n.parent)||it;return Pwe(a,c,a.elements.indexOf(n),u)}function yut(n){let a=gZ(Fo(n.parent.parent,lC));return a&&Qo(a,n.escapedText)}function J8e(n){return LC(n)&&(n=n.parent),qd(td(n))}function K8e(n){let a=Wp(n.parent);return zo(n)?Yn(a):Cs(a)}function X8e(n){let a=n.name;switch(a.kind){case 80:return yu(ar(a));case 9:case 11:return yu(a.text);case 167:let c=Hh(a);return ed(c,12288)?c:Ie;default:return x.fail("Unsupported property name.")}}function Bge(n){n=ou(n);let a=Vo(Xa(n)),c=Co(n,0).length?Ln:Co(n,1).length?eo:void 0;return c&&an(Xa(c),u=>{a.has(u.escapedName)||a.set(u.escapedName,u)}),dE(a)}function vZ(n){return Co(n,0).length!==0||Co(n,1).length!==0}function Y8e(n){let a=but(n);return a?ta(a,Y8e):[n]}function but(n){if(tl(n)&6)return Fi(Pi(n).containingType.types,a=>Qo(a,n.escapedName));if(n.flags&33554432){let{links:{leftSpread:a,rightSpread:c,syntheticOrigin:u}}=n;return a?[a,c]:u?[u]:EA(Eut(n))}}function Eut(n){let a,c=n;for(;c=Pi(c).target;)a=c;return a}function Sut(n){if(ws(n))return!1;let a=uo(n,Me);if(!a)return!1;let c=a.parent;return c?!((Er(c)||Hl(c))&&c.name===a)&&Gw(a)===Dt:!1}function Tut(n){let a=jd(n.parent,n);if(!a||pC(a))return!0;let c=xv(a);a=$u(a);let u=Pi(a);return u.exportsSomeValue===void 0&&(u.exportsSomeValue=c?!!(a.flags&111551):hc(Q_(a),_)),u.exportsSomeValue;function _(g){return g=yl(g),g&&!!(Qc(g)&111551)}}function Aut(n){return $M(n.parent)&&n===n.parent.name}function Iut(n,a){var c;let u=uo(n,Me);if(u){let _=Gw(u,Aut(u));if(_){if(_.flags&1048576){let T=Oa(_.exportSymbol);if(!a&&T.flags&944&&!(T.flags&3))return;_=T}let g=nu(_);if(g){if(g.flags&512&&((c=g.valueDeclaration)==null?void 0:c.kind)===312){let T=g.valueDeclaration,N=Nn(u);return T!==N?void 0:T}return Rn(u.parent,T=>$M(T)&&dr(T)===g)}}}}function xut(n){let a=wre(n);if(a)return a;let c=uo(n,Me);if(c){let u=zut(c);if(MT(u,111551)&&!of(u,111551))return im(u)}}function Rut(n){return n.valueDeclaration&&Na(n.valueDeclaration)&&B1(n.valueDeclaration).parent.kind===299}function $8e(n){if(n.flags&418&&n.valueDeclaration&&!Li(n.valueDeclaration)){let a=Pi(n);if(a.isDeclarationWithCollidingName===void 0){let c=O_(n.valueDeclaration);if(vte(c)||Rut(n)){let u=Fr(n.valueDeclaration);if(Xs(c.parent,n.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(u.flags&16384){let _=u.flags&32768,g=Xv(c,!1),T=c.kind===241&&Xv(c.parent,!1);a.isDeclarationWithCollidingName=!Ite(c)&&(!_||!g&&!T)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function Dut(n){if(!ws(n)){let a=uo(n,Me);if(a){let c=Gw(a);if(c&&$8e(c))return c.valueDeclaration}}}function Cut(n){let a=uo(n,bd);if(a){let c=dr(a);if(c)return $8e(c)}return!1}function Q8e(n){switch(x.assert(ot),n.kind){case 271:return yZ(dr(n));case 273:case 274:case 276:case 281:let a=dr(n);return!!a&&yZ(a,!0);case 278:let c=n.exportClause;return!!c&&(V_(c)||ct(c.elements,Q8e));case 277:return n.expression&&n.expression.kind===80?yZ(dr(n),!0):!0}return!1}function Nut(n){let a=uo(n,Nc);return a===void 0||a.parent.kind!==312||!ox(a)?!1:yZ(dr(a))&&a.moduleReference&&!_l(a.moduleReference)}function yZ(n,a){if(!n)return!1;let c=Fp(fc(n));return c===tt?!a||!of(n):!!(Qc(n,a,!0)&111551)&&(n0(F)||!Bw(c))}function Bw(n){return uge(n)||!!n.constEnumOnlyModule}function bZ(n,a){if(x.assert(ot),Py(n)){let c=dr(n),u=c&&Pi(c);if(u?.referenced)return!0;let _=Pi(c).aliasTarget;if(_&&Wd(n)&32&&Qc(_)&111551&&(n0(F)||!Bw(_)))return!0}return a?!!Ao(n,c=>bZ(c,a)):!1}function Z8e(n){if(gf(n.body)){if(Yv(n)||$g(n))return!1;let a=dr(n),c=J0(a);return c.length>1||c.length===1&&c[0].declaration!==n}return!1}function eWe(n){return!!H&&!ow(n)&&!Tm(n)&&!!n.initializer&&!Wr(n,31)}function Put(n){return H&&ow(n)&&!n.initializer&&Wr(n,31)}function Mut(n){let a=uo(n,Ql);if(!a)return!1;let c=dr(a);return!c||!(c.flags&16)?!1:!!hc(Qu(c),u=>u.flags&111551&&EF(u.valueDeclaration))}function Lut(n){let a=uo(n,Ql);if(!a)return je;let c=dr(a);return c&&Xa(Yn(c))||je}function PD(n){var a;let c=n.id||0;return c<0||c>=N0.length?0:((a=N0[c])==null?void 0:a.flags)||0}function MD(n){return L8e(n.parent),Fr(n).enumMemberValue}function tWe(n){switch(n.kind){case 306:case 211:case 212:return!0}return!1}function Gge(n){if(n.kind===306)return MD(n);let a=Fr(n).resolvedSymbol;if(a&&a.flags&8){let c=a.valueDeclaration;if(BE(c.parent))return MD(c)}}function Vge(n){return!!(n.flags&524288)&&Co(n,0).length>0}function kut(n,a){var c;let u=uo(n,Su);if(!u||a&&(a=uo(a),!a))return 0;let _=!1;if($d(u)){let Q=bs(dp(u),111551,!0,!0,a);_=!!((c=Q?.declarations)!=null&&c.every(Sb))}let g=bs(u,111551,!0,!0,a),T=g&&g.flags&2097152?fc(g):g;_||(_=!!(g&&of(g,111551)));let N=bs(u,788968,!0,!0,a),O=N&&N.flags&2097152?fc(N):N;if(g||_||(_=!!(N&&of(N,788968))),T&&T===O){let Q=o_e(!1);if(Q&&T===Q)return 9;let me=Yn(T);if(me&&wa(me))return _?10:1}if(!O)return _?11:0;let B=Cs(O);return Lt(B)?_?11:0:B.flags&3?11:ed(B,245760)?2:ed(B,528)?6:ed(B,296)?3:ed(B,2112)?4:ed(B,402653316)?5:ha(B)?7:ed(B,12288)?8:Vge(B)?10:ff(B)?7:11}function Out(n,a,c,u,_){let g=uo(n,wte);if(!g)return P.createToken(133);let T=dr(g),N=T&&!(T.flags&133120)?eS(Yn(T)):it;return N.flags&8192&&N.symbol===T&&(c|=1048576),_&&(N=ib(N)),ft.typeToTypeNode(N,a,c|1024,u)}function wut(n,a,c,u){let _=uo(n,Lo);if(!_)return P.createToken(133);let g=kf(_);return ft.typeToTypeNode(Ha(g),a,c|1024,u)}function Wut(n,a,c,u){let _=uo(n,lt);if(!_)return P.createToken(133);let g=gp(J8e(_));return ft.typeToTypeNode(g,a,c|1024,u)}function Fut(n){return he.has(Hs(n))}function Gw(n,a){let c=Fr(n).resolvedSymbol;if(c)return c;let u=n;if(a){let _=n.parent;bd(_)&&n===_.name&&(u=J(_))}return Xs(u,n.escapedText,3257279,void 0,void 0,!0)}function zut(n){let a=Fr(n).resolvedSymbol;return a&&a!==tt?a:Xs(n,n.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function But(n){if(!ws(n)){let a=uo(n,Me);if(a){let c=Gw(a);if(c)return Fp(c).valueDeclaration}}}function Gut(n){if(!ws(n)){let a=uo(n,Me);if(a){let c=Gw(a);if(c)return Cr(Fp(c).declarations,u=>{switch(u.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Vut(n){return sW(n)||yi(n)&&U5(n)?$0(Yn(dr(n))):!1}function jut(n,a,c){let u=n.flags&1056?ft.symbolToExpression(n.symbol,111551,a,void 0,c):n===An?P.createTrue():n===Ot&&P.createFalse();if(u)return u;let _=n.value;return typeof _=="object"?P.createBigIntLiteral(_):typeof _=="string"?P.createStringLiteral(_):_<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-_)):P.createNumericLiteral(_)}function Uut(n,a){let c=Yn(dr(n));return jut(c,n,a)}function nWe(n){return n?(tE(n),Nn(n).localJsxFactory||vg):vg}function jge(n){if(n){let a=Nn(n);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let c=a.pragmas.get("jsxfrag"),u=oo(c)?c[0]:c;if(u)return a.localJsxFragmentFactory=gI(u.arguments.factory,oe),a.localJsxFragmentFactory}}if(F.jsxFragmentFactory)return gI(F.jsxFragmentFactory,oe)}function Hut(){let n=e.getResolvedTypeReferenceDirectives(),a;return n&&(a=new Map,n.forEach(({resolvedTypeReferenceDirective:O},B,Q)=>{if(!O?.resolvedFileName)return;let me=e.getSourceFile(O.resolvedFileName);me&&N(me,B,Q)})),{getReferencedExportContainer:Iut,getReferencedImportDeclaration:xut,getReferencedDeclarationWithCollidingName:Dut,isDeclarationWithCollidingName:Cut,isValueAliasDeclaration:O=>{let B=uo(O);return B&&ot?Q8e(B):!0},hasGlobalName:Fut,isReferencedAliasDeclaration:(O,B)=>{let Q=uo(O);return Q&&ot?bZ(Q,B):!0},getNodeCheckFlags:O=>{let B=uo(O);return B?PD(B):0},isTopLevelValueImportEqualsWithEntityName:Nut,isDeclarationVisible:Pm,isImplementationOfOverload:Z8e,isRequiredInitializedParameter:eWe,isOptionalUninitializedParameterProperty:Put,isExpandoFunctionDeclaration:Mut,getPropertiesOfContainerFunction:Lut,createTypeOfDeclaration:Out,createReturnTypeOfSignatureDeclaration:wut,createTypeOfExpression:Wut,createLiteralConstValue:Uut,isSymbolAccessible:vi,isEntityNameVisible:Fy,getConstantValue:O=>{let B=uo(O,tWe);return B?Gge(B):void 0},collectLinkedAliases:RP,getReferencedValueDeclaration:But,getReferencedValueDeclarations:Gut,getTypeReferenceSerializationKind:kut,isOptionalParameter:ow,moduleExportsSomeValue:Tut,isArgumentsLocalBinding:Sut,getExternalModuleFileFromDeclaration:O=>{let B=uo(O,Rte);return B&&Uge(B)},getTypeReferenceDirectivesForEntityName:_,getTypeReferenceDirectivesForSymbol:g,isLiteralConstDeclaration:Vut,isLateBound:O=>{let B=uo(O,bd),Q=B&&dr(B);return!!(Q&&tl(Q)&4096)},getJsxFactoryEntity:nWe,getJsxFragmentFactoryEntity:jge,getAllAccessorDeclarations(O){O=uo(O,w8);let B=O.kind===178?177:178,Q=Vs(dr(O),B),me=Q&&Q.pos<O.pos?Q:O,ue=Q&&Q.pos<O.pos?O:Q,We=O.kind===178?O:Q,at=O.kind===177?O:Q;return{firstAccessor:me,secondAccessor:ue,setAccessor:We,getAccessor:at}},getSymbolOfExternalModuleSpecifier:O=>Tg(O,O,void 0),isBindingCapturedByNode:(O,B)=>{let Q=uo(O),me=uo(B);return!!Q&&!!me&&(yi(me)||Na(me))&&_ot(Q,me)},getDeclarationStatementsForSourceFile:(O,B,Q,me)=>{let ue=uo(O);x.assert(ue&&ue.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");let We=dr(O);return We?We.exports?ft.symbolTableToDeclarationStatements(We.exports,O,B,Q,me):[]:O.locals?ft.symbolTableToDeclarationStatements(O.locals,O,B,Q,me):[]},isImportRequiredByAugmentation:c,tryFindAmbientModule:O=>{let B=uo(O),Q=B&&Ga(B)?B.text:void 0;return Q!==void 0?w$(Q,!0):void 0}};function c(O){let B=Nn(O);if(!B.symbol)return!1;let Q=Uge(O);if(!Q||Q===B)return!1;let me=Q_(B.symbol);for(let ue of bo(me.values()))if(ue.mergeId){let We=Oa(ue);if(We.declarations){for(let at of We.declarations)if(Nn(at)===Q)return!0}}return!1}function u(O){return O.parent&&O.parent.kind===233&&O.parent.parent&&O.parent.parent.kind===298}function _(O){if(!a)return;let B;O.parent.kind===167?B=1160127:(B=790504,(O.kind===80&&OS(O)||O.kind===211&&!u(O))&&(B=1160127));let Q=bs(O,B,!0);return Q&&Q!==tt?g(Q,B):void 0}function g(O,B){if(!a||!T(O))return;let Q;for(let me of O.declarations)if(me.symbol&&me.symbol.flags&B){let ue=Nn(me),We=a.get(ue.path);if(We)(Q||(Q=[])).push(We);else return}return Q}function T(O){if(!O.declarations)return!1;let B=O;for(;;){let Q=nu(B);if(Q)B=Q;else break}if(B.valueDeclaration&&B.valueDeclaration.kind===312&&B.flags&512)return!1;for(let Q of O.declarations){let me=Nn(Q);if(a.has(me.path))return!0}return!1}function N(O,B,Q){if(!a.has(O.path)){a.set(O.path,[B,Q]);for(let{fileName:me}of O.referencedFiles){let ue=M4(me,O.fileName),We=e.getSourceFile(ue);We&&N(We,B,Q||O.impliedNodeFormat)}}}}function Uge(n){let a=n.kind===267?Vr(n.name,ca):lx(n),c=Tg(a,a,void 0);if(c)return Vs(c,312)}function qut(){for(let a of e.getSourceFiles())_oe(a,F);Za=new Map;let n;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!sp(a)){let c=a.locals.get("globalThis");if(c?.declarations)for(let u of c.declarations)La.add(vr(u,f.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));Cm(he,a.locals)}a.jsGlobalAugmentations&&Cm(he,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Nf=ro(Nf,a.patternAmbientModules)),a.moduleAugmentations.length&&(n||(n=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((u,_)=>{he.has(_)||he.set(_,u)})}if(n)for(let a of n)for(let c of a)qm(c.parent)&&JR(c);if(L0(he,bT,f.Declaration_name_conflicts_with_built_in_global_identifier_0),Pi(Le).type=St,Pi(Dt).type=Pl("IArguments",0,!0),Pi(tt).type=it,Pi(Ke).type=af(16,Ke),Po=Pl("Array",1,!0),Se=Pl("Object",0,!0),At=Pl("Function",0,!0),Ln=le&&Pl("CallableFunction",0,!0)||At,eo=le&&Pl("NewableFunction",0,!0)||At,Cl=Pl("String",0,!0),Kl=Pl("Number",0,!0),Bs=Pl("Boolean",0,!0),Ks=Pl("RegExp",0,!0),Nl=_d(z),Sc=_d(Je),Sc===da&&(Sc=cs(void 0,U,je,je,je)),Oo=e2e("ReadonlyArray",1)||Po,Lp=Oo?lw(Oo,[z]):Nl,vl=e2e("ThisType",1),n)for(let a of n)for(let c of a)qm(c.parent)||JR(c);Za.forEach(({firstFile:a,secondFile:c,conflictingSymbols:u})=>{if(u.size<8)u.forEach(({isBlockScoped:_,firstFileLocations:g,secondFileLocations:T},N)=>{let O=_?f.Cannot_redeclare_block_scoped_variable_0:f.Duplicate_identifier_0;for(let B of g)yg(B,O,N,T);for(let B of T)yg(B,O,N,g)});else{let _=bo(u.keys()).join(", ");La.add(pa(vr(a,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),vr(c,f.Conflicts_are_in_this_file))),La.add(pa(vr(c,f.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,_),vr(a,f.Conflicts_are_in_this_file)))}}),Za=void 0}function rc(n,a){if((s&a)!==a&&F.importHelpers){let c=Nn(n);if(MA(c,F)&&!(n.flags&33554432)){let u=Kut(c,n);if(u!==tt){let _=a&~s;for(let g=1;g<=33554432;g<<=1)if(_&g)for(let T of Jut(g)){if(o.has(T))continue;o.add(T);let N=yl(gu(Q_(u),Hs(T),111551));N?g&524288?ct(J0(N),O=>vp(O)>3)||we(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,ay,T,4):g&1048576?ct(J0(N),O=>vp(O)>4)||we(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,ay,T,5):g&1024&&(ct(J0(N),O=>vp(O)>2)||we(n,f.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,ay,T,3)):we(n,f.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,ay,T)}}s|=a}}}function Jut(n){switch(n){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return $?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return x.fail("Unrecognized helper")}}function Kut(n,a){return l||(l=m_(n,ay,f.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||tt),l}function Jh(n){var a;let c=$ut(n)||Xut(n);if(c!==void 0)return c;if(ao(n)&&XE(n))return Uc(n,f.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let u=cl(n)?n.declarationList.flags&7:0,_,g,T,N,O,B=0,Q=!1,me=!1;for(let ue of n.modifiers)if(Xc(ue)){if(yW($,n,n.parent,n.parent.parent)){if($&&(n.kind===177||n.kind===178)){let We=wS(n.parent.members,n);if(Hp(We.firstAccessor)&&n===We.secondAccessor)return Uc(n,f.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return n.kind===174&&!gf(n.body)?Uc(n,f.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):Uc(n,f.Decorators_are_not_valid_here);if(B&-34849)return sn(ue,f.Decorators_are_not_valid_here);if(me&&B&98303){x.assertIsDefined(O);let We=Nn(ue);return aS(We)?!1:(pa(we(ue,f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),vr(O,f.Decorator_used_before_export_here)),!0)}B|=32768,B&98303?B&32&&(Q=!0):me=!0,O??(O=ue)}else{if(ue.kind!==148){if(n.kind===171||n.kind===173)return sn(ue,f._0_modifier_cannot_appear_on_a_type_member,qo(ue.kind));if(n.kind===181&&(ue.kind!==126||!Kr(n.parent)))return sn(ue,f._0_modifier_cannot_appear_on_an_index_signature,qo(ue.kind))}if(ue.kind!==103&&ue.kind!==147&&ue.kind!==87&&n.kind===168)return sn(ue,f._0_modifier_cannot_appear_on_a_type_parameter,qo(ue.kind));switch(ue.kind){case 87:{if(n.kind!==266&&n.kind!==168)return sn(n,f.A_class_member_cannot_have_the_0_keyword,qo(87));let ht=Df(n.parent)&&Rb(n.parent)||n.parent;if(n.kind===168&&!(_s(ht)||Kr(ht)||B_(ht)||kx(ht)||iI(ht)||S2(ht)||z_(ht)))return sn(ue,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,qo(ue.kind));break}case 164:if(B&16)return sn(ue,f._0_modifier_already_seen,"override");if(B&128)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(B&8)return sn(ue,f._0_modifier_must_precede_1_modifier,"override","readonly");if(B&512)return sn(ue,f._0_modifier_must_precede_1_modifier,"override","accessor");if(B&1024)return sn(ue,f._0_modifier_must_precede_1_modifier,"override","async");B|=16,N=ue;break;case 125:case 124:case 123:let We=VT(GA(ue.kind));if(B&7)return sn(ue,f.Accessibility_modifier_already_seen);if(B&16)return sn(ue,f._0_modifier_must_precede_1_modifier,We,"override");if(B&256)return sn(ue,f._0_modifier_must_precede_1_modifier,We,"static");if(B&512)return sn(ue,f._0_modifier_must_precede_1_modifier,We,"accessor");if(B&8)return sn(ue,f._0_modifier_must_precede_1_modifier,We,"readonly");if(B&1024)return sn(ue,f._0_modifier_must_precede_1_modifier,We,"async");if(n.parent.kind===268||n.parent.kind===312)return sn(ue,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,We);if(B&64)return ue.kind===123?sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,We,"abstract"):sn(ue,f._0_modifier_must_precede_1_modifier,We,"abstract");if(kd(n))return sn(ue,f.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);B|=GA(ue.kind);break;case 126:if(B&256)return sn(ue,f._0_modifier_already_seen,"static");if(B&8)return sn(ue,f._0_modifier_must_precede_1_modifier,"static","readonly");if(B&1024)return sn(ue,f._0_modifier_must_precede_1_modifier,"static","async");if(B&512)return sn(ue,f._0_modifier_must_precede_1_modifier,"static","accessor");if(n.parent.kind===268||n.parent.kind===312)return sn(ue,f._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(n.kind===169)return sn(ue,f._0_modifier_cannot_appear_on_a_parameter,"static");if(B&64)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(B&16)return sn(ue,f._0_modifier_must_precede_1_modifier,"static","override");B|=256,_=ue;break;case 129:if(B&512)return sn(ue,f._0_modifier_already_seen,"accessor");if(B&8)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(B&128)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(n.kind!==172)return sn(ue,f.accessor_modifier_can_only_appear_on_a_property_declaration);B|=512;break;case 148:if(B&8)return sn(ue,f._0_modifier_already_seen,"readonly");if(n.kind!==172&&n.kind!==171&&n.kind!==181&&n.kind!==169)return sn(ue,f.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(B&512)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");B|=8;break;case 95:if(F.verbatimModuleSyntax&&!(n.flags&33554432)&&n.kind!==265&&n.kind!==264&&n.kind!==267&&n.parent.kind===312&&(W===1||Nn(n).impliedNodeFormat===1))return sn(ue,f.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(B&32)return sn(ue,f._0_modifier_already_seen,"export");if(B&128)return sn(ue,f._0_modifier_must_precede_1_modifier,"export","declare");if(B&64)return sn(ue,f._0_modifier_must_precede_1_modifier,"export","abstract");if(B&1024)return sn(ue,f._0_modifier_must_precede_1_modifier,"export","async");if(Kr(n.parent))return sn(ue,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(n.kind===169)return sn(ue,f._0_modifier_cannot_appear_on_a_parameter,"export");if(u===4)return sn(ue,f._0_modifier_cannot_appear_on_a_using_declaration,"export");if(u===6)return sn(ue,f._0_modifier_cannot_appear_on_an_await_using_declaration,"export");B|=32;break;case 90:let at=n.parent.kind===312?n.parent:n.parent.parent;if(at.kind===267&&!sd(at))return sn(ue,f.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(u===4)return sn(ue,f._0_modifier_cannot_appear_on_a_using_declaration,"default");if(u===6)return sn(ue,f._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(B&32){if(Q)return sn(O,f.Decorators_are_not_valid_here)}else return sn(ue,f._0_modifier_must_precede_1_modifier,"export","default");B|=2048;break;case 138:if(B&128)return sn(ue,f._0_modifier_already_seen,"declare");if(B&1024)return sn(ue,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(B&16)return sn(ue,f._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(Kr(n.parent)&&!xo(n))return sn(ue,f._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(n.kind===169)return sn(ue,f._0_modifier_cannot_appear_on_a_parameter,"declare");if(u===4)return sn(ue,f._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(u===6)return sn(ue,f._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(n.parent.flags&33554432&&n.parent.kind===268)return sn(ue,f.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(kd(n))return sn(ue,f._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(B&512)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");B|=128,g=ue;break;case 128:if(B&64)return sn(ue,f._0_modifier_already_seen,"abstract");if(n.kind!==263&&n.kind!==185){if(n.kind!==174&&n.kind!==172&&n.kind!==177&&n.kind!==178)return sn(ue,f.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(n.parent.kind===263&&Wr(n.parent,64))){let ht=n.kind===172?f.Abstract_properties_can_only_appear_within_an_abstract_class:f.Abstract_methods_can_only_appear_within_an_abstract_class;return sn(ue,ht)}if(B&256)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(B&2)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(B&1024&&T)return sn(T,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(B&16)return sn(ue,f._0_modifier_must_precede_1_modifier,"abstract","override");if(B&512)return sn(ue,f._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Ld(n)&&n.name.kind===81)return sn(ue,f._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");B|=64;break;case 134:if(B&1024)return sn(ue,f._0_modifier_already_seen,"async");if(B&128||n.parent.flags&33554432)return sn(ue,f._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(n.kind===169)return sn(ue,f._0_modifier_cannot_appear_on_a_parameter,"async");if(B&64)return sn(ue,f._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");B|=1024,T=ue;break;case 103:case 147:{let ht=ue.kind===103?8192:16384,qt=ue.kind===103?"in":"out",Xt=Df(n.parent)&&(Rb(n.parent)||Dr((a=ux(n.parent))==null?void 0:a.tags,$S))||n.parent;if(n.kind!==168||Xt&&!(Gd(Xt)||Kr(Xt)||Xf(Xt)||$S(Xt)))return sn(ue,f._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,qt);if(B&ht)return sn(ue,f._0_modifier_already_seen,qt);if(ht&8192&&B&16384)return sn(ue,f._0_modifier_must_precede_1_modifier,"in","out");B|=ht;break}}}return n.kind===176?B&256?sn(_,f._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):B&16?sn(N,f._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):B&1024?sn(T,f._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(n.kind===272||n.kind===271)&&B&128?sn(g,f.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):n.kind===169&&B&31&&ko(n.name)?sn(n,f.A_parameter_property_may_not_be_declared_using_a_binding_pattern):n.kind===169&&B&31&&n.dotDotDotToken?sn(n,f.A_parameter_property_cannot_be_declared_using_a_rest_parameter):B&1024?Zut(n,T):!1}function Xut(n){if(!n.modifiers)return!1;let a=Yut(n);return a&&Uc(a,f.Modifiers_cannot_appear_here)}function EZ(n,a){let c=Dr(n.modifiers,ia);return c&&c.kind!==a?c:void 0}function Yut(n){switch(n.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Dr(n.modifiers,ia);default:if(n.parent.kind===268||n.parent.kind===312)return;switch(n.kind){case 262:return EZ(n,134);case 263:case 185:return EZ(n,128);case 231:case 264:case 265:return Dr(n.modifiers,ia);case 243:return n.declarationList.flags&4?EZ(n,135):Dr(n.modifiers,ia);case 266:return EZ(n,87);default:x.assertNever(n)}}}function $ut(n){let a=Qut(n);return a&&Uc(a,f.Decorators_are_not_valid_here)}function Qut(n){return jj(n)?Dr(n.modifiers,Xc):void 0}function Zut(n,a){switch(n.kind){case 174:case 262:case 218:case 219:return!1}return sn(a,f._0_modifier_cannot_be_used_here,"async")}function T1(n,a=f.Trailing_comma_not_allowed){return n&&n.hasTrailingComma?sS(n[0],n.end-1,1,a):!1}function rWe(n,a){if(n&&n.length===0){let c=n.pos-1,u=ua(a.text,n.end)+1;return sS(a,c,u-c,f.Type_parameter_list_cannot_be_empty)}return!1}function ept(n){let a=!1,c=n.length;for(let u=0;u<c;u++){let _=n[u];if(_.dotDotDotToken){if(u!==c-1)return sn(_.dotDotDotToken,f.A_rest_parameter_must_be_last_in_a_parameter_list);if(_.flags&33554432||T1(n,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),_.questionToken)return sn(_.questionToken,f.A_rest_parameter_cannot_be_optional);if(_.initializer)return sn(_.name,f.A_rest_parameter_cannot_have_an_initializer)}else if(ow(_)){if(a=!0,_.questionToken&&_.initializer)return sn(_.name,f.Parameter_cannot_have_question_mark_and_initializer)}else if(a&&!_.initializer)return sn(_.name,f.A_required_parameter_cannot_follow_an_optional_parameter)}}function tpt(n){return Cr(n,a=>!!a.initializer||ko(a.name)||gh(a))}function npt(n){if(oe>=3){let a=n.body&&Do(n.body)&&zj(n.body.statements);if(a){let c=tpt(n.parameters);if(yn(c)){an(c,_=>{pa(we(_,f.This_parameter_is_not_allowed_with_use_strict_directive),vr(a,f.use_strict_directive_used_here))});let u=c.map((_,g)=>g===0?vr(_,f.Non_simple_parameter_declared_here):vr(_,f.and_here));return pa(we(a,f.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...u),!0}}}return!1}function SZ(n){let a=Nn(n);return Jh(n)||rWe(n.typeParameters,a)||ept(n.parameters)||ipt(n,a)||_s(n)&&npt(n)}function rpt(n){let a=Nn(n);return cpt(n)||rWe(n.typeParameters,a)}function ipt(n,a){if(!hs(n))return!1;n.typeParameters&&!(yn(n.typeParameters)>1||n.typeParameters.hasTrailingComma||n.typeParameters[0].constraint)&&a&&$l(a.fileName,[".mts",".cts"])&&sn(n.typeParameters[0],f.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:c}=n,u=$a(a,c.pos).line,_=$a(a,c.end).line;return u!==_&&sn(c,f.Line_terminator_not_permitted_before_arrow)}function opt(n){let a=n.parameters[0];if(n.parameters.length!==1)return sn(a?a.name:n,f.An_index_signature_must_have_exactly_one_parameter);if(T1(n.parameters,f.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return sn(a.dotDotDotToken,f.An_index_signature_cannot_have_a_rest_parameter);if(jW(a))return sn(a.name,f.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return sn(a.questionToken,f.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return sn(a.name,f.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return sn(a.name,f.An_index_signature_parameter_must_have_a_type_annotation);let c=si(a.type);return dm(c,u=>!!(u.flags&8576))||yD(c)?sn(a.name,f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Lu(c,B$)?n.type?!1:sn(n,f.An_index_signature_must_have_a_type_annotation):sn(a.name,f.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function apt(n){return Jh(n)||opt(n)}function spt(n,a){if(a&&a.length===0){let c=Nn(n),u=a.pos-1,_=ua(c.text,a.end)+1;return sS(c,u,_-u,f.Type_argument_list_cannot_be_empty)}return!1}function j5(n,a){return T1(a)||spt(n,a)}function lpt(n){return n.questionDotToken||n.flags&64?sn(n.template,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function iWe(n){let a=n.types;if(T1(a))return!0;if(a&&a.length===0){let c=qo(n.token);return sS(n,a.pos,0,f._0_list_cannot_be_empty,c)}return ct(a,oWe)}function oWe(n){return sv(n)&&lN(n.expression)&&n.typeArguments?sn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):j5(n,n.typeArguments)}function cpt(n){let a=!1,c=!1;if(!Jh(n)&&n.heritageClauses)for(let u of n.heritageClauses){if(u.token===96){if(a)return Uc(u,f.extends_clause_already_seen);if(c)return Uc(u,f.extends_clause_must_precede_implements_clause);if(u.types.length>1)return Uc(u.types[1],f.Classes_can_only_extend_a_single_class);a=!0}else{if(x.assert(u.token===119),c)return Uc(u,f.implements_clause_already_seen);c=!0}iWe(u)}}function dpt(n){let a=!1;if(n.heritageClauses)for(let c of n.heritageClauses){if(c.token===96){if(a)return Uc(c,f.extends_clause_already_seen);a=!0}else return x.assert(c.token===119),Uc(c,f.Interface_declaration_cannot_have_implements_clause);iWe(c)}return!1}function TZ(n){if(n.kind!==167)return!1;let a=n;return a.expression.kind===226&&a.expression.operatorToken.kind===28?sn(a.expression,f.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Hge(n){if(n.asteriskToken){if(x.assert(n.kind===262||n.kind===218||n.kind===174),n.flags&33554432)return sn(n.asteriskToken,f.Generators_are_not_allowed_in_an_ambient_context);if(!n.body)return sn(n.asteriskToken,f.An_overload_signature_cannot_be_declared_as_a_generator)}}function qge(n,a){return!!n&&sn(n,a)}function aWe(n,a){return!!n&&sn(n,a)}function upt(n,a){let c=new Map;for(let u of n.properties){if(u.kind===305){if(a){let T=Ka(u.expression);if(Bd(T)||fa(T))return sn(u.expression,f.A_rest_element_cannot_contain_a_binding_pattern)}continue}let _=u.name;if(_.kind===167&&TZ(_),u.kind===304&&!a&&u.objectAssignmentInitializer&&sn(u.equalsToken,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),_.kind===81&&sn(_,f.Private_identifiers_are_not_allowed_outside_class_bodies),Yf(u)&&u.modifiers)for(let T of u.modifiers)ia(T)&&(T.kind!==134||u.kind!==174)&&sn(T,f._0_modifier_cannot_be_used_here,Vl(T));else if(yie(u)&&u.modifiers)for(let T of u.modifiers)ia(T)&&sn(T,f._0_modifier_cannot_be_used_here,Vl(T));let g;switch(u.kind){case 304:case 303:aWe(u.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context),qge(u.questionToken,f.An_object_member_cannot_be_declared_optional),_.kind===9&&Xge(_),g=4;break;case 174:g=8;break;case 177:g=1;break;case 178:g=2;break;default:x.assertNever(u,"Unexpected syntax kind:"+u.kind)}if(!a){let T=Yge(_);if(T===void 0)continue;let N=c.get(T);if(!N)c.set(T,g);else if(g&8&&N&8)sn(_,f.Duplicate_identifier_0,Vl(_));else if(g&4&&N&4)sn(_,f.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Vl(_));else if(g&3&&N&3)if(N!==3&&g!==N)c.set(T,g|N);else return sn(_,f.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return sn(_,f.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function ppt(n){fpt(n.tagName),j5(n,n.typeArguments);let a=new Map;for(let c of n.attributes.properties){if(c.kind===293)continue;let{name:u,initializer:_}=c,g=QC(u);if(!a.get(g))a.set(g,!0);else return sn(u,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(_&&_.kind===294&&!_.expression)return sn(_,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function fpt(n){if(Er(n)&&Em(n.expression))return sn(n.expression,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(Em(n)&&oF(F)&&!gx(n.namespace.escapedText))return sn(n,f.React_components_cannot_include_JSX_namespace_names)}function mpt(n){if(n.expression&&vN(n.expression))return sn(n.expression,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function sWe(n){if(zg(n))return!0;if(n.kind===250&&n.awaitModifier&&!(n.flags&65536)){let a=Nn(n);if(hW(n)){if(!aS(a))switch(MA(a,F)||La.add(vr(n.awaitModifier,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),W){case 100:case 199:if(a.impliedNodeFormat===1){La.add(vr(n.awaitModifier,f.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(oe>=4)break;default:La.add(vr(n.awaitModifier,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!aS(a)){let c=vr(n.awaitModifier,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),u=cp(n);if(u&&u.kind!==176){x.assert((gc(u)&2)===0,"Enclosing function should never be an async function.");let _=vr(u,f.Did_you_mean_to_mark_this_function_as_async);pa(c,_)}return La.add(c),!0}return!1}if(R2(n)&&!(n.flags&65536)&&Me(n.initializer)&&n.initializer.escapedText==="async")return sn(n.initializer,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(n.initializer.kind===261){let a=n.initializer;if(!Kge(a)){let c=a.declarations;if(!c.length)return!1;if(c.length>1){let _=n.kind===249?f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return Uc(a.declarations[1],_)}let u=c[0];if(u.initializer){let _=n.kind===249?f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return sn(u.name,_)}if(u.type){let _=n.kind===249?f.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:f.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return sn(u,_)}}}return!1}function _pt(n){if(!(n.flags&33554432)&&n.parent.kind!==187&&n.parent.kind!==264){if(oe<1)return sn(n.name,f.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(oe<2&&Ci(n.name))return sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.body===void 0&&!Wr(n,64))return sS(n,n.end-1,1,f._0_expected,"{")}if(n.body){if(Wr(n,64))return sn(n,f.An_abstract_accessor_cannot_have_an_implementation);if(n.parent.kind===187||n.parent.kind===264)return sn(n.body,f.An_implementation_cannot_be_declared_in_ambient_contexts)}if(n.typeParameters)return sn(n.name,f.An_accessor_cannot_have_type_parameters);if(!hpt(n))return sn(n.name,n.kind===177?f.A_get_accessor_cannot_have_parameters:f.A_set_accessor_must_have_exactly_one_parameter);if(n.kind===178){if(n.type)return sn(n.name,f.A_set_accessor_cannot_have_a_return_type_annotation);let a=x.checkDefined(CC(n),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return sn(a.dotDotDotToken,f.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return sn(a.questionToken,f.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return sn(n.name,f.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function hpt(n){return Jge(n)||n.parameters.length===(n.kind===177?0:1)}function Jge(n){if(n.parameters.length===(n.kind===177?1:2))return KE(n)}function gpt(n){if(n.operator===158){if(n.type.kind!==155)return sn(n.type,f._0_expected,qo(155));let a=PL(n.parent);if(Jn(a)&&f0(a)){let c=PS(a);c&&(a=wA(c)||c)}switch(a.kind){case 260:let c=a;if(c.name.kind!==80)return sn(n,f.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!mC(c))return sn(n,f.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(c.parent.flags&2))return sn(a.name,f.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!zo(a)||!NC(a))return sn(a.name,f.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Wr(a,8))return sn(a.name,f.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return sn(n,f.unique_symbol_types_are_not_allowed_here)}}else if(n.operator===148&&n.type.kind!==188&&n.type.kind!==189)return Uc(n,f.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,qo(155))}function aM(n,a){if(Oet(n))return sn(n,a)}function lWe(n){if(SZ(n))return!0;if(n.kind===174){if(n.parent.kind===210){if(n.modifiers&&!(n.modifiers.length===1&&Sa(n.modifiers).kind===134))return Uc(n,f.Modifiers_cannot_appear_here);if(qge(n.questionToken,f.An_object_member_cannot_be_declared_optional))return!0;if(aWe(n.exclamationToken,f.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(n.body===void 0)return sS(n,n.end-1,1,f._0_expected,"{")}if(Hge(n))return!0}if(Kr(n.parent)){if(oe<2&&Ci(n.name))return sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(n.flags&33554432)return aM(n.name,f.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.kind===174&&!n.body)return aM(n.name,f.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(n.parent.kind===264)return aM(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(n.parent.kind===187)return aM(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function vpt(n){let a=n;for(;a;){if(U1(a))return sn(n,f.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(n.label&&a.label.escapedText===n.label.escapedText)return n.kind===251&&!Xv(a.statement,!0)?sn(n,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(n.kind===252&&!n.label)return!1;break;default:if(Xv(a,!1)&&!n.label)return!1;break}a=a.parent}if(n.label){let c=n.kind===252?f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return sn(n,c)}else{let c=n.kind===252?f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return sn(n,c)}}function ypt(n){if(n.dotDotDotToken){let a=n.parent.elements;if(n!==Da(a))return sn(n,f.A_rest_element_must_be_last_in_a_destructuring_pattern);if(T1(a,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),n.propertyName)return sn(n.name,f.A_rest_element_cannot_have_a_property_name)}if(n.dotDotDotToken&&n.initializer)return sS(n,n.initializer.pos-1,1,f.A_rest_element_cannot_have_an_initializer)}function cWe(n){return Tp(n)||n.kind===224&&n.operator===41&&n.operand.kind===9}function bpt(n){return n.kind===10||n.kind===224&&n.operator===41&&n.operand.kind===10}function Ept(n){if((Er(n)||Rs(n)&&cWe(n.argumentExpression))&&gl(n.expression))return!!(Ml(n).flags&1056)}function dWe(n){let a=n.initializer;if(a){let c=!(cWe(a)||Ept(a)||a.kind===112||a.kind===97||bpt(a));if((sW(n)||yi(n)&&U5(n))&&!n.type){if(c)return sn(a,f.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return sn(a,f.Initializers_are_not_allowed_in_ambient_contexts)}}function Spt(n){let a=lS(n),c=a&7;if(ko(n.name))switch(c){case 6:return sn(n,f._0_declarations_may_not_have_binding_patterns,"await using");case 4:return sn(n,f._0_declarations_may_not_have_binding_patterns,"using")}if(n.parent.parent.kind!==249&&n.parent.parent.kind!==250){if(a&33554432)dWe(n);else if(!n.initializer){if(ko(n.name)&&!ko(n.parent))return sn(n,f.A_destructuring_declaration_must_have_an_initializer);switch(c){case 6:return sn(n,f._0_declarations_must_be_initialized,"await using");case 4:return sn(n,f._0_declarations_must_be_initialized,"using");case 2:return sn(n,f._0_declarations_must_be_initialized,"const")}}}if(n.exclamationToken&&(n.parent.parent.kind!==243||!n.type||n.initializer||a&33554432)){let u=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return sn(n.exclamationToken,u)}return(W<5||Nn(n).impliedNodeFormat===1)&&W!==4&&!(n.parent.parent.flags&33554432)&&Wr(n.parent.parent,32)&&uWe(n.name),!!c&&pWe(n.name)}function uWe(n){if(n.kind===80){if(ar(n)==="__esModule")return Ipt("noEmit",n,f.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=n.elements;for(let c of a)if(!vc(c))return uWe(c.name)}return!1}function pWe(n){if(n.kind===80){if(n.escapedText==="let")return sn(n,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=n.elements;for(let c of a)vc(c)||pWe(c.name)}return!1}function Kge(n){let a=n.declarations;if(T1(n.declarations))return!0;if(!n.declarations.length)return sS(n,a.pos,a.end-a.pos,f.Variable_declaration_list_cannot_be_empty);let c=n.flags&7;return(c===4||c===6)&&y6(n.parent)?sn(n,c===4?f.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:f.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):c===6?Cwe(n):!1}function fWe(n){switch(n.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return fWe(n.parent)}return!0}function Tpt(n){if(!fWe(n.parent)){let a=lS(n.declarationList)&7;if(a){let c=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":x.fail("Unknown BlockScope flag");return sn(n,f._0_declarations_can_only_be_declared_inside_a_block,c)}}}function Apt(n){let a=n.name.escapedText;switch(n.keywordToken){case 105:if(a!=="target")return sn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ii(n.name.escapedText),qo(n.keywordToken),"target");break;case 102:if(a!=="meta")return sn(n.name,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ii(n.name.escapedText),qo(n.keywordToken),"meta");break}}function aS(n){return n.parseDiagnostics.length>0}function Uc(n,a,...c){let u=Nn(n);if(!aS(u)){let _=w_(u,n.pos);return La.add(Rc(u,_.start,_.length,a,...c)),!0}return!1}function sS(n,a,c,u,..._){let g=Nn(n);return aS(g)?!1:(La.add(Rc(g,a,c,u,..._)),!0)}function Ipt(n,a,c,...u){let _=Nn(a);return aS(_)?!1:(xm(n,a,c,...u),!0)}function sn(n,a,...c){let u=Nn(n);return aS(u)?!1:(La.add(vr(n,a,...c)),!0)}function xpt(n){let a=Jn(n)?VW(n):void 0,c=n.typeParameters||a&&Ac(a);if(c){let u=c.pos===c.end?c.pos:ua(Nn(n).text,c.pos);return sS(n,u,c.end-u,f.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function Rpt(n){let a=n.type||Tf(n);if(a)return sn(a,f.Type_annotation_cannot_appear_on_a_constructor_declaration)}function Dpt(n){if(Pa(n.name)&&Zn(n.name.expression)&&n.name.expression.operatorToken.kind===103)return sn(n.parent.members[0],f.A_mapped_type_may_not_declare_properties_or_methods);if(Kr(n.parent)){if(ca(n.name)&&n.name.text==="constructor")return sn(n.name,f.Classes_may_not_have_a_field_named_constructor);if(aM(n.name,f.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(oe<2&&Ci(n.name))return sn(n.name,f.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(oe<2&&su(n))return sn(n.name,f.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(su(n)&&qge(n.questionToken,f.An_accessor_property_cannot_be_declared_optional))return!0}else if(n.parent.kind===264){if(aM(n.name,f.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(x.assertNode(n,Gu),n.initializer)return sn(n.initializer,f.An_interface_property_cannot_have_an_initializer)}else if(ju(n.parent)){if(aM(n.name,f.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(x.assertNode(n,Gu),n.initializer)return sn(n.initializer,f.A_type_literal_property_cannot_have_an_initializer)}if(n.flags&33554432&&dWe(n),xo(n)&&n.exclamationToken&&(!Kr(n.parent)||!n.type||n.initializer||n.flags&33554432||zo(n)||$E(n))){let a=n.initializer?f.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:n.type?f.A_definite_assignment_assertion_is_not_permitted_in_this_context:f.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return sn(n.exclamationToken,a)}}function Cpt(n){return n.kind===264||n.kind===265||n.kind===272||n.kind===271||n.kind===278||n.kind===277||n.kind===270||Wr(n,2208)?!1:Uc(n,f.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function Npt(n){for(let a of n.statements)if((bd(a)||a.kind===243)&&Cpt(a))return!0;return!1}function Ppt(n){return!!(n.flags&33554432)&&Npt(n)}function zg(n){if(n.flags&33554432){if(!Fr(n).hasReportedStatementInAmbientContext&&(Lo(n.parent)||Kv(n.parent)))return Fr(n).hasReportedStatementInAmbientContext=Uc(n,f.An_implementation_cannot_be_declared_in_ambient_contexts);if(n.parent.kind===241||n.parent.kind===268||n.parent.kind===312){let c=Fr(n.parent);if(!c.hasReportedStatementInAmbientContext)return c.hasReportedStatementInAmbientContext=Uc(n,f.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Xge(n){let a=Vl(n).includes("."),c=n.numericLiteralFlags&16;a||c||+n.text<=2**53-1||Rm(!1,vr(n,f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function Mpt(n){return!!(!(uy(n.parent)||fy(n.parent)&&uy(n.parent.parent))&&oe<7&&sn(n,f.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function Lpt(n,a,...c){let u=Nn(n);if(!aS(u)){let _=w_(u,n.pos);return La.add(Rc(u,Al(_),0,a,...c)),!0}return!1}function kpt(){return pc||(pc=[],he.forEach((n,a)=>{BU.test(a)&&pc.push(n)})),pc}function Opt(n){var a;return n.isTypeOnly&&n.name&&n.namedBindings?sn(n,f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):n.isTypeOnly&&((a=n.namedBindings)==null?void 0:a.kind)===275?mWe(n.namedBindings):!1}function mWe(n){return!!an(n.elements,a=>{if(a.isTypeOnly)return Uc(a,a.kind===276?f.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:f.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function wpt(n){if(F.verbatimModuleSyntax&&W===1)return sn(n,f.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(W===5)return sn(n,f.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(n.typeArguments)return sn(n,f.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=n.arguments;if(W!==99&&W!==199&&W!==100&&(T1(a),a.length>1)){let u=a[1];return sn(u,f.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return sn(n,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let c=Dr(a,bm);return c?sn(c,f.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Wpt(n,a){let c=br(n);if(c&20&&a.flags&1048576)return Dr(a.types,u=>{if(u.flags&524288){let _=c&br(u);if(_&4)return n.target===u.target;if(_&16)return!!n.aliasSymbol&&n.aliasSymbol===u.aliasSymbol}return!1})}function Fpt(n,a){if(br(n)&128&&dm(a,Lv))return Dr(a.types,c=>!Lv(c))}function zpt(n,a){let c=0;if(Co(n,c).length>0||(c=1,Co(n,c).length>0))return Dr(a.types,_=>Co(_,c).length>0)}function Bpt(n,a){let c;if(!(n.flags&406978556)){let u=0;for(let _ of a.types)if(!(_.flags&406978556)){let g=Zo([v_(n),v_(_)]);if(g.flags&4194304)return _;if(Fm(g)||g.flags&1048576){let T=g.flags&1048576?Wv(g.types,Fm):1;T>=u&&(c=_,u=T)}}}return c}function Gpt(n){if(ol(n,67108864)){let a=Bl(n,c=>!(c.flags&402784252));if(!(a.flags&131072))return a}return n}function _We(n,a,c){if(a.flags&1048576&&n.flags&2621440){let u=Rke(a,n);if(u)return u;let _=Xa(n);if(_){let g=xke(_,a);if(g){let T=W_e(a,nn(g,N=>[()=>Yn(N),N.escapedName]),c);if(T!==a)return T}}}}function Yge(n){let a=MS(n);return a||(Pa(n)?lhe(td(n.expression)):void 0)}function AZ(n){return On===n||(On=n,en=gb(n)),en}function lS(n){return jt===n||(jt=n,gn=Xg(n)),gn}function U5(n){let a=lS(n)&7;return a===2||a===4||a===6}}function O3e(e){return!Kv(e)}function ESe(e){return e.kind!==262&&e.kind!==174||!!e.body}function SSe(e){switch(e.parent.kind){case 276:case 281:return Me(e);default:return ng(e)}}function TSe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Td(e){return!!(e.flags&1)}function zU(e){return!!(e.flags&2)}function w3e(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Wo(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Wo(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var BU,s4,Ioe,xoe,Roe,Doe,l4,GU,c4,d4,ASe,u4,Coe,Rp,VU,W3e=pt({"src/compiler/checker.ts"(){"use strict";wo(),Toe(),mS(),BU=/^".+"$/,s4="(anonymous)",Ioe=1,xoe=1,Roe=1,Doe=1,l4=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(l4||{}),GU=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),c4=(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))(c4||{}),d4=(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))(d4||{}),ASe=Zw(ESe,O3e),u4=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3,NoInfer:4})),Coe=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Rp||(Rp={})),VU=class vWe{constructor(t,r,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var o;r instanceof vWe;)r=r.inner;this.inner=r,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((o=this.inner)!=null&&o.trackSymbol)}trackSymbol(t,r,i){var o,s;if((o=this.inner)!=null&&o.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,r,i))return this.onDiagnosticReported(),!0;t.flags&262144||((s=this.context).trackedSymbols??(s.trackedSymbols=[])).push([t,r,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var r;(r=this.inner)!=null&&r.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var r;(r=this.inner)!=null&&r.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,r){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,r))}trackExternalModuleSymbolOfImportTypeNode(t){var r;(r=this.inner)!=null&&r.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,r,i){var o;(o=this.inner)!=null&&o.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,r,i))}reportNonSerializableProperty(t){var r;(r=this.inner)!=null&&r.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function He(e,t,r,i){if(e===void 0)return e;let o=t(e),s;if(o!==void 0)return oo(o)?s=(i||V3e)(o):s=o,x.assertNode(s,r),s}function Dn(e,t,r,i,o){if(e===void 0)return e;let s=e.length;(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i);let l,d=-1,p=-1;i>0||o<s?l=e.hasTrailingComma&&i+o===s:(d=e.pos,p=e.end,l=e.hasTrailingComma);let h=ISe(e,t,r,i,o);if(h!==e){let m=P.createNodeArray(h,l);return W_(m,d,p),m}return e}function ck(e,t,r,i,o){if(e===void 0)return e;let s=e.length;return(i===void 0||i<0)&&(i=0),(o===void 0||o>s-i)&&(o=s-i),ISe(e,t,r,i,o)}function ISe(e,t,r,i,o){let s,l=e.length;(i>0||o<l)&&(s=[]);for(let d=0;d<o;d++){let p=e[d+i],h=p!==void 0?t?t(p):p:void 0;if((s!==void 0||h===void 0||h!==p)&&(s===void 0&&(s=e.slice(0,d),x.assertEachNode(s,r)),h))if(oo(h))for(let m of h)x.assertNode(m,r),s.push(m);else x.assertNode(h,r),s.push(h)}return s||(x.assertEachNode(e,r),e)}function jU(e,t,r,i,o,s=Dn){return r.startLexicalEnvironment(),e=s(e,t,Di,i),o&&(e=r.factory.ensureUseStrict(e)),P.mergeLexicalEnvironment(e,r.endLexicalEnvironment())}function rl(e,t,r,i=Dn){let o;return r.startLexicalEnvironment(),e&&(r.setLexicalEnvironmentFlags(1,!0),o=i(e,t,ao),r.getLexicalEnvironmentFlags()&2&&Wa(r.getCompilerOptions())>=2&&(o=F3e(o,r)),r.setLexicalEnvironmentFlags(1,!1)),r.suspendLexicalEnvironment(),o}function F3e(e,t){let r;for(let i=0;i<e.length;i++){let o=e[i],s=z3e(o,t);(r||s!==o)&&(r||(r=e.slice(0,i)),r[i]=s)}return r?Ze(t.factory.createNodeArray(r,e.hasTrailingComma),e):e}function z3e(e,t){return e.dotDotDotToken?e:ko(e.name)?B3e(e,t):e.initializer?G3e(e,e.name,e.initializer,t):e}function B3e(e,t){let{factory:r}=t;return t.addInitializationStatement(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(e.name,void 0,e.type,e.initializer?r.createConditionalExpression(r.createStrictEquality(r.getGeneratedNameForNode(e),r.createVoidZero()),void 0,e.initializer,void 0,r.getGeneratedNameForNode(e)):r.getGeneratedNameForNode(e))]))),r.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,r.getGeneratedNameForNode(e),e.questionToken,e.type,void 0)}function G3e(e,t,r,i){let o=i.factory;return i.addInitializationStatement(o.createIfStatement(o.createTypeCheck(o.cloneNode(t),"undefined"),$n(Ze(o.createBlock([o.createExpressionStatement($n(Ze(o.createAssignment($n(o.cloneNode(t),96),$n(r,96|ya(r)|3072)),e),3072))]),e),3905))),o.updateParameterDeclaration(e,e.modifiers,e.dotDotDotToken,e.name,e.questionToken,e.type,void 0)}function Dp(e,t,r,i=He){r.resumeLexicalEnvironment();let o=i(e,t,U8),s=r.endLexicalEnvironment();if(ct(s)){if(!o)return r.factory.createBlock(s);let l=r.factory.converters.convertToFunctionBlock(o),d=P.mergeLexicalEnvironment(l.statements,s);return r.factory.updateBlock(l,d)}return o}function Qd(e,t,r,i=He){r.startBlockScope();let o=i(e,t,Di,r.factory.liftToBlock);x.assert(o);let s=r.endBlockScope();return ct(s)?Do(o)?(s.push(...o.statements),r.factory.updateBlock(o,s)):(s.push(o),r.factory.createBlock(s)):o}function dk(e,t,r=t){if(r===t||e.length<=1)return Dn(e,t,lt);let i=0,o=e.length;return Dn(e,s=>{let l=i<o-1;return i++,l?r(s):t(s)},lt)}function un(e,t,r=FN,i=Dn,o,s=He){if(e===void 0)return;let l=xSe[e.kind];return l===void 0?e:l(e,t,r,i,s,o)}function V3e(e){return x.assert(e.length<=1,"Too many nodes written to output."),x_(e)}var xSe,j3e=pt({"src/compiler/visitorPublic.ts"(){"use strict";wo(),xSe={166:function(t,r,i,o,s,l){return i.factory.updateQualifiedName(t,x.checkDefined(s(t.left,r,Su)),x.checkDefined(s(t.right,r,Me)))},167:function(t,r,i,o,s,l){return i.factory.updateComputedPropertyName(t,x.checkDefined(s(t.expression,r,lt)))},168:function(t,r,i,o,s,l){return i.factory.updateTypeParameterDeclaration(t,o(t.modifiers,r,ia),x.checkDefined(s(t.name,r,Me)),s(t.constraint,r,xi),s(t.default,r,xi))},169:function(t,r,i,o,s,l){return i.factory.updateParameterDeclaration(t,o(t.modifiers,r,Ws),l?s(t.dotDotDotToken,l,u6):t.dotDotDotToken,x.checkDefined(s(t.name,r,yS)),l?s(t.questionToken,l,cy):t.questionToken,s(t.type,r,xi),s(t.initializer,r,lt))},170:function(t,r,i,o,s,l){return i.factory.updateDecorator(t,x.checkDefined(s(t.expression,r,lt)))},171:function(t,r,i,o,s,l){return i.factory.updatePropertySignature(t,o(t.modifiers,r,ia),x.checkDefined(s(t.name,r,kl)),l?s(t.questionToken,l,cy):t.questionToken,s(t.type,r,xi))},172:function(t,r,i,o,s,l){return i.factory.updatePropertyDeclaration(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.name,r,kl)),l?s(t.questionToken??t.exclamationToken,l,bie):t.questionToken??t.exclamationToken,s(t.type,r,xi),s(t.initializer,r,lt))},173:function(t,r,i,o,s,l){return i.factory.updateMethodSignature(t,o(t.modifiers,r,ia),x.checkDefined(s(t.name,r,kl)),l?s(t.questionToken,l,cy):t.questionToken,o(t.typeParameters,r,qs),o(t.parameters,r,ao),s(t.type,r,xi))},174:function(t,r,i,o,s,l){return i.factory.updateMethodDeclaration(t,o(t.modifiers,r,Ws),l?s(t.asteriskToken,l,b2):t.asteriskToken,x.checkDefined(s(t.name,r,kl)),l?s(t.questionToken,l,cy):t.questionToken,o(t.typeParameters,r,qs),rl(t.parameters,r,i,o),s(t.type,r,xi),Dp(t.body,r,i,s))},176:function(t,r,i,o,s,l){return i.factory.updateConstructorDeclaration(t,o(t.modifiers,r,Ws),rl(t.parameters,r,i,o),Dp(t.body,r,i,s))},177:function(t,r,i,o,s,l){return i.factory.updateGetAccessorDeclaration(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.name,r,kl)),rl(t.parameters,r,i,o),s(t.type,r,xi),Dp(t.body,r,i,s))},178:function(t,r,i,o,s,l){return i.factory.updateSetAccessorDeclaration(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.name,r,kl)),rl(t.parameters,r,i,o),Dp(t.body,r,i,s))},175:function(t,r,i,o,s,l){return i.startLexicalEnvironment(),i.suspendLexicalEnvironment(),i.factory.updateClassStaticBlockDeclaration(t,Dp(t.body,r,i,s))},179:function(t,r,i,o,s,l){return i.factory.updateCallSignature(t,o(t.typeParameters,r,qs),o(t.parameters,r,ao),s(t.type,r,xi))},180:function(t,r,i,o,s,l){return i.factory.updateConstructSignature(t,o(t.typeParameters,r,qs),o(t.parameters,r,ao),s(t.type,r,xi))},181:function(t,r,i,o,s,l){return i.factory.updateIndexSignature(t,o(t.modifiers,r,Ws),o(t.parameters,r,ao),x.checkDefined(s(t.type,r,xi)))},182:function(t,r,i,o,s,l){return i.factory.updateTypePredicateNode(t,s(t.assertsModifier,r,Vre),x.checkDefined(s(t.parameterName,r,Eie)),s(t.type,r,xi))},183:function(t,r,i,o,s,l){return i.factory.updateTypeReferenceNode(t,x.checkDefined(s(t.typeName,r,Su)),o(t.typeArguments,r,xi))},184:function(t,r,i,o,s,l){return i.factory.updateFunctionTypeNode(t,o(t.typeParameters,r,qs),o(t.parameters,r,ao),x.checkDefined(s(t.type,r,xi)))},185:function(t,r,i,o,s,l){return i.factory.updateConstructorTypeNode(t,o(t.modifiers,r,ia),o(t.typeParameters,r,qs),o(t.parameters,r,ao),x.checkDefined(s(t.type,r,xi)))},186:function(t,r,i,o,s,l){return i.factory.updateTypeQueryNode(t,x.checkDefined(s(t.exprName,r,Su)),o(t.typeArguments,r,xi))},187:function(t,r,i,o,s,l){return i.factory.updateTypeLiteralNode(t,o(t.members,r,bS))},188:function(t,r,i,o,s,l){return i.factory.updateArrayTypeNode(t,x.checkDefined(s(t.elementType,r,xi)))},189:function(t,r,i,o,s,l){return i.factory.updateTupleTypeNode(t,o(t.elements,r,xi))},190:function(t,r,i,o,s,l){return i.factory.updateOptionalTypeNode(t,x.checkDefined(s(t.type,r,xi)))},191:function(t,r,i,o,s,l){return i.factory.updateRestTypeNode(t,x.checkDefined(s(t.type,r,xi)))},192:function(t,r,i,o,s,l){return i.factory.updateUnionTypeNode(t,o(t.types,r,xi))},193:function(t,r,i,o,s,l){return i.factory.updateIntersectionTypeNode(t,o(t.types,r,xi))},194:function(t,r,i,o,s,l){return i.factory.updateConditionalTypeNode(t,x.checkDefined(s(t.checkType,r,xi)),x.checkDefined(s(t.extendsType,r,xi)),x.checkDefined(s(t.trueType,r,xi)),x.checkDefined(s(t.falseType,r,xi)))},195:function(t,r,i,o,s,l){return i.factory.updateInferTypeNode(t,x.checkDefined(s(t.typeParameter,r,qs)))},205:function(t,r,i,o,s,l){return i.factory.updateImportTypeNode(t,x.checkDefined(s(t.argument,r,xi)),s(t.attributes,r,uI),s(t.qualifier,r,Su),o(t.typeArguments,r,xi),t.isTypeOf)},302:function(t,r,i,o,s,l){return i.factory.updateImportTypeAssertionContainer(t,x.checkDefined(s(t.assertClause,r,Zre)),t.multiLine)},202:function(t,r,i,o,s,l){return i.factory.updateNamedTupleMember(t,l?s(t.dotDotDotToken,l,u6):t.dotDotDotToken,x.checkDefined(s(t.name,r,Me)),l?s(t.questionToken,l,cy):t.questionToken,x.checkDefined(s(t.type,r,xi)))},196:function(t,r,i,o,s,l){return i.factory.updateParenthesizedType(t,x.checkDefined(s(t.type,r,xi)))},198:function(t,r,i,o,s,l){return i.factory.updateTypeOperatorNode(t,x.checkDefined(s(t.type,r,xi)))},199:function(t,r,i,o,s,l){return i.factory.updateIndexedAccessTypeNode(t,x.checkDefined(s(t.objectType,r,xi)),x.checkDefined(s(t.indexType,r,xi)))},200:function(t,r,i,o,s,l){return i.factory.updateMappedTypeNode(t,l?s(t.readonlyToken,l,Sie):t.readonlyToken,x.checkDefined(s(t.typeParameter,r,qs)),s(t.nameType,r,xi),l?s(t.questionToken,l,Tie):t.questionToken,s(t.type,r,xi),o(t.members,r,bS))},201:function(t,r,i,o,s,l){return i.factory.updateLiteralTypeNode(t,x.checkDefined(s(t.literal,r,ete)))},203:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralType(t,x.checkDefined(s(t.head,r,tI)),o(t.templateSpans,r,bj))},204:function(t,r,i,o,s,l){return i.factory.updateTemplateLiteralTypeSpan(t,x.checkDefined(s(t.type,r,xi)),x.checkDefined(s(t.literal,r,B8)))},206:function(t,r,i,o,s,l){return i.factory.updateObjectBindingPattern(t,o(t.elements,r,Na))},207:function(t,r,i,o,s,l){return i.factory.updateArrayBindingPattern(t,o(t.elements,r,V8))},208:function(t,r,i,o,s,l){return i.factory.updateBindingElement(t,l?s(t.dotDotDotToken,l,u6):t.dotDotDotToken,s(t.propertyName,r,kl),x.checkDefined(s(t.name,r,yS)),s(t.initializer,r,lt))},209:function(t,r,i,o,s,l){return i.factory.updateArrayLiteralExpression(t,o(t.elements,r,lt))},210:function(t,r,i,o,s,l){return i.factory.updateObjectLiteralExpression(t,o(t.properties,r,Zh))},211:function(t,r,i,o,s,l){return W8(t)?i.factory.updatePropertyAccessChain(t,x.checkDefined(s(t.expression,r,lt)),l?s(t.questionDotToken,l,p6):t.questionDotToken,x.checkDefined(s(t.name,r,hh))):i.factory.updatePropertyAccessExpression(t,x.checkDefined(s(t.expression,r,lt)),x.checkDefined(s(t.name,r,hh)))},212:function(t,r,i,o,s,l){return VG(t)?i.factory.updateElementAccessChain(t,x.checkDefined(s(t.expression,r,lt)),l?s(t.questionDotToken,l,p6):t.questionDotToken,x.checkDefined(s(t.argumentExpression,r,lt))):i.factory.updateElementAccessExpression(t,x.checkDefined(s(t.expression,r,lt)),x.checkDefined(s(t.argumentExpression,r,lt)))},213:function(t,r,i,o,s,l){return gS(t)?i.factory.updateCallChain(t,x.checkDefined(s(t.expression,r,lt)),l?s(t.questionDotToken,l,p6):t.questionDotToken,o(t.typeArguments,r,xi),o(t.arguments,r,lt)):i.factory.updateCallExpression(t,x.checkDefined(s(t.expression,r,lt)),o(t.typeArguments,r,xi),o(t.arguments,r,lt))},214:function(t,r,i,o,s,l){return i.factory.updateNewExpression(t,x.checkDefined(s(t.expression,r,lt)),o(t.typeArguments,r,xi),o(t.arguments,r,lt))},215:function(t,r,i,o,s,l){return i.factory.updateTaggedTemplateExpression(t,x.checkDefined(s(t.tag,r,lt)),o(t.typeArguments,r,xi),x.checkDefined(s(t.template,r,NA)))},216:function(t,r,i,o,s,l){return i.factory.updateTypeAssertion(t,x.checkDefined(s(t.type,r,xi)),x.checkDefined(s(t.expression,r,lt)))},217:function(t,r,i,o,s,l){return i.factory.updateParenthesizedExpression(t,x.checkDefined(s(t.expression,r,lt)))},218:function(t,r,i,o,s,l){return i.factory.updateFunctionExpression(t,o(t.modifiers,r,ia),l?s(t.asteriskToken,l,b2):t.asteriskToken,s(t.name,r,Me),o(t.typeParameters,r,qs),rl(t.parameters,r,i,o),s(t.type,r,xi),Dp(t.body,r,i,s))},219:function(t,r,i,o,s,l){return i.factory.updateArrowFunction(t,o(t.modifiers,r,ia),o(t.typeParameters,r,qs),rl(t.parameters,r,i,o),s(t.type,r,xi),l?x.checkDefined(s(t.equalsGreaterThanToken,l,Gre)):t.equalsGreaterThanToken,Dp(t.body,r,i,s))},220:function(t,r,i,o,s,l){return i.factory.updateDeleteExpression(t,x.checkDefined(s(t.expression,r,lt)))},221:function(t,r,i,o,s,l){return i.factory.updateTypeOfExpression(t,x.checkDefined(s(t.expression,r,lt)))},222:function(t,r,i,o,s,l){return i.factory.updateVoidExpression(t,x.checkDefined(s(t.expression,r,lt)))},223:function(t,r,i,o,s,l){return i.factory.updateAwaitExpression(t,x.checkDefined(s(t.expression,r,lt)))},224:function(t,r,i,o,s,l){return i.factory.updatePrefixUnaryExpression(t,x.checkDefined(s(t.operand,r,lt)))},225:function(t,r,i,o,s,l){return i.factory.updatePostfixUnaryExpression(t,x.checkDefined(s(t.operand,r,lt)))},226:function(t,r,i,o,s,l){return i.factory.updateBinaryExpression(t,x.checkDefined(s(t.left,r,lt)),l?x.checkDefined(s(t.operatorToken,l,Iie)):t.operatorToken,x.checkDefined(s(t.right,r,lt)))},227:function(t,r,i,o,s,l){return i.factory.updateConditionalExpression(t,x.checkDefined(s(t.condition,r,lt)),l?x.checkDefined(s(t.questionToken,l,cy)):t.questionToken,x.checkDefined(s(t.whenTrue,r,lt)),l?x.checkDefined(s(t.colonToken,l,Bre)):t.colonToken,x.checkDefined(s(t.whenFalse,r,lt)))},228:function(t,r,i,o,s,l){return i.factory.updateTemplateExpression(t,x.checkDefined(s(t.head,r,tI)),o(t.templateSpans,r,uN))},229:function(t,r,i,o,s,l){return i.factory.updateYieldExpression(t,l?s(t.asteriskToken,l,b2):t.asteriskToken,s(t.expression,r,lt))},230:function(t,r,i,o,s,l){return i.factory.updateSpreadElement(t,x.checkDefined(s(t.expression,r,lt)))},231:function(t,r,i,o,s,l){return i.factory.updateClassExpression(t,o(t.modifiers,r,Ws),s(t.name,r,Me),o(t.typeParameters,r,qs),o(t.heritageClauses,r,Ip),o(t.members,r,xc))},233:function(t,r,i,o,s,l){return i.factory.updateExpressionWithTypeArguments(t,x.checkDefined(s(t.expression,r,lt)),o(t.typeArguments,r,xi))},234:function(t,r,i,o,s,l){return i.factory.updateAsExpression(t,x.checkDefined(s(t.expression,r,lt)),x.checkDefined(s(t.type,r,xi)))},238:function(t,r,i,o,s,l){return i.factory.updateSatisfiesExpression(t,x.checkDefined(s(t.expression,r,lt)),x.checkDefined(s(t.type,r,xi)))},235:function(t,r,i,o,s,l){return yd(t)?i.factory.updateNonNullChain(t,x.checkDefined(s(t.expression,r,lt))):i.factory.updateNonNullExpression(t,x.checkDefined(s(t.expression,r,lt)))},236:function(t,r,i,o,s,l){return i.factory.updateMetaProperty(t,x.checkDefined(s(t.name,r,Me)))},239:function(t,r,i,o,s,l){return i.factory.updateTemplateSpan(t,x.checkDefined(s(t.expression,r,lt)),x.checkDefined(s(t.literal,r,B8)))},241:function(t,r,i,o,s,l){return i.factory.updateBlock(t,o(t.statements,r,Di))},243:function(t,r,i,o,s,l){return i.factory.updateVariableStatement(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.declarationList,r,yc)))},244:function(t,r,i,o,s,l){return i.factory.updateExpressionStatement(t,x.checkDefined(s(t.expression,r,lt)))},245:function(t,r,i,o,s,l){return i.factory.updateIfStatement(t,x.checkDefined(s(t.expression,r,lt)),x.checkDefined(s(t.thenStatement,r,Di,i.factory.liftToBlock)),s(t.elseStatement,r,Di,i.factory.liftToBlock))},246:function(t,r,i,o,s,l){return i.factory.updateDoStatement(t,Qd(t.statement,r,i,s),x.checkDefined(s(t.expression,r,lt)))},247:function(t,r,i,o,s,l){return i.factory.updateWhileStatement(t,x.checkDefined(s(t.expression,r,lt)),Qd(t.statement,r,i,s))},248:function(t,r,i,o,s,l){return i.factory.updateForStatement(t,s(t.initializer,r,Up),s(t.condition,r,lt),s(t.incrementor,r,lt),Qd(t.statement,r,i,s))},249:function(t,r,i,o,s,l){return i.factory.updateForInStatement(t,x.checkDefined(s(t.initializer,r,Up)),x.checkDefined(s(t.expression,r,lt)),Qd(t.statement,r,i,s))},250:function(t,r,i,o,s,l){return i.factory.updateForOfStatement(t,l?s(t.awaitModifier,l,yj):t.awaitModifier,x.checkDefined(s(t.initializer,r,Up)),x.checkDefined(s(t.expression,r,lt)),Qd(t.statement,r,i,s))},251:function(t,r,i,o,s,l){return i.factory.updateContinueStatement(t,s(t.label,r,Me))},252:function(t,r,i,o,s,l){return i.factory.updateBreakStatement(t,s(t.label,r,Me))},253:function(t,r,i,o,s,l){return i.factory.updateReturnStatement(t,s(t.expression,r,lt))},254:function(t,r,i,o,s,l){return i.factory.updateWithStatement(t,x.checkDefined(s(t.expression,r,lt)),x.checkDefined(s(t.statement,r,Di,i.factory.liftToBlock)))},255:function(t,r,i,o,s,l){return i.factory.updateSwitchStatement(t,x.checkDefined(s(t.expression,r,lt)),x.checkDefined(s(t.caseBlock,r,fN)))},256:function(t,r,i,o,s,l){return i.factory.updateLabeledStatement(t,x.checkDefined(s(t.label,r,Me)),x.checkDefined(s(t.statement,r,Di,i.factory.liftToBlock)))},257:function(t,r,i,o,s,l){return i.factory.updateThrowStatement(t,x.checkDefined(s(t.expression,r,lt)))},258:function(t,r,i,o,s,l){return i.factory.updateTryStatement(t,x.checkDefined(s(t.tryBlock,r,Do)),s(t.catchClause,r,u0),s(t.finallyBlock,r,Do))},260:function(t,r,i,o,s,l){return i.factory.updateVariableDeclaration(t,x.checkDefined(s(t.name,r,yS)),l?s(t.exclamationToken,l,E2):t.exclamationToken,s(t.type,r,xi),s(t.initializer,r,lt))},261:function(t,r,i,o,s,l){return i.factory.updateVariableDeclarationList(t,o(t.declarations,r,yi))},262:function(t,r,i,o,s,l){return i.factory.updateFunctionDeclaration(t,o(t.modifiers,r,ia),l?s(t.asteriskToken,l,b2):t.asteriskToken,s(t.name,r,Me),o(t.typeParameters,r,qs),rl(t.parameters,r,i,o),s(t.type,r,xi),Dp(t.body,r,i,s))},263:function(t,r,i,o,s,l){return i.factory.updateClassDeclaration(t,o(t.modifiers,r,Ws),s(t.name,r,Me),o(t.typeParameters,r,qs),o(t.heritageClauses,r,Ip),o(t.members,r,xc))},264:function(t,r,i,o,s,l){return i.factory.updateInterfaceDeclaration(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.name,r,Me)),o(t.typeParameters,r,qs),o(t.heritageClauses,r,Ip),o(t.members,r,bS))},265:function(t,r,i,o,s,l){return i.factory.updateTypeAliasDeclaration(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.name,r,Me)),o(t.typeParameters,r,qs),x.checkDefined(s(t.type,r,xi)))},266:function(t,r,i,o,s,l){return i.factory.updateEnumDeclaration(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.name,r,Me)),o(t.members,r,p0))},267:function(t,r,i,o,s,l){return i.factory.updateModuleDeclaration(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.name,r,Aie)),s(t.body,r,rte))},268:function(t,r,i,o,s,l){return i.factory.updateModuleBlock(t,o(t.statements,r,Di))},269:function(t,r,i,o,s,l){return i.factory.updateCaseBlock(t,o(t.clauses,r,q8))},270:function(t,r,i,o,s,l){return i.factory.updateNamespaceExportDeclaration(t,x.checkDefined(s(t.name,r,Me)))},271:function(t,r,i,o,s,l){return i.factory.updateImportEqualsDeclaration(t,o(t.modifiers,r,Ws),t.isTypeOnly,x.checkDefined(s(t.name,r,Me)),x.checkDefined(s(t.moduleReference,r,lte)))},272:function(t,r,i,o,s,l){return i.factory.updateImportDeclaration(t,o(t.modifiers,r,Ws),s(t.importClause,r,G_),x.checkDefined(s(t.moduleSpecifier,r,lt)),s(t.attributes,r,uI))},300:function(t,r,i,o,s,l){return i.factory.updateImportAttributes(t,o(t.elements,r,eie),t.multiLine)},301:function(t,r,i,o,s,l){return i.factory.updateImportAttribute(t,x.checkDefined(s(t.name,r,Jee)),x.checkDefined(s(t.value,r,lt)))},273:function(t,r,i,o,s,l){return i.factory.updateImportClause(t,t.isTypeOnly,s(t.name,r,Me),s(t.namedBindings,r,n9))},274:function(t,r,i,o,s,l){return i.factory.updateNamespaceImport(t,x.checkDefined(s(t.name,r,Me)))},280:function(t,r,i,o,s,l){return i.factory.updateNamespaceExport(t,x.checkDefined(s(t.name,r,Me)))},275:function(t,r,i,o,s,l){return i.factory.updateNamedImports(t,o(t.elements,r,Iu))},276:function(t,r,i,o,s,l){return i.factory.updateImportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Me),x.checkDefined(s(t.name,r,Me)))},277:function(t,r,i,o,s,l){return i.factory.updateExportAssignment(t,o(t.modifiers,r,Ws),x.checkDefined(s(t.expression,r,lt)))},278:function(t,r,i,o,s,l){return i.factory.updateExportDeclaration(t,o(t.modifiers,r,Ws),t.isTypeOnly,s(t.exportClause,r,UG),s(t.moduleSpecifier,r,lt),s(t.attributes,r,uI))},279:function(t,r,i,o,s,l){return i.factory.updateNamedExports(t,o(t.elements,r,Ed))},281:function(t,r,i,o,s,l){return i.factory.updateExportSpecifier(t,t.isTypeOnly,s(t.propertyName,r,Me),x.checkDefined(s(t.name,r,Me)))},283:function(t,r,i,o,s,l){return i.factory.updateExternalModuleReference(t,x.checkDefined(s(t.expression,r,lt)))},284:function(t,r,i,o,s,l){return i.factory.updateJsxElement(t,x.checkDefined(s(t.openingElement,r,n_)),o(t.children,r,ZM),x.checkDefined(s(t.closingElement,r,l0)))},285:function(t,r,i,o,s,l){return i.factory.updateJsxSelfClosingElement(t,x.checkDefined(s(t.tagName,r,cC)),o(t.typeArguments,r,xi),x.checkDefined(s(t.attributes,r,d0)))},286:function(t,r,i,o,s,l){return i.factory.updateJsxOpeningElement(t,x.checkDefined(s(t.tagName,r,cC)),o(t.typeArguments,r,xi),x.checkDefined(s(t.attributes,r,d0)))},287:function(t,r,i,o,s,l){return i.factory.updateJsxClosingElement(t,x.checkDefined(s(t.tagName,r,cC)))},295:function(t,r,i,o,s,l){return i.factory.updateJsxNamespacedName(t,x.checkDefined(s(t.namespace,r,Me)),x.checkDefined(s(t.name,r,Me)))},288:function(t,r,i,o,s,l){return i.factory.updateJsxFragment(t,x.checkDefined(s(t.openingFragment,r,fI)),o(t.children,r,ZM),x.checkDefined(s(t.closingFragment,r,tie)))},291:function(t,r,i,o,s,l){return i.factory.updateJsxAttribute(t,x.checkDefined(s(t.name,r,_re)),s(t.initializer,r,cte))},292:function(t,r,i,o,s,l){return i.factory.updateJsxAttributes(t,o(t.properties,r,H8))},293:function(t,r,i,o,s,l){return i.factory.updateJsxSpreadAttribute(t,x.checkDefined(s(t.expression,r,lt)))},294:function(t,r,i,o,s,l){return i.factory.updateJsxExpression(t,s(t.expression,r,lt))},296:function(t,r,i,o,s,l){return i.factory.updateCaseClause(t,x.checkDefined(s(t.expression,r,lt)),o(t.statements,r,Di))},297:function(t,r,i,o,s,l){return i.factory.updateDefaultClause(t,o(t.statements,r,Di))},298:function(t,r,i,o,s,l){return i.factory.updateHeritageClause(t,o(t.types,r,sv))},299:function(t,r,i,o,s,l){return i.factory.updateCatchClause(t,s(t.variableDeclaration,r,yi),x.checkDefined(s(t.block,r,Do)))},303:function(t,r,i,o,s,l){return i.factory.updatePropertyAssignment(t,x.checkDefined(s(t.name,r,kl)),x.checkDefined(s(t.initializer,r,lt)))},304:function(t,r,i,o,s,l){return i.factory.updateShorthandPropertyAssignment(t,x.checkDefined(s(t.name,r,Me)),s(t.objectAssignmentInitializer,r,lt))},305:function(t,r,i,o,s,l){return i.factory.updateSpreadAssignment(t,x.checkDefined(s(t.expression,r,lt)))},306:function(t,r,i,o,s,l){return i.factory.updateEnumMember(t,x.checkDefined(s(t.name,r,kl)),s(t.initializer,r,lt))},312:function(t,r,i,o,s,l){return i.factory.updateSourceFile(t,jU(t.statements,r,i))},360:function(t,r,i,o,s,l){return i.factory.updatePartiallyEmittedExpression(t,x.checkDefined(s(t.expression,r,lt)))},361:function(t,r,i,o,s,l){return i.factory.updateCommaListExpression(t,o(t.elements,r,lt))}}}});function Noe(e,t,r,i,o){var{enter:s,exit:l}=o.extendedDiagnostics?EB("Source Map","beforeSourcemap","afterSourcemap"):SB,d=[],p=[],h=new Map,m,v=[],E,S=[],A="",C=0,R=0,L=0,G=0,U=0,K=0,F=!1,oe=0,W=0,$=0,de=0,fe=0,q=0,H=!1,ee=!1,le=!1;return{getSources:()=>d,addSource:Ee,setSourceContent:ce,addName:Z,addMapping:Oe,appendSourceMap:_e,toJSON:he,toString:()=>JSON.stringify(he())};function Ee(Ke){s();let Dt=AA(i,Ke,e.getCurrentDirectory(),e.getCanonicalFileName,!0),st=h.get(Dt);return st===void 0&&(st=p.length,p.push(Dt),d.push(Ke),h.set(Dt,st)),l(),st}function ce(Ke,Dt){if(s(),Dt!==null){for(m||(m=[]);m.length<Ke;)m.push(null);m[Ke]=Dt}l()}function Z(Ke){s(),E||(E=new Map);let Dt=E.get(Ke);return Dt===void 0&&(Dt=v.length,v.push(Ke),E.set(Ke,Dt)),l(),Dt}function pe(Ke,Dt){return!H||oe!==Ke||W!==Dt}function Ae(Ke,Dt,st){return Ke!==void 0&&Dt!==void 0&&st!==void 0&&$===Ke&&(de>Dt||de===Dt&&fe>st)}function Oe(Ke,Dt,st,Ge,ot,Vt){x.assert(Ke>=oe,"generatedLine cannot backtrack"),x.assert(Dt>=0,"generatedCharacter cannot be negative"),x.assert(st===void 0||st>=0,"sourceIndex cannot be negative"),x.assert(Ge===void 0||Ge>=0,"sourceLine cannot be negative"),x.assert(ot===void 0||ot>=0,"sourceCharacter cannot be negative"),s(),(pe(Ke,Dt)||Ae(st,Ge,ot))&&(De(),oe=Ke,W=Dt,ee=!1,le=!1,H=!0),st!==void 0&&Ge!==void 0&&ot!==void 0&&($=st,de=Ge,fe=ot,ee=!0,Vt!==void 0&&(q=Vt,le=!0)),l()}function _e(Ke,Dt,st,Ge,ot,Vt){x.assert(Ke>=oe,"generatedLine cannot backtrack"),x.assert(Dt>=0,"generatedCharacter cannot be negative"),s();let jt=[],gn,On=qU(st.mappings);for(let en of On){if(Vt&&(en.generatedLine>Vt.line||en.generatedLine===Vt.line&&en.generatedCharacter>Vt.character))break;if(ot&&(en.generatedLine<ot.line||ot.line===en.generatedLine&&en.generatedCharacter<ot.character))continue;let zt,Wt,ei,Ki;if(en.sourceIndex!==void 0){if(zt=jt[en.sourceIndex],zt===void 0){let cr=st.sources[en.sourceIndex],Jt=st.sourceRoot?wr(st.sourceRoot,cr):cr,Ue=wr(Ur(Ge),Jt);jt[en.sourceIndex]=zt=Ee(Ue),st.sourcesContent&&typeof st.sourcesContent[en.sourceIndex]=="string"&&ce(zt,st.sourcesContent[en.sourceIndex])}Wt=en.sourceLine,ei=en.sourceCharacter,st.names&&en.nameIndex!==void 0&&(gn||(gn=[]),Ki=gn[en.nameIndex],Ki===void 0&&(gn[en.nameIndex]=Ki=Z(st.names[en.nameIndex])))}let gi=en.generatedLine-(ot?ot.line:0),io=gi+Ke,Gn=ot&&ot.line===en.generatedLine?en.generatedCharacter-ot.character:en.generatedCharacter,Nr=gi===0?Gn+Dt:Gn;Oe(io,Nr,zt,Wt,ei,Ki)}l()}function be(){return!F||C!==oe||R!==W||L!==$||G!==de||U!==fe||K!==q}function Te(Ke){S.push(Ke),S.length>=1024&&ft()}function De(){if(!(!H||!be())){if(s(),C<oe){do Te(59),C++;while(C<oe);R=0}else x.assertEqual(C,oe,"generatedLine cannot backtrack"),F&&Te(44);Le(W-R),R=W,ee&&(Le($-L),L=$,Le(de-G),G=de,Le(fe-U),U=fe,le&&(Le(q-K),K=q)),F=!0,l()}}function ft(){S.length>0&&(A+=String.fromCharCode.apply(void 0,S),S.length=0)}function he(){return De(),ft(),{version:3,file:t,sourceRoot:r,sources:p,names:v,mappings:A,sourcesContent:m}}function Le(Ke){Ke<0?Ke=(-Ke<<1)+1:Ke=Ke<<1;do{let Dt=Ke&31;Ke=Ke>>5,Ke>0&&(Dt=Dt|32),Te(H3e(Dt))}while(Ke>0)}}function UU(e,t){return{getLineCount:()=>t.length,getLineText:r=>e.substring(t[r],t[r+1])}}function Poe(e){for(let t=e.getLineCount()-1;t>=0;t--){let r=e.getLineText(t),i=p4.exec(r);if(i)return i[1].trimEnd();if(!r.match(f4))break}}function U3e(e){return typeof e=="string"||e===null}function Moe(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&oo(e.sources)&&ji(e.sources,fo)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||oo(e.sourcesContent)&&ji(e.sourcesContent,U3e))&&(e.names===void 0||e.names===null||oo(e.names)&&ji(e.names,fo))}function HU(e){try{let t=JSON.parse(e);if(Moe(t))return t}catch{}}function qU(e){let t=!1,r=0,i=0,o=0,s=0,l=0,d=0,p=0,h;return{get pos(){return r},get error(){return h},get state(){return m(!0,!0)},next(){for(;!t&&r<e.length;){let L=e.charCodeAt(r);if(L===59){i++,o=0,r++;continue}if(L===44){r++;continue}let G=!1,U=!1;if(o+=R(),A())return v();if(o<0)return S("Invalid generatedCharacter found");if(!C()){if(G=!0,s+=R(),A())return v();if(s<0)return S("Invalid sourceIndex found");if(C())return S("Unsupported Format: No entries after sourceIndex");if(l+=R(),A())return v();if(l<0)return S("Invalid sourceLine found");if(C())return S("Unsupported Format: No entries after sourceLine");if(d+=R(),A())return v();if(d<0)return S("Invalid sourceCharacter found");if(!C()){if(U=!0,p+=R(),A())return v();if(p<0)return S("Invalid nameIndex found");if(!C())return S("Unsupported Error Format: Entries after nameIndex")}}return{value:m(G,U),done:t}}return v()},[Symbol.iterator](){return this}};function m(L,G){return{generatedLine:i,generatedCharacter:o,sourceIndex:L?s:void 0,sourceLine:L?l:void 0,sourceCharacter:L?d:void 0,nameIndex:G?p:void 0}}function v(){return t=!0,{value:void 0,done:!0}}function E(L){h===void 0&&(h=L)}function S(L){return E(L),v()}function A(){return h!==void 0}function C(){return r===e.length||e.charCodeAt(r)===44||e.charCodeAt(r)===59}function R(){let L=!0,G=0,U=0;for(;L;r++){if(r>=e.length)return E("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let K=q3e(e.charCodeAt(r));if(K===-1)return E("Invalid character in VLQ"),-1;L=(K&32)!==0,U=U|(K&31)<<G,G+=5}return U&1?(U=U>>1,U=-U):U=U>>1,U}}function RSe(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 Loe(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function H3e(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:x.fail(`${e}: not a base64 value`)}function q3e(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function DSe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function CSe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function J3e(e,t){return x.assert(e.sourceIndex===t.sourceIndex),Ms(e.sourcePosition,t.sourcePosition)}function K3e(e,t){return Ms(e.generatedPosition,t.generatedPosition)}function X3e(e){return e.sourcePosition}function Y3e(e){return e.generatedPosition}function koe(e,t,r){let i=Ur(r),o=t.sourceRoot?Qi(t.sourceRoot,i):i,s=Qi(t.file,i),l=e.getSourceFileLike(s),d=t.sources.map(G=>Qi(G,o)),p=new Map(d.map((G,U)=>[e.getCanonicalFileName(G),U])),h,m,v;return{getSourcePosition:L,getGeneratedPosition:R};function E(G){let U=l!==void 0?NM(l,G.generatedLine,G.generatedCharacter,!0):-1,K,F;if(Loe(G)){let oe=e.getSourceFileLike(d[G.sourceIndex]);K=t.sources[G.sourceIndex],F=oe!==void 0?NM(oe,G.sourceLine,G.sourceCharacter,!0):-1}return{generatedPosition:U,source:K,sourceIndex:G.sourceIndex,sourcePosition:F,nameIndex:G.nameIndex}}function S(){if(h===void 0){let G=qU(t.mappings),U=bo(G,E);G.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${G.error}`),h=je):h=U}return h}function A(G){if(v===void 0){let U=[];for(let K of S()){if(!DSe(K))continue;let F=U[K.sourceIndex];F||(U[K.sourceIndex]=F=[]),F.push(K)}v=U.map(K=>zD(K,J3e,CSe))}return v[G]}function C(){if(m===void 0){let G=[];for(let U of S())G.push(U);m=zD(G,K3e,CSe)}return m}function R(G){let U=p.get(e.getCanonicalFileName(G.fileName));if(U===void 0)return G;let K=A(U);if(!ct(K))return G;let F=gA(K,G.pos,X3e,Ms);F<0&&(F=~F);let oe=K[F];return oe===void 0||oe.sourceIndex!==U?G:{fileName:s,pos:oe.generatedPosition}}function L(G){let U=C();if(!ct(U))return G;let K=gA(U,G.pos,Y3e,Ms);K<0&&(K=~K);let F=U[K];return F===void 0||!DSe(F)?G:{fileName:d[F.sourceIndex],pos:F.sourcePosition}}}var JU,p4,f4,m4,$3e=pt({"src/compiler/sourcemap.ts"(){"use strict";wo(),mS(),JU=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,p4=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,f4=/^\s*(\/\/[@#] .*)?$/,m4={getSourcePosition:Ps,getGeneratedPosition:Ps}}});function dd(e){return e=sl(e),e?Fa(e):0}function Q3e(e){return!e||!sg(e)?!1:ct(e.elements,NSe)}function NSe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function $f(e,t){return r;function r(o){return o.kind===312?t(o):i(o)}function i(o){return e.factory.createBundle(nn(o.sourceFiles,t),o.prepends)}}function Ooe(e){return!!cx(e)}function _4(e){if(cx(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!sg(t))return!1;let r=0;for(let i of t.elements)NSe(i)&&r++;return r>0&&r!==t.elements.length||!!(t.elements.length-r)&&kA(e)}function KU(e){return!_4(e)&&(kA(e)||!!e.importClause&&sg(e.importClause.namedBindings)&&Q3e(e.importClause.namedBindings))}function XU(e,t){let r=e.getEmitResolver(),i=e.getCompilerOptions(),o=[],s=new ZU,l=[],d=new Map,p,h=!1,m,v=!1,E=!1,S=!1;for(let R of t.statements)switch(R.kind){case 272:o.push(R),!E&&_4(R)&&(E=!0),!S&&KU(R)&&(S=!0);break;case 271:R.moduleReference.kind===283&&o.push(R);break;case 278:if(R.moduleSpecifier)if(!R.exportClause)o.push(R),v=!0;else if(o.push(R),$p(R.exportClause))C(R);else{let L=R.exportClause.name;d.get(ar(L))||(NN(l,dd(R),L),d.set(ar(L),!0),p=pn(p,L)),E=!0}else C(R);break;case 277:R.isExportEquals&&!m&&(m=R);break;case 243:if(Wr(R,32))for(let L of R.declarationList.declarations)p=PSe(L,d,p,l);break;case 262:if(Wr(R,32))if(Wr(R,2048))h||(NN(l,dd(R),e.factory.getDeclarationName(R)),h=!0);else{let L=R.name;d.get(ar(L))||(NN(l,dd(R),L),d.set(ar(L),!0),p=pn(p,L))}break;case 263:if(Wr(R,32))if(Wr(R,2048))h||(NN(l,dd(R),e.factory.getDeclarationName(R)),h=!0);else{let L=R.name;L&&!d.get(ar(L))&&(NN(l,dd(R),L),d.set(ar(L),!0),p=pn(p,L))}break}let A=Bj(e.factory,e.getEmitHelperFactory(),t,i,v,E,S);return A&&o.unshift(A),{externalImports:o,exportSpecifiers:s,exportEquals:m,hasExportStarsToExportValues:v,exportedBindings:l,exportedNames:p,externalHelpersImportDeclaration:A};function C(R){for(let L of Fo(R.exportClause,$p).elements)if(!d.get(ar(L.name))){let G=L.propertyName||L.name;R.moduleSpecifier||s.add(G,L);let U=r.getReferencedImportDeclaration(G)||r.getReferencedValueDeclaration(G);U&&NN(l,dd(U),L.name),d.set(ar(L.name),!0),p=pn(p,L.name)}}}function PSe(e,t,r,i){if(ko(e.name))for(let o of e.name.elements)vc(o)||(r=PSe(o,t,r,i));else if(!ws(e.name)){let o=ar(e.name);t.get(o)||(t.set(o,!0),r=pn(r,e.name),lg(e.name)&&NN(i,dd(e),e.name))}return r}function NN(e,t,r){let i=e[t];return i?i.push(r):e[t]=i=[r],i}function g0(e){return Ga(e)||e.kind===9||du(e.kind)||Me(e)}function i_(e){return!Me(e)&&g0(e)}function PN(e){return e>=65&&e<=79}function MN(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 h4(e){if(!Cc(e))return;let t=Ka(e.expression);return xS(t)?t:void 0}function MSe(e,t,r){for(let i=t;i<e.length;i+=1){let o=e[i];if(h4(o))return r.unshift(i),!0;if(JS(o)&&MSe(o.tryBlock.statements,0,r))return r.unshift(i),!0}return!1}function g4(e,t){let r=[];return MSe(e,t,r),r}function YU(e,t,r){return Cr(e.members,i=>eze(i,t,r))}function Z3e(e){return tze(e)||nl(e)}function v4(e){return Cr(e.members,Z3e)}function eze(e,t,r){return xo(e)&&(!!e.initializer||!t)&&jl(e)===r}function tze(e){return xo(e)&&jl(e)}function uk(e){return e.kind===172&&e.initializer!==void 0}function woe(e){return!zo(e)&&(CA(e)||su(e))&&Ci(e.name)}function Woe(e){let t;if(e){let r=e.parameters,i=r.length>0&&XE(r[0]),o=i?1:0,s=i?r.length-1:r.length;for(let l=0;l<s;l++){let d=r[l+o];(t||Hp(d))&&(t||(t=new Array(s)),t[l]=Hv(d))}}return t}function $U(e){let t=Hv(e),r=Woe(Ah(e));if(!(!ct(t)&&!ct(r)))return{decorators:t,parameters:r}}function y4(e,t,r){switch(e.kind){case 177:case 178:return r?nze(e,t):LSe(e);case 174:return LSe(e);case 172:return rze(e);default:return}}function nze(e,t){if(!e.body)return;let{firstAccessor:r,secondAccessor:i,getAccessor:o,setAccessor:s}=wS(t.members,e),l=Hp(r)?r:i&&Hp(i)?i:void 0;if(!l||e!==l)return;let d=Hv(l),p=Woe(s);if(!(!ct(d)&&!ct(p)))return{decorators:d,parameters:p,getDecorators:o&&Hv(o),setDecorators:s&&Hv(s)}}function LSe(e){if(!e.body)return;let t=Hv(e),r=Woe(e);if(!(!ct(t)&&!ct(r)))return{decorators:t,parameters:r}}function rze(e){let t=Hv(e);if(ct(t))return{decorators:t}}function Foe(e,t){for(;e;){let r=t(e);if(r!==void 0)return r;e=e.previous}}function zoe(e){return{data:e}}function QU(e,t){var r,i;return vS(t)?(r=e?.generatedIdentifiers)==null?void 0:r.get(W2(t)):(i=e?.identifiers)==null?void 0:i.get(t.escapedText)}function tT(e,t,r){vS(t)?(e.generatedIdentifiers??(e.generatedIdentifiers=new Map),e.generatedIdentifiers.set(W2(t),r)):(e.identifiers??(e.identifiers=new Map),e.identifiers.set(t.escapedText,r))}function Boe(e,t){return Foe(e,r=>QU(r.privateEnv,t))}function Goe(e){return!e.initializer&&Me(e.name)}function pk(e){return ji(e,Goe)}var SI,ZU,ize=pt({"src/compiler/transformers/utilities.ts"(){"use strict";wo(),SI=class LD{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(LD.toKey(t))}get(t){return this._map.get(LD.toKey(t))}set(t,r){return this._map.set(LD.toKey(t),r),this}delete(t){var r;return((r=this._map)==null?void 0:r.delete(LD.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(vS(t)||ws(t)){let r=t.emitNode.autoGenerate;if((r.flags&7)===4){let i=W2(t),o=hh(i)&&i!==t?LD.toKey(i):`(generated@${Fa(i)})`;return Wb(!1,r.prefix,o,r.suffix,LD.toKey)}else{let i=`(auto@${r.id})`;return Wb(!1,r.prefix,i,r.suffix,LD.toKey)}}return Ci(t)?ar(t).slice(1):ar(t)}},ZU=class extends SI{add(e,t){let r=this.get(e);return r?r.push(t):this.set(e,r=[t]),r}remove(e,t){let r=this.get(e);r&&(bA(r,t),r.length||this.delete(e))}}}});function nT(e,t,r,i,o,s){let l=e,d;if(nv(e))for(d=e.right;Dne(e.left)||fV(e.left);)if(nv(d))l=e=d,d=e.right;else return x.checkDefined(He(d,t,lt));let p,h={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:m,emitBindingOrAssignment:v,createArrayBindingOrAssignmentPattern:E=>pze(r.factory,E),createObjectBindingOrAssignmentPattern:E=>mze(r.factory,E),createArrayBindingOrAssignmentElement:hze,visitor:t};if(d&&(d=He(d,t,lt),x.assert(d),Me(d)&&Voe(e,d.escapedText)||joe(e)?d=TI(h,d,!1,l):o?d=TI(h,d,!0,l):xs(e)&&(l=d)),LN(h,e,d,l,nv(e)),d&&o){if(!ct(p))return d;p.push(d)}return r.factory.inlineExpressions(p)||r.factory.createOmittedExpression();function m(E){p=pn(p,E)}function v(E,S,A,C){x.assertNode(E,s?Me:lt);let R=s?s(E,S,A):Ze(r.factory.createAssignment(x.checkDefined(He(E,t,lt)),S),A);R.original=C,m(R)}}function Voe(e,t){let r=_y(e);return JM(r)?oze(r,t):Me(r)?r.escapedText===t:!1}function oze(e,t){let r=qx(e);for(let i of r)if(Voe(i,t))return!0;return!1}function joe(e){let t=P6(e);if(t&&Pa(t)&&!wE(t.expression))return!0;let r=_y(e);return!!r&&JM(r)&&aze(r)}function aze(e){return!!an(qx(e),joe)}function v0(e,t,r,i,o,s=!1,l){let d,p=[],h=[],m={context:r,level:i,downlevelIteration:!!r.getCompilerOptions().downlevelIteration,hoistTempVariables:s,emitExpression:v,emitBindingOrAssignment:E,createArrayBindingOrAssignmentPattern:S=>uze(r.factory,S),createObjectBindingOrAssignmentPattern:S=>fze(r.factory,S),createArrayBindingOrAssignmentElement:S=>_ze(r.factory,S),visitor:t};if(yi(e)){let S=O2(e);S&&(Me(S)&&Voe(e,S.escapedText)||joe(e))&&(S=TI(m,x.checkDefined(He(S,m.visitor,lt)),!1,S),e=r.factory.updateVariableDeclaration(e,e.name,void 0,void 0,S))}if(LN(m,e,o,e,l),d){let S=r.factory.createTempVariable(void 0);if(s){let A=r.factory.inlineExpressions(d);d=void 0,E(S,A,void 0,void 0)}else{r.hoistVariableDeclaration(S);let A=Da(p);A.pendingExpressions=pn(A.pendingExpressions,r.factory.createAssignment(S,A.value)),Pr(A.pendingExpressions,d),A.value=S}}for(let{pendingExpressions:S,name:A,value:C,location:R,original:L}of p){let G=r.factory.createVariableDeclaration(A,void 0,void 0,S?r.factory.inlineExpressions(pn(S,C)):C);G.original=L,Ze(G,R),h.push(G)}return h;function v(S){d=pn(d,S)}function E(S,A,C,R){x.assertNode(S,yS),d&&(A=r.factory.inlineExpressions(pn(d,A)),d=void 0),p.push({pendingExpressions:d,name:S,value:A,location:C,original:R})}}function LN(e,t,r,i,o){let s=_y(t);if(!o){let l=He(O2(t),e.visitor,lt);l?r?(r=cze(e,r,l,i),!i_(l)&&JM(s)&&(r=TI(e,r,!0,i))):r=l:r||(r=e.context.factory.createVoidZero())}$G(s)?sze(e,t,s,r,i):QG(s)?lze(e,t,s,r,i):e.emitBindingOrAssignment(s,r,i,t)}function sze(e,t,r,i,o){let s=qx(r),l=s.length;if(l!==1){let h=!qM(t)||l!==0;i=TI(e,i,h,o)}let d,p;for(let h=0;h<l;h++){let m=s[h];if(N6(m)){if(h===l-1){d&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r),d=void 0);let v=e.context.getEmitHelperFactory().createRestHelper(i,s,p,r);LN(e,m,v,m)}}else{let v=Gj(m);if(e.level>=1&&!(m.transformFlags&98304)&&!(_y(m).transformFlags&98304)&&!Pa(v))d=pn(d,He(m,e.visitor,Yee));else{d&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r),d=void 0);let E=dze(e,i,v);Pa(v)&&(p=pn(p,E.argumentExpression)),LN(e,m,E,m)}}}d&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(d),i,o,r)}function lze(e,t,r,i,o){let s=qx(r),l=s.length;if(e.level<1&&e.downlevelIteration)i=TI(e,Ze(e.context.getEmitHelperFactory().createReadHelper(i,l>0&&N6(s[l-1])?void 0:l),o),!1,o);else if(l!==1&&(e.level<1||l===0)||ji(s,vc)){let h=!qM(t)||l!==0;i=TI(e,i,h,o)}let d,p;for(let h=0;h<l;h++){let m=s[h];if(e.level>=1)if(m.transformFlags&65536||e.hasTransformedPriorElement&&!kSe(m)){e.hasTransformedPriorElement=!0;let v=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(v),p=pn(p,[v,m]),d=pn(d,e.createArrayBindingOrAssignmentElement(v))}else d=pn(d,m);else{if(vc(m))continue;if(N6(m)){if(h===l-1){let v=e.context.factory.createArraySliceCall(i,h);LN(e,m,v,m)}}else{let v=e.context.factory.createElementAccessExpression(i,h);LN(e,m,v,m)}}}if(d&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(d),i,o,r),p)for(let[h,m]of p)LN(e,m,h,m)}function kSe(e){let t=_y(e);if(!t||vc(t))return!0;let r=P6(e);if(r&&!Km(r))return!1;let i=O2(e);return i&&!i_(i)?!1:JM(t)?ji(qx(t),kSe):Me(t)}function cze(e,t,r,i){return t=TI(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,r,void 0,t)}function dze(e,t,r){let{factory:i}=e.context;if(Pa(r)){let o=TI(e,x.checkDefined(He(r.expression,e.visitor,lt)),!1,r);return e.context.factory.createElementAccessExpression(t,o)}else if(Tp(r)){let o=i.cloneNode(r);return e.context.factory.createElementAccessExpression(t,o)}else{let o=e.context.factory.createIdentifier(ar(r));return e.context.factory.createPropertyAccessExpression(t,o)}}function TI(e,t,r,i){if(Me(t)&&r)return t;{let o=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(o),e.emitExpression(Ze(e.context.factory.createAssignment(o,t),i))):e.emitBindingOrAssignment(o,t,i,void 0),o}}function uze(e,t){return x.assertEachNode(t,V8),e.createArrayBindingPattern(t)}function pze(e,t){return x.assertEachNode(t,XM),e.createArrayLiteralExpression(nn(t,e.converters.convertToArrayAssignmentElement))}function fze(e,t){return x.assertEachNode(t,Na),e.createObjectBindingPattern(t)}function mze(e,t){return x.assertEachNode(t,KM),e.createObjectLiteralExpression(nn(t,e.converters.convertToObjectAssignmentElement))}function _ze(e,t){return e.createBindingElement(void 0,void 0,t)}function hze(e){return e}var eH,gze=pt({"src/compiler/transformers/destructuring.ts"(){"use strict";wo(),eH=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(eH||{})}});function Uoe(e,t,r=e.createThis()){let i=e.createAssignment(t,r),o=e.createExpressionStatement(i),s=e.createBlock([o],!1),l=e.createClassStaticBlockDeclaration(s);return cd(l).classThis=t,l}function kN(e){var t;if(!nl(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return Cc(r)&&lc(r.expression,!0)&&Me(r.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===r.expression.left&&r.expression.right.kind===110}function tH(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&ct(e.members,kN)}function Hoe(e,t,r,i){if(tH(t))return t;let o=Uoe(e,r,i);t.name&&la(o.body.statements[0],t.name);let s=e.createNodeArray([o,...t.members]);Ze(s,t.members);let l=Zl(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,s);return cd(l).classThis=r,l}var vze=pt({"src/compiler/transformers/classThis.ts"(){"use strict";wo()}});function ON(e,t,r){let i=sl(Rl(r));return(Zl(i)||Ql(i))&&!i.name&&Wr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function OSe(e,t,r){let{factory:i}=e;if(r!==void 0)return{assignedName:i.createStringLiteral(r),name:t};if(Km(t)||Ci(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Km(t.expression)&&!Me(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let o=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(o);let s=e.getEmitHelperFactory().createPropKeyHelper(t.expression),l=i.createAssignment(o,s),d=i.updateComputedPropertyName(t,l);return{assignedName:o,name:d}}function qoe(e,t,r=e.factory.createThis()){let{factory:i}=e,o=e.getEmitHelperFactory().createSetFunctionNameHelper(r,t),s=i.createExpressionStatement(o),l=i.createBlock([s],!1),d=i.createClassStaticBlockDeclaration(l);return cd(d).assignedName=t,d}function AI(e){var t;if(!nl(e)||e.body.statements.length!==1)return!1;let r=e.body.statements[0];return Cc(r)&&oN(r.expression,"___setFunctionName")&&r.expression.arguments.length>=2&&r.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function b4(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&ct(e.members,AI)}function nH(e){return!!e.name||b4(e)}function E4(e,t,r,i){if(b4(t))return t;let{factory:o}=e,s=qoe(e,r,i);t.name&&la(s.body.statements[0],t.name);let l=Tl(t.members,kN)+1,d=t.members.slice(0,l),p=t.members.slice(l),h=o.createNodeArray([...d,s,...p]);return Ze(h,t.members),t=Zl(t)?o.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h):o.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,h),cd(t).assignedName=r,t}function rR(e,t,r,i){if(i&&ca(r)&&C9(r))return t;let{factory:o}=e,s=Rl(t),l=Dc(s)?Fo(E4(e,s,r),Dc):e.getEmitHelperFactory().createSetFunctionNameHelper(s,r);return o.restoreOuterExpressions(t,l)}function yze(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=OSe(e,t.name,i),d=rR(e,t.initializer,s,r);return o.updatePropertyAssignment(t,l,d)}function bze(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):ON(o,t.name,t.objectAssignmentInitializer),l=rR(e,t.objectAssignmentInitializer,s,r);return o.updateShorthandPropertyAssignment(t,t.name,l)}function Eze(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):ON(o,t.name,t.initializer),l=rR(e,t.initializer,s,r);return o.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,l)}function Sze(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):ON(o,t.name,t.initializer),l=rR(e,t.initializer,s,r);return o.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,l)}function Tze(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):ON(o,t.name,t.initializer),l=rR(e,t.initializer,s,r);return o.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,l)}function Aze(e,t,r,i){let{factory:o}=e,{assignedName:s,name:l}=OSe(e,t.name,i),d=rR(e,t.initializer,s,r);return o.updatePropertyDeclaration(t,t.modifiers,l,t.questionToken??t.exclamationToken,t.type,d)}function Ize(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):ON(o,t.left,t.right),l=rR(e,t.right,s,r);return o.updateBinaryExpression(t,t.left,t.operatorToken,l)}function xze(e,t,r,i){let{factory:o}=e,s=i!==void 0?o.createStringLiteral(i):o.createStringLiteral(t.isExportEquals?"":"default"),l=rR(e,t.expression,s,r);return o.updateExportAssignment(t,t.modifiers,l)}function Uu(e,t,r,i){switch(t.kind){case 303:return yze(e,t,r,i);case 304:return bze(e,t,r,i);case 260:return Eze(e,t,r,i);case 169:return Sze(e,t,r,i);case 208:return Tze(e,t,r,i);case 172:return Aze(e,t,r,i);case 226:return Ize(e,t,r,i);case 277:return xze(e,t,r,i)}}var Rze=pt({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";wo()}});function rH(e,t,r,i,o,s){let l=He(t.tag,r,lt);x.assert(l);let d=[void 0],p=[],h=[],m=t.template;if(s===0&&!eV(m))return un(t,r,e);let{factory:v}=e;if(eI(m))p.push(Joe(v,m)),h.push(Koe(v,m,i));else{p.push(Joe(v,m.head)),h.push(Koe(v,m.head,i));for(let S of m.templateSpans)p.push(Joe(v,S.literal)),h.push(Koe(v,S.literal,i)),d.push(x.checkDefined(He(S.expression,r,lt)))}let E=e.getEmitHelperFactory().createTemplateObjectHelper(v.createArrayLiteralExpression(p),v.createArrayLiteralExpression(h));if(wl(i)){let S=v.createUniqueName("templateObject");o(S),d[0]=v.createLogicalOr(S,v.createAssignment(S,E))}else d[0]=E;return v.createCallExpression(l,void 0,d)}function Joe(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function Koe(e,t,r){let i=t.rawText;if(i===void 0){x.assertIsDefined(r,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=FE(r,t);let o=t.kind===15||t.kind===18;i=i.substring(1,i.length-(o?1:2))}return i=i.replace(/\r\n?/g,`
`),Ze(e.createStringLiteral(i),t)}var iH,Dze=pt({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";wo(),iH=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(iH||{})}});function Xoe(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getEmitResolver(),p=e.getCompilerOptions(),h=Wa(p),m=ld(p),v=!!p.experimentalDecorators,E=p.emitDecoratorMetadata?$oe(e):void 0,S=e.onEmitNode,A=e.onSubstituteNode;e.onEmitNode=Wl,e.onSubstituteNode=il,e.enableSubstitution(211),e.enableSubstitution(212);let C,R,L,G,U,K,F,oe;return W;function W(X){return X.kind===313?$(X):de(X)}function $(X){return t.createBundle(X.sourceFiles.map(de),Fi(X.prepends,xe=>xe.kind===315?ij(xe,"js"):xe))}function de(X){if(X.isDeclarationFile)return X;C=X;let xe=fe(X,Ke);return ag(xe,e.readEmitHelpers()),C=void 0,xe}function fe(X,xe){let dt=G,$t=U,sr=K;q(X);let tr=xe(X);return G!==dt&&(U=$t),G=dt,K=sr,tr}function q(X){switch(X.kind){case 312:case 269:case 268:case 241:G=X,U=void 0;break;case 263:case 262:if(Wr(X,128))break;X.name?j(X):x.assert(X.kind===263||Wr(X,2048));break}}function H(X){return fe(X,ee)}function ee(X){return X.transformFlags&1?Le(X):X}function le(X){return fe(X,Ee)}function Ee(X){switch(X.kind){case 272:case 271:case 277:case 278:return Z(X);default:return ee(X)}}function ce(X){let xe=uo(X);if(xe===X||dl(X))return!1;if(!xe||xe.kind!==X.kind)return!0;switch(X.kind){case 272:if(x.assertNode(xe,cc),X.importClause!==xe.importClause||X.attributes!==xe.attributes)return!0;break;case 271:if(x.assertNode(xe,Nc),X.name!==xe.name||X.isTypeOnly!==xe.isTypeOnly||X.moduleReference!==xe.moduleReference&&(Su(X.moduleReference)||Su(xe.moduleReference)))return!0;break;case 278:if(x.assertNode(xe,xl),X.exportClause!==xe.exportClause||X.attributes!==xe.attributes)return!0;break}return!1}function Z(X){if(ce(X))return X.transformFlags&1?un(X,H,e):X;switch(X.kind){case 272:return dn(X);case 271:return lo(X);case 277:return di(X);case 278:return jn(X);default:x.fail("Unhandled ellided statement")}}function pe(X){return fe(X,Ae)}function Ae(X){if(!(X.kind===278||X.kind===272||X.kind===273||X.kind===271&&X.moduleReference.kind===283))return X.transformFlags&1||Wr(X,32)?Le(X):X}function Oe(X){return xe=>fe(xe,dt=>_e(dt,X))}function _e(X,xe){switch(X.kind){case 176:return mn(X);case 172:return Rt(X,xe);case 177:return ba(X,xe);case 178:return ln(X,xe);case 174:return so(X,xe);case 175:return un(X,H,e);case 240:return X;case 181:return;default:return x.failBadSyntaxKind(X)}}function be(X){return xe=>fe(xe,dt=>Te(dt,X))}function Te(X,xe){switch(X.kind){case 303:case 304:case 305:return H(X);case 177:return ba(X,xe);case 178:return ln(X,xe);case 174:return so(X,xe);default:return x.failBadSyntaxKind(X)}}function De(X){return Xc(X)?void 0:H(X)}function ft(X){return ia(X)?void 0:H(X)}function he(X){if(!Xc(X)&&!(GA(X.kind)&28895)&&!(R&&X.kind===95))return X}function Le(X){if(Di(X)&&Wr(X,128))return t.createNotEmittedStatement(X);switch(X.kind){case 95:case 90:return R?void 0:X;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(X);case 270:return;case 264:return t.createNotEmittedStatement(X);case 263:return Vt(X);case 231:return jt(X);case 298:return cr(X);case 233:return Jt(X);case 210:return Dt(X);case 176:case 172:case 174:case 177:case 178:case 175:return x.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Tn(X);case 218:return ke(X);case 219:return nt(X);case 169:return tt(X);case 217:return et(X);case 216:case 234:return z(X);case 238:return _t(X);case 213:return ze(X);case 214:return it(X);case 215:return Ct(X);case 235:return Je(X);case 266:return V(X);case 243:return yt(X);case 260:return Ce(X);case 267:return gt(X);case 271:return lo(X);case 285:return on(X);case 286:return Qt(X);default:return un(X,H,e)}}function Ke(X){let xe=Fd(p,"alwaysStrict")&&!(wl(X)&&m>=5)&&!yf(X);return t.updateSourceFile(X,jU(X.statements,le,e,0,xe))}function Dt(X){return t.updateObjectLiteralExpression(X,Dn(X.properties,be(X),Zh))}function st(X){let xe=0;ct(YU(X,!0,!0))&&(xe|=1);let dt=Jm(X);return dt&&Rl(dt.expression).kind!==106&&(xe|=64),Qg(v,X)&&(xe|=2),hC(v,X)&&(xe|=4),_n(X)?xe|=8:_o(X)?xe|=32:Dl(X)&&(xe|=16),xe}function Ge(X){return!!(X.transformFlags&8192)}function ot(X){return Hp(X)||ct(X.typeParameters)||ct(X.heritageClauses,Ge)||ct(X.members,Ge)}function Vt(X){let xe=st(X),dt=h<=1&&!!(xe&7);if(!ot(X)&&!Qg(v,X)&&!_n(X))return t.updateClassDeclaration(X,Dn(X.modifiers,he,ia),X.name,void 0,Dn(X.heritageClauses,H,Ip),Dn(X.members,Oe(X),xc));dt&&e.startLexicalEnvironment();let $t=dt||xe&8,sr=$t?Dn(X.modifiers,ft,Ws):Dn(X.modifiers,H,Ws);xe&2&&(sr=On(sr,X));let Ir=$t&&!X.name||xe&4||xe&1?X.name??t.getGeneratedNameForNode(X):X.name,pi=t.updateClassDeclaration(X,sr,Ir,void 0,Dn(X.heritageClauses,H,Ip),gn(X)),hr=ya(X);xe&1&&(hr|=64),$n(pi,hr);let No;if(dt){let Qs=[pi],bc=_V(ua(C.text,X.members.end),20),ys=t.getInternalName(X),Jl=t.createPartiallyEmittedExpression(ys);Rx(Jl,bc.end),$n(Jl,3072);let Za=t.createReturnStatement(Jl);qC(Za,bc.pos),$n(Za,3840),Qs.push(Za),vh(Qs,e.endLexicalEnvironment());let Ec=t.createImmediatelyInvokedArrowFunction(Qs);m2(Ec,1);let Du=t.createVariableDeclaration(t.getLocalName(X,!1,!1),void 0,void 0,Ec);mr(Du,X);let pc=t.createVariableStatement(void 0,t.createVariableDeclarationList([Du],1));mr(pc,X),Ol(pc,X),la(pc,rg(X)),Sd(pc),No=pc}else No=pi;if($t){if(xe&8)return[No,Va(X)];if(xe&32)return[No,t.createExportDefault(t.getLocalName(X,!1,!0))];if(xe&16)return[No,t.createExternalModuleExport(t.getDeclarationName(X,!1,!0))]}return No}function jt(X){let xe=Dn(X.modifiers,ft,Ws);return Qg(v,X)&&(xe=On(xe,X)),t.updateClassExpression(X,xe,X.name,void 0,Dn(X.heritageClauses,H,Ip),gn(X))}function gn(X){let xe=Dn(X.members,Oe(X),xc),dt,$t=Ah(X),sr=$t&&Cr($t.parameters,tr=>wu(tr,$t));if(sr)for(let tr of sr){let Ir=t.createPropertyDeclaration(void 0,tr.name,void 0,void 0,void 0);mr(Ir,tr),dt=pn(dt,Ir)}return dt?(dt=Pr(dt,xe),Ze(t.createNodeArray(dt),X.members)):xe}function On(X,xe){let dt=zt(xe,xe);if(ct(dt)){let $t=[];Pr($t,n8(X,w2)),Pr($t,Cr(X,Xc)),Pr($t,dt),Pr($t,Cr(KZ(X,w2),ia)),X=Ze(t.createNodeArray($t),X)}return X}function en(X,xe,dt){if(Kr(dt)&&D9(v,xe,dt)){let $t=zt(xe,dt);if(ct($t)){let sr=[];Pr(sr,Cr(X,Xc)),Pr(sr,$t),Pr(sr,Cr(X,ia)),X=Ze(t.createNodeArray(sr),X)}}return X}function zt(X,xe){if(v)return wSe?ei(X,xe):Wt(X,xe)}function Wt(X,xe){if(E){let dt;if(Ki(X)){let $t=r().createMetadataHelper("design:type",E.serializeTypeOfNode({currentLexicalScope:G,currentNameScope:xe},X));dt=pn(dt,t.createDecorator($t))}if(io(X)){let $t=r().createMetadataHelper("design:paramtypes",E.serializeParameterTypesOfNode({currentLexicalScope:G,currentNameScope:xe},X,xe));dt=pn(dt,t.createDecorator($t))}if(gi(X)){let $t=r().createMetadataHelper("design:returntype",E.serializeReturnTypeOfNode({currentLexicalScope:G,currentNameScope:xe},X));dt=pn(dt,t.createDecorator($t))}return dt}}function ei(X,xe){if(E){let dt;if(Ki(X)){let $t=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeTypeOfNode({currentLexicalScope:G,currentNameScope:xe},X)));dt=pn(dt,$t)}if(io(X)){let $t=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeParameterTypesOfNode({currentLexicalScope:G,currentNameScope:xe},X,xe)));dt=pn(dt,$t)}if(gi(X)){let $t=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),E.serializeReturnTypeOfNode({currentLexicalScope:G,currentNameScope:xe},X)));dt=pn(dt,$t)}if(dt){let $t=r().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(dt,!0));return[t.createDecorator($t)]}}}function Ki(X){let xe=X.kind;return xe===174||xe===177||xe===178||xe===172}function gi(X){return X.kind===174}function io(X){switch(X.kind){case 263:case 231:return Ah(X)!==void 0;case 174:case 177:case 178:return!0}return!1}function Gn(X,xe){let dt=X.name;return Ci(dt)?t.createIdentifier(""):Pa(dt)?xe&&!i_(dt.expression)?t.getGeneratedNameForNode(dt):dt.expression:Me(dt)?t.createStringLiteral(ar(dt)):t.cloneNode(dt)}function Nr(X){let xe=X.name;if(Pa(xe)&&(!jl(X)&&K||Hp(X)&&v)){let dt=He(xe.expression,H,lt);x.assert(dt);let $t=jf(dt);if(!i_($t)){let sr=t.getGeneratedNameForNode(xe);return l(sr),t.updateComputedPropertyName(xe,t.createAssignment(sr,dt))}}return x.checkDefined(He(xe,H,kl))}function cr(X){if(X.token!==119)return un(X,H,e)}function Jt(X){return t.updateExpressionWithTypeArguments(X,x.checkDefined(He(X.expression,H,Tu)),void 0)}function Ue(X){return!_l(X.body)}function Rt(X,xe){let dt=X.flags&33554432||Wr(X,64);if(dt&&!(v&&Hp(X)))return;let $t=Kr(xe)?dt?Dn(X.modifiers,ft,Ws):Dn(X.modifiers,H,Ws):Dn(X.modifiers,De,Ws);return $t=en($t,X,xe),dt?t.updatePropertyDeclaration(X,ro($t,t.createModifiersFromModifierFlags(128)),x.checkDefined(He(X.name,H,kl)),void 0,void 0,void 0):t.updatePropertyDeclaration(X,$t,Nr(X),void 0,void 0,He(X.initializer,H,lt))}function mn(X){if(Ue(X))return t.updateConstructorDeclaration(X,void 0,rl(X.parameters,H,e),ni(X.body,X))}function qr(X,xe,dt,$t,sr,tr){let Ir=$t[sr],pi=xe[Ir];if(Pr(X,Dn(xe,H,Di,dt,Ir-dt)),JS(pi)){let hr=[];qr(hr,pi.tryBlock.statements,0,$t,sr+1,tr);let No=t.createNodeArray(hr);Ze(No,pi.tryBlock.statements),X.push(t.updateTryStatement(pi,t.updateBlock(pi.tryBlock,hr),He(pi.catchClause,H,u0),He(pi.finallyBlock,H,Do)))}else Pr(X,Dn(xe,H,Di,Ir,1)),Pr(X,tr);Pr(X,Dn(xe,H,Di,Ir+1))}function ni(X,xe){let dt=xe&&Cr(xe.parameters,hr=>wu(hr,xe));if(!ct(dt))return Dp(X,H,e);let $t=[];o();let sr=t.copyPrologue(X.statements,$t,!1,H),tr=g4(X.statements,sr),Ir=Fi(dt,ki);tr.length?qr($t,X.statements,sr,tr,0,Ir):(Pr($t,Ir),Pr($t,Dn(X.statements,H,Di,sr))),$t=t.mergeLexicalEnvironment($t,s());let pi=t.createBlock(Ze(t.createNodeArray($t),X.statements),!0);return Ze(pi,X),mr(pi,X),pi}function ki(X){let xe=X.name;if(!Me(xe))return;let dt=Ta(Ze(t.cloneNode(xe),xe),xe.parent);$n(dt,3168);let $t=Ta(Ze(t.cloneNode(xe),xe),xe.parent);return $n($t,3072),Sd(f2(Ze(mr(t.createExpressionStatement(t.createAssignment(Ze(t.createPropertyAccessExpression(t.createThis(),dt),X.name),$t)),X),Cb(X,-1))))}function so(X,xe){if(!(X.transformFlags&1))return X;if(!Ue(X))return;let dt=Kr(xe)?Dn(X.modifiers,H,Ws):Dn(X.modifiers,De,Ws);return dt=en(dt,X,xe),t.updateMethodDeclaration(X,dt,X.asteriskToken,Nr(X),void 0,void 0,rl(X.parameters,H,e),void 0,Dp(X.body,H,e))}function Jo(X){return!(_l(X.body)&&Wr(X,64))}function ba(X,xe){if(!(X.transformFlags&1))return X;if(!Jo(X))return;let dt=Kr(xe)?Dn(X.modifiers,H,Ws):Dn(X.modifiers,De,Ws);return dt=en(dt,X,xe),t.updateGetAccessorDeclaration(X,dt,Nr(X),rl(X.parameters,H,e),void 0,Dp(X.body,H,e)||t.createBlock([]))}function ln(X,xe){if(!(X.transformFlags&1))return X;if(!Jo(X))return;let dt=Kr(xe)?Dn(X.modifiers,H,Ws):Dn(X.modifiers,De,Ws);return dt=en(dt,X,xe),t.updateSetAccessorDeclaration(X,dt,Nr(X),rl(X.parameters,H,e),Dp(X.body,H,e)||t.createBlock([]))}function Tn(X){if(!Ue(X))return t.createNotEmittedStatement(X);let xe=t.updateFunctionDeclaration(X,Dn(X.modifiers,he,ia),X.asteriskToken,X.name,void 0,rl(X.parameters,H,e),void 0,Dp(X.body,H,e)||t.createBlock([]));if(_n(X)){let dt=[xe];return gs(dt,X),dt}return xe}function ke(X){return Ue(X)?t.updateFunctionExpression(X,Dn(X.modifiers,he,ia),X.asteriskToken,X.name,void 0,rl(X.parameters,H,e),void 0,Dp(X.body,H,e)||t.createBlock([])):t.createOmittedExpression()}function nt(X){return t.updateArrowFunction(X,Dn(X.modifiers,he,ia),void 0,rl(X.parameters,H,e),void 0,X.equalsGreaterThanToken,Dp(X.body,H,e))}function tt(X){if(XE(X))return;let xe=t.updateParameterDeclaration(X,Dn(X.modifiers,dt=>Xc(dt)?H(dt):void 0,Ws),X.dotDotDotToken,x.checkDefined(He(X.name,H,yS)),void 0,void 0,He(X.initializer,H,lt));return xe!==X&&(Ol(xe,X),Ze(xe,Qm(X)),la(xe,Qm(X)),$n(xe.name,64)),xe}function yt(X){if(_n(X)){let xe=wC(X.declarationList);return xe.length===0?void 0:Ze(t.createExpressionStatement(t.inlineExpressions(nn(xe,re))),X)}else return un(X,H,e)}function re(X){let xe=X.name;return ko(xe)?nT(X,H,e,0,!1,Fc):Ze(t.createAssignment($i(xe),x.checkDefined(He(X.initializer,H,lt))),X)}function Ce(X){let xe=t.updateVariableDeclaration(X,x.checkDefined(He(X.name,H,yS)),void 0,void 0,He(X.initializer,H,lt));return X.type&&Lre(xe.name,X.type),xe}function et(X){let xe=Rl(X.expression,-7);if(ES(xe)){let dt=He(X.expression,H,lt);return x.assert(dt),t.createPartiallyEmittedExpression(dt,X)}return un(X,H,e)}function z(X){let xe=He(X.expression,H,lt);return x.assert(xe),t.createPartiallyEmittedExpression(xe,X)}function Je(X){let xe=He(X.expression,H,Tu);return x.assert(xe),t.createPartiallyEmittedExpression(xe,X)}function _t(X){let xe=He(X.expression,H,lt);return x.assert(xe),t.createPartiallyEmittedExpression(xe,X)}function ze(X){return t.updateCallExpression(X,x.checkDefined(He(X.expression,H,lt)),void 0,Dn(X.arguments,H,lt))}function it(X){return t.updateNewExpression(X,x.checkDefined(He(X.expression,H,lt)),void 0,Dn(X.arguments,H,lt))}function Ct(X){return t.updateTaggedTemplateExpression(X,x.checkDefined(He(X.tag,H,lt)),void 0,x.checkDefined(He(X.template,H,NA)))}function on(X){return t.updateJsxSelfClosingElement(X,x.checkDefined(He(X.tagName,H,cC)),void 0,x.checkDefined(He(X.attributes,H,d0)))}function Qt(X){return t.updateJsxOpeningElement(X,x.checkDefined(He(X.tagName,H,cC)),void 0,x.checkDefined(He(X.attributes,H,d0)))}function Zt(X){return!BE(X)||n0(p)}function V(X){if(!Zt(X))return t.createNotEmittedStatement(X);let xe=[],dt=4,$t=Ie(xe,X);$t&&(m!==4||G!==C)&&(dt|=1024);let sr=Uo(X),tr=zc(X),Ir=_n(X)?t.getExternalModuleOrNamespaceExportName(L,X,!1,!0):t.getDeclarationName(X,!1,!0),pi=t.createLogicalOr(Ir,t.createAssignment(Ir,t.createObjectLiteralExpression()));if(_n(X)){let No=t.getLocalName(X,!1,!0);pi=t.createAssignment(No,pi)}let hr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,sr)],void 0,Re(X,tr)),void 0,[pi]));return mr(hr,X),$t&&(Lb(hr,void 0),YA(hr,void 0)),Ze(hr,X),Zm(hr,dt),xe.push(hr),xe}function Re(X,xe){let dt=L;L=xe;let $t=[];i();let sr=nn(X.members,St);return vh($t,s()),Pr($t,sr),L=dt,t.createBlock(Ze(t.createNodeArray($t),X.members),!0)}function St(X){let xe=Gn(X,!1),dt=M(X),$t=t.createAssignment(t.createElementAccessExpression(L,xe),dt),sr=dt.kind===11?$t:t.createAssignment(t.createElementAccessExpression(L,$t),xe);return Ze(t.createExpressionStatement(Ze(sr,X)),X)}function M(X){let xe=d.getConstantValue(X);return xe!==void 0?typeof xe=="string"?t.createStringLiteral(xe):xe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-xe)):t.createNumericLiteral(xe):(ts(),X.initializer?x.checkDefined(He(X.initializer,H,lt)):t.createVoidZero())}function te(X){let xe=uo(X,Il);return xe?FU(xe,n0(p)):!0}function j(X){U||(U=new Map);let xe=Pe(X);U.has(xe)||U.set(xe,X)}function se(X){if(U){let xe=Pe(X);return U.get(xe)===X}return!0}function Pe(X){return x.assertNode(X.name,Me),X.name.escapedText}function Ie(X,xe){let dt=t.createVariableDeclaration(t.getLocalName(xe,!1,!0)),$t=G.kind===312?0:1,sr=t.createVariableStatement(Dn(xe.modifiers,he,ia),t.createVariableDeclarationList([dt],$t));return mr(dt,xe),Lb(dt,void 0),YA(dt,void 0),mr(sr,xe),j(xe),se(xe)?(xe.kind===266?la(sr.declarationList,xe):la(sr,xe),Ol(sr,xe),Zm(sr,2048),X.push(sr),!0):!1}function gt(X){if(!te(X))return t.createNotEmittedStatement(X);x.assertNode(X.name,Me,"A TypeScript namespace should have an Identifier name."),da();let xe=[],dt=4,$t=Ie(xe,X);$t&&(m!==4||G!==C)&&(dt|=1024);let sr=Uo(X),tr=zc(X),Ir=_n(X)?t.getExternalModuleOrNamespaceExportName(L,X,!1,!0):t.getDeclarationName(X,!1,!0),pi=t.createLogicalOr(Ir,t.createAssignment(Ir,t.createObjectLiteralExpression()));if(_n(X)){let No=t.getLocalName(X,!1,!0);pi=t.createAssignment(No,pi)}let hr=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,sr)],void 0,bt(X,tr)),void 0,[pi]));return mr(hr,X),$t&&(Lb(hr,void 0),YA(hr,void 0)),Ze(hr,X),Zm(hr,dt),xe.push(hr),xe}function bt(X,xe){let dt=L,$t=R,sr=U;L=xe,R=X,U=void 0;let tr=[];i();let Ir,pi;if(X.body)if(X.body.kind===268)fe(X.body,No=>Pr(tr,Dn(No.statements,pe,Di))),Ir=X.body.statements,pi=X.body;else{let No=gt(X.body);No&&(oo(No)?Pr(tr,No):tr.push(No));let Qs=Ot(X).body;Ir=Cb(Qs.statements,-1)}vh(tr,s()),L=dt,R=$t,U=sr;let hr=t.createBlock(Ze(t.createNodeArray(tr),Ir),!0);return Ze(hr,pi),(!X.body||X.body.kind!==268)&&$n(hr,ya(hr)|3072),hr}function Ot(X){if(X.body.kind===267)return Ot(X.body)||X.body}function dn(X){if(!X.importClause)return X;if(X.importClause.isTypeOnly)return;let xe=He(X.importClause,An,G_);return xe||p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2?t.updateImportDeclaration(X,void 0,xe,X.moduleSpecifier,X.attributes):void 0}function An(X){x.assert(!X.isTypeOnly);let xe=ae(X)?X.name:void 0,dt=He(X.namedBindings,Cn,n9);return xe||dt?t.updateImportClause(X,!1,xe,dt):void 0}function Cn(X){if(X.kind===274)return ae(X)?X:void 0;{let xe=p.verbatimModuleSyntax||p.preserveValueImports&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),dt=Dn(X.elements,ti,Iu);return xe||ct(dt)?t.updateNamedImports(X,dt):void 0}}function ti(X){return!X.isTypeOnly&&ae(X)?X:void 0}function di(X){return p.verbatimModuleSyntax||d.isValueAliasDeclaration(X)?un(X,H,e):void 0}function jn(X){if(X.isTypeOnly)return;if(!X.exportClause||V_(X.exportClause))return X;let xe=p.verbatimModuleSyntax||!!X.moduleSpecifier&&(p.importsNotUsedAsValues===1||p.importsNotUsedAsValues===2),dt=He(X.exportClause,$t=>_i($t,xe),UG);return dt?t.updateExportDeclaration(X,void 0,X.isTypeOnly,dt,X.moduleSpecifier,X.attributes):void 0}function Ar(X,xe){let dt=Dn(X.elements,ui,Ed);return xe||ct(dt)?t.updateNamedExports(X,dt):void 0}function Zi(X){return t.updateNamespaceExport(X,x.checkDefined(He(X.name,H,Me)))}function _i(X,xe){return V_(X)?Zi(X):Ar(X,xe)}function ui(X){return!X.isTypeOnly&&(p.verbatimModuleSyntax||d.isValueAliasDeclaration(X))?X:void 0}function Mr(X){return ae(X)||!wl(C)&&d.isTopLevelValueImportEqualsWithEntityName(X)}function lo(X){if(X.isTypeOnly)return;if(Ab(X)){let dt=ae(X);return!dt&&p.importsNotUsedAsValues===1?mr(Ze(t.createImportDeclaration(void 0,void 0,X.moduleReference.expression,void 0),X),X):dt?un(X,H,e):void 0}if(!Mr(X))return;let xe=P2(t,X.moduleReference);return $n(xe,7168),Dl(X)||!_n(X)?mr(Ze(t.createVariableStatement(Dn(X.modifiers,he,ia),t.createVariableDeclarationList([mr(t.createVariableDeclaration(X.name,void 0,void 0,xe),X)])),X),X):mr(Js(X.name,xe,X),X)}function _n(X){return R!==void 0&&Wr(X,32)}function fs(X){return R===void 0&&Wr(X,32)}function Dl(X){return fs(X)&&!Wr(X,2048)}function _o(X){return fs(X)&&Wr(X,2048)}function Va(X){let xe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(L,X,!1,!0),t.getLocalName(X));la(xe,qp(X.name?X.name.pos:X.pos,X.end));let dt=t.createExpressionStatement(xe);return la(dt,qp(-1,X.end)),dt}function gs(X,xe){X.push(Va(xe))}function Js(X,xe,dt){return Ze(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(L,X,!1,!0),xe)),dt)}function Fc(X,xe,dt){return Ze(t.createAssignment($i(X),xe),dt)}function $i(X){return t.getNamespaceMemberName(L,X,!1,!0)}function Uo(X){let xe=t.getGeneratedNameForNode(X);return la(xe,X.name),xe}function zc(X){return t.getGeneratedNameForNode(X)}function ts(){F&8||(F|=8,e.enableSubstitution(80))}function da(){F&2||(F|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function Us(X){return sl(X).kind===267}function tf(X){return sl(X).kind===266}function Wl(X,xe,dt){let $t=oe,sr=C;Li(xe)&&(C=xe),F&2&&Us(xe)&&(oe|=2),F&8&&tf(xe)&&(oe|=8),S(X,xe,dt),oe=$t,C=sr}function il(X,xe){return xe=A(X,xe),X===1?ho(xe):xu(xe)?zs(xe):xe}function zs(X){if(F&2){let xe=X.name,dt=vs(xe);if(dt){if(X.objectAssignmentInitializer){let $t=t.createAssignment(dt,X.objectAssignmentInitializer);return Ze(t.createPropertyAssignment(xe,$t),X)}return Ze(t.createPropertyAssignment(xe,dt),X)}}return X}function ho(X){switch(X.kind){case 80:return Ut(X);case 211:return Pc(X);case 212:return Bc(X)}return X}function Ut(X){return vs(X)||X}function vs(X){if(F&oe&&!ws(X)&&!lg(X)){let xe=d.getReferencedExportContainer(X,!1);if(xe&&xe.kind!==312&&(oe&2&&xe.kind===267||oe&8&&xe.kind===266))return Ze(t.createPropertyAccessExpression(t.getGeneratedNameForNode(xe),X),X)}}function Pc(X){return ls(X)}function Bc(X){return ls(X)}function Ju(X){return X.replace(/\*\//g,"*_/")}function ls(X){let xe=tc(X);if(xe!==void 0){Pre(X,xe);let dt=typeof xe=="string"?t.createStringLiteral(xe):xe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(-xe)):t.createNumericLiteral(xe);if(!p.removeComments){let $t=sl(X,ds);kF(dt,3,` ${Ju(Vl($t))} `)}return dt}return X}function tc(X){if(!xf(p))return Er(X)||Rs(X)?d.getConstantValue(X):void 0}function ae(X){return p.verbatimModuleSyntax||Jn(X)||(p.preserveValueImports?d.isValueAliasDeclaration(X):d.isReferencedAliasDeclaration(X))}}var wSe,Cze=pt({"src/compiler/transformers/ts.ts"(){"use strict";wo(),wSe=!1}});function Yoe(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,endLexicalEnvironment:o,startLexicalEnvironment:s,resumeLexicalEnvironment:l,addBlockScopedVariable:d}=e,p=e.getEmitResolver(),h=e.getCompilerOptions(),m=Wa(h),v=nN(h),E=!!h.experimentalDecorators,S=!v,A=v&&m<9,C=S||A,R=m<9,L=m<99?-1:v?0:3,G=m<9,U=G&&m>=2,K=C||R||L===-1,F=e.onSubstituteNode;e.onSubstituteNode=Pc;let oe=e.onEmitNode;e.onEmitNode=vs;let W=!1,$,de,fe,q,H,ee=new Map,le=new Set,Ee,ce,Z=!1,pe=!1;return $f(e,Ae);function Ae(ae){if(ae.isDeclarationFile||(H=void 0,W=!!(Uf(ae)&32),!K&&!W))return ae;let X=un(ae,_e,e);return ag(X,e.readEmitHelpers()),X}function Oe(ae){switch(ae.kind){case 129:return Rt()?void 0:ae;default:return Vr(ae,ia)}}function _e(ae){if(!(ae.transformFlags&16777216)&&!(ae.transformFlags&134234112))return ae;switch(ae.kind){case 129:return x.fail("Use `modifierVisitor` instead.");case 263:return Qt(ae);case 231:return V(ae);case 175:case 172:return x.fail("Use `classElementVisitor` instead.");case 303:return Ge(ae);case 243:return ot(ae);case 260:return Vt(ae);case 169:return jt(ae);case 208:return gn(ae);case 277:return On(ae);case 81:return Dt(ae);case 211:return Jo(ae);case 212:return ba(ae);case 224:case 225:return ln(ae,!1);case 226:return et(ae,!1);case 217:return Je(ae,!1);case 213:return tt(ae);case 244:return ke(ae);case 215:return yt(ae);case 248:return Tn(ae);case 110:return M(ae);case 262:case 218:return gi(void 0,be,ae);case 176:case 174:case 177:case 178:return gi(ae,be,ae);default:return be(ae)}}function be(ae){return un(ae,_e,e)}function Te(ae){switch(ae.kind){case 224:case 225:return ln(ae,!0);case 226:return et(ae,!0);case 361:return z(ae,!0);case 217:return Je(ae,!0);default:return _e(ae)}}function De(ae){switch(ae.kind){case 298:return un(ae,De,e);case 233:return Ct(ae);default:return _e(ae)}}function ft(ae){switch(ae.kind){case 210:case 209:return Ut(ae);default:return _e(ae)}}function he(ae){switch(ae.kind){case 176:return gi(ae,Wt,ae);case 177:case 178:case 174:return gi(ae,Ki,ae);case 172:return gi(ae,mn,ae);case 175:return gi(ae,St,ae);case 167:return zt(ae);case 240:return ae;default:return Ws(ae)?Oe(ae):_e(ae)}}function Le(ae){switch(ae.kind){case 167:return zt(ae);default:return _e(ae)}}function Ke(ae){switch(ae.kind){case 172:return Ue(ae);case 177:case 178:return he(ae);default:x.assertMissingNode(ae,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function Dt(ae){return!R||Di(ae.parent)?ae:mr(t.createIdentifier(""),ae)}function st(ae){let X=Uo(ae.left);if(X){let xe=He(ae.right,_e,lt);return mr(r().createClassPrivateFieldInHelper(X.brandCheckIdentifier,xe),ae)}return un(ae,_e,e)}function Ge(ae){return Fu(ae,Ce)&&(ae=Uu(e,ae)),un(ae,_e,e)}function ot(ae){let X=q;q=[];let xe=un(ae,_e,e),dt=ct(q)?[xe,...q]:xe;return q=X,dt}function Vt(ae){return Fu(ae,Ce)&&(ae=Uu(e,ae)),un(ae,_e,e)}function jt(ae){return Fu(ae,Ce)&&(ae=Uu(e,ae)),un(ae,_e,e)}function gn(ae){return Fu(ae,Ce)&&(ae=Uu(e,ae)),un(ae,_e,e)}function On(ae){return Fu(ae,Ce)&&(ae=Uu(e,ae,!0,ae.isExportEquals?"":"default")),un(ae,_e,e)}function en(ae){return ct(fe)&&(uu(ae)?(fe.push(ae.expression),ae=t.updateParenthesizedExpression(ae,t.inlineExpressions(fe))):(fe.push(ae),ae=t.inlineExpressions(fe)),fe=void 0),ae}function zt(ae){let X=He(ae.expression,_e,lt);return t.updateComputedPropertyName(ae,en(X))}function Wt(ae){return Ee?se(ae,Ee):be(ae)}function ei(ae){return!!(R||jl(ae)&&Uf(ae)&32)}function Ki(ae){if(x.assert(!Hp(ae)),!kd(ae)||!ei(ae))return un(ae,he,e);let X=Uo(ae.name);if(x.assert(X,"Undeclared private name for property declaration."),!X.isValid)return ae;let xe=io(ae);xe&&lo().push(t.createAssignment(xe,t.createFunctionExpression(Cr(ae.modifiers,dt=>ia(dt)&&!rI(dt)&&!qre(dt)),ae.asteriskToken,xe,void 0,rl(ae.parameters,_e,e),void 0,Dp(ae.body,_e,e))))}function gi(ae,X,xe){if(ae!==ce){let dt=ce;ce=ae;let $t=X(xe);return ce=dt,$t}return X(xe)}function io(ae){x.assert(Ci(ae.name));let X=Uo(ae.name);if(x.assert(X,"Undeclared private name for property declaration."),X.kind==="m")return X.methodName;if(X.kind==="a"){if(Yv(ae))return X.getterName;if($g(ae))return X.setterName}}function Gn(){let ae=ui(),X=ae.classThis??ae.classConstructor??Ee?.name;return x.checkDefined(X)}function Nr(ae){let X=e_(ae),xe=ov(ae),dt=ae.name,$t=dt,sr=dt;if(Pa(dt)&&!i_(dt.expression)){let bc=L6(dt);if(bc)$t=t.updateComputedPropertyName(dt,He(dt.expression,_e,lt)),sr=t.updateComputedPropertyName(dt,bc.left);else{let ys=t.createTempVariable(i);la(ys,dt.expression);let Jl=He(dt.expression,_e,lt),Za=t.createAssignment(ys,Jl);la(Za,dt.expression),$t=t.updateComputedPropertyName(dt,Za),sr=t.updateComputedPropertyName(dt,ys)}}let tr=Dn(ae.modifiers,Oe,ia),Ir=Hj(t,ae,tr,ae.initializer);mr(Ir,ae),$n(Ir,3072),la(Ir,xe);let pi=zo(ae)?Gn():t.createThis(),hr=Rie(t,ae,tr,$t,pi);mr(hr,ae),Ol(hr,X),la(hr,xe);let No=t.createModifiersFromModifierFlags($m(tr)),Qs=Die(t,ae,No,sr,pi);return mr(Qs,ae),$n(Qs,3072),la(Qs,xe),ck([Ir,hr,Qs],Ke,xc)}function cr(ae){if(ei(ae)){let X=Uo(ae.name);if(x.assert(X,"Undeclared private name for property declaration."),!X.isValid)return ae;if(X.isStatic&&!R){let xe=bt(ae,t.createThis());if(xe)return t.createClassStaticBlockDeclaration(t.createBlock([xe],!0))}return}return S&&!zo(ae)&&H?.data&&H.data.facts&16?t.updatePropertyDeclaration(ae,Dn(ae.modifiers,_e,Ws),ae.name,void 0,void 0,void 0):(Fu(ae,Ce)&&(ae=Uu(e,ae)),t.updatePropertyDeclaration(ae,Dn(ae.modifiers,Oe,ia),He(ae.name,Le,kl),void 0,void 0,He(ae.initializer,_e,lt)))}function Jt(ae){if(C&&!su(ae)){let X=Ar(ae.name,!!ae.initializer||v);if(X&&lo().push(...Cie(X)),zo(ae)&&!R){let xe=bt(ae,t.createThis());if(xe){let dt=t.createClassStaticBlockDeclaration(t.createBlock([xe]));return mr(dt,ae),Ol(dt,ae),Ol(xe,{pos:-1,end:-1}),Lb(xe,void 0),YA(xe,void 0),dt}}return}return t.updatePropertyDeclaration(ae,Dn(ae.modifiers,Oe,ia),He(ae.name,Le,kl),void 0,void 0,He(ae.initializer,_e,lt))}function Ue(ae){return x.assert(!Hp(ae),"Decorators should already have been transformed and elided."),kd(ae)?cr(ae):Jt(ae)}function Rt(){return L===-1||L===3&&!!H?.data&&!!(H.data.facts&16)}function mn(ae){return su(ae)&&(Rt()||jl(ae)&&Uf(ae)&32)?Nr(ae):Ue(ae)}function qr(){return!!ce&&jl(ce)&&Kv(ce)&&su(sl(ce))}function ni(ae){if(qr()){let X=Rl(ae);X.kind===110&&le.add(X)}}function ki(ae,X){return X=He(X,_e,lt),ni(X),so(ae,X)}function so(ae,X){switch(Ol(X,Cb(X,-1)),ae.kind){case"a":return r().createClassPrivateFieldGetHelper(X,ae.brandCheckIdentifier,ae.kind,ae.getterName);case"m":return r().createClassPrivateFieldGetHelper(X,ae.brandCheckIdentifier,ae.kind,ae.methodName);case"f":return r().createClassPrivateFieldGetHelper(X,ae.brandCheckIdentifier,ae.kind,ae.isStatic?ae.variableName:void 0);case"untransformed":return x.fail("Access helpers should not be created for untransformed private elements");default:x.assertNever(ae,"Unknown private element type")}}function Jo(ae){if(Ci(ae.name)){let X=Uo(ae.name);if(X)return Ze(mr(ki(X,ae.expression),ae),ae)}if(U&&ce&&cu(ae)&&Me(ae.name)&&wN(ce)&&H?.data){let{classConstructor:X,superClassReference:xe,facts:dt}=H.data;if(dt&1)return jn(ae);if(X&&xe){let $t=t.createReflectGetCall(xe,t.createStringLiteralFromNode(ae.name),X);return mr($t,ae.expression),Ze($t,ae.expression),$t}}return un(ae,_e,e)}function ba(ae){if(U&&ce&&cu(ae)&&wN(ce)&&H?.data){let{classConstructor:X,superClassReference:xe,facts:dt}=H.data;if(dt&1)return jn(ae);if(X&&xe){let $t=t.createReflectGetCall(xe,He(ae.argumentExpression,_e,lt),X);return mr($t,ae.expression),Ze($t,ae.expression),$t}}return un(ae,_e,e)}function ln(ae,X){if(ae.operator===46||ae.operator===47){let xe=Ka(ae.operand);if(j1(xe)){let dt;if(dt=Uo(xe.name)){let $t=He(xe.expression,_e,lt);ni($t);let{readExpression:sr,initializeExpression:tr}=nt($t),Ir=ki(dt,sr),pi=fy(ae)||X?void 0:t.createTempVariable(i);return Ir=x6(t,ae,Ir,i,pi),Ir=_t(dt,tr||sr,Ir,64),mr(Ir,ae),Ze(Ir,ae),pi&&(Ir=t.createComma(Ir,pi),Ze(Ir,ae)),Ir}}else if(U&&ce&&cu(xe)&&wN(ce)&&H?.data){let{classConstructor:dt,superClassReference:$t,facts:sr}=H.data;if(sr&1){let tr=jn(xe);return fy(ae)?t.updatePrefixUnaryExpression(ae,tr):t.updatePostfixUnaryExpression(ae,tr)}if(dt&&$t){let tr,Ir;if(Er(xe)?Me(xe.name)&&(Ir=tr=t.createStringLiteralFromNode(xe.name)):i_(xe.argumentExpression)?Ir=tr=xe.argumentExpression:(Ir=t.createTempVariable(i),tr=t.createAssignment(Ir,He(xe.argumentExpression,_e,lt))),tr&&Ir){let pi=t.createReflectGetCall($t,Ir,dt);Ze(pi,xe);let hr=X?void 0:t.createTempVariable(i);return pi=x6(t,ae,pi,i,hr),pi=t.createReflectSetCall($t,tr,pi,dt),mr(pi,ae),Ze(pi,ae),hr&&(pi=t.createComma(pi,hr),Ze(pi,ae)),pi}}}}return un(ae,_e,e)}function Tn(ae){return t.updateForStatement(ae,He(ae.initializer,Te,Up),He(ae.condition,_e,lt),He(ae.incrementor,Te,lt),Qd(ae.statement,_e,e))}function ke(ae){return t.updateExpressionStatement(ae,He(ae.expression,Te,lt))}function nt(ae){let X=xs(ae)?ae:t.cloneNode(ae);if(ae.kind===110&&le.has(ae)&&le.add(X),i_(ae))return{readExpression:X,initializeExpression:void 0};let xe=t.createTempVariable(i),dt=t.createAssignment(xe,X);return{readExpression:xe,initializeExpression:dt}}function tt(ae){var X;if(j1(ae.expression)&&Uo(ae.expression.name)){let{thisArg:xe,target:dt}=t.createCallBinding(ae.expression,i,m);return gS(ae)?t.updateCallChain(ae,t.createPropertyAccessChain(He(dt,_e,lt),ae.questionDotToken,"call"),void 0,void 0,[He(xe,_e,lt),...Dn(ae.arguments,_e,lt)]):t.updateCallExpression(ae,t.createPropertyAccessExpression(He(dt,_e,lt),"call"),void 0,[He(xe,_e,lt),...Dn(ae.arguments,_e,lt)])}if(U&&ce&&cu(ae.expression)&&wN(ce)&&((X=H?.data)!=null&&X.classConstructor)){let xe=t.createFunctionCallCall(He(ae.expression,_e,lt),H.data.classConstructor,Dn(ae.arguments,_e,lt));return mr(xe,ae),Ze(xe,ae),xe}return un(ae,_e,e)}function yt(ae){var X;if(j1(ae.tag)&&Uo(ae.tag.name)){let{thisArg:xe,target:dt}=t.createCallBinding(ae.tag,i,m);return t.updateTaggedTemplateExpression(ae,t.createCallExpression(t.createPropertyAccessExpression(He(dt,_e,lt),"bind"),void 0,[He(xe,_e,lt)]),void 0,He(ae.template,_e,NA))}if(U&&ce&&cu(ae.tag)&&wN(ce)&&((X=H?.data)!=null&&X.classConstructor)){let xe=t.createFunctionBindCall(He(ae.tag,_e,lt),H.data.classConstructor,[]);return mr(xe,ae),Ze(xe,ae),t.updateTaggedTemplateExpression(ae,xe,void 0,He(ae.template,_e,NA))}return un(ae,_e,e)}function re(ae){if(H&&ee.set(sl(ae),H),R){if(kN(ae)){let dt=He(ae.body.statements[0].expression,_e,lt);return lc(dt,!0)&&dt.left===dt.right?void 0:dt}if(AI(ae))return He(ae.body.statements[0].expression,_e,lt);s();let X=gi(ae,dt=>Dn(dt,_e,Di),ae.body.statements);X=t.mergeLexicalEnvironment(X,o());let xe=t.createImmediatelyInvokedArrowFunction(X);return mr(Ka(xe.expression),ae),Zm(Ka(xe.expression),4),mr(xe,ae),Ze(xe,ae),xe}}function Ce(ae){if(Dc(ae)&&!ae.name){let X=v4(ae);return ct(X,AI)?!1:(R||!!Uf(ae))&&ct(X,dt=>nl(dt)||kd(dt)||C&&uk(dt))}return!1}function et(ae,X){if(nv(ae)){let xe=fe;fe=void 0,ae=t.updateBinaryExpression(ae,He(ae.left,ft,lt),ae.operatorToken,He(ae.right,_e,lt));let dt=ct(fe)?t.inlineExpressions(pM([...fe,ae])):ae;return fe=xe,dt}if(lc(ae)){Fu(ae,Ce)&&(ae=Uu(e,ae),x.assertNode(ae,lc));let xe=Rl(ae.left,9);if(j1(xe)){let dt=Uo(xe.name);if(dt)return Ze(mr(_t(dt,xe.expression,ae.right,ae.operatorToken.kind),ae),ae)}else if(U&&ce&&cu(ae.left)&&wN(ce)&&H?.data){let{classConstructor:dt,superClassReference:$t,facts:sr}=H.data;if(sr&1)return t.updateBinaryExpression(ae,jn(ae.left),ae.operatorToken,He(ae.right,_e,lt));if(dt&&$t){let tr=Rs(ae.left)?He(ae.left.argumentExpression,_e,lt):Me(ae.left.name)?t.createStringLiteralFromNode(ae.left.name):void 0;if(tr){let Ir=He(ae.right,_e,lt);if(PN(ae.operatorToken.kind)){let hr=tr;i_(tr)||(hr=t.createTempVariable(i),tr=t.createAssignment(hr,tr));let No=t.createReflectGetCall($t,hr,dt);mr(No,ae.left),Ze(No,ae.left),Ir=t.createBinaryExpression(No,MN(ae.operatorToken.kind),Ir),Ze(Ir,ae)}let pi=X?void 0:t.createTempVariable(i);return pi&&(Ir=t.createAssignment(pi,Ir),Ze(pi,ae)),Ir=t.createReflectSetCall($t,tr,Ir,dt),mr(Ir,ae),Ze(Ir,ae),pi&&(Ir=t.createComma(Ir,pi),Ze(Ir,ae)),Ir}}}}return kze(ae)?st(ae):un(ae,_e,e)}function z(ae,X){let xe=X?dk(ae.elements,Te):dk(ae.elements,_e,Te);return t.updateCommaListExpression(ae,xe)}function Je(ae,X){let xe=X?Te:_e,dt=He(ae.expression,xe,lt);return t.updateParenthesizedExpression(ae,dt)}function _t(ae,X,xe,dt){if(X=He(X,_e,lt),xe=He(xe,_e,lt),ni(X),PN(dt)){let{readExpression:$t,initializeExpression:sr}=nt(X);X=sr||$t,xe=t.createBinaryExpression(so(ae,$t),MN(dt),xe)}switch(Ol(X,Cb(X,-1)),ae.kind){case"a":return r().createClassPrivateFieldSetHelper(X,ae.brandCheckIdentifier,xe,ae.kind,ae.setterName);case"m":return r().createClassPrivateFieldSetHelper(X,ae.brandCheckIdentifier,xe,ae.kind,void 0);case"f":return r().createClassPrivateFieldSetHelper(X,ae.brandCheckIdentifier,xe,ae.kind,ae.isStatic?ae.variableName:void 0);case"untransformed":return x.fail("Access helpers should not be created for untransformed private elements");default:x.assertNever(ae,"Unknown private element type")}}function ze(ae){return Cr(ae.members,woe)}function it(ae){var X;let xe=0,dt=sl(ae);Zl(dt)&&Qg(E,dt)&&(xe|=1),R&&(tH(ae)||b4(ae))&&(xe|=2);let $t=!1,sr=!1,tr=!1,Ir=!1;for(let hr of ae.members)zo(hr)?((hr.name&&(Ci(hr.name)||su(hr))&&R||su(hr)&&L===-1&&!ae.name&&!((X=ae.emitNode)!=null&&X.classThis))&&(xe|=2),(xo(hr)||nl(hr))&&(G&&hr.transformFlags&16384&&(xe|=8,xe&1||(xe|=2)),U&&hr.transformFlags&134217728&&(xe&1||(xe|=6)))):$E(sl(hr))||(su(hr)?(Ir=!0,tr||(tr=kd(hr))):kd(hr)?(tr=!0,p.getNodeCheckFlags(hr)&262144&&(xe|=2)):xo(hr)&&($t=!0,sr||(sr=!!hr.initializer)));return(A&&$t||S&&sr||R&&tr||R&&Ir&&L===-1)&&(xe|=16),xe}function Ct(ae){var X;if((((X=H?.data)==null?void 0:X.facts)||0)&4){let dt=t.createTempVariable(i,!0);return ui().superClassReference=dt,t.updateExpressionWithTypeArguments(ae,t.createAssignment(dt,He(ae.expression,_e,lt)),void 0)}return un(ae,_e,e)}function on(ae,X){var xe;let dt=Ee,$t=fe,sr=H;Ee=ae,fe=void 0,Zi();let tr=Uf(ae)&32;if(R||tr){let hr=mo(ae);if(hr&&Me(hr))Mr().data.className=hr;else if((xe=ae.emitNode)!=null&&xe.assignedName&&ca(ae.emitNode.assignedName)){if(ae.emitNode.assignedName.textSourceNode&&Me(ae.emitNode.assignedName.textSourceNode))Mr().data.className=ae.emitNode.assignedName.textSourceNode;else if(Sp(ae.emitNode.assignedName.text,m)){let No=t.createIdentifier(ae.emitNode.assignedName.text);Mr().data.className=No}}}if(R){let hr=ze(ae);ct(hr)&&(Mr().data.weakSetName=Fc("instances",hr[0].name))}let Ir=it(ae);Ir&&(ui().facts=Ir),Ir&8&&ti();let pi=X(ae,Ir);return _i(),x.assert(H===sr),Ee=dt,fe=$t,pi}function Qt(ae){return on(ae,Zt)}function Zt(ae,X){var xe,dt;let $t;if(X&2)if(R&&((xe=ae.emitNode)!=null&&xe.classThis))ui().classConstructor=ae.emitNode.classThis,$t=t.createAssignment(ae.emitNode.classThis,t.getInternalName(ae));else{let Za=t.createTempVariable(i,!0);ui().classConstructor=t.cloneNode(Za),$t=t.createAssignment(Za,t.getInternalName(ae))}(dt=ae.emitNode)!=null&&dt.classThis&&(ui().classThis=ae.emitNode.classThis);let sr=p.getNodeCheckFlags(ae)&262144,tr=Wr(ae,32),Ir=Wr(ae,2048),pi=Dn(ae.modifiers,Oe,ia),hr=Dn(ae.heritageClauses,De,Ip),{members:No,prologue:Qs}=te(ae),bc=[];if($t&&lo().unshift($t),ct(fe)&&bc.push(t.createExpressionStatement(t.inlineExpressions(fe))),S||R||Uf(ae)&32){let Za=v4(ae);ct(Za)&>(bc,Za,t.getInternalName(ae))}bc.length>0&&tr&&Ir&&(pi=Dn(pi,Za=>w2(Za)?void 0:Za,ia),bc.push(t.createExportAssignment(void 0,!1,t.getLocalName(ae,!1,!0))));let ys=ui().classConstructor;sr&&ys&&(Cn(),de[dd(ae)]=ys);let Jl=t.updateClassDeclaration(ae,pi,ae.name,void 0,hr,No);return bc.unshift(Jl),Qs&&bc.unshift(t.createExpressionStatement(Qs)),bc}function V(ae){return on(ae,Re)}function Re(ae,X){var xe,dt,$t;let sr=!!(X&1),tr=v4(ae),Ir=p.getNodeCheckFlags(ae),pi=Ir&262144,hr;function No(){var pc;if(R&&((pc=ae.emitNode)!=null&&pc.classThis))return ui().classConstructor=ae.emitNode.classThis;let Nf=Ir&32768,Vd=t.createTempVariable(Nf?d:i,!0);return ui().classConstructor=t.cloneNode(Vd),Vd}(xe=ae.emitNode)!=null&&xe.classThis&&(ui().classThis=ae.emitNode.classThis),X&2&&(hr??(hr=No()));let Qs=Dn(ae.modifiers,Oe,ia),bc=Dn(ae.heritageClauses,De,Ip),{members:ys,prologue:Jl}=te(ae),Za=t.updateClassExpression(ae,Qs,ae.name,void 0,bc,ys),Ec=[];if(Jl&&Ec.push(Jl),(R||Uf(ae)&32)&&ct(tr,pc=>nl(pc)||kd(pc)||C&&uk(pc))||ct(fe))if(sr)x.assertIsDefined(q,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),ct(fe)&&Pr(q,nn(fe,t.createExpressionStatement)),ct(tr)&>(q,tr,((dt=ae.emitNode)==null?void 0:dt.classThis)??t.getInternalName(ae)),hr?Ec.push(t.createAssignment(hr,Za)):R&&(($t=ae.emitNode)!=null&&$t.classThis)?Ec.push(t.createAssignment(ae.emitNode.classThis,Za)):Ec.push(Za);else{if(hr??(hr=No()),pi){Cn();let pc=t.cloneNode(hr);pc.emitNode.autoGenerate.flags&=-9,de[dd(ae)]=pc}Ec.push(t.createAssignment(hr,Za)),Pr(Ec,fe),Pr(Ec,Ot(tr,hr)),Ec.push(t.cloneNode(hr))}else Ec.push(Za);return Ec.length>1&&(Zm(Za,131072),Ec.forEach(Sd)),t.inlineExpressions(Ec)}function St(ae){if(!R)return un(ae,_e,e)}function M(ae){if(G&&ce&&nl(ce)&&H?.data){let{classThis:X,classConstructor:xe}=H.data;return X??xe??ae}return ae}function te(ae){let X=!!(Uf(ae)&32);if(R||W){for(let tr of ae.members)if(kd(tr))if(ei(tr))Js(tr,tr.name,_n);else{let Ir=Mr();tT(Ir,tr.name,{kind:"untransformed"})}if(R&&ct(ze(ae))&&j(),Rt()){for(let tr of ae.members)if(su(tr)){let Ir=t.getGeneratedPrivateNameForNode(tr.name,void 0,"_accessor_storage");if(R||X&&jl(tr))Js(tr,Ir,fs);else{let pi=Mr();tT(pi,Ir,{kind:"untransformed"})}}}}let xe=Dn(ae.members,he,xc),dt;ct(xe,ll)||(dt=se(void 0,ae));let $t,sr;if(!R&&ct(fe)){let tr=t.createExpressionStatement(t.inlineExpressions(fe));if(tr.transformFlags&134234112){let pi=t.createTempVariable(i),hr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([tr]));$t=t.createAssignment(pi,hr),tr=t.createExpressionStatement(t.createCallExpression(pi,void 0,[]))}let Ir=t.createBlock([tr]);sr=t.createClassStaticBlockDeclaration(Ir),fe=void 0}if(dt||sr){let tr,Ir=Dr(xe,kN),pi=Dr(xe,AI);tr=pn(tr,Ir),tr=pn(tr,pi),tr=pn(tr,dt),tr=pn(tr,sr);let hr=Ir||pi?Cr(xe,No=>No!==Ir&&No!==pi):xe;tr=Pr(tr,hr),xe=Ze(t.createNodeArray(tr),ae.members)}return{members:xe,prologue:$t}}function j(){let{weakSetName:ae}=Mr().data;x.assert(ae,"weakSetName should be set in private identifier environment"),lo().push(t.createAssignment(ae,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function se(ae,X){if(ae=He(ae,_e,ll),!H?.data||!(H.data.facts&16))return ae;let xe=Jm(X),dt=!!(xe&&Rl(xe.expression).kind!==106),$t=rl(ae?ae.parameters:void 0,_e,e),sr=Ie(X,ae,dt);return sr?ae?(x.assert($t),t.updateConstructorDeclaration(ae,void 0,$t,sr)):Sd(mr(Ze(t.createConstructorDeclaration(void 0,$t??[],sr),ae||X),ae)):ae}function Pe(ae,X,xe,dt,$t,sr,tr){let Ir=dt[$t],pi=X[Ir];if(Pr(ae,Dn(X,_e,Di,xe,Ir-xe)),xe=Ir+1,JS(pi)){let hr=[];Pe(hr,pi.tryBlock.statements,0,dt,$t+1,sr,tr);let No=t.createNodeArray(hr);Ze(No,pi.tryBlock.statements),ae.push(t.updateTryStatement(pi,t.updateBlock(pi.tryBlock,hr),He(pi.catchClause,_e,u0),He(pi.finallyBlock,_e,Do)))}else{for(Pr(ae,Dn(X,_e,Di,Ir,1));xe<X.length;){let hr=X[xe];if(wu(sl(hr),tr))xe++;else break}Pr(ae,sr)}Pr(ae,Dn(X,_e,Di,xe))}function Ie(ae,X,xe){let dt=YU(ae,!1,!1),$t=dt;v||($t=Cr($t,ys=>!!ys.initializer||Ci(ys.name)||Ym(ys)));let sr=ze(ae),tr=ct($t)||ct(sr);if(!X&&!tr)return Dp(void 0,_e,e);l();let Ir=!X&&xe,pi=0,hr=[],No=[],Qs=t.createThis();if(di(No,sr,Qs),X){let ys=Cr(dt,Za=>wu(sl(Za),X)),Jl=Cr($t,Za=>!wu(sl(Za),X));gt(No,ys,Qs),gt(No,Jl,Qs)}else gt(No,$t,Qs);if(X?.body){pi=t.copyPrologue(X.body.statements,hr,!1,_e);let ys=g4(X.body.statements,pi);if(ys.length)Pe(hr,X.body.statements,pi,ys,0,No,X);else{for(;pi<X.body.statements.length;){let Jl=X.body.statements[pi];if(wu(sl(Jl),X))pi++;else break}Pr(hr,No),Pr(hr,Dn(X.body.statements,_e,Di,pi))}}else Ir&&hr.push(t.createExpressionStatement(t.createCallExpression(t.createSuper(),void 0,[t.createSpreadElement(t.createIdentifier("arguments"))]))),Pr(hr,No);if(hr=t.mergeLexicalEnvironment(hr,o()),hr.length===0&&!X)return;let bc=X?.body&&X.body.statements.length>=hr.length?X.body.multiLine??hr.length>0:hr.length>0;return Ze(t.createBlock(Ze(t.createNodeArray(hr),X?X.body.statements:ae.members),bc),X?X.body:void 0)}function gt(ae,X,xe){for(let dt of X){if(zo(dt)&&!R)continue;let $t=bt(dt,xe);$t&&ae.push($t)}}function bt(ae,X){let xe=nl(ae)?gi(ae,re,ae):dn(ae,X);if(!xe)return;let dt=t.createExpressionStatement(xe);mr(dt,ae),Zm(dt,ya(ae)&3072),Ol(dt,ae);let $t=sl(ae);return ao($t)?(la(dt,$t),f2(dt)):la(dt,Qm(ae)),Lb(xe,void 0),YA(xe,void 0),Ym($t)&&Zm(dt,3072),dt}function Ot(ae,X){let xe=[];for(let dt of ae){let $t=nl(dt)?gi(dt,re,dt):gi(dt,()=>dn(dt,X),void 0);$t&&(Sd($t),mr($t,dt),Zm($t,ya(dt)&3072),la($t,Qm(dt)),Ol($t,dt),xe.push($t))}return xe}function dn(ae,X){var xe;let dt=ce,$t=An(ae,X);return $t&&jl(ae)&&((xe=H?.data)!=null&&xe.facts)&&(mr($t,ae),Zm($t,4),la($t,ov(ae.name)),ee.set(sl(ae),H)),ce=dt,$t}function An(ae,X){let xe=!v;Fu(ae,Ce)&&(ae=Uu(e,ae));let dt=Ym(ae)?t.getGeneratedPrivateNameForNode(ae.name):Pa(ae.name)&&!i_(ae.name.expression)?t.updateComputedPropertyName(ae.name,t.getGeneratedNameForNode(ae.name)):ae.name;if(jl(ae)&&(ce=ae),Ci(dt)&&ei(ae)){let tr=Uo(dt);if(tr)return tr.kind==="f"?tr.isStatic?Nze(t,tr.variableName,He(ae.initializer,_e,lt)):Pze(t,X,He(ae.initializer,_e,lt),tr.brandCheckIdentifier):void 0;x.fail("Undeclared private name for property declaration.")}if((Ci(dt)||jl(ae))&&!ae.initializer)return;let $t=sl(ae);if(Wr($t,64))return;let sr=He(ae.initializer,_e,lt);if(wu($t,$t.parent)&&Me(dt)){let tr=t.cloneNode(dt);sr?(uu(sr)&&M2(sr.expression)&&oN(sr.expression.left,"___runInitializers")&&cI(sr.expression.right)&&Bu(sr.expression.right.expression)&&(sr=sr.expression.left),sr=t.inlineExpressions([sr,tr])):sr=tr,$n(dt,3168),la(tr,$t.name),$n(tr,3072)}else sr??(sr=t.createVoidZero());if(xe||Ci(dt)){let tr=QS(t,X,dt,dt);return Zm(tr,1024),t.createAssignment(tr,sr)}else{let tr=Pa(dt)?dt.expression:Me(dt)?t.createStringLiteral(Ii(dt.escapedText)):dt,Ir=t.createPropertyDescriptor({value:sr,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(X,tr,Ir)}}function Cn(){$&1||($|=1,e.enableSubstitution(80),de=[])}function ti(){$&2||($|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function di(ae,X,xe){if(!R||!ct(X))return;let{weakSetName:dt}=Mr().data;x.assert(dt,"weakSetName should be set in private identifier environment"),ae.push(t.createExpressionStatement(Mze(t,xe,dt)))}function jn(ae){return Er(ae)?t.updatePropertyAccessExpression(ae,t.createVoidZero(),ae.name):t.updateElementAccessExpression(ae,t.createVoidZero(),He(ae.argumentExpression,_e,lt))}function Ar(ae,X){if(Pa(ae)){let xe=L6(ae),dt=He(ae.expression,_e,lt),$t=jf(dt),sr=i_($t);if(!(!!xe||lc($t)&&ws($t.left))&&!sr&&X){let Ir=t.getGeneratedNameForNode(ae);return p.getNodeCheckFlags(ae)&32768?d(Ir):i(Ir),t.createAssignment(Ir,dt)}return sr||Me($t)?void 0:dt}}function Zi(){H={previous:H,data:void 0}}function _i(){H=H?.previous}function ui(){return x.assert(H),H.data??(H.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function Mr(){return x.assert(H),H.privateEnv??(H.privateEnv=zoe({className:void 0,weakSetName:void 0}))}function lo(){return fe??(fe=[])}function _n(ae,X,xe,dt,$t,sr,tr){su(ae)?gs(ae,X,xe,dt,$t,sr,tr):xo(ae)?fs(ae,X,xe,dt,$t,sr,tr):El(ae)?Dl(ae,X,xe,dt,$t,sr,tr):Ap(ae)?_o(ae,X,xe,dt,$t,sr,tr):Vu(ae)&&Va(ae,X,xe,dt,$t,sr,tr)}function fs(ae,X,xe,dt,$t,sr,tr){if($t){let Ir=x.checkDefined(xe.classThis??xe.classConstructor,"classConstructor should be set in private identifier environment"),pi=$i(X);tT(dt,X,{kind:"f",isStatic:!0,brandCheckIdentifier:Ir,variableName:pi,isValid:sr})}else{let Ir=$i(X);tT(dt,X,{kind:"f",isStatic:!1,brandCheckIdentifier:Ir,isValid:sr}),lo().push(t.createAssignment(Ir,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function Dl(ae,X,xe,dt,$t,sr,tr){let Ir=$i(X),pi=$t?x.checkDefined(xe.classThis??xe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(dt.data.weakSetName,"weakSetName should be set in private identifier environment");tT(dt,X,{kind:"m",methodName:Ir,brandCheckIdentifier:pi,isStatic:$t,isValid:sr})}function _o(ae,X,xe,dt,$t,sr,tr){let Ir=$i(X,"_get"),pi=$t?x.checkDefined(xe.classThis??xe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(dt.data.weakSetName,"weakSetName should be set in private identifier environment");tr?.kind==="a"&&tr.isStatic===$t&&!tr.getterName?tr.getterName=Ir:tT(dt,X,{kind:"a",getterName:Ir,setterName:void 0,brandCheckIdentifier:pi,isStatic:$t,isValid:sr})}function Va(ae,X,xe,dt,$t,sr,tr){let Ir=$i(X,"_set"),pi=$t?x.checkDefined(xe.classThis??xe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(dt.data.weakSetName,"weakSetName should be set in private identifier environment");tr?.kind==="a"&&tr.isStatic===$t&&!tr.setterName?tr.setterName=Ir:tT(dt,X,{kind:"a",getterName:void 0,setterName:Ir,brandCheckIdentifier:pi,isStatic:$t,isValid:sr})}function gs(ae,X,xe,dt,$t,sr,tr){let Ir=$i(X,"_get"),pi=$i(X,"_set"),hr=$t?x.checkDefined(xe.classThis??xe.classConstructor,"classConstructor should be set in private identifier environment"):x.checkDefined(dt.data.weakSetName,"weakSetName should be set in private identifier environment");tT(dt,X,{kind:"a",getterName:Ir,setterName:pi,brandCheckIdentifier:hr,isStatic:$t,isValid:sr})}function Js(ae,X,xe){let dt=ui(),$t=Mr(),sr=QU($t,X),tr=jl(ae),Ir=!Lze(X)&&sr===void 0;xe(ae,X,dt,$t,tr,Ir,sr)}function Fc(ae,X,xe){let{className:dt}=Mr().data,$t=dt?{prefix:"_",node:dt,suffix:"_"}:"_",sr=typeof ae=="object"?t.getGeneratedNameForNode(ae,24,$t,xe):typeof ae=="string"?t.createUniqueName(ae,16,$t,xe):t.createTempVariable(void 0,!0,$t,xe);return p.getNodeCheckFlags(X)&32768?d(sr):i(sr),sr}function $i(ae,X){let xe=fC(ae);return Fc(xe?.substring(1)??ae,ae,X)}function Uo(ae){let X=Boe(H,ae);return X?.kind==="untransformed"?void 0:X}function zc(ae){let X=t.getGeneratedNameForNode(ae),xe=Uo(ae.name);if(!xe)return un(ae,_e,e);let dt=ae.expression;return(fL(ae)||cu(ae)||!g0(ae.expression))&&(dt=t.createTempVariable(i,!0),lo().push(t.createBinaryExpression(dt,64,He(ae.expression,_e,lt)))),t.createAssignmentTargetWrapper(X,_t(xe,dt,X,64))}function ts(ae){if(fa(ae)||Bd(ae))return Ut(ae);if(j1(ae))return zc(ae);if(U&&ce&&cu(ae)&&wN(ce)&&H?.data){let{classConstructor:X,superClassReference:xe,facts:dt}=H.data;if(dt&1)return jn(ae);if(X&&xe){let $t=Rs(ae)?He(ae.argumentExpression,_e,lt):Me(ae.name)?t.createStringLiteralFromNode(ae.name):void 0;if($t){let sr=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(sr,t.createReflectSetCall(xe,$t,sr,X))}}}return un(ae,_e,e)}function da(ae){if(Fu(ae,Ce)&&(ae=Uu(e,ae)),lc(ae,!0)){let X=ts(ae.left),xe=He(ae.right,_e,lt);return t.updateBinaryExpression(ae,X,ae.operatorToken,xe)}return ts(ae)}function Us(ae){if(Tu(ae.expression)){let X=ts(ae.expression);return t.updateSpreadElement(ae,X)}return un(ae,_e,e)}function tf(ae){if(XM(ae)){if(bm(ae))return Us(ae);if(!vc(ae))return da(ae)}return un(ae,_e,e)}function Wl(ae){let X=He(ae.name,_e,kl);if(lc(ae.initializer,!0)){let xe=da(ae.initializer);return t.updatePropertyAssignment(ae,X,xe)}if(Tu(ae.initializer)){let xe=ts(ae.initializer);return t.updatePropertyAssignment(ae,X,xe)}return un(ae,_e,e)}function il(ae){return Fu(ae,Ce)&&(ae=Uu(e,ae)),un(ae,_e,e)}function zs(ae){if(Tu(ae.expression)){let X=ts(ae.expression);return t.updateSpreadAssignment(ae,X)}return un(ae,_e,e)}function ho(ae){return x.assertNode(ae,KM),lv(ae)?zs(ae):xu(ae)?il(ae):Hl(ae)?Wl(ae):un(ae,_e,e)}function Ut(ae){return Bd(ae)?t.updateArrayLiteralExpression(ae,Dn(ae.elements,tf,lt)):t.updateObjectLiteralExpression(ae,Dn(ae.properties,ho,Zh))}function vs(ae,X,xe){let dt=sl(X),$t=ee.get(dt);if($t){let sr=H,tr=pe;H=$t,pe=Z,Z=!nl(dt)||!(Uf(dt)&32),oe(ae,X,xe),Z=pe,pe=tr,H=sr;return}switch(X.kind){case 218:if(hs(dt)||ya(X)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let sr=H,tr=pe;H=void 0,pe=Z,Z=!1,oe(ae,X,xe),Z=pe,pe=tr,H=sr;return}case 167:{let sr=H,tr=Z;H=H?.previous,Z=pe,oe(ae,X,xe),Z=tr,H=sr;return}}oe(ae,X,xe)}function Pc(ae,X){return X=F(ae,X),ae===1?Bc(X):X}function Bc(ae){switch(ae.kind){case 80:return ls(ae);case 110:return Ju(ae)}return ae}function Ju(ae){if($&2&&H?.data&&!le.has(ae)){let{facts:X,classConstructor:xe,classThis:dt}=H.data,$t=Z?dt??xe:xe;if($t)return Ze(mr(t.cloneNode($t),ae),ae);if(X&1&&E)return t.createParenthesizedExpression(t.createVoidZero())}return ae}function ls(ae){return tc(ae)||ae}function tc(ae){if($&1&&p.getNodeCheckFlags(ae)&536870912){let X=p.getReferencedValueDeclaration(ae);if(X){let xe=de[X.id];if(xe){let dt=t.cloneNode(xe);return la(dt,ae),Ol(dt,ae),dt}}}}}function Nze(e,t,r){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",r||e.createVoidZero())]))}function Pze(e,t,r,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,r||e.createVoidZero()])}function Mze(e,t,r){return e.createCallExpression(e.createPropertyAccessExpression(r,"add"),void 0,[t])}function Lze(e){return!vS(e)&&e.escapedText==="#constructor"}function kze(e){return Ci(e.left)&&e.operatorToken.kind===103}function Oze(e){return xo(e)&&jl(e)}function wN(e){return nl(e)||Oze(e)}var wze=pt({"src/compiler/transformers/classFields.ts"(){"use strict";wo()}});function $oe(e){let{factory:t,hoistVariableDeclaration:r}=e,i=e.getEmitResolver(),o=e.getCompilerOptions(),s=Wa(o),l=Fd(o,"strictNullChecks"),d,p;return{serializeTypeNode:(fe,q)=>h(fe,C,q),serializeTypeOfNode:(fe,q)=>h(fe,v,q),serializeParameterTypesOfNode:(fe,q,H)=>h(fe,E,q,H),serializeReturnTypeOfNode:(fe,q)=>h(fe,A,q)};function h(fe,q,H,ee){let le=d,Ee=p;d=fe.currentLexicalScope,p=fe.currentNameScope;let ce=ee===void 0?q(H):q(H,ee);return d=le,p=Ee,ce}function m(fe){let q=i.getAllAccessorDeclarations(fe);return q.setAccessor&&pne(q.setAccessor)||q.getAccessor&&Tf(q.getAccessor)}function v(fe){switch(fe.kind){case 172:case 169:return C(fe.type);case 178:case 177:return C(m(fe));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function E(fe,q){let H=Kr(fe)?Ah(fe):Lo(fe)&&gf(fe.body)?fe:void 0,ee=[];if(H){let le=S(H,q),Ee=le.length;for(let ce=0;ce<Ee;ce++){let Z=le[ce];ce===0&&Me(Z.name)&&Z.name.escapedText==="this"||(Z.dotDotDotToken?ee.push(C(x9(Z.type))):ee.push(v(Z)))}}return t.createArrayLiteralExpression(ee)}function S(fe,q){if(q&&fe.kind===177){let{setAccessor:H}=wS(q.members,fe);if(H)return H.parameters}return fe.parameters}function A(fe){return Lo(fe)&&fe.type?C(fe.type):TC(fe)?t.createIdentifier("Promise"):t.createVoidZero()}function C(fe){if(fe===void 0)return t.createIdentifier("Object");switch(fe=ML(fe),fe.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 fe.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 R(fe.literal);case 150:return t.createIdentifier("Number");case 163:return de("BigInt",7);case 155:return de("Symbol",2);case 183:return U(fe);case 193:return L(fe.types,!0);case 192:return L(fe.types,!1);case 194:return L([fe.trueType,fe.falseType],!1);case 198:if(fe.operator===148)return C(fe.type);break;case 186:case 199:case 200:case 187:case 133:case 159:case 197:case 205:break;case 319:case 320:case 324:case 325:case 326:break;case 321:case 322:case 323:return C(fe.type);default:return x.failBadSyntaxKind(fe)}return t.createIdentifier("Object")}function R(fe){switch(fe.kind){case 11:case 15:return t.createIdentifier("String");case 224:{let q=fe.operand;switch(q.kind){case 9:case 10:return R(q);default:return x.failBadSyntaxKind(q)}}case 9:return t.createIdentifier("Number");case 10:return de("BigInt",7);case 112:case 97:return t.createIdentifier("Boolean");case 106:return t.createVoidZero();default:return x.failBadSyntaxKind(fe)}}function L(fe,q){let H;for(let ee of fe){if(ee=ML(ee),ee.kind===146){if(q)return t.createVoidZero();continue}if(ee.kind===159){if(!q)return t.createIdentifier("Object");continue}if(ee.kind===133)return t.createIdentifier("Object");if(!l&&(uy(ee)&&ee.literal.kind===106||ee.kind===157))continue;let le=C(ee);if(Me(le)&&le.escapedText==="Object")return le;if(H){if(!G(H,le))return t.createIdentifier("Object")}else H=le}return H??t.createVoidZero()}function G(fe,q){return ws(fe)?ws(q):Me(fe)?Me(q)&&fe.escapedText===q.escapedText:Er(fe)?Er(q)&&G(fe.expression,q.expression)&&G(fe.name,q.name):cI(fe)?cI(q)&&Bu(fe.expression)&&fe.expression.text==="0"&&Bu(q.expression)&&q.expression.text==="0":ca(fe)?ca(q)&&fe.text===q.text:Wx(fe)?Wx(q)&&G(fe.expression,q.expression):uu(fe)?uu(q)&&G(fe.expression,q.expression):Fx(fe)?Fx(q)&&G(fe.condition,q.condition)&&G(fe.whenTrue,q.whenTrue)&&G(fe.whenFalse,q.whenFalse):Zn(fe)?Zn(q)&&fe.operatorToken.kind===q.operatorToken.kind&&G(fe.left,q.left)&&G(fe.right,q.right):!1}function U(fe){let q=i.getTypeReferenceSerializationKind(fe.typeName,p??d);switch(q){case 0:if(Rn(fe,le=>le.parent&&lI(le.parent)&&(le.parent.trueType===le||le.parent.falseType===le)))return t.createIdentifier("Object");let H=F(fe.typeName),ee=t.createTempVariable(r);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(ee,H),"function"),void 0,ee,void 0,t.createIdentifier("Object"));case 1:return oe(fe.typeName);case 2:return t.createVoidZero();case 4:return de("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 de("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return x.assertNever(q)}}function K(fe,q){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(fe),t.createStringLiteral("undefined")),q)}function F(fe){if(fe.kind===80){let ee=oe(fe);return K(ee,ee)}if(fe.left.kind===80)return K(oe(fe.left),oe(fe));let q=F(fe.left),H=t.createTempVariable(r);return t.createLogicalAnd(t.createLogicalAnd(q.left,t.createStrictInequality(t.createAssignment(H,q.right),t.createVoidZero())),t.createPropertyAccessExpression(H,fe.right))}function oe(fe){switch(fe.kind){case 80:let q=Ta(Ze(U_.cloneNode(fe),fe),fe.parent);return q.original=void 0,Ta(q,uo(d)),q;case 166:return W(fe)}}function W(fe){return t.createPropertyAccessExpression(oe(fe.left),fe.right)}function $(fe){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(fe),"function"),void 0,t.createIdentifier(fe),void 0,t.createIdentifier("Object"))}function de(fe,q){return s<q?$(fe):t.createIdentifier(fe)}}var Wze=pt({"src/compiler/transformers/typeSerializer.ts"(){"use strict";wo()}});function Qoe(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i}=e,o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Wa(s),d=e.onSubstituteNode;e.onSubstituteNode=Le;let p;return $f(e,h);function h(Ge){let ot=un(Ge,v,e);return ag(ot,e.readEmitHelpers()),ot}function m(Ge){return Xc(Ge)?void 0:Ge}function v(Ge){if(!(Ge.transformFlags&33554432))return Ge;switch(Ge.kind){case 170:return;case 263:return E(Ge);case 231:return U(Ge);case 176:return K(Ge);case 174:return oe(Ge);case 178:return $(Ge);case 177:return W(Ge);case 172:return de(Ge);case 169:return fe(Ge);default:return un(Ge,v,e)}}function E(Ge){if(!(Qg(!0,Ge)||hC(!0,Ge)))return un(Ge,v,e);let ot=Qg(!0,Ge)?G(Ge,Ge.name):L(Ge,Ge.name);return R_(ot)}function S(Ge){return!!(Ge.transformFlags&536870912)}function A(Ge){return ct(Ge,S)}function C(Ge){for(let ot of Ge.members){if(!ZS(ot))continue;let Vt=y4(ot,Ge,!0);if(ct(Vt?.decorators,S)||ct(Vt?.parameters,A))return!0}return!1}function R(Ge,ot){let Vt=[];return ee(Vt,Ge,!1),ee(Vt,Ge,!0),C(Ge)&&(ot=Ze(t.createNodeArray([...ot,t.createClassStaticBlockDeclaration(t.createBlock(Vt,!0))]),ot),Vt=void 0),{decorationStatements:Vt,members:ot}}function L(Ge,ot){let Vt=Dn(Ge.modifiers,m,ia),jt=Dn(Ge.heritageClauses,v,Ip),gn=Dn(Ge.members,v,xc),On=[];({members:gn,decorationStatements:On}=R(Ge,gn));let en=t.updateClassDeclaration(Ge,Vt,ot,void 0,jt,gn);return Pr([en],On)}function G(Ge,ot){let Vt=Wr(Ge,32),jt=Wr(Ge,2048),gn=Dn(Ge.modifiers,Rt=>w2(Rt)||Xc(Rt)?void 0:Rt,Ws),On=Qm(Ge),en=De(Ge),zt=l<2?t.getInternalName(Ge,!1,!0):t.getLocalName(Ge,!1,!0),Wt=Dn(Ge.heritageClauses,v,Ip),ei=Dn(Ge.members,v,xc),Ki=[];({members:ei,decorationStatements:Ki}=R(Ge,ei));let gi=l>=9&&!!en&&ct(ei,Rt=>xo(Rt)&&Wr(Rt,256)||nl(Rt));gi&&(ei=Ze(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(en,t.createThis()))])),...ei]),ei));let io=t.createClassExpression(gn,ot&&ws(ot)?void 0:ot,void 0,Wt,ei);mr(io,Ge),Ze(io,On);let Gn=en&&!gi?t.createAssignment(en,io):io,Nr=t.createVariableDeclaration(zt,void 0,void 0,Gn);mr(Nr,Ge);let cr=t.createVariableDeclarationList([Nr],1),Jt=t.createVariableStatement(void 0,cr);mr(Jt,Ge),Ze(Jt,On),Ol(Jt,Ge);let Ue=[Jt];if(Pr(Ue,Ki),pe(Ue,Ge),Vt)if(jt){let Rt=t.createExportDefault(zt);Ue.push(Rt)}else{let Rt=t.createExternalModuleExport(t.getDeclarationName(Ge));Ue.push(Rt)}return Ue}function U(Ge){return t.updateClassExpression(Ge,Dn(Ge.modifiers,m,ia),Ge.name,void 0,Dn(Ge.heritageClauses,v,Ip),Dn(Ge.members,v,xc))}function K(Ge){return t.updateConstructorDeclaration(Ge,Dn(Ge.modifiers,m,ia),Dn(Ge.parameters,v,ao),He(Ge.body,v,Do))}function F(Ge,ot){return Ge!==ot&&(Ol(Ge,ot),la(Ge,Qm(ot))),Ge}function oe(Ge){return F(t.updateMethodDeclaration(Ge,Dn(Ge.modifiers,m,ia),Ge.asteriskToken,x.checkDefined(He(Ge.name,v,kl)),void 0,void 0,Dn(Ge.parameters,v,ao),void 0,He(Ge.body,v,Do)),Ge)}function W(Ge){return F(t.updateGetAccessorDeclaration(Ge,Dn(Ge.modifiers,m,ia),x.checkDefined(He(Ge.name,v,kl)),Dn(Ge.parameters,v,ao),void 0,He(Ge.body,v,Do)),Ge)}function $(Ge){return F(t.updateSetAccessorDeclaration(Ge,Dn(Ge.modifiers,m,ia),x.checkDefined(He(Ge.name,v,kl)),Dn(Ge.parameters,v,ao),He(Ge.body,v,Do)),Ge)}function de(Ge){if(!(Ge.flags&33554432||Wr(Ge,128)))return F(t.updatePropertyDeclaration(Ge,Dn(Ge.modifiers,m,ia),x.checkDefined(He(Ge.name,v,kl)),void 0,void 0,He(Ge.initializer,v,lt)),Ge)}function fe(Ge){let ot=t.updateParameterDeclaration(Ge,xie(t,Ge.modifiers),Ge.dotDotDotToken,x.checkDefined(He(Ge.name,v,yS)),void 0,void 0,He(Ge.initializer,v,lt));return ot!==Ge&&(Ol(ot,Ge),Ze(ot,Qm(Ge)),la(ot,Qm(Ge)),$n(ot.name,64)),ot}function q(Ge){return oN(Ge.expression,"___metadata")}function H(Ge){if(!Ge)return;let{false:ot,true:Vt}=Kw(Ge.decorators,q),jt=[];return Pr(jt,nn(ot,Oe)),Pr(jt,ta(Ge.parameters,_e)),Pr(jt,nn(Vt,Oe)),jt}function ee(Ge,ot,Vt){Pr(Ge,nn(ce(ot,Vt),jt=>t.createExpressionStatement(jt)))}function le(Ge,ot,Vt){return _L(!0,Ge,Vt)&&ot===zo(Ge)}function Ee(Ge,ot){return Cr(Ge.members,Vt=>le(Vt,ot,Ge))}function ce(Ge,ot){let Vt=Ee(Ge,ot),jt;for(let gn of Vt)jt=pn(jt,Z(Ge,gn));return jt}function Z(Ge,ot){let Vt=y4(ot,Ge,!0),jt=H(Vt);if(!jt)return;let gn=he(Ge,ot),On=be(ot,!Wr(ot,128)),en=l>0?xo(ot)&&!Ym(ot)?t.createVoidZero():t.createNull():void 0,zt=r().createDecorateHelper(jt,gn,On,en);return $n(zt,3072),la(zt,Qm(ot)),zt}function pe(Ge,ot){let Vt=Ae(ot);Vt&&Ge.push(mr(t.createExpressionStatement(Vt),ot))}function Ae(Ge){let ot=$U(Ge),Vt=H(ot);if(!Vt)return;let jt=p&&p[dd(Ge)],gn=l<2?t.getInternalName(Ge,!1,!0):t.getDeclarationName(Ge,!1,!0),On=r().createDecorateHelper(Vt,gn),en=t.createAssignment(gn,jt?t.createAssignment(jt,On):On);return $n(en,3072),la(en,Qm(Ge)),en}function Oe(Ge){return x.checkDefined(He(Ge.expression,v,lt))}function _e(Ge,ot){let Vt;if(Ge){Vt=[];for(let jt of Ge){let gn=r().createParamHelper(Oe(jt),ot);Ze(gn,jt.expression),$n(gn,3072),Vt.push(gn)}}return Vt}function be(Ge,ot){let Vt=Ge.name;return Ci(Vt)?t.createIdentifier(""):Pa(Vt)?ot&&!i_(Vt.expression)?t.getGeneratedNameForNode(Vt):Vt.expression:Me(Vt)?t.createStringLiteral(ar(Vt)):t.cloneNode(Vt)}function Te(){p||(e.enableSubstitution(80),p=[])}function De(Ge){if(o.getNodeCheckFlags(Ge)&262144){Te();let ot=t.createUniqueName(Ge.name&&!ws(Ge.name)?ar(Ge.name):"default");return p[dd(Ge)]=ot,i(ot),ot}}function ft(Ge){return t.createPropertyAccessExpression(t.getDeclarationName(Ge),"prototype")}function he(Ge,ot){return zo(ot)?t.getDeclarationName(Ge):ft(Ge)}function Le(Ge,ot){return ot=d(Ge,ot),Ge===1?Ke(ot):ot}function Ke(Ge){switch(Ge.kind){case 80:return Dt(Ge)}return Ge}function Dt(Ge){return st(Ge)??Ge}function st(Ge){if(p&&o.getNodeCheckFlags(Ge)&536870912){let ot=o.getReferencedValueDeclaration(Ge);if(ot){let Vt=p[ot.id];if(Vt){let jt=t.cloneNode(Vt);return la(jt,Ge),Ol(jt,Ge),jt}}}}}var Fze=pt({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";wo()}});function Zoe(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=Wa(e.getCompilerOptions()),d,p,h,m,v,E;return $f(e,S);function S(M){d=void 0,E=!1;let te=un(M,$,e);return ag(te,e.readEmitHelpers()),E&&(XA(te,32),E=!1),te}function A(){switch(p=void 0,h=void 0,m=void 0,d?.kind){case"class":p=d.classInfo;break;case"class-element":p=d.next.classInfo,h=d.classThis,m=d.classSuper;break;case"name":let M=d.next.next.next;M?.kind==="class-element"&&(p=M.next.classInfo,h=M.classThis,m=M.classSuper);break}}function C(M){d={kind:"class",next:d,classInfo:M,savedPendingExpressions:v},v=void 0,A()}function R(){x.assert(d?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${d?.kind}' instead.`),v=d.savedPendingExpressions,d=d.next,A()}function L(M){var te,j;x.assert(d?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${d?.kind}' instead.`),d={kind:"class-element",next:d},(nl(M)||xo(M)&&jl(M))&&(d.classThis=(te=d.next.classInfo)==null?void 0:te.classThis,d.classSuper=(j=d.next.classInfo)==null?void 0:j.classSuper),A()}function G(){var M;x.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),x.assert(((M=d.next)==null?void 0:M.kind)==="class","Incorrect value for top.next.kind.",()=>{var te;return`Expected top.next.kind to be 'class' but got '${(te=d.next)==null?void 0:te.kind}' instead.`}),d=d.next,A()}function U(){x.assert(d?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${d?.kind}' instead.`),d={kind:"name",next:d},A()}function K(){x.assert(d?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${d?.kind}' instead.`),d=d.next,A()}function F(){d?.kind==="other"?(x.assert(!v),d.depth++):(d={kind:"other",next:d,depth:0,savedPendingExpressions:v},v=void 0,A())}function oe(){x.assert(d?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${d?.kind}' instead.`),d.depth>0?(x.assert(!v),d.depth--):(v=d.savedPendingExpressions,d=d.next,A())}function W(M){return!!(M.transformFlags&33554432)||!!h&&!!(M.transformFlags&16384)||!!h&&!!m&&!!(M.transformFlags&134217728)}function $(M){if(!W(M))return M;switch(M.kind){case 170:return x.fail("Use `modifierVisitor` instead.");case 263:return Ae(M);case 231:return Oe(M);case 176:case 172:case 175:return x.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return On(M);case 226:return Ki(M,!1);case 303:return Jt(M);case 260:return Ue(M);case 208:return Rt(M);case 277:return ke(M);case 110:return Ge(M);case 248:return Wt(M);case 244:return ei(M);case 361:return io(M,!1);case 217:return nt(M,!1);case 360:return tt(M,!1);case 213:return ot(M);case 215:return Vt(M);case 224:case 225:return gi(M,!1);case 211:return jt(M);case 212:return gn(M);case 167:return cr(M);case 174:case 178:case 177:case 218:case 262:{F();let te=un(M,de,e);return oe(),te}default:return un(M,de,e)}}function de(M){switch(M.kind){case 170:return;default:return $(M)}}function fe(M){switch(M.kind){case 170:return;default:return M}}function q(M){switch(M.kind){case 176:return Te(M);case 174:return he(M);case 177:return Le(M);case 178:return Ke(M);case 172:return st(M);case 175:return Dt(M);default:return $(M)}}function H(M){switch(M.kind){case 224:case 225:return gi(M,!0);case 226:return Ki(M,!0);case 361:return io(M,!0);case 217:return nt(M,!0);default:return $(M)}}function ee(M){let te=M.name&&Me(M.name)&&!ws(M.name)?ar(M.name):M.name&&Ci(M.name)&&!ws(M.name)?ar(M.name).slice(1):M.name&&ca(M.name)&&Sp(M.name.text,99)?M.name.text:Kr(M)?"class":"member";return Yv(M)&&(te=`get_${te}`),$g(M)&&(te=`set_${te}`),M.name&&Ci(M.name)&&(te=`private_${te}`),zo(M)&&(te=`static_${te}`),"_"+te}function le(M,te){return t.createUniqueName(`${ee(M)}_${te}`,24)}function Ee(M,te){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(M,void 0,void 0,te)],1))}function ce(M){let te=t.createUniqueName("_metadata",48),j,se,Pe=!1,Ie=!1,gt=!1,bt,Ot,dn;if(rx(!1,M)){let An=ct(M.members,Cn=>(kd(Cn)||su(Cn))&&jl(Cn));bt=t.createUniqueName("_classThis",An?24:48)}for(let An of M.members){if(CA(An)&&_L(!1,An,M))if(jl(An)){if(!se){se=t.createUniqueName("_staticExtraInitializers",48);let Cn=r().createRunInitializersHelper(bt??t.createThis(),se);la(Cn,M.name??rg(M)),Ot??(Ot=[]),Ot.push(Cn)}}else{if(!j){j=t.createUniqueName("_instanceExtraInitializers",48);let Cn=r().createRunInitializersHelper(t.createThis(),j);la(Cn,M.name??rg(M)),dn??(dn=[]),dn.push(Cn)}j??(j=t.createUniqueName("_instanceExtraInitializers",48))}if(nl(An)?AI(An)||(Pe=!0):xo(An)&&(jl(An)?Pe||(Pe=!!An.initializer||Hp(An)):Ie||(Ie=!v9(An))),(kd(An)||su(An))&&jl(An)&&(gt=!0),se&&j&&Pe&&Ie&>)break}return{class:M,classThis:bt,metadataReference:te,instanceMethodExtraInitializersName:j,staticMethodExtraInitializersName:se,hasStaticInitializers:Pe,hasNonAmbientInstanceFields:Ie,hasStaticPrivateClassElements:gt,pendingStaticInitializers:Ot,pendingInstanceInitializers:dn}}function Z(M){i(),!nH(M)&&Qg(!1,M)&&(M=E4(e,M,t.createStringLiteral("")));let te=t.getLocalName(M,!1,!1,!0),j=ce(M),se=[],Pe,Ie,gt,bt,Ot=!1,dn=et($U(M));dn&&(j.classDecoratorsName=t.createUniqueName("_classDecorators",48),j.classDescriptorName=t.createUniqueName("_classDescriptor",48),j.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48),x.assertIsDefined(j.classThis),se.push(Ee(j.classDecoratorsName,t.createArrayLiteralExpression(dn)),Ee(j.classDescriptorName),Ee(j.classExtraInitializersName,t.createArrayLiteralExpression()),Ee(j.classThis)),j.hasStaticPrivateClassElements&&(Ot=!0,E=!0));let An=OL(M.heritageClauses,96),Cn=An&&Ac(An.types),ti=Cn&&He(Cn.expression,$,lt);if(ti){j.classSuper=t.createUniqueName("_classSuper",48);let Mr=Rl(ti),lo=Dc(Mr)&&!Mr.name||us(Mr)&&!Mr.name||hs(Mr)?t.createComma(t.createNumericLiteral(0),ti):ti;se.push(Ee(j.classSuper,lo));let _n=t.updateExpressionWithTypeArguments(Cn,j.classSuper,void 0),fs=t.updateHeritageClause(An,[_n]);bt=t.createNodeArray([fs])}let di=j.classThis??t.createThis();C(j),Pe=pn(Pe,V(j.metadataReference,j.classSuper));let jn=M.members;if(jn=Dn(jn,Mr=>ll(Mr)?Mr:q(Mr),xc),jn=Dn(jn,Mr=>ll(Mr)?q(Mr):Mr,xc),v){let Mr;for(let lo of v){lo=He(lo,function fs(Dl){if(!(Dl.transformFlags&16384))return Dl;switch(Dl.kind){case 110:return Mr||(Mr=t.createUniqueName("_outerThis",16),se.unshift(Ee(Mr,t.createThis()))),Mr;default:return un(Dl,fs,e)}},lt);let _n=t.createExpressionStatement(lo);Pe=pn(Pe,_n)}v=void 0}if(R(),ct(j.pendingInstanceInitializers)&&!Ah(M)){let Mr=_e(M,j);if(Mr){let lo=Jm(M),_n=!!(lo&&Rl(lo.expression).kind!==106),fs=[];if(_n){let _o=t.createSpreadElement(t.createIdentifier("arguments")),Va=t.createCallExpression(t.createSuper(),void 0,[_o]);fs.push(t.createExpressionStatement(Va))}Pr(fs,Mr);let Dl=t.createBlock(fs,!0);gt=t.createConstructorDeclaration(void 0,[],Dl)}}if(j.staticMethodExtraInitializersName&&se.push(Ee(j.staticMethodExtraInitializersName,t.createArrayLiteralExpression())),j.instanceMethodExtraInitializersName&&se.push(Ee(j.instanceMethodExtraInitializersName,t.createArrayLiteralExpression())),j.memberInfos&&hc(j.memberInfos,(Mr,lo)=>{zo(lo)&&(se.push(Ee(Mr.memberDecoratorsName)),Mr.memberInitializersName&&se.push(Ee(Mr.memberInitializersName,t.createArrayLiteralExpression())),Mr.memberExtraInitializersName&&se.push(Ee(Mr.memberExtraInitializersName,t.createArrayLiteralExpression())),Mr.memberDescriptorName&&se.push(Ee(Mr.memberDescriptorName)))}),j.memberInfos&&hc(j.memberInfos,(Mr,lo)=>{zo(lo)||(se.push(Ee(Mr.memberDecoratorsName)),Mr.memberInitializersName&&se.push(Ee(Mr.memberInitializersName,t.createArrayLiteralExpression())),Mr.memberExtraInitializersName&&se.push(Ee(Mr.memberExtraInitializersName,t.createArrayLiteralExpression())),Mr.memberDescriptorName&&se.push(Ee(Mr.memberDescriptorName)))}),Pe=Pr(Pe,j.staticNonFieldDecorationStatements),Pe=Pr(Pe,j.nonStaticNonFieldDecorationStatements),Pe=Pr(Pe,j.staticFieldDecorationStatements),Pe=Pr(Pe,j.nonStaticFieldDecorationStatements),j.classDescriptorName&&j.classDecoratorsName&&j.classExtraInitializersName&&j.classThis){Pe??(Pe=[]);let Mr=t.createPropertyAssignment("value",di),lo=t.createObjectLiteralExpression([Mr]),_n=t.createAssignment(j.classDescriptorName,lo),fs=t.createPropertyAccessExpression(di,"name"),Dl=r().createESDecorateHelper(t.createNull(),_n,j.classDecoratorsName,{kind:"class",name:fs,metadata:j.metadataReference},t.createNull(),j.classExtraInitializersName),_o=t.createExpressionStatement(Dl);la(_o,rg(M)),Pe.push(_o);let Va=t.createPropertyAccessExpression(j.classDescriptorName,"value"),gs=t.createAssignment(j.classThis,Va),Js=t.createAssignment(te,gs);Pe.push(t.createExpressionStatement(Js))}if(Pe.push(Re(di,j.metadataReference)),ct(j.pendingStaticInitializers)){for(let Mr of j.pendingStaticInitializers){let lo=t.createExpressionStatement(Mr);la(lo,ov(Mr)),Ie=pn(Ie,lo)}j.pendingStaticInitializers=void 0}if(j.classExtraInitializersName){let Mr=r().createRunInitializersHelper(di,j.classExtraInitializersName),lo=t.createExpressionStatement(Mr);la(lo,M.name??rg(M)),Ie=pn(Ie,lo)}Pe&&Ie&&!j.hasStaticInitializers&&(Pr(Pe,Ie),Ie=void 0);let Ar=Pe&&t.createClassStaticBlockDeclaration(t.createBlock(Pe,!0));Ar&&Ot&&m2(Ar,32);let Zi=Ie&&t.createClassStaticBlockDeclaration(t.createBlock(Ie,!0));if(Ar||gt||Zi){let Mr=[],lo=jn.findIndex(AI);Ar?(Pr(Mr,jn,0,lo+1),Mr.push(Ar),Pr(Mr,jn,lo+1)):Pr(Mr,jn),gt&&Mr.push(gt),Zi&&Mr.push(Zi),jn=Ze(t.createNodeArray(Mr),jn)}let _i=o(),ui;if(dn){ui=t.createClassExpression(void 0,void 0,void 0,bt,jn),j.classThis&&(ui=Hoe(t,ui,j.classThis));let Mr=t.createVariableDeclaration(te,void 0,void 0,ui),lo=t.createVariableDeclarationList([Mr]),_n=j.classThis?t.createAssignment(te,j.classThis):te;se.push(t.createVariableStatement(void 0,lo),t.createReturnStatement(_n))}else ui=t.createClassExpression(void 0,M.name,void 0,bt,jn),se.push(t.createReturnStatement(ui));if(Ot){XA(ui,32);for(let Mr of ui.members)(kd(Mr)||su(Mr))&&jl(Mr)&&XA(Mr,32)}return mr(ui,M),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(se,_i))}function pe(M){return Qg(!1,M)||hC(!1,M)}function Ae(M){if(pe(M)){let te=[],j=sl(M,Kr)??M,se=j.name?t.createStringLiteralFromNode(j.name):t.createStringLiteral("default"),Pe=Wr(M,32),Ie=Wr(M,2048);if(M.name||(M=E4(e,M,se)),Pe&&Ie){let gt=Z(M);if(M.name){let bt=t.createVariableDeclaration(t.getLocalName(M),void 0,void 0,gt);mr(bt,M);let Ot=t.createVariableDeclarationList([bt],1),dn=t.createVariableStatement(void 0,Ot);te.push(dn);let An=t.createExportDefault(t.getDeclarationName(M));mr(An,M),Ol(An,e_(M)),la(An,rg(M)),te.push(An)}else{let bt=t.createExportDefault(gt);mr(bt,M),Ol(bt,e_(M)),la(bt,rg(M)),te.push(bt)}}else{x.assertIsDefined(M.name,"A class declaration that is not a default export must have a name.");let gt=Z(M),bt=Pe?di=>nI(di)?void 0:fe(di):fe,Ot=Dn(M.modifiers,bt,ia),dn=t.getLocalName(M,!1,!0),An=t.createVariableDeclaration(dn,void 0,void 0,gt);mr(An,M);let Cn=t.createVariableDeclarationList([An],1),ti=t.createVariableStatement(Ot,Cn);if(mr(ti,M),Ol(ti,e_(M)),te.push(ti),Pe){let di=t.createExternalModuleExport(dn);mr(di,M),te.push(di)}}return R_(te)}else{let te=Dn(M.modifiers,fe,ia),j=Dn(M.heritageClauses,$,Ip);C(void 0);let se=Dn(M.members,q,xc);return R(),t.updateClassDeclaration(M,te,M.name,void 0,j,se)}}function Oe(M){if(pe(M)){let te=Z(M);return mr(te,M),te}else{let te=Dn(M.modifiers,fe,ia),j=Dn(M.heritageClauses,$,Ip);C(void 0);let se=Dn(M.members,q,xc);return R(),t.updateClassExpression(M,te,M.name,void 0,j,se)}}function _e(M,te){if(ct(te.pendingInstanceInitializers)){let j=[];return j.push(t.createExpressionStatement(t.inlineExpressions(te.pendingInstanceInitializers))),te.pendingInstanceInitializers=void 0,j}}function be(M,te,j,se,Pe,Ie){let gt=se[Pe],bt=te[gt];if(Pr(M,Dn(te,$,Di,j,gt-j)),JS(bt)){let Ot=[];be(Ot,bt.tryBlock.statements,0,se,Pe+1,Ie);let dn=t.createNodeArray(Ot);Ze(dn,bt.tryBlock.statements),M.push(t.updateTryStatement(bt,t.updateBlock(bt.tryBlock,Ot),He(bt.catchClause,$,u0),He(bt.finallyBlock,$,Do)))}else Pr(M,Dn(te,$,Di,gt,1)),Pr(M,Ie);Pr(M,Dn(te,$,Di,gt+1))}function Te(M){L(M);let te=Dn(M.modifiers,fe,ia),j=Dn(M.parameters,$,ao),se;if(M.body&&p){let Pe=_e(p.class,p);if(Pe){let Ie=[],gt=t.copyPrologue(M.body.statements,Ie,!1,$),bt=g4(M.body.statements,gt);bt.length>0?be(Ie,M.body.statements,gt,bt,0,Pe):(Pr(Ie,Pe),Pr(Ie,Dn(M.body.statements,$,Di))),se=t.createBlock(Ie,!0),mr(se,M.body),Ze(se,M.body)}}return se??(se=He(M.body,$,Do)),G(),t.updateConstructorDeclaration(M,te,j,se)}function De(M,te){return M!==te&&(Ol(M,te),la(M,rg(te))),M}function ft(M,te,j){let se,Pe,Ie,gt,bt,Ot;if(!te){let Cn=Dn(M.modifiers,fe,ia);return U(),Pe=Nr(M.name),K(),{modifiers:Cn,referencedName:se,name:Pe,initializersName:Ie,descriptorName:Ot,thisArg:bt}}let dn=et(y4(M,te.class,!1)),An=Dn(M.modifiers,fe,ia);if(dn){let Cn=le(M,"decorators"),ti=t.createArrayLiteralExpression(dn),di=t.createAssignment(Cn,ti),jn={memberDecoratorsName:Cn};te.memberInfos??(te.memberInfos=new Map),te.memberInfos.set(M,jn),v??(v=[]),v.push(di);let Ar=CA(M)||su(M)?zo(M)?te.staticNonFieldDecorationStatements??(te.staticNonFieldDecorationStatements=[]):te.nonStaticNonFieldDecorationStatements??(te.nonStaticNonFieldDecorationStatements=[]):xo(M)&&!su(M)?zo(M)?te.staticFieldDecorationStatements??(te.staticFieldDecorationStatements=[]):te.nonStaticFieldDecorationStatements??(te.nonStaticFieldDecorationStatements=[]):x.fail(),Zi=Ap(M)?"getter":Vu(M)?"setter":El(M)?"method":su(M)?"accessor":xo(M)?"field":x.fail(),_i;if(Me(M.name)||Ci(M.name))_i={computed:!1,name:M.name};else if(Km(M.name))_i={computed:!0,name:t.createStringLiteralFromNode(M.name)};else{let Mr=M.name.expression;Km(Mr)&&!Me(Mr)?_i={computed:!0,name:t.createStringLiteralFromNode(Mr)}:(U(),{referencedName:se,name:Pe}=Gn(M.name),_i={computed:!0,name:se},K())}let ui={kind:Zi,name:_i,static:zo(M),private:Ci(M.name),access:{get:xo(M)||Ap(M)||El(M),set:xo(M)||Vu(M)},metadata:te.metadataReference};if(CA(M)){let Mr=zo(M)?te.staticMethodExtraInitializersName:te.instanceMethodExtraInitializersName;x.assertIsDefined(Mr);let lo;kd(M)&&j&&(lo=j(M,Dn(An,Dl=>Vr(Dl,aN),ia)),jn.memberDescriptorName=Ot=le(M,"descriptor"),lo=t.createAssignment(Ot,lo));let _n=r().createESDecorateHelper(t.createThis(),lo??t.createNull(),Cn,ui,t.createNull(),Mr),fs=t.createExpressionStatement(_n);la(fs,rg(M)),Ar.push(fs)}else if(xo(M)){Ie=jn.memberInitializersName??(jn.memberInitializersName=le(M,"initializers")),gt=jn.memberExtraInitializersName??(jn.memberExtraInitializersName=le(M,"extraInitializers")),zo(M)&&(bt=te.classThis);let Mr;kd(M)&&Ym(M)&&j&&(Mr=j(M,void 0),jn.memberDescriptorName=Ot=le(M,"descriptor"),Mr=t.createAssignment(Ot,Mr));let lo=r().createESDecorateHelper(su(M)?t.createThis():t.createNull(),Mr??t.createNull(),Cn,ui,Ie,gt),_n=t.createExpressionStatement(lo);la(_n,rg(M)),Ar.push(_n)}}return Pe===void 0&&(U(),Pe=Nr(M.name),K()),!ct(An)&&(El(M)||xo(M))&&$n(Pe,1024),{modifiers:An,referencedName:se,name:Pe,initializersName:Ie,extraInitializersName:gt,descriptorName:Ot,thisArg:bt}}function he(M){L(M);let{modifiers:te,name:j,descriptorName:se}=ft(M,p,_t);if(se)return G(),De(on(te,j,se),M);{let Pe=Dn(M.parameters,$,ao),Ie=He(M.body,$,Do);return G(),De(t.updateMethodDeclaration(M,te,M.asteriskToken,j,void 0,void 0,Pe,void 0,Ie),M)}}function Le(M){L(M);let{modifiers:te,name:j,descriptorName:se}=ft(M,p,ze);if(se)return G(),De(Qt(te,j,se),M);{let Pe=Dn(M.parameters,$,ao),Ie=He(M.body,$,Do);return G(),De(t.updateGetAccessorDeclaration(M,te,j,Pe,void 0,Ie),M)}}function Ke(M){L(M);let{modifiers:te,name:j,descriptorName:se}=ft(M,p,it);if(se)return G(),De(Zt(te,j,se),M);{let Pe=Dn(M.parameters,$,ao),Ie=He(M.body,$,Do);return G(),De(t.updateSetAccessorDeclaration(M,te,j,Pe,Ie),M)}}function Dt(M){L(M);let te;if(AI(M))te=un(M,$,e);else if(kN(M)){let j=h;h=void 0,te=un(M,$,e),h=j}else if(M=un(M,$,e),te=M,p&&(p.hasStaticInitializers=!0,ct(p.pendingStaticInitializers))){let j=[];for(let Ie of p.pendingStaticInitializers){let gt=t.createExpressionStatement(Ie);la(gt,ov(Ie)),j.push(gt)}let se=t.createBlock(j,!0);te=[t.createClassStaticBlockDeclaration(se),te],p.pendingStaticInitializers=void 0}return G(),te}function st(M){Fu(M,en)&&(M=Uu(e,M,zt(M.initializer))),L(M),x.assert(!v9(M),"Not yet implemented.");let{modifiers:te,name:j,initializersName:se,extraInitializersName:Pe,descriptorName:Ie,thisArg:gt}=ft(M,p,Ym(M)?Ct:void 0);i();let bt=He(M.initializer,$,lt);se&&(bt=r().createRunInitializersHelper(gt??t.createThis(),se,bt??t.createVoidZero())),zo(M)&&p&&bt&&(p.hasStaticInitializers=!0);let Ot=o();if(ct(Ot)&&(bt=t.createImmediatelyInvokedArrowFunction([...Ot,t.createReturnStatement(bt)])),p&&(zo(M)?(bt=Ce(p,!0,bt),Pe&&(p.pendingStaticInitializers??(p.pendingStaticInitializers=[]),p.pendingStaticInitializers.push(r().createRunInitializersHelper(p.classThis??t.createThis(),Pe)))):(bt=Ce(p,!1,bt),Pe&&(p.pendingInstanceInitializers??(p.pendingInstanceInitializers=[]),p.pendingInstanceInitializers.push(r().createRunInitializersHelper(t.createThis(),Pe))))),G(),Ym(M)&&Ie){let dn=e_(M),An=ov(M),Cn=M.name,ti=Cn,di=Cn;if(Pa(Cn)&&!i_(Cn.expression)){let ui=L6(Cn);if(ui)ti=t.updateComputedPropertyName(Cn,He(Cn.expression,$,lt)),di=t.updateComputedPropertyName(Cn,ui.left);else{let Mr=t.createTempVariable(s);la(Mr,Cn.expression);let lo=He(Cn.expression,$,lt),_n=t.createAssignment(Mr,lo);la(_n,Cn.expression),ti=t.updateComputedPropertyName(Cn,_n),di=t.updateComputedPropertyName(Cn,Mr)}}let jn=Dn(te,ui=>ui.kind!==129?ui:void 0,ia),Ar=Hj(t,M,jn,bt);mr(Ar,M),$n(Ar,3072),la(Ar,An),la(Ar.name,M.name);let Zi=Qt(jn,ti,Ie);mr(Zi,M),Ol(Zi,dn),la(Zi,An);let _i=Zt(jn,di,Ie);return mr(_i,M),$n(_i,3072),la(_i,An),[Ar,Zi,_i]}return De(t.updatePropertyDeclaration(M,te,j,void 0,void 0,bt),M)}function Ge(M){return h??M}function ot(M){if(cu(M.expression)&&h){let te=He(M.expression,$,lt),j=Dn(M.arguments,$,lt),se=t.createFunctionCallCall(te,h,j);return mr(se,M),Ze(se,M),se}return un(M,$,e)}function Vt(M){if(cu(M.tag)&&h){let te=He(M.tag,$,lt),j=t.createFunctionBindCall(te,h,[]);mr(j,M),Ze(j,M);let se=He(M.template,$,NA);return t.updateTaggedTemplateExpression(M,j,void 0,se)}return un(M,$,e)}function jt(M){if(cu(M)&&Me(M.name)&&h&&m){let te=t.createStringLiteralFromNode(M.name),j=t.createReflectGetCall(m,te,h);return mr(j,M.expression),Ze(j,M.expression),j}return un(M,$,e)}function gn(M){if(cu(M)&&h&&m){let te=He(M.argumentExpression,$,lt),j=t.createReflectGetCall(m,te,h);return mr(j,M.expression),Ze(j,M.expression),j}return un(M,$,e)}function On(M){Fu(M,en)&&(M=Uu(e,M,zt(M.initializer)));let te=t.updateParameterDeclaration(M,void 0,M.dotDotDotToken,He(M.name,$,yS),void 0,void 0,He(M.initializer,$,lt));return te!==M&&(Ol(te,M),Ze(te,Qm(M)),la(te,Qm(M)),$n(te.name,64)),te}function en(M){return Dc(M)&&!M.name&&pe(M)}function zt(M){let te=Rl(M);return Dc(te)&&!te.name&&!Qg(!1,te)}function Wt(M){return t.updateForStatement(M,He(M.initializer,H,Up),He(M.condition,$,lt),He(M.incrementor,H,lt),Qd(M.statement,$,e))}function ei(M){return un(M,H,e)}function Ki(M,te){if(nv(M)){let j=Tn(M.left),se=He(M.right,$,lt);return t.updateBinaryExpression(M,j,M.operatorToken,se)}if(lc(M)){if(Fu(M,en))return M=Uu(e,M,zt(M.right)),un(M,$,e);if(cu(M.left)&&h&&m){let j=Rs(M.left)?He(M.left.argumentExpression,$,lt):Me(M.left.name)?t.createStringLiteralFromNode(M.left.name):void 0;if(j){let se=He(M.right,$,lt);if(PN(M.operatorToken.kind)){let Ie=j;i_(j)||(Ie=t.createTempVariable(s),j=t.createAssignment(Ie,j));let gt=t.createReflectGetCall(m,Ie,h);mr(gt,M.left),Ze(gt,M.left),se=t.createBinaryExpression(gt,MN(M.operatorToken.kind),se),Ze(se,M)}let Pe=te?void 0:t.createTempVariable(s);return Pe&&(se=t.createAssignment(Pe,se),Ze(Pe,M)),se=t.createReflectSetCall(m,j,se,h),mr(se,M),Ze(se,M),Pe&&(se=t.createComma(se,Pe),Ze(se,M)),se}}}if(M.operatorToken.kind===28){let j=He(M.left,H,lt),se=He(M.right,te?H:$,lt);return t.updateBinaryExpression(M,j,M.operatorToken,se)}return un(M,$,e)}function gi(M,te){if(M.operator===46||M.operator===47){let j=Ka(M.operand);if(cu(j)&&h&&m){let se=Rs(j)?He(j.argumentExpression,$,lt):Me(j.name)?t.createStringLiteralFromNode(j.name):void 0;if(se){let Pe=se;i_(se)||(Pe=t.createTempVariable(s),se=t.createAssignment(Pe,se));let Ie=t.createReflectGetCall(m,Pe,h);mr(Ie,M),Ze(Ie,M);let gt=te?void 0:t.createTempVariable(s);return Ie=x6(t,M,Ie,s,gt),Ie=t.createReflectSetCall(m,se,Ie,h),mr(Ie,M),Ze(Ie,M),gt&&(Ie=t.createComma(Ie,gt),Ze(Ie,M)),Ie}}}return un(M,$,e)}function io(M,te){let j=te?dk(M.elements,H):dk(M.elements,$,H);return t.updateCommaListExpression(M,j)}function Gn(M){if(Km(M)||Ci(M)){let Ie=t.createStringLiteralFromNode(M),gt=He(M,$,kl);return{referencedName:Ie,name:gt}}if(Km(M.expression)&&!Me(M.expression)){let Ie=t.createStringLiteralFromNode(M.expression),gt=He(M,$,kl);return{referencedName:Ie,name:gt}}let te=t.getGeneratedNameForNode(M);s(te);let j=r().createPropKeyHelper(He(M.expression,$,lt)),se=t.createAssignment(te,j),Pe=t.updateComputedPropertyName(M,re(se));return{referencedName:te,name:Pe}}function Nr(M){return Pa(M)?cr(M):He(M,$,kl)}function cr(M){let te=He(M.expression,$,lt);return i_(te)||(te=re(te)),t.updateComputedPropertyName(M,te)}function Jt(M){return Fu(M,en)&&(M=Uu(e,M,zt(M.initializer))),un(M,$,e)}function Ue(M){return Fu(M,en)&&(M=Uu(e,M,zt(M.initializer))),un(M,$,e)}function Rt(M){return Fu(M,en)&&(M=Uu(e,M,zt(M.initializer))),un(M,$,e)}function mn(M){if(fa(M)||Bd(M))return Tn(M);if(cu(M)&&h&&m){let te=Rs(M)?He(M.argumentExpression,$,lt):Me(M.name)?t.createStringLiteralFromNode(M.name):void 0;if(te){let j=t.createTempVariable(void 0),se=t.createAssignmentTargetWrapper(j,t.createReflectSetCall(m,te,j,h));return mr(se,M),Ze(se,M),se}}return un(M,$,e)}function qr(M){if(lc(M,!0)){Fu(M,en)&&(M=Uu(e,M,zt(M.right)));let te=mn(M.left),j=He(M.right,$,lt);return t.updateBinaryExpression(M,te,M.operatorToken,j)}else return mn(M)}function ni(M){if(Tu(M.expression)){let te=mn(M.expression);return t.updateSpreadElement(M,te)}return un(M,$,e)}function ki(M){return x.assertNode(M,XM),bm(M)?ni(M):vc(M)?un(M,$,e):qr(M)}function so(M){let te=He(M.name,$,kl);if(lc(M.initializer,!0)){let j=qr(M.initializer);return t.updatePropertyAssignment(M,te,j)}if(Tu(M.initializer)){let j=mn(M.initializer);return t.updatePropertyAssignment(M,te,j)}return un(M,$,e)}function Jo(M){return Fu(M,en)&&(M=Uu(e,M,zt(M.objectAssignmentInitializer))),un(M,$,e)}function ba(M){if(Tu(M.expression)){let te=mn(M.expression);return t.updateSpreadAssignment(M,te)}return un(M,$,e)}function ln(M){return x.assertNode(M,KM),lv(M)?ba(M):xu(M)?Jo(M):Hl(M)?so(M):un(M,$,e)}function Tn(M){if(Bd(M)){let te=Dn(M.elements,ki,lt);return t.updateArrayLiteralExpression(M,te)}else{let te=Dn(M.properties,ln,Zh);return t.updateObjectLiteralExpression(M,te)}}function ke(M){return Fu(M,en)&&(M=Uu(e,M,zt(M.expression))),un(M,$,e)}function nt(M,te){let j=te?H:$,se=He(M.expression,j,lt);return t.updateParenthesizedExpression(M,se)}function tt(M,te){let j=te?H:$,se=He(M.expression,j,lt);return t.updatePartiallyEmittedExpression(M,se)}function yt(M,te){return ct(M)&&(te?uu(te)?(M.push(te.expression),te=t.updateParenthesizedExpression(te,t.inlineExpressions(M))):(M.push(te),te=t.inlineExpressions(M)):te=t.inlineExpressions(M)),te}function re(M){let te=yt(v,M);return x.assertIsDefined(te),te!==M&&(v=void 0),te}function Ce(M,te,j){let se=yt(te?M.pendingStaticInitializers:M.pendingInstanceInitializers,j);return se!==j&&(te?M.pendingStaticInitializers=void 0:M.pendingInstanceInitializers=void 0),se}function et(M){if(!M)return;let te=[];return Pr(te,nn(M.decorators,z)),te}function z(M){let te=He(M.expression,$,lt);$n(te,3072);let j=Rl(te);if(ds(j)){let{target:se,thisArg:Pe}=t.createCallBinding(te,s,l,!0);return t.restoreOuterExpressions(te,t.createFunctionBindCall(se,Pe,[]))}return te}function Je(M,te,j,se,Pe,Ie,gt){let bt=t.createFunctionExpression(j,se,void 0,void 0,Ie,void 0,gt??t.createBlock([]));mr(bt,M),la(bt,rg(M)),$n(bt,3072);let Ot=Pe==="get"||Pe==="set"?Pe:void 0,dn=t.createStringLiteralFromNode(te,void 0),An=r().createSetFunctionNameHelper(bt,dn,Ot),Cn=t.createPropertyAssignment(t.createIdentifier(Pe),An);return mr(Cn,M),la(Cn,rg(M)),$n(Cn,3072),Cn}function _t(M,te){return t.createObjectLiteralExpression([Je(M,M.name,te,M.asteriskToken,"value",Dn(M.parameters,$,ao),He(M.body,$,Do))])}function ze(M,te){return t.createObjectLiteralExpression([Je(M,M.name,te,void 0,"get",[],He(M.body,$,Do))])}function it(M,te){return t.createObjectLiteralExpression([Je(M,M.name,te,void 0,"set",Dn(M.parameters,$,ao),He(M.body,$,Do))])}function Ct(M,te){return t.createObjectLiteralExpression([Je(M,M.name,te,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(M.name)))])),Je(M,M.name,te,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(M.name)),t.createIdentifier("value")))]))])}function on(M,te,j){return M=Dn(M,se=>rI(se)?se:void 0,ia),t.createGetAccessorDeclaration(M,te,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(j,t.createIdentifier("value")))]))}function Qt(M,te,j){return M=Dn(M,se=>rI(se)?se:void 0,ia),t.createGetAccessorDeclaration(M,te,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(j,t.createIdentifier("get")),t.createThis(),[]))]))}function Zt(M,te,j){return M=Dn(M,se=>rI(se)?se:void 0,ia),t.createSetAccessorDeclaration(M,te,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(j,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function V(M,te){let j=t.createVariableDeclaration(M,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,[te?St(te):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([j],2))}function Re(M,te){let j=t.createObjectDefinePropertyCall(M,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:te},!0));return $n(t.createIfStatement(te,t.createExpressionStatement(j)),1)}function St(M){return t.createBinaryExpression(t.createElementAccessExpression(M,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var zze=pt({"src/compiler/transformers/esDecorators.ts"(){"use strict";wo()}});function eae(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=Wa(d),h,m=0,v,E,S,A,C=[],R=0,L=e.onEmitNode,G=e.onSubstituteNode;return e.onEmitNode=ei,e.onSubstituteNode=Ki,$f(e,U);function U(Ue){if(Ue.isDeclarationFile)return Ue;K(1,!1),K(2,!g9(Ue,d));let Rt=un(Ue,q,e);return ag(Rt,e.readEmitHelpers()),Rt}function K(Ue,Rt){R=Rt?R|Ue:R&~Ue}function F(Ue){return(R&Ue)!==0}function oe(){return!F(1)}function W(){return F(2)}function $(Ue,Rt,mn){let qr=Ue&~R;if(qr){K(qr,!0);let ni=Rt(mn);return K(qr,!1),ni}return Rt(mn)}function de(Ue){return un(Ue,q,e)}function fe(Ue){switch(Ue.kind){case 218:case 262:case 174:case 177:case 178:case 176:return Ue;case 169:case 208:case 260:break;case 80:if(A&&l.isArgumentsLocalBinding(Ue))return A;break}return un(Ue,fe,e)}function q(Ue){if(!(Ue.transformFlags&256))return A?fe(Ue):Ue;switch(Ue.kind){case 134:return;case 223:return pe(Ue);case 174:return $(3,Oe,Ue);case 262:return $(3,Te,Ue);case 218:return $(3,De,Ue);case 219:return $(1,ft,Ue);case 211:return E&&Er(Ue)&&Ue.expression.kind===108&&E.add(Ue.name.escapedText),un(Ue,q,e);case 212:return E&&Ue.expression.kind===108&&(S=!0),un(Ue,q,e);case 177:return $(3,_e,Ue);case 178:return $(3,be,Ue);case 176:return $(3,Ae,Ue);case 263:case 231:return $(3,de,Ue);default:return un(Ue,q,e)}}function H(Ue){if(ene(Ue))switch(Ue.kind){case 243:return le(Ue);case 248:return Z(Ue);case 249:return Ee(Ue);case 250:return ce(Ue);case 299:return ee(Ue);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return un(Ue,H,e);default:return x.assertNever(Ue,"Unhandled node.")}return q(Ue)}function ee(Ue){let Rt=new Set;he(Ue.variableDeclaration,Rt);let mn;if(Rt.forEach((qr,ni)=>{v.has(ni)&&(mn||(mn=new Set(v)),mn.delete(ni))}),mn){let qr=v;v=mn;let ni=un(Ue,H,e);return v=qr,ni}else return un(Ue,H,e)}function le(Ue){if(Le(Ue.declarationList)){let Rt=Ke(Ue.declarationList,!1);return Rt?t.createExpressionStatement(Rt):void 0}return un(Ue,q,e)}function Ee(Ue){return t.updateForInStatement(Ue,Le(Ue.initializer)?Ke(Ue.initializer,!0):x.checkDefined(He(Ue.initializer,q,Up)),x.checkDefined(He(Ue.expression,q,lt)),Qd(Ue.statement,H,e))}function ce(Ue){return t.updateForOfStatement(Ue,He(Ue.awaitModifier,q,yj),Le(Ue.initializer)?Ke(Ue.initializer,!0):x.checkDefined(He(Ue.initializer,q,Up)),x.checkDefined(He(Ue.expression,q,lt)),Qd(Ue.statement,H,e))}function Z(Ue){let Rt=Ue.initializer;return t.updateForStatement(Ue,Le(Rt)?Ke(Rt,!1):He(Ue.initializer,q,Up),He(Ue.condition,q,lt),He(Ue.incrementor,q,lt),Qd(Ue.statement,H,e))}function pe(Ue){return oe()?un(Ue,q,e):mr(Ze(t.createYieldExpression(void 0,He(Ue.expression,q,lt)),Ue),Ue)}function Ae(Ue){let Rt=A;A=void 0;let mn=t.updateConstructorDeclaration(Ue,Dn(Ue.modifiers,q,ia),rl(Ue.parameters,q,e),Vt(Ue));return A=Rt,mn}function Oe(Ue){let Rt,mn=gc(Ue),qr=A;A=void 0;let ni=t.updateMethodDeclaration(Ue,Dn(Ue.modifiers,q,Ws),Ue.asteriskToken,Ue.name,void 0,void 0,Rt=mn&2?gn(Ue):rl(Ue.parameters,q,e),void 0,mn&2?On(Ue,Rt):Vt(Ue));return A=qr,ni}function _e(Ue){let Rt=A;A=void 0;let mn=t.updateGetAccessorDeclaration(Ue,Dn(Ue.modifiers,q,Ws),Ue.name,rl(Ue.parameters,q,e),void 0,Vt(Ue));return A=Rt,mn}function be(Ue){let Rt=A;A=void 0;let mn=t.updateSetAccessorDeclaration(Ue,Dn(Ue.modifiers,q,Ws),Ue.name,rl(Ue.parameters,q,e),Vt(Ue));return A=Rt,mn}function Te(Ue){let Rt,mn=A;A=void 0;let qr=gc(Ue),ni=t.updateFunctionDeclaration(Ue,Dn(Ue.modifiers,q,Ws),Ue.asteriskToken,Ue.name,void 0,Rt=qr&2?gn(Ue):rl(Ue.parameters,q,e),void 0,qr&2?On(Ue,Rt):Dp(Ue.body,q,e));return A=mn,ni}function De(Ue){let Rt,mn=A;A=void 0;let qr=gc(Ue),ni=t.updateFunctionExpression(Ue,Dn(Ue.modifiers,q,ia),Ue.asteriskToken,Ue.name,void 0,Rt=qr&2?gn(Ue):rl(Ue.parameters,q,e),void 0,qr&2?On(Ue,Rt):Dp(Ue.body,q,e));return A=mn,ni}function ft(Ue){let Rt,mn=gc(Ue);return t.updateArrowFunction(Ue,Dn(Ue.modifiers,q,ia),void 0,Rt=mn&2?gn(Ue):rl(Ue.parameters,q,e),void 0,Ue.equalsGreaterThanToken,mn&2?On(Ue,Rt):Dp(Ue.body,q,e))}function he({name:Ue},Rt){if(Me(Ue))Rt.add(Ue.escapedText);else for(let mn of Ue.elements)vc(mn)||he(mn,Rt)}function Le(Ue){return!!Ue&&yc(Ue)&&!(Ue.flags&7)&&Ue.declarations.some(ot)}function Ke(Ue,Rt){Dt(Ue);let mn=wC(Ue);return mn.length===0?Rt?He(t.converters.convertToAssignmentElementTarget(Ue.declarations[0].name),q,lt):void 0:t.inlineExpressions(nn(mn,Ge))}function Dt(Ue){an(Ue.declarations,st)}function st({name:Ue}){if(Me(Ue))s(Ue);else for(let Rt of Ue.elements)vc(Rt)||st(Rt)}function Ge(Ue){let Rt=la(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ue.name),Ue.initializer),Ue);return x.checkDefined(He(Rt,q,lt))}function ot({name:Ue}){if(Me(Ue))return v.has(Ue.escapedText);for(let Rt of Ue.elements)if(!vc(Rt)&&ot(Rt))return!0;return!1}function Vt(Ue){x.assertIsDefined(Ue.body);let Rt=E,mn=S;E=new Set,S=!1;let qr=Dp(Ue.body,q,e),ni=sl(Ue,_s);if(p>=2&&l.getNodeCheckFlags(Ue)&384&&(gc(ni)&3)!==3){if(Wt(),E.size){let so=S4(t,l,Ue,E);C[Fa(so)]=!0;let Jo=qr.statements.slice();vh(Jo,[so]),qr=t.updateBlock(qr,Jo)}S&&(l.getNodeCheckFlags(Ue)&256?$A(qr,y2):l.getNodeCheckFlags(Ue)&128&&$A(qr,v2))}return E=Rt,S=mn,qr}function jt(){x.assert(A);let Ue=t.createVariableDeclaration(A,void 0,void 0,t.createIdentifier("arguments")),Rt=t.createVariableStatement(void 0,[Ue]);return Sd(Rt),Zm(Rt,2097152),Rt}function gn(Ue){if(pk(Ue.parameters))return rl(Ue.parameters,q,e);let Rt=[];for(let qr of Ue.parameters){if(qr.initializer||qr.dotDotDotToken){if(Ue.kind===219){let ki=t.createParameterDeclaration(void 0,t.createToken(26),t.createUniqueName("args",8));Rt.push(ki)}break}let ni=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(qr.name,8));Rt.push(ni)}let mn=t.createNodeArray(Rt);return Ze(mn,Ue.parameters),mn}function On(Ue,Rt){let mn=pk(Ue.parameters)?void 0:rl(Ue.parameters,q,e);i();let ni=sl(Ue,Lo).type,ki=p<2?zt(ni):void 0,so=Ue.kind===219,Jo=A,ln=(l.getNodeCheckFlags(Ue)&512)!==0&&!A;ln&&(A=t.createUniqueName("arguments"));let Tn;if(mn)if(so){let et=[];x.assert(Rt.length<=Ue.parameters.length);for(let z=0;z<Ue.parameters.length;z++){x.assert(z<Rt.length);let Je=Ue.parameters[z],_t=Rt[z];if(x.assertNode(_t.name,Me),Je.initializer||Je.dotDotDotToken){x.assert(z===Rt.length-1),et.push(t.createSpreadElement(_t.name));break}et.push(_t.name)}Tn=t.createArrayLiteralExpression(et)}else Tn=t.createIdentifier("arguments");let ke=v;v=new Set;for(let et of Ue.parameters)he(et,v);let nt=E,tt=S;so||(E=new Set,S=!1);let yt=W(),re=en(Ue.body);re=t.updateBlock(re,t.mergeLexicalEnvironment(re.statements,o()));let Ce;if(so){if(Ce=r().createAwaiterHelper(yt,Tn,ki,mn,re),ln){let et=t.converters.convertToFunctionBlock(Ce);Ce=t.updateBlock(et,t.mergeLexicalEnvironment(et.statements,[jt()]))}}else{let et=[];et.push(t.createReturnStatement(r().createAwaiterHelper(yt,Tn,ki,mn,re)));let z=p>=2&&l.getNodeCheckFlags(Ue)&384;if(z&&(Wt(),E.size)){let _t=S4(t,l,Ue,E);C[Fa(_t)]=!0,vh(et,[_t])}ln&&vh(et,[jt()]);let Je=t.createBlock(et,!0);Ze(Je,Ue.body),z&&S&&(l.getNodeCheckFlags(Ue)&256?$A(Je,y2):l.getNodeCheckFlags(Ue)&128&&$A(Je,v2)),Ce=Je}return v=ke,so||(E=nt,S=tt,A=Jo),Ce}function en(Ue,Rt){return Do(Ue)?t.updateBlock(Ue,Dn(Ue.statements,H,Di,Rt)):t.converters.convertToFunctionBlock(x.checkDefined(He(Ue,H,U8)))}function zt(Ue){let Rt=Ue&&mL(Ue);if(Rt&&Su(Rt)){let mn=l.getTypeReferenceSerializationKind(Rt);if(mn===1||mn===0)return Rt}}function Wt(){h&1||(h|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function ei(Ue,Rt,mn){if(h&1&&cr(Rt)){let qr=l.getNodeCheckFlags(Rt)&384;if(qr!==m){let ni=m;m=qr,L(Ue,Rt,mn),m=ni;return}}else if(h&&C[Fa(Rt)]){let qr=m;m=0,L(Ue,Rt,mn),m=qr;return}L(Ue,Rt,mn)}function Ki(Ue,Rt){return Rt=G(Ue,Rt),Ue===1&&m?gi(Rt):Rt}function gi(Ue){switch(Ue.kind){case 211:return io(Ue);case 212:return Gn(Ue);case 213:return Nr(Ue)}return Ue}function io(Ue){return Ue.expression.kind===108?Ze(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ue.name),Ue):Ue}function Gn(Ue){return Ue.expression.kind===108?Jt(Ue.argumentExpression,Ue):Ue}function Nr(Ue){let Rt=Ue.expression;if(cu(Rt)){let mn=Er(Rt)?io(Rt):Gn(Rt);return t.createCallExpression(t.createPropertyAccessExpression(mn,"call"),void 0,[t.createThis(),...Ue.arguments])}return Ue}function cr(Ue){let Rt=Ue.kind;return Rt===263||Rt===176||Rt===174||Rt===177||Rt===178}function Jt(Ue,Rt){return m&256?Ze(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ue]),"value"),Rt):Ze(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ue]),Rt)}}function S4(e,t,r,i){let o=(t.getNodeCheckFlags(r)&256)!==0,s=[];return i.forEach((l,d)=>{let p=Ii(d),h=[];h.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,$n(e.createPropertyAccessExpression($n(e.createSuper(),8),p),8)))),o&&h.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment($n(e.createPropertyAccessExpression($n(e.createSuper(),8),p),8),e.createIdentifier("v"))))),s.push(e.createPropertyAssignment(p,e.createObjectLiteralExpression(h)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(s,!0)]))],2))}var Bze=pt({"src/compiler/transformers/es2017.ts"(){"use strict";wo()}});function tae(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistVariableDeclaration:s}=e,l=e.getEmitResolver(),d=e.getCompilerOptions(),p=Wa(d),h=e.onEmitNode;e.onEmitNode=Jo;let m=e.onSubstituteNode;e.onSubstituteNode=ba;let v=!1,E,S,A,C=0,R=0,L,G,U,K,F=[];return $f(e,fe);function oe(re,Ce){return R!==(R&~re|Ce)}function W(re,Ce){let et=R;return R=(R&~re|Ce)&3,et}function $(re){R=re}function de(re){G=pn(G,t.createVariableDeclaration(re))}function fe(re){if(re.isDeclarationFile)return re;L=re;let Ce=ft(re);return ag(Ce,e.readEmitHelpers()),L=void 0,G=void 0,Ce}function q(re){return ce(re,!1)}function H(re){return ce(re,!0)}function ee(re){if(re.kind!==134)return re}function le(re,Ce,et,z){if(oe(et,z)){let Je=W(et,z),_t=re(Ce);return $(Je),_t}return re(Ce)}function Ee(re){return un(re,q,e)}function ce(re,Ce){if(!(re.transformFlags&128))return re;switch(re.kind){case 223:return Z(re);case 229:return pe(re);case 253:return Ae(re);case 256:return Oe(re);case 210:return be(re);case 226:return Le(re,Ce);case 361:return Ke(re,Ce);case 299:return Dt(re);case 243:return st(re);case 260:return Ge(re);case 246:case 247:case 249:return le(Ee,re,0,2);case 250:return gn(re,void 0);case 248:return le(Vt,re,0,2);case 222:return jt(re);case 176:return le(io,re,2,1);case 174:return le(cr,re,2,1);case 177:return le(Gn,re,2,1);case 178:return le(Nr,re,2,1);case 262:return le(Jt,re,2,1);case 218:return le(Rt,re,2,1);case 219:return le(Ue,re,2,0);case 169:return Ki(re);case 244:return Te(re);case 217:return De(re,Ce);case 215:return he(re);case 211:return U&&Er(re)&&re.expression.kind===108&&U.add(re.name.escapedText),un(re,q,e);case 212:return U&&re.expression.kind===108&&(K=!0),un(re,q,e);case 263:case 231:return le(Ee,re,2,1);default:return un(re,q,e)}}function Z(re){return S&2&&S&1?mr(Ze(t.createYieldExpression(void 0,r().createAwaitHelper(He(re.expression,q,lt))),re),re):un(re,q,e)}function pe(re){if(S&2&&S&1){if(re.asteriskToken){let Ce=He(x.checkDefined(re.expression),q,lt);return mr(Ze(t.createYieldExpression(void 0,r().createAwaitHelper(t.updateYieldExpression(re,re.asteriskToken,Ze(r().createAsyncDelegatorHelper(Ze(r().createAsyncValuesHelper(Ce),Ce)),Ce)))),re),re)}return mr(Ze(t.createYieldExpression(void 0,zt(re.expression?He(re.expression,q,lt):t.createVoidZero())),re),re)}return un(re,q,e)}function Ae(re){return S&2&&S&1?t.updateReturnStatement(re,zt(re.expression?He(re.expression,q,lt):t.createVoidZero())):un(re,q,e)}function Oe(re){if(S&2){let Ce=R9(re);return Ce.kind===250&&Ce.awaitModifier?gn(Ce,re):t.restoreEnclosingLabel(He(Ce,q,Di,t.liftToBlock),re)}return un(re,q,e)}function _e(re){let Ce,et=[];for(let z of re)if(z.kind===305){Ce&&(et.push(t.createObjectLiteralExpression(Ce)),Ce=void 0);let Je=z.expression;et.push(He(Je,q,lt))}else Ce=pn(Ce,z.kind===303?t.createPropertyAssignment(z.name,He(z.initializer,q,lt)):He(z,q,Zh));return Ce&&et.push(t.createObjectLiteralExpression(Ce)),et}function be(re){if(re.transformFlags&65536){let Ce=_e(re.properties);Ce.length&&Ce[0].kind!==210&&Ce.unshift(t.createObjectLiteralExpression());let et=Ce[0];if(Ce.length>1){for(let z=1;z<Ce.length;z++)et=r().createAssignHelper([et,Ce[z]]);return et}else return r().createAssignHelper(Ce)}return un(re,q,e)}function Te(re){return un(re,H,e)}function De(re,Ce){return un(re,Ce?H:q,e)}function ft(re){let Ce=W(2,g9(re,d)?0:1);v=!1;let et=un(re,q,e),z=ro(et.statements,G&&[t.createVariableStatement(void 0,t.createVariableDeclarationList(G))]),Je=t.updateSourceFile(et,Ze(t.createNodeArray(z),re.statements));return $(Ce),Je}function he(re){return rH(e,re,q,L,de,0)}function Le(re,Ce){return nv(re)&&F2(re.left)?nT(re,q,e,1,!Ce):re.operatorToken.kind===28?t.updateBinaryExpression(re,He(re.left,H,lt),re.operatorToken,He(re.right,Ce?H:q,lt)):un(re,q,e)}function Ke(re,Ce){if(Ce)return un(re,H,e);let et;for(let Je=0;Je<re.elements.length;Je++){let _t=re.elements[Je],ze=He(_t,Je<re.elements.length-1?H:q,lt);(et||ze!==_t)&&(et||(et=re.elements.slice(0,Je)),et.push(ze))}let z=et?Ze(t.createNodeArray(et),re.elements):re.elements;return t.updateCommaListExpression(re,z)}function Dt(re){if(re.variableDeclaration&&ko(re.variableDeclaration.name)&&re.variableDeclaration.name.transformFlags&65536){let Ce=t.getGeneratedNameForNode(re.variableDeclaration.name),et=t.updateVariableDeclaration(re.variableDeclaration,re.variableDeclaration.name,void 0,void 0,Ce),z=v0(et,q,e,1),Je=He(re.block,q,Do);return ct(z)&&(Je=t.updateBlock(Je,[t.createVariableStatement(void 0,z),...Je.statements])),t.updateCatchClause(re,t.updateVariableDeclaration(re.variableDeclaration,Ce,void 0,void 0,void 0),Je)}return un(re,q,e)}function st(re){if(Wr(re,32)){let Ce=v;v=!0;let et=un(re,q,e);return v=Ce,et}return un(re,q,e)}function Ge(re){if(v){let Ce=v;v=!1;let et=ot(re,!0);return v=Ce,et}return ot(re,!1)}function ot(re,Ce){return ko(re.name)&&re.name.transformFlags&65536?v0(re,q,e,1,void 0,Ce):un(re,q,e)}function Vt(re){return t.updateForStatement(re,He(re.initializer,H,Up),He(re.condition,q,lt),He(re.incrementor,H,lt),Qd(re.statement,q,e))}function jt(re){return un(re,H,e)}function gn(re,Ce){let et=W(0,2);(re.initializer.transformFlags&65536||lC(re.initializer)&&F2(re.initializer))&&(re=On(re));let z=re.awaitModifier?Wt(re,Ce,et):t.restoreEnclosingLabel(un(re,q,e),Ce);return $(et),z}function On(re){let Ce=Ka(re.initializer);if(yc(Ce)||lC(Ce)){let et,z,Je=t.createTempVariable(void 0),_t=[wj(t,Ce,Je)];return Do(re.statement)?(Pr(_t,re.statement.statements),et=re.statement,z=re.statement.statements):re.statement&&(pn(_t,re.statement),et=re.statement,z=re.statement),t.updateForOfStatement(re,re.awaitModifier,Ze(t.createVariableDeclarationList([Ze(t.createVariableDeclaration(Je),re.initializer)],1),re.initializer),re.expression,Ze(t.createBlock(Ze(t.createNodeArray(_t),z),!0),et))}return re}function en(re,Ce,et){let z=t.createTempVariable(s),Je=t.createAssignment(z,Ce),_t=t.createExpressionStatement(Je);la(_t,re.expression);let ze=t.createAssignment(et,t.createFalse()),it=t.createExpressionStatement(ze);la(it,re.expression);let Ct=[_t,it],on=wj(t,re.initializer,z);Ct.push(He(on,q,Di));let Qt,Zt,V=Qd(re.statement,q,e);return Do(V)?(Pr(Ct,V.statements),Qt=V,Zt=V.statements):Ct.push(V),Ze(t.createBlock(Ze(t.createNodeArray(Ct),Zt),!0),Qt)}function zt(re){return S&1?t.createYieldExpression(void 0,r().createAwaitHelper(re)):t.createAwaitExpression(re)}function Wt(re,Ce,et){let z=He(re.expression,q,lt),Je=Me(z)?t.getGeneratedNameForNode(z):t.createTempVariable(void 0),_t=Me(z)?t.getGeneratedNameForNode(Je):t.createTempVariable(void 0),ze=t.createTempVariable(void 0),it=t.createTempVariable(s),Ct=t.createUniqueName("e"),on=t.getGeneratedNameForNode(Ct),Qt=t.createTempVariable(void 0),Zt=Ze(r().createAsyncValuesHelper(z),re.expression),V=t.createCallExpression(t.createPropertyAccessExpression(Je,"next"),void 0,[]),Re=t.createPropertyAccessExpression(_t,"done"),St=t.createPropertyAccessExpression(_t,"value"),M=t.createFunctionCallCall(Qt,Je,[]);s(Ct),s(Qt);let te=et&2?t.inlineExpressions([t.createAssignment(Ct,t.createVoidZero()),Zt]):Zt,j=$n(Ze(t.createForStatement($n(Ze(t.createVariableDeclarationList([t.createVariableDeclaration(ze,void 0,void 0,t.createTrue()),Ze(t.createVariableDeclaration(Je,void 0,void 0,te),re.expression),t.createVariableDeclaration(_t)]),re.expression),4194304),t.inlineExpressions([t.createAssignment(_t,zt(V)),t.createAssignment(it,Re),t.createLogicalNot(it)]),t.createAssignment(ze,t.createTrue()),en(re,St,ze)),re),512);return mr(j,re),t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(j,Ce)]),t.createCatchClause(t.createVariableDeclaration(on),$n(t.createBlock([t.createExpressionStatement(t.createAssignment(Ct,t.createObjectLiteralExpression([t.createPropertyAssignment("error",on)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([$n(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(t.createLogicalNot(ze),t.createLogicalNot(it)),t.createAssignment(Qt,t.createPropertyAccessExpression(Je,"return"))),t.createExpressionStatement(zt(M))),1)]),void 0,$n(t.createBlock([$n(t.createIfStatement(Ct,t.createThrowStatement(t.createPropertyAccessExpression(Ct,"error"))),1)]),1))]))}function ei(re){return x.assertNode(re,ao),Ki(re)}function Ki(re){return A?.has(re)?t.updateParameterDeclaration(re,void 0,re.dotDotDotToken,ko(re.name)?t.getGeneratedNameForNode(re):re.name,void 0,void 0,void 0):re.transformFlags&65536?t.updateParameterDeclaration(re,void 0,re.dotDotDotToken,t.getGeneratedNameForNode(re),void 0,void 0,He(re.initializer,q,lt)):un(re,q,e)}function gi(re){let Ce;for(let et of re.parameters)Ce?Ce.add(et):et.transformFlags&65536&&(Ce=new Set);return Ce}function io(re){let Ce=S,et=A;S=gc(re),A=gi(re);let z=t.updateConstructorDeclaration(re,re.modifiers,rl(re.parameters,ei,e),ni(re));return S=Ce,A=et,z}function Gn(re){let Ce=S,et=A;S=gc(re),A=gi(re);let z=t.updateGetAccessorDeclaration(re,re.modifiers,He(re.name,q,kl),rl(re.parameters,ei,e),void 0,ni(re));return S=Ce,A=et,z}function Nr(re){let Ce=S,et=A;S=gc(re),A=gi(re);let z=t.updateSetAccessorDeclaration(re,re.modifiers,He(re.name,q,kl),rl(re.parameters,ei,e),ni(re));return S=Ce,A=et,z}function cr(re){let Ce=S,et=A;S=gc(re),A=gi(re);let z=t.updateMethodDeclaration(re,S&1?Dn(re.modifiers,ee,Ws):re.modifiers,S&2?void 0:re.asteriskToken,He(re.name,q,kl),He(void 0,q,cy),void 0,S&2&&S&1?mn(re):rl(re.parameters,ei,e),void 0,S&2&&S&1?qr(re):ni(re));return S=Ce,A=et,z}function Jt(re){let Ce=S,et=A;S=gc(re),A=gi(re);let z=t.updateFunctionDeclaration(re,S&1?Dn(re.modifiers,ee,ia):re.modifiers,S&2?void 0:re.asteriskToken,re.name,void 0,S&2&&S&1?mn(re):rl(re.parameters,ei,e),void 0,S&2&&S&1?qr(re):ni(re));return S=Ce,A=et,z}function Ue(re){let Ce=S,et=A;S=gc(re),A=gi(re);let z=t.updateArrowFunction(re,re.modifiers,void 0,rl(re.parameters,ei,e),void 0,re.equalsGreaterThanToken,ni(re));return S=Ce,A=et,z}function Rt(re){let Ce=S,et=A;S=gc(re),A=gi(re);let z=t.updateFunctionExpression(re,S&1?Dn(re.modifiers,ee,ia):re.modifiers,S&2?void 0:re.asteriskToken,re.name,void 0,S&2&&S&1?mn(re):rl(re.parameters,ei,e),void 0,S&2&&S&1?qr(re):ni(re));return S=Ce,A=et,z}function mn(re){if(pk(re.parameters))return rl(re.parameters,q,e);let Ce=[];for(let z of re.parameters){if(z.initializer||z.dotDotDotToken)break;let Je=t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(z.name,8));Ce.push(Je)}let et=t.createNodeArray(Ce);return Ze(et,re.parameters),et}function qr(re){let Ce=pk(re.parameters)?void 0:rl(re.parameters,q,e);i();let et=U,z=K;U=new Set,K=!1;let Je=[],_t=t.updateBlock(re.body,Dn(re.body.statements,q,Di));_t=t.updateBlock(_t,t.mergeLexicalEnvironment(_t.statements,ki(o(),re)));let ze=t.createReturnStatement(r().createAsyncGeneratorHelper(t.createFunctionExpression(void 0,t.createToken(42),re.name&&t.getGeneratedNameForNode(re.name),void 0,Ce??[],void 0,_t),!!(R&1))),it=p>=2&&l.getNodeCheckFlags(re)&384;if(it){so();let on=S4(t,l,re,U);F[Fa(on)]=!0,vh(Je,[on])}Je.push(ze);let Ct=t.updateBlock(re.body,Je);return it&&K&&(l.getNodeCheckFlags(re)&256?$A(Ct,y2):l.getNodeCheckFlags(re)&128&&$A(Ct,v2)),U=et,K=z,Ct}function ni(re){i();let Ce=0,et=[],z=He(re.body,q,U8)??t.createBlock([]);Do(z)&&(Ce=t.copyPrologue(z.statements,et,!1,q)),Pr(et,ki(void 0,re));let Je=o();if(Ce>0||ct(et)||ct(Je)){let _t=t.converters.convertToFunctionBlock(z,!0);return vh(et,Je),Pr(et,_t.statements.slice(Ce)),t.updateBlock(_t,Ze(t.createNodeArray(et),_t.statements))}return z}function ki(re,Ce){let et=!1;for(let z of Ce.parameters)if(et){if(ko(z.name)){if(z.name.elements.length>0){let Je=v0(z,q,e,0,t.getGeneratedNameForNode(z));if(ct(Je)){let _t=t.createVariableDeclarationList(Je),ze=t.createVariableStatement(void 0,_t);$n(ze,2097152),re=pn(re,ze)}}else if(z.initializer){let Je=t.getGeneratedNameForNode(z),_t=He(z.initializer,q,lt),ze=t.createAssignment(Je,_t),it=t.createExpressionStatement(ze);$n(it,2097152),re=pn(re,it)}}else if(z.initializer){let Je=t.cloneNode(z.name);Ze(Je,z.name),$n(Je,96);let _t=He(z.initializer,q,lt);Zm(_t,3168);let ze=t.createAssignment(Je,_t);Ze(ze,z),$n(ze,3072);let it=t.createBlock([t.createExpressionStatement(ze)]);Ze(it,z),$n(it,3905);let Ct=t.createTypeCheck(t.cloneNode(z.name),"undefined"),on=t.createIfStatement(Ct,it);Sd(on),Ze(on,z),$n(on,2101056),re=pn(re,on)}}else if(z.transformFlags&65536){et=!0;let Je=v0(z,q,e,1,t.getGeneratedNameForNode(z),!1,!0);if(ct(Je)){let _t=t.createVariableDeclarationList(Je),ze=t.createVariableStatement(void 0,_t);$n(ze,2097152),re=pn(re,ze)}}return re}function so(){E&1||(E|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function Jo(re,Ce,et){if(E&1&&tt(Ce)){let z=l.getNodeCheckFlags(Ce)&384;if(z!==C){let Je=C;C=z,h(re,Ce,et),C=Je;return}}else if(E&&F[Fa(Ce)]){let z=C;C=0,h(re,Ce,et),C=z;return}h(re,Ce,et)}function ba(re,Ce){return Ce=m(re,Ce),re===1&&C?ln(Ce):Ce}function ln(re){switch(re.kind){case 211:return Tn(re);case 212:return ke(re);case 213:return nt(re)}return re}function Tn(re){return re.expression.kind===108?Ze(t.createPropertyAccessExpression(t.createUniqueName("_super",48),re.name),re):re}function ke(re){return re.expression.kind===108?yt(re.argumentExpression,re):re}function nt(re){let Ce=re.expression;if(cu(Ce)){let et=Er(Ce)?Tn(Ce):ke(Ce);return t.createCallExpression(t.createPropertyAccessExpression(et,"call"),void 0,[t.createThis(),...re.arguments])}return re}function tt(re){let Ce=re.kind;return Ce===263||Ce===176||Ce===174||Ce===177||Ce===178}function yt(re,Ce){return C&256?Ze(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[re]),"value"),Ce):Ze(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[re]),Ce)}}var Gze=pt({"src/compiler/transformers/es2018.ts"(){"use strict";wo()}});function nae(e){let t=e.factory;return $f(e,r);function r(s){return s.isDeclarationFile?s:un(s,i,e)}function i(s){if(!(s.transformFlags&64))return s;switch(s.kind){case 299:return o(s);default:return un(s,i,e)}}function o(s){return s.variableDeclaration?un(s,i,e):t.updateCatchClause(s,t.createVariableDeclaration(t.createTempVariable(void 0)),He(s.block,i,Do))}}var Vze=pt({"src/compiler/transformers/es2019.ts"(){"use strict";wo()}});function rae(e){let{factory:t,hoistVariableDeclaration:r}=e;return $f(e,i);function i(A){return A.isDeclarationFile?A:un(A,o,e)}function o(A){if(!(A.transformFlags&32))return A;switch(A.kind){case 213:{let C=p(A,!1);return x.assertNotNode(C,pI),C}case 211:case 212:if(yd(A)){let C=m(A,!1,!1);return x.assertNotNode(C,pI),C}return un(A,o,e);case 226:return A.operatorToken.kind===61?E(A):un(A,o,e);case 220:return S(A);default:return un(A,o,e)}}function s(A){x.assertNotNode(A,z8);let C=[A];for(;!A.questionDotToken&&!a0(A);)A=Fo(jf(A.expression),yd),x.assertNotNode(A,z8),C.unshift(A);return{expression:A.expression,chain:C}}function l(A,C,R){let L=h(A.expression,C,R);return pI(L)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(A,L.expression),L.thisArg):t.updateParenthesizedExpression(A,L)}function d(A,C,R){if(yd(A))return m(A,C,R);let L=He(A.expression,o,lt);x.assertNotNode(L,pI);let G;return C&&(g0(L)?G=L:(G=t.createTempVariable(r),L=t.createAssignment(G,L))),L=A.kind===211?t.updatePropertyAccessExpression(A,L,He(A.name,o,Me)):t.updateElementAccessExpression(A,L,He(A.argumentExpression,o,lt)),G?t.createSyntheticReferenceExpression(L,G):L}function p(A,C){if(yd(A))return m(A,C,!1);if(uu(A.expression)&&yd(Ka(A.expression))){let R=l(A.expression,!0,!1),L=Dn(A.arguments,o,lt);return pI(R)?Ze(t.createFunctionCallCall(R.expression,R.thisArg,L),A):t.updateCallExpression(A,R,void 0,L)}return un(A,o,e)}function h(A,C,R){switch(A.kind){case 217:return l(A,C,R);case 211:case 212:return d(A,C,R);case 213:return p(A,C);default:return He(A,o,lt)}}function m(A,C,R){let{expression:L,chain:G}=s(A),U=h(jf(L),gS(G[0]),!1),K=pI(U)?U.thisArg:void 0,F=pI(U)?U.expression:U,oe=t.restoreOuterExpressions(L,F,8);g0(F)||(F=t.createTempVariable(r),oe=t.createAssignment(F,oe));let W=F,$;for(let fe=0;fe<G.length;fe++){let q=G[fe];switch(q.kind){case 211:case 212:fe===G.length-1&&C&&(g0(W)?$=W:($=t.createTempVariable(r),W=t.createAssignment($,W))),W=q.kind===211?t.createPropertyAccessExpression(W,He(q.name,o,Me)):t.createElementAccessExpression(W,He(q.argumentExpression,o,lt));break;case 213:fe===0&&K?(ws(K)||(K=t.cloneNode(K),Zm(K,3072)),W=t.createFunctionCallCall(W,K.kind===108?t.createThis():K,Dn(q.arguments,o,lt))):W=t.createCallExpression(W,void 0,Dn(q.arguments,o,lt));break}mr(W,q)}let de=R?t.createConditionalExpression(v(oe,F,!0),void 0,t.createTrue(),void 0,t.createDeleteExpression(W)):t.createConditionalExpression(v(oe,F,!0),void 0,t.createVoidZero(),void 0,W);return Ze(de,A),$?t.createSyntheticReferenceExpression(de,$):de}function v(A,C,R){return t.createBinaryExpression(t.createBinaryExpression(A,t.createToken(R?37:38),t.createNull()),t.createToken(R?57:56),t.createBinaryExpression(C,t.createToken(R?37:38),t.createVoidZero()))}function E(A){let C=He(A.left,o,lt),R=C;return g0(C)||(R=t.createTempVariable(r),C=t.createAssignment(R,C)),Ze(t.createConditionalExpression(v(C,R),void 0,R,void 0,He(A.right,o,lt)),A)}function S(A){return yd(Ka(A.expression))?mr(h(A.expression,!1,!0),A):t.updateDeleteExpression(A,He(A.expression,o,lt))}}var jze=pt({"src/compiler/transformers/es2020.ts"(){"use strict";wo()}});function iae(e){let{hoistVariableDeclaration:t,factory:r}=e;return $f(e,i);function i(l){return l.isDeclarationFile?l:un(l,o,e)}function o(l){return l.transformFlags&16?cV(l)?s(l):un(l,o,e):l}function s(l){let d=l.operatorToken,p=MN(d.kind),h=Ka(He(l.left,o,Tu)),m=h,v=Ka(He(l.right,o,lt));if(ds(h)){let E=g0(h.expression),S=E?h.expression:r.createTempVariable(t),A=E?h.expression:r.createAssignment(S,h.expression);if(Er(h))m=r.createPropertyAccessExpression(S,h.name),h=r.createPropertyAccessExpression(A,h.name);else{let C=g0(h.argumentExpression),R=C?h.argumentExpression:r.createTempVariable(t);m=r.createElementAccessExpression(S,R),h=r.createElementAccessExpression(A,C?h.argumentExpression:r.createAssignment(R,h.argumentExpression))}}return r.createBinaryExpression(h,p,r.createParenthesizedExpression(r.createAssignment(m,v)))}}var Uze=pt({"src/compiler/transformers/es2021.ts"(){"use strict";wo()}});function oae(e){let{factory:t,getEmitHelperFactory:r,hoistVariableDeclaration:i,startLexicalEnvironment:o,endLexicalEnvironment:s}=e,l,d,p,h;return $f(e,m);function m(le){if(le.isDeclarationFile)return le;let Ee=He(le,v,Li);return ag(Ee,e.readEmitHelpers()),d=void 0,l=void 0,p=void 0,Ee}function v(le){if(!(le.transformFlags&4))return le;switch(le.kind){case 312:return E(le);case 241:return S(le);case 248:return A(le);case 250:return C(le);case 255:return L(le);default:return un(le,v,e)}}function E(le){let Ee=oH(le.statements);if(Ee){o(),l=new SI,d=[];let ce=WSe(le.statements),Z=[];Pr(Z,ck(le.statements,v,Di,0,ce));let pe=ce;for(;pe<le.statements.length;){let _e=le.statements[pe];if(lae(_e)!==0){pe>ce&&Pr(Z,Dn(le.statements,v,Di,ce,pe-ce));break}pe++}x.assert(pe<le.statements.length,"Should have encountered at least one 'using' statement.");let Ae=H(),Oe=G(le.statements,pe,le.statements.length,Ae,Z);return l.size&&pn(Z,t.createExportDeclaration(void 0,!1,t.createNamedExports(bo(l.values())))),Pr(Z,s()),d.length&&Z.push(t.createVariableStatement(t.createModifiersFromModifierFlags(32),t.createVariableDeclarationList(d,1))),Pr(Z,ee(Oe,Ae,Ee===2)),h&&Z.push(t.createExportAssignment(void 0,!0,h)),t.updateSourceFile(le,Z)}return un(le,v,e)}function S(le){let Ee=oH(le.statements);if(Ee){let ce=WSe(le.statements),Z=H();return t.updateBlock(le,[...ck(le.statements,v,Di,0,ce),...ee(G(le.statements,ce,le.statements.length,Z,void 0),Z,Ee===2)])}return un(le,v,e)}function A(le){return le.initializer&&aae(le.initializer)?He(t.createBlock([t.createVariableStatement(void 0,le.initializer),t.updateForStatement(le,void 0,le.condition,le.incrementor,le.statement)]),v,Di):un(le,v,e)}function C(le){if(aae(le.initializer)){let Ee=le.initializer;x.assertNode(Ee,aae),x.assert(Ee.declarations.length===1,"ForInitializer may only have one declaration");let ce=Ee.declarations[0];x.assert(!ce.initializer,"ForInitializer may not have an initializer");let Z=sae(Ee)===2,pe=t.getGeneratedNameForNode(ce.name),Ae=t.updateVariableDeclaration(ce,ce.name,void 0,void 0,pe),Oe=t.createVariableDeclarationList([Ae],Z?6:4),_e=t.createVariableStatement(void 0,Oe);return He(t.updateForOfStatement(le,le.awaitModifier,t.createVariableDeclarationList([t.createVariableDeclaration(pe)],2),le.expression,Do(le.statement)?t.updateBlock(le.statement,[_e,...le.statement.statements]):t.createBlock([_e,le.statement],!0)),v,Di)}return un(le,v,e)}function R(le,Ee){return oH(le.statements)!==0?zx(le)?t.updateCaseClause(le,He(le.expression,v,lt),G(le.statements,0,le.statements.length,Ee,void 0)):t.updateDefaultClause(le,G(le.statements,0,le.statements.length,Ee,void 0)):un(le,v,e)}function L(le){let Ee=qze(le.caseBlock.clauses);if(Ee){let ce=H();return ee([t.updateSwitchStatement(le,He(le.expression,v,lt),t.updateCaseBlock(le.caseBlock,le.caseBlock.clauses.map(Z=>R(Z,ce))))],ce,Ee===2)}return un(le,v,e)}function G(le,Ee,ce,Z,pe){let Ae=[];for(let be=Ee;be<ce;be++){let Te=le[be],De=lae(Te);if(De){x.assertNode(Te,cl);let he=[];for(let Le of Te.declarationList.declarations){if(!Me(Le.name)){he.length=0;break}Fu(Le)&&(Le=Uu(e,Le));let Ke=He(Le.initializer,v,lt)??t.createVoidZero();he.push(t.updateVariableDeclaration(Le,Le.name,void 0,void 0,r().createAddDisposableResourceHelper(Z,Ke,De===2)))}if(he.length){let Le=t.createVariableDeclarationList(he,2);mr(Le,Te.declarationList),Ze(Le,Te.declarationList),Oe(t.updateVariableStatement(Te,void 0,Le));continue}}let ft=v(Te);oo(ft)?ft.forEach(Oe):ft&&Oe(ft)}return Ae;function Oe(be){x.assertNode(be,Di),pn(Ae,_e(be))}function _e(be){if(!pe)return be;switch(be.kind){case 272:case 271:case 278:case 262:return U(be,pe);case 277:return K(be);case 263:return W(be);case 243:return $(be)}return be}}function U(le,Ee){Ee.push(le)}function K(le){return le.isExportEquals?oe(le):F(le)}function F(le){if(p)return le;p=t.createUniqueName("_default",56),q(p,!0,"default",le);let Ee=le.expression,ce=Rl(Ee);Fu(ce)&&(ce=Uu(e,ce,!1,"default"),Ee=t.restoreOuterExpressions(Ee,ce));let Z=t.createAssignment(p,Ee);return t.createExpressionStatement(Z)}function oe(le){if(h)return le;h=t.createUniqueName("_default",56),i(h);let Ee=t.createAssignment(h,le.expression);return t.createExpressionStatement(Ee)}function W(le){if(!le.name&&p)return le;let Ee=Wr(le,32),ce=Wr(le,2048),Z=t.converters.convertToClassExpression(le);return le.name&&(q(t.getLocalName(le),Ee&&!ce,void 0,le),Z=t.createAssignment(t.getDeclarationName(le),Z),Fu(Z)&&(Z=Uu(e,Z,!1)),mr(Z,le),la(Z,le),Ol(Z,le)),ce&&!p&&(p=t.createUniqueName("_default",56),q(p,!0,"default",le),Z=t.createAssignment(p,Z),Fu(Z)&&(Z=Uu(e,Z,!1,"default")),mr(Z,le)),t.createExpressionStatement(Z)}function $(le){let Ee,ce=Wr(le,32);for(let Z of le.declarationList.declarations)fe(Z,ce,Z),Z.initializer&&(Ee=pn(Ee,de(Z)));if(Ee){let Z=t.createExpressionStatement(t.inlineExpressions(Ee));return mr(Z,le),Ol(Z,le),la(Z,le),Z}}function de(le){x.assertIsDefined(le.initializer);let Ee;Me(le.name)?(Ee=t.cloneNode(le.name),$n(Ee,ya(Ee)&-114689)):Ee=t.converters.convertToAssignmentPattern(le.name);let ce=t.createAssignment(Ee,le.initializer);return mr(ce,le),Ol(ce,le),la(ce,le),ce}function fe(le,Ee,ce){if(ko(le.name))for(let Z of le.name.elements)vc(Z)||fe(Z,Ee,ce);else q(le.name,Ee,void 0,ce)}function q(le,Ee,ce,Z){let pe=ws(le)?le:t.cloneNode(le);if(Ee){if(ce===void 0&&!lg(pe)){let be=t.createVariableDeclaration(pe);Z&&mr(be,Z),d.push(be);return}let Ae=ce!==void 0?pe:void 0,Oe=ce!==void 0?ce:pe,_e=t.createExportSpecifier(!1,Ae,Oe);Z&&mr(_e,Z),l.set(pe,_e)}i(pe)}function H(){return t.createUniqueName("env")}function ee(le,Ee,ce){let Z=[],pe=t.createObjectLiteralExpression([t.createPropertyAssignment("stack",t.createArrayLiteralExpression()),t.createPropertyAssignment("error",t.createVoidZero()),t.createPropertyAssignment("hasError",t.createFalse())]),Ae=t.createVariableDeclaration(Ee,void 0,void 0,pe),Oe=t.createVariableDeclarationList([Ae],2),_e=t.createVariableStatement(void 0,Oe);Z.push(_e);let be=t.createBlock(le,!0),Te=t.createUniqueName("e"),De=t.createCatchClause(Te,t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ee,"error"),Te)),t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(Ee,"hasError"),t.createTrue()))],!0)),ft;if(ce){let Le=t.createUniqueName("result");ft=t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Le,void 0,void 0,r().createDisposeResourcesHelper(Ee))],2)),t.createIfStatement(Le,t.createExpressionStatement(t.createAwaitExpression(Le)))],!0)}else ft=t.createBlock([t.createExpressionStatement(r().createDisposeResourcesHelper(Ee))],!0);let he=t.createTryStatement(be,De,ft);return Z.push(he),Z}}function WSe(e){for(let t=0;t<e.length;t++)if(!Hf(e[t])&&!dL(e[t]))return t;return 0}function aae(e){return yc(e)&&sae(e)!==0}function sae(e){return(e.flags&7)===6?2:(e.flags&7)===4?1:0}function Hze(e){return sae(e.declarationList)}function lae(e){return cl(e)?Hze(e):0}function oH(e){let t=0;for(let r of e){let i=lae(r);if(i===2)return 2;i>t&&(t=i)}return t}function qze(e){let t=0;for(let r of e){let i=oH(r.statements);if(i===2)return 2;i>t&&(t=i)}return t}var Jze=pt({"src/compiler/transformers/esnext.ts"(){"use strict";wo()}});function cae(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getCompilerOptions(),o,s;return $f(e,v);function l(){if(s.filenameDeclaration)return s.filenameDeclaration.name;let he=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(o.fileName));return s.filenameDeclaration=he,s.filenameDeclaration.name}function d(he){return i.jsx===5?"jsxDEV":he?"jsxs":"jsx"}function p(he){let Le=d(he);return m(Le)}function h(){return m("Fragment")}function m(he){var Le,Ke;let Dt=he==="createElement"?s.importSpecifier:sF(s.importSpecifier,i),st=(Ke=(Le=s.utilizedImplicitRuntimeImports)==null?void 0:Le.get(Dt))==null?void 0:Ke.get(he);if(st)return st.name;s.utilizedImplicitRuntimeImports||(s.utilizedImplicitRuntimeImports=new Map);let Ge=s.utilizedImplicitRuntimeImports.get(Dt);Ge||(Ge=new Map,s.utilizedImplicitRuntimeImports.set(Dt,Ge));let ot=t.createUniqueName(`_${he}`,112),Vt=t.createImportSpecifier(!1,t.createIdentifier(he),ot);return Ore(ot,Vt),Ge.set(he,Vt),ot}function v(he){if(he.isDeclarationFile)return he;o=he,s={},s.importSpecifier=aF(i,he);let Le=un(he,E,e);ag(Le,e.readEmitHelpers());let Ke=Le.statements;if(s.filenameDeclaration&&(Ke=TS(Ke.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([s.filenameDeclaration],2)))),s.utilizedImplicitRuntimeImports){for(let[Dt,st]of bo(s.utilizedImplicitRuntimeImports.entries()))if(wl(he)){let Ge=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(bo(st.values()))),t.createStringLiteral(Dt),void 0);oy(Ge,!1),Ke=TS(Ke.slice(),Ge)}else if(sp(he)){let Ge=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(bo(st.values(),ot=>t.createBindingElement(void 0,ot.propertyName,ot.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(Dt)]))],2));oy(Ge,!1),Ke=TS(Ke.slice(),Ge)}}return Ke!==Le.statements&&(Le=t.updateSourceFile(Le,Ke)),s=void 0,Le}function E(he){return he.transformFlags&2?S(he):he}function S(he){switch(he.kind){case 284:return G(he,!1);case 285:return U(he,!1);case 288:return K(he,!1);case 294:return ft(he);default:return un(he,E,e)}}function A(he){switch(he.kind){case 12:return pe(he);case 294:return ft(he);case 284:return G(he,!0);case 285:return U(he,!0);case 288:return K(he,!0);default:return x.failBadSyntaxKind(he)}}function C(he){return he.properties.some(Le=>Hl(Le)&&(Me(Le.name)&&ar(Le.name)==="__proto__"||ca(Le.name)&&Le.name.text==="__proto__"))}function R(he){let Le=!1;for(let Ke of he.attributes.properties)if(mI(Ke)&&(!fa(Ke.expression)||Ke.expression.properties.some(lv)))Le=!0;else if(Le&&r_(Ke)&&Me(Ke.name)&&Ke.name.escapedText==="key")return!0;return!1}function L(he){return s.importSpecifier===void 0||R(he)}function G(he,Le){return(L(he.openingElement)?de:W)(he.openingElement,he.children,Le,he)}function U(he,Le){return(L(he)?de:W)(he,void 0,Le,he)}function K(he,Le){return(s.importSpecifier===void 0?q:fe)(he.openingFragment,he.children,Le,he)}function F(he){let Le=oe(he);return Le&&t.createObjectLiteralExpression([Le])}function oe(he){let Le=_x(he);if(yn(Le)===1&&!Le[0].dotDotDotToken){let Dt=A(Le[0]);return Dt&&t.createPropertyAssignment("children",Dt)}let Ke=Fi(he,A);return yn(Ke)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(Ke)):void 0}function W(he,Le,Ke,Dt){let st=Te(he),Ge=Le&&Le.length?oe(Le):void 0,ot=Dr(he.attributes.properties,gn=>!!gn.name&&Me(gn.name)&&gn.name.escapedText==="key"),Vt=ot?Cr(he.attributes.properties,gn=>gn!==ot):he.attributes.properties,jt=yn(Vt)?ee(Vt,Ge):t.createObjectLiteralExpression(Ge?[Ge]:je);return $(st,jt,ot,Le||je,Ke,Dt)}function $(he,Le,Ke,Dt,st,Ge){var ot;let Vt=_x(Dt),jt=yn(Vt)>1||!!((ot=Vt[0])!=null&&ot.dotDotDotToken),gn=[he,Le];if(Ke&&gn.push(Z(Ke.initializer)),i.jsx===5){let en=sl(o);if(en&&Li(en)){Ke===void 0&&gn.push(t.createVoidZero()),gn.push(jt?t.createTrue():t.createFalse());let zt=$a(en,Ge.pos);gn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",l()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(zt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(zt.character+1))])),gn.push(t.createThis())}}let On=Ze(t.createCallExpression(p(jt),void 0,gn),Ge);return st&&Sd(On),On}function de(he,Le,Ke,Dt){let st=Te(he),Ge=he.attributes.properties,ot=yn(Ge)?ee(Ge):t.createNull(),Vt=s.importSpecifier===void 0?Oj(t,e.getEmitResolver().getJsxFactoryEntity(o),i.reactNamespace,he):m("createElement"),jt=uie(t,Vt,st,ot,Fi(Le,A),Dt);return Ke&&Sd(jt),jt}function fe(he,Le,Ke,Dt){let st;if(Le&&Le.length){let Ge=F(Le);Ge&&(st=Ge)}return $(h(),st||t.createObjectLiteralExpression([]),void 0,Le,Ke,Dt)}function q(he,Le,Ke,Dt){let st=pie(t,e.getEmitResolver().getJsxFactoryEntity(o),e.getEmitResolver().getJsxFragmentFactoryEntity(o),i.reactNamespace,Fi(Le,A),he,Dt);return Ke&&Sd(st),st}function H(he){return fa(he.expression)&&!C(he.expression)?sc(he.expression.properties,Le=>x.checkDefined(He(Le,E,Zh))):t.createSpreadAssignment(x.checkDefined(He(he.expression,E,lt)))}function ee(he,Le){let Ke=Wa(i);return Ke&&Ke>=5?t.createObjectLiteralExpression(le(he,Le)):Ee(he,Le)}function le(he,Le){let Ke=Ff(Q5(he,mI,(Dt,st)=>Ff(nn(Dt,Ge=>st?H(Ge):ce(Ge)))));return Le&&Ke.push(Le),Ke}function Ee(he,Le){let Ke=[],Dt=[];for(let Ge of he){if(mI(Ge)){if(fa(Ge.expression)&&!C(Ge.expression)){for(let ot of Ge.expression.properties){if(lv(ot)){st(),Ke.push(x.checkDefined(He(ot.expression,E,lt)));continue}Dt.push(x.checkDefined(He(ot,E)))}continue}st(),Ke.push(x.checkDefined(He(Ge.expression,E,lt)));continue}Dt.push(ce(Ge))}return Le&&Dt.push(Le),st(),Ke.length&&!fa(Ke[0])&&Ke.unshift(t.createObjectLiteralExpression()),x_(Ke)||r().createAssignHelper(Ke);function st(){Dt.length&&(Ke.push(t.createObjectLiteralExpression(Dt)),Dt=[])}}function ce(he){let Le=De(he),Ke=Z(he.initializer);return t.createPropertyAssignment(Le,Ke)}function Z(he){if(he===void 0)return t.createTrue();if(he.kind===11){let Le=he.singleQuote!==void 0?he.singleQuote:!IW(he,o),Ke=t.createStringLiteral(be(he.text)||he.text,Le);return Ze(Ke,he)}return he.kind===294?he.expression===void 0?t.createTrue():x.checkDefined(He(he.expression,E,lt)):Ch(he)?G(he,!1):KS(he)?U(he,!1):c0(he)?K(he,!1):x.failBadSyntaxKind(he)}function pe(he){let Le=Ae(he.text);return Le===void 0?void 0:t.createStringLiteral(Le)}function Ae(he){let Le,Ke=0,Dt=-1;for(let st=0;st<he.length;st++){let Ge=he.charCodeAt(st);vd(Ge)?(Ke!==-1&&Dt!==-1&&(Le=Oe(Le,he.substr(Ke,Dt-Ke+1))),Ke=-1):jm(Ge)||(Dt=st,Ke===-1&&(Ke=st))}return Ke!==-1?Oe(Le,he.substr(Ke)):Le}function Oe(he,Le){let Ke=_e(Le);return he===void 0?Ke:he+" "+Ke}function _e(he){return he.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,(Le,Ke,Dt,st,Ge,ot,Vt)=>{if(Ge)return F1(parseInt(Ge,10));if(ot)return F1(parseInt(ot,16));{let jt=FSe.get(Vt);return jt?F1(jt):Le}})}function be(he){let Le=_e(he);return Le===he?void 0:Le}function Te(he){if(he.kind===284)return Te(he.openingElement);{let Le=he.tagName;return Me(Le)&&gx(Le.escapedText)?t.createStringLiteral(ar(Le)):Em(Le)?t.createStringLiteral(ar(Le.namespace)+":"+ar(Le.name)):P2(t,Le)}}function De(he){let Le=he.name;if(Me(Le)){let Ke=ar(Le);return/^[A-Za-z_]\w*$/.test(Ke)?Le:t.createStringLiteral(Ke)}return t.createStringLiteral(ar(Le.namespace)+":"+ar(Le.name))}function ft(he){let Le=He(he.expression,E,lt);return he.dotDotDotToken?t.createSpreadElement(Le):Le}}var FSe,Kze=pt({"src/compiler/transformers/jsx.ts"(){"use strict";wo(),FSe=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function dae(e){let{factory:t,hoistVariableDeclaration:r}=e;return $f(e,i);function i(p){return p.isDeclarationFile?p:un(p,o,e)}function o(p){if(!(p.transformFlags&512))return p;switch(p.kind){case 226:return s(p);default:return un(p,o,e)}}function s(p){switch(p.operatorToken.kind){case 68:return l(p);case 43:return d(p);default:return un(p,o,e)}}function l(p){let h,m,v=He(p.left,o,lt),E=He(p.right,o,lt);if(Rs(v)){let S=t.createTempVariable(r),A=t.createTempVariable(r);h=Ze(t.createElementAccessExpression(Ze(t.createAssignment(S,v.expression),v.expression),Ze(t.createAssignment(A,v.argumentExpression),v.argumentExpression)),v),m=Ze(t.createElementAccessExpression(S,A),v)}else if(Er(v)){let S=t.createTempVariable(r);h=Ze(t.createPropertyAccessExpression(Ze(t.createAssignment(S,v.expression),v.expression),v.name),v),m=Ze(t.createPropertyAccessExpression(S,v.name),v)}else h=v,m=v;return Ze(t.createAssignment(h,Ze(t.createGlobalMethodCall("Math","pow",[m,E]),p)),p)}function d(p){let h=He(p.left,o,lt),m=He(p.right,o,lt);return Ze(t.createGlobalMethodCall("Math","pow",[h,m]),p)}}var Xze=pt({"src/compiler/transformers/es2016.ts"(){"use strict";wo()}});function zSe(e,t){return{kind:e,expression:t}}function uae(e){let{factory:t,getEmitHelperFactory:r,startLexicalEnvironment:i,resumeLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.onSubstituteNode,m=e.onEmitNode;e.onEmitNode=Lp,e.onSubstituteNode=nf;let v,E,S,A;function C(Y){A=pn(A,t.createVariableDeclaration(Y))}let R,L;return $f(e,G);function G(Y){if(Y.isDeclarationFile)return Y;v=Y,E=Y.text;let Ye=ee(Y);return ag(Ye,e.readEmitHelpers()),v=void 0,E=void 0,A=void 0,S=0,Ye}function U(Y,Ye){let xt=S;return S=(S&~Y|Ye)&32767,xt}function K(Y,Ye,xt){S=(S&~Ye|xt)&-32768|Y}function F(Y){return(S&8192)!==0&&Y.kind===253&&!Y.expression}function oe(Y){return Y.transformFlags&4194304&&(Kf(Y)||HS(Y)||Qre(Y)||pN(Y)||fN(Y)||zx(Y)||_N(Y)||JS(Y)||u0(Y)||s0(Y)||Xv(Y,!1)||Do(Y))}function W(Y){return(Y.transformFlags&1024)!==0||R!==void 0||S&8192&&oe(Y)||Xv(Y,!1)&&$i(Y)||(Uf(Y)&1)!==0}function $(Y){return W(Y)?H(Y,!1):Y}function de(Y){return W(Y)?H(Y,!0):Y}function fe(Y){if(W(Y)){let Ye=sl(Y);if(xo(Ye)&&jl(Ye)){let xt=U(32670,16449),Nt=H(Y,!1);return K(xt,229376,0),Nt}return H(Y,!1)}return Y}function q(Y){return Y.kind===108?Nl(Y,!0):$(Y)}function H(Y,Ye){switch(Y.kind){case 126:return;case 263:return Te(Y);case 231:return De(Y);case 169:return ba(Y);case 262:return Qt(Y);case 219:return Ct(Y);case 218:return on(Y);case 260:return dn(Y);case 80:return _e(Y);case 261:return Ie(Y);case 255:return le(Y);case 269:return Ee(Y);case 241:return Re(Y,!1);case 252:case 251:return be(Y);case 256:return ti(Y);case 246:case 247:return Ar(Y,void 0);case 248:return Zi(Y,void 0);case 249:return ui(Y,void 0);case 250:return Mr(Y,void 0);case 244:return St(Y);case 210:return _o(Y);case 299:return pi(Y);case 304:return bc(Y);case 167:return ys(Y);case 209:return Za(Y);case 213:return Ec(Y);case 214:return Nf(Y);case 217:return M(Y,Ye);case 226:return te(Y,Ye);case 361:return j(Y,Ye);case 15:case 16:case 17:case 18:return Oo(Y);case 11:return Cl(Y);case 9:return Kl(Y);case 215:return Bs(Y);case 228:return Ks(Y);case 229:return Jl(Y);case 230:return Po(Y);case 108:return Nl(Y,!1);case 110:return Ae(Y);case 236:return Sc(Y);case 174:return No(Y);case 177:case 178:return Qs(Y);case 243:return Pe(Y);case 253:return pe(Y);case 222:return Oe(Y);default:return un(Y,$,e)}}function ee(Y){let Ye=U(8064,64),xt=[],Nt=[];i();let k=t.copyPrologue(Y.statements,xt,!1,$);return Pr(Nt,Dn(Y.statements,$,Di,k)),A&&Nt.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(A))),t.mergeLexicalEnvironment(xt,s()),re(xt,Y),K(Ye,0,0),t.updateSourceFile(Y,Ze(t.createNodeArray(ro(xt,Nt)),Y.statements))}function le(Y){if(R!==void 0){let Ye=R.allowedNonLabeledJumps;R.allowedNonLabeledJumps|=2;let xt=un(Y,$,e);return R.allowedNonLabeledJumps=Ye,xt}return un(Y,$,e)}function Ee(Y){let Ye=U(7104,0),xt=un(Y,$,e);return K(Ye,0,0),xt}function ce(Y){return mr(t.createReturnStatement(Z()),Y)}function Z(){return t.createUniqueName("_this",48)}function pe(Y){return R?(R.nonLocalJumps|=8,F(Y)&&(Y=ce(Y)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Y.expression?x.checkDefined(He(Y.expression,$,lt)):t.createVoidZero())]))):F(Y)?ce(Y):un(Y,$,e)}function Ae(Y){return S|=65536,S&2&&!(S&16384)&&(S|=131072),R?S&2?(R.containsLexicalThis=!0,Y):R.thisName||(R.thisName=t.createUniqueName("this")):Y}function Oe(Y){return un(Y,de,e)}function _e(Y){return R&&p.isArgumentsLocalBinding(Y)?R.argumentsName||(R.argumentsName=t.createUniqueName("arguments")):Y.flags&256?mr(Ze(t.createIdentifier(Ii(Y.escapedText)),Y),Y):Y}function be(Y){if(R){let Ye=Y.kind===252?2:4;if(!(Y.label&&R.labels&&R.labels.get(ar(Y.label))||!Y.label&&R.allowedNonLabeledJumps&Ye)){let Nt,k=Y.label;k?Y.kind===252?(Nt=`break-${k.escapedText}`,X(R,!0,ar(k),Nt)):(Nt=`continue-${k.escapedText}`,X(R,!1,ar(k),Nt)):Y.kind===252?(R.nonLocalJumps|=2,Nt="break"):(R.nonLocalJumps|=4,Nt="continue");let ge=t.createStringLiteral(Nt);if(R.loopOutParameters.length){let Xe=R.loopOutParameters,Mt;for(let Vn=0;Vn<Xe.length;Vn++){let jr=Ju(Xe[Vn],1);Vn===0?Mt=jr:Mt=t.createBinaryExpression(Mt,28,jr)}ge=t.createBinaryExpression(Mt,28,ge)}return t.createReturnStatement(ge)}}return un(Y,$,e)}function Te(Y){let Ye=t.createVariableDeclaration(t.getLocalName(Y,!0),void 0,void 0,ft(Y));mr(Ye,Y);let xt=[],Nt=t.createVariableStatement(void 0,t.createVariableDeclarationList([Ye]));if(mr(Nt,Y),Ze(Nt,Y),Sd(Nt),xt.push(Nt),Wr(Y,32)){let k=Wr(Y,2048)?t.createExportDefault(t.getLocalName(Y)):t.createExternalModuleExport(t.getLocalName(Y));mr(k,Nt),xt.push(k)}return R_(xt)}function De(Y){return ft(Y)}function ft(Y){Y.name&&fu();let Ye=qE(Y),xt=t.createFunctionExpression(void 0,void 0,void 0,void 0,Ye?[t.createParameterDeclaration(void 0,void 0,vl())]:[],void 0,he(Y,Ye));$n(xt,ya(Y)&131072|1048576);let Nt=t.createPartiallyEmittedExpression(xt);Rx(Nt,Y.end),$n(Nt,3072);let k=t.createPartiallyEmittedExpression(Nt);Rx(k,ua(E,Y.pos)),$n(k,3072);let ge=t.createParenthesizedExpression(t.createCallExpression(k,void 0,Ye?[x.checkDefined(He(Ye.expression,$,lt))]:[]));return iN(ge,3,"* @class "),ge}function he(Y,Ye){let xt=[],Nt=t.getInternalName(Y),k=q9(Nt)?t.getGeneratedNameForNode(Nt):Nt;i(),Le(xt,Y,Ye),Ke(xt,Y,k,Ye),z(xt,Y);let ge=_V(ua(E,Y.members.end),20),Xe=t.createPartiallyEmittedExpression(k);Rx(Xe,ge.end),$n(Xe,3072);let Mt=t.createReturnStatement(Xe);qC(Mt,ge.pos),$n(Mt,3840),xt.push(Mt),vh(xt,s());let Vn=t.createBlock(Ze(t.createNodeArray(xt),Y.members),!0);return $n(Vn,3072),Vn}function Le(Y,Ye,xt){xt&&Y.push(Ze(t.createExpressionStatement(r().createExtendsHelper(t.getInternalName(Ye))),xt))}function Ke(Y,Ye,xt,Nt){let k=R;R=void 0;let ge=U(32662,73),Xe=Ah(Ye),Mt=mu(Xe,Nt!==void 0),Vn=t.createFunctionDeclaration(void 0,void 0,xt,void 0,Dt(Xe,Mt),void 0,Vt(Xe,Ye,Nt,Mt));Ze(Vn,Xe||Ye),Nt&&$n(Vn,16),Y.push(Vn),K(ge,229376,0),R=k}function Dt(Y,Ye){return rl(Y&&!Ye?Y.parameters:void 0,$,e)||[]}function st(Y,Ye){let xt=[];o(),t.mergeLexicalEnvironment(xt,s()),Ye&&xt.push(t.createReturnStatement(Jo()));let Nt=t.createNodeArray(xt);Ze(Nt,Y.members);let k=t.createBlock(Nt,!0);return Ze(k,Y),$n(k,3072),k}function Ge(Y){return cl(Y)&&ji(Y.declarationList.declarations,Ye=>Me(Ye.name)&&!Ye.initializer)}function ot(Y){if(xS(Y))return!0;if(!(Y.transformFlags&134217728))return!1;switch(Y.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let Ye=Y;return Pa(Ye.name)?!!Ao(Ye.name,ot):!1}}return!!Ao(Y,ot)}function Vt(Y,Ye,xt,Nt){let k=!!xt&&Rl(xt.expression).kind!==106;if(!Y)return st(Ye,k);let ge=[],Xe=[];o();let Mt=t.copyStandardPrologue(Y.body.statements,ge,0);(Nt||ot(Y.body))&&(S|=8192),Pr(Xe,Dn(Y.body.statements,$,Di,Mt));let Vn=k||S&8192;Tn(ge,Y),yt(ge,Y,Nt),et(ge,Y),Vn?Ce(ge,Y,so()):re(ge,Y),t.mergeLexicalEnvironment(ge,s()),Vn&&!ki(Y.body)&&Xe.push(t.createReturnStatement(Z()));let jr=t.createBlock(Ze(t.createNodeArray([...ge,...Xe]),Y.body.statements),!0);return Ze(jr,Y.body),ni(jr,Y.body,Nt)}function jt(Y){return ws(Y)&&ar(Y)==="_this"}function gn(Y){return ws(Y)&&ar(Y)==="_super"}function On(Y){return cl(Y)&&Y.declarationList.declarations.length===1&&en(Y.declarationList.declarations[0])}function en(Y){return yi(Y)&&jt(Y.name)&&!!Y.initializer}function zt(Y){return lc(Y,!0)&&jt(Y.left)}function Wt(Y){return Bo(Y)&&Er(Y.expression)&&gn(Y.expression.expression)&&Me(Y.expression.name)&&(ar(Y.expression.name)==="call"||ar(Y.expression.name)==="apply")&&Y.arguments.length>=1&&Y.arguments[0].kind===110}function ei(Y){return Zn(Y)&&Y.operatorToken.kind===57&&Y.right.kind===110&&Wt(Y.left)}function Ki(Y){return Zn(Y)&&Y.operatorToken.kind===56&&Zn(Y.left)&&Y.left.operatorToken.kind===38&&gn(Y.left.left)&&Y.left.right.kind===106&&Wt(Y.right)&&ar(Y.right.expression.name)==="apply"}function gi(Y){return Zn(Y)&&Y.operatorToken.kind===57&&Y.right.kind===110&&Ki(Y.left)}function io(Y){return zt(Y)&&ei(Y.right)}function Gn(Y){return zt(Y)&&gi(Y.right)}function Nr(Y){return Wt(Y)||ei(Y)||io(Y)||Ki(Y)||gi(Y)||Gn(Y)}function cr(Y){for(let Ye=0;Ye<Y.statements.length-1;Ye++){let xt=Y.statements[Ye];if(!On(xt))continue;let Nt=xt.declarationList.declarations[0];if(Nt.initializer.kind!==110)continue;let k=Ye,ge=Ye+1;for(;ge<Y.statements.length;){let ma=Y.statements[ge];if(Cc(ma)&&Nr(Rl(ma.expression)))break;if(Ge(ma)){ge++;continue}return Y}let Xe=Y.statements[ge],Mt=Xe.expression;zt(Mt)&&(Mt=Mt.right);let Vn=t.updateVariableDeclaration(Nt,Nt.name,void 0,void 0,Mt),jr=t.updateVariableDeclarationList(xt.declarationList,[Vn]),Or=t.createVariableStatement(xt.modifiers,jr);mr(Or,Xe),Ze(Or,Xe);let zi=t.createNodeArray([...Y.statements.slice(0,k),...Y.statements.slice(k+1,ge),Or,...Y.statements.slice(ge+1)]);return Ze(zi,Y.statements),t.updateBlock(Y,zi)}return Y}function Jt(Y,Ye){for(let Nt of Ye.statements)if(Nt.transformFlags&134217728&&!h4(Nt))return Y;let xt=!(Ye.transformFlags&16384)&&!(S&65536)&&!(S&131072);for(let Nt=Y.statements.length-1;Nt>0;Nt--){let k=Y.statements[Nt];if(Kf(k)&&k.expression&&jt(k.expression)){let ge=Y.statements[Nt-1],Xe;if(Cc(ge)&&io(Rl(ge.expression)))Xe=ge.expression;else if(xt&&On(ge)){let jr=ge.declarationList.declarations[0];Nr(Rl(jr.initializer))&&(Xe=t.createAssignment(Z(),jr.initializer))}if(!Xe)break;let Mt=t.createReturnStatement(Xe);mr(Mt,ge),Ze(Mt,ge);let Vn=t.createNodeArray([...Y.statements.slice(0,Nt-1),Mt,...Y.statements.slice(Nt+1)]);return Ze(Vn,Y.statements),t.updateBlock(Y,Vn)}}return Y}function Ue(Y){if(On(Y)){if(Y.declarationList.declarations[0].initializer.kind===110)return}else if(zt(Y))return t.createPartiallyEmittedExpression(Y.right,Y);switch(Y.kind){case 219:case 218:case 262:case 176:case 175:return Y;case 177:case 178:case 174:case 172:{let Ye=Y;return Pa(Ye.name)?t.replacePropertyName(Ye,un(Ye.name,Ue,void 0)):Y}}return un(Y,Ue,void 0)}function Rt(Y,Ye){if(Ye.transformFlags&16384||S&65536||S&131072)return Y;for(let xt of Ye.statements)if(xt.transformFlags&134217728&&!h4(xt))return Y;return t.updateBlock(Y,Dn(Y.statements,Ue,Di))}function mn(Y){if(Wt(Y)&&Y.arguments.length===2&&Me(Y.arguments[1])&&ar(Y.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(vl(),t.createNull()),Y);switch(Y.kind){case 219:case 218:case 262:case 176:case 175:return Y;case 177:case 178:case 174:case 172:{let Ye=Y;return Pa(Ye.name)?t.replacePropertyName(Ye,un(Ye.name,mn,void 0)):Y}}return un(Y,mn,void 0)}function qr(Y){return t.updateBlock(Y,Dn(Y.statements,mn,Di))}function ni(Y,Ye,xt){let Nt=Y;return Y=cr(Y),Y=Jt(Y,Ye),Y!==Nt&&(Y=Rt(Y,Ye)),xt&&(Y=qr(Y)),Y}function ki(Y){if(Y.kind===253)return!0;if(Y.kind===245){let Ye=Y;if(Ye.elseStatement)return ki(Ye.thenStatement)&&ki(Ye.elseStatement)}else if(Y.kind===241){let Ye=Ns(Y.statements);if(Ye&&ki(Ye))return!0}return!1}function so(){return $n(t.createThis(),8)}function Jo(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(vl(),t.createNull()),t.createFunctionApplyCall(vl(),so(),t.createIdentifier("arguments"))),so())}function ba(Y){if(!Y.dotDotDotToken)return ko(Y.name)?mr(Ze(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Y),void 0,void 0,void 0),Y),Y):Y.initializer?mr(Ze(t.createParameterDeclaration(void 0,void 0,Y.name,void 0,void 0,void 0),Y),Y):Y}function ln(Y){return Y.initializer!==void 0||ko(Y.name)}function Tn(Y,Ye){if(!ct(Ye.parameters,ln))return!1;let xt=!1;for(let Nt of Ye.parameters){let{name:k,initializer:ge,dotDotDotToken:Xe}=Nt;Xe||(ko(k)?xt=ke(Y,Nt,k,ge)||xt:ge&&(nt(Y,Nt,k,ge),xt=!0))}return xt}function ke(Y,Ye,xt,Nt){return xt.elements.length>0?(TS(Y,$n(t.createVariableStatement(void 0,t.createVariableDeclarationList(v0(Ye,$,e,0,t.getGeneratedNameForNode(Ye)))),2097152)),!0):Nt?(TS(Y,$n(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(Ye),x.checkDefined(He(Nt,$,lt)))),2097152)),!0):!1}function nt(Y,Ye,xt,Nt){Nt=x.checkDefined(He(Nt,$,lt));let k=t.createIfStatement(t.createTypeCheck(t.cloneNode(xt),"undefined"),$n(Ze(t.createBlock([t.createExpressionStatement($n(Ze(t.createAssignment($n(Ta(Ze(t.cloneNode(xt),xt),xt.parent),96),$n(Nt,96|ya(Nt)|3072)),Ye),3072))]),Ye),3905));Sd(k),Ze(k,Ye),$n(k,2101056),TS(Y,k)}function tt(Y,Ye){return!!(Y&&Y.dotDotDotToken&&!Ye)}function yt(Y,Ye,xt){let Nt=[],k=Ns(Ye.parameters);if(!tt(k,xt))return!1;let ge=k.name.kind===80?Ta(Ze(t.cloneNode(k.name),k.name),k.name.parent):t.createTempVariable(void 0);$n(ge,96);let Xe=k.name.kind===80?t.cloneNode(k.name):ge,Mt=Ye.parameters.length-1,Vn=t.createLoopVariable();Nt.push($n(Ze(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ge,void 0,void 0,t.createArrayLiteralExpression([]))])),k),2097152));let jr=t.createForStatement(Ze(t.createVariableDeclarationList([t.createVariableDeclaration(Vn,void 0,void 0,t.createNumericLiteral(Mt))]),k),Ze(t.createLessThan(Vn,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),k),Ze(t.createPostfixIncrement(Vn),k),t.createBlock([Sd(Ze(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Xe,Mt===0?Vn:t.createSubtract(Vn,t.createNumericLiteral(Mt))),t.createElementAccessExpression(t.createIdentifier("arguments"),Vn))),k))]));return $n(jr,2097152),Sd(jr),Nt.push(jr),k.name.kind!==80&&Nt.push($n(Ze(t.createVariableStatement(void 0,t.createVariableDeclarationList(v0(k,$,e,0,Xe))),k),2097152)),c9(Y,Nt),!0}function re(Y,Ye){return S&131072&&Ye.kind!==219?(Ce(Y,Ye,t.createThis()),!0):!1}function Ce(Y,Ye,xt){tu();let Nt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Z(),void 0,void 0,xt)]));$n(Nt,2100224),la(Nt,Ye),TS(Y,Nt)}function et(Y,Ye){if(S&32768){let xt;switch(Ye.kind){case 219:return Y;case 174:case 177:case 178:xt=t.createVoidZero();break;case 176:xt=t.createPropertyAccessExpression($n(t.createThis(),8),"constructor");break;case 262:case 218:xt=t.createConditionalExpression(t.createLogicalAnd($n(t.createThis(),8),t.createBinaryExpression($n(t.createThis(),8),104,t.getLocalName(Ye))),void 0,t.createPropertyAccessExpression($n(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return x.failBadSyntaxKind(Ye)}let Nt=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,xt)]));$n(Nt,2100224),TS(Y,Nt)}return Y}function z(Y,Ye){for(let xt of Ye.members)switch(xt.kind){case 240:Y.push(Je(xt));break;case 174:Y.push(_t(Lh(Ye,xt),xt,Ye));break;case 177:case 178:let Nt=wS(Ye.members,xt);xt===Nt.firstAccessor&&Y.push(ze(Lh(Ye,xt),Nt,Ye));break;case 176:case 175:break;default:x.failBadSyntaxKind(xt,v&&v.fileName);break}}function Je(Y){return Ze(t.createEmptyStatement(),Y)}function _t(Y,Ye,xt){let Nt=e_(Ye),k=ov(Ye),ge=Zt(Ye,Ye,void 0,xt),Xe=He(Ye.name,$,kl);x.assert(Xe);let Mt;if(!Ci(Xe)&&nN(e.getCompilerOptions())){let jr=Pa(Xe)?Xe.expression:Me(Xe)?t.createStringLiteral(Ii(Xe.escapedText)):Xe;Mt=t.createObjectDefinePropertyCall(Y,jr,t.createPropertyDescriptor({value:ge,enumerable:!1,writable:!0,configurable:!0}))}else{let jr=QS(t,Y,Xe,Ye.name);Mt=t.createAssignment(jr,ge)}$n(ge,3072),la(ge,k);let Vn=Ze(t.createExpressionStatement(Mt),Ye);return mr(Vn,Ye),Ol(Vn,Nt),$n(Vn,96),Vn}function ze(Y,Ye,xt){let Nt=t.createExpressionStatement(it(Y,Ye,xt,!1));return $n(Nt,3072),la(Nt,ov(Ye.firstAccessor)),Nt}function it(Y,{firstAccessor:Ye,getAccessor:xt,setAccessor:Nt},k,ge){let Xe=Ta(Ze(t.cloneNode(Y),Y),Y.parent);$n(Xe,3136),la(Xe,Ye.name);let Mt=He(Ye.name,$,kl);if(x.assert(Mt),Ci(Mt))return x.failBadSyntaxKind(Mt,"Encountered unhandled private identifier while transforming ES2015.");let Vn=Wj(t,Mt);$n(Vn,3104),la(Vn,Ye.name);let jr=[];if(xt){let zi=Zt(xt,void 0,void 0,k);la(zi,ov(xt)),$n(zi,1024);let ma=t.createPropertyAssignment("get",zi);Ol(ma,e_(xt)),jr.push(ma)}if(Nt){let zi=Zt(Nt,void 0,void 0,k);la(zi,ov(Nt)),$n(zi,1024);let ma=t.createPropertyAssignment("set",zi);Ol(ma,e_(Nt)),jr.push(ma)}jr.push(t.createPropertyAssignment("enumerable",xt||Nt?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Or=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Xe,Vn,t.createObjectLiteralExpression(jr,!0)]);return ge&&Sd(Or),Or}function Ct(Y){Y.transformFlags&16384&&!(S&16384)&&(S|=131072);let Ye=R;R=void 0;let xt=U(15232,66),Nt=t.createFunctionExpression(void 0,void 0,void 0,void 0,rl(Y.parameters,$,e),void 0,V(Y));return Ze(Nt,Y),mr(Nt,Y),$n(Nt,16),K(xt,0,0),R=Ye,Nt}function on(Y){let Ye=ya(Y)&524288?U(32662,69):U(32670,65),xt=R;R=void 0;let Nt=rl(Y.parameters,$,e),k=V(Y),ge=S&32768?t.getLocalName(Y):Y.name;return K(Ye,229376,0),R=xt,t.updateFunctionExpression(Y,void 0,Y.asteriskToken,ge,void 0,Nt,void 0,k)}function Qt(Y){let Ye=R;R=void 0;let xt=U(32670,65),Nt=rl(Y.parameters,$,e),k=V(Y),ge=S&32768?t.getLocalName(Y):Y.name;return K(xt,229376,0),R=Ye,t.updateFunctionDeclaration(Y,Dn(Y.modifiers,$,ia),Y.asteriskToken,ge,void 0,Nt,void 0,k)}function Zt(Y,Ye,xt,Nt){let k=R;R=void 0;let ge=Nt&&Kr(Nt)&&!zo(Y)?U(32670,73):U(32670,65),Xe=rl(Y.parameters,$,e),Mt=V(Y);return S&32768&&!xt&&(Y.kind===262||Y.kind===218)&&(xt=t.getGeneratedNameForNode(Y)),K(ge,229376,0),R=k,mr(Ze(t.createFunctionExpression(void 0,Y.asteriskToken,xt,void 0,Xe,void 0,Mt),Ye),Y)}function V(Y){let Ye=!1,xt=!1,Nt,k,ge=[],Xe=[],Mt=Y.body,Vn;if(o(),Do(Mt)&&(Vn=t.copyStandardPrologue(Mt.statements,ge,0,!1),Vn=t.copyCustomPrologue(Mt.statements,Xe,Vn,$,cW),Vn=t.copyCustomPrologue(Mt.statements,Xe,Vn,$,dW)),Ye=Tn(Xe,Y)||Ye,Ye=yt(Xe,Y,!1)||Ye,Do(Mt))Vn=t.copyCustomPrologue(Mt.statements,Xe,Vn,$),Nt=Mt.statements,Pr(Xe,Dn(Mt.statements,$,Di,Vn)),!Ye&&Mt.multiLine&&(Ye=!0);else{x.assert(Y.kind===219),Nt=XW(Mt,-1);let Or=Y.equalsGreaterThanToken;!xs(Or)&&!xs(Mt)&&(qL(Or,Mt,v)?xt=!0:Ye=!0);let zi=He(Mt,$,lt),ma=t.createReturnStatement(zi);Ze(ma,Mt),Cre(ma,Mt),$n(ma,2880),Xe.push(ma),k=Mt}if(t.mergeLexicalEnvironment(ge,s()),et(ge,Y),re(ge,Y),ct(ge)&&(Ye=!0),Xe.unshift(...ge),Do(Mt)&&mm(Xe,Mt.statements))return Mt;let jr=t.createBlock(Ze(t.createNodeArray(Xe),Nt),Ye);return Ze(jr,Y.body),!Ye&&xt&&$n(jr,1),k&&Dre(jr,20,k),mr(jr,Y.body),jr}function Re(Y,Ye){if(Ye)return un(Y,$,e);let xt=S&256?U(7104,512):U(6976,128),Nt=un(Y,$,e);return K(xt,0,0),Nt}function St(Y){return un(Y,de,e)}function M(Y,Ye){return un(Y,Ye?de:$,e)}function te(Y,Ye){return nv(Y)?nT(Y,$,e,0,!Ye):Y.operatorToken.kind===28?t.updateBinaryExpression(Y,x.checkDefined(He(Y.left,de,lt)),Y.operatorToken,x.checkDefined(He(Y.right,Ye?de:$,lt))):un(Y,$,e)}function j(Y,Ye){if(Ye)return un(Y,de,e);let xt;for(let k=0;k<Y.elements.length;k++){let ge=Y.elements[k],Xe=He(ge,k<Y.elements.length-1?de:$,lt);(xt||Xe!==ge)&&(xt||(xt=Y.elements.slice(0,k)),x.assert(Xe),xt.push(Xe))}let Nt=xt?Ze(t.createNodeArray(xt),Y.elements):Y.elements;return t.updateCommaListExpression(Y,Nt)}function se(Y){return Y.declarationList.declarations.length===1&&!!Y.declarationList.declarations[0].initializer&&!!(Uf(Y.declarationList.declarations[0].initializer)&1)}function Pe(Y){let Ye=U(0,Wr(Y,32)?32:0),xt;if(R&&!(Y.declarationList.flags&7)&&!se(Y)){let Nt;for(let k of Y.declarationList.declarations)if(zc(R,k),k.initializer){let ge;ko(k.name)?ge=nT(k,$,e,0):(ge=t.createBinaryExpression(k.name,64,x.checkDefined(He(k.initializer,$,lt))),Ze(ge,k)),Nt=pn(Nt,ge)}Nt?xt=Ze(t.createExpressionStatement(t.inlineExpressions(Nt)),Y):xt=void 0}else xt=un(Y,$,e);return K(Ye,0,0),xt}function Ie(Y){if(Y.flags&7||Y.transformFlags&524288){Y.flags&7&&fu();let Ye=Dn(Y.declarations,Y.flags&1?Ot:dn,yi),xt=t.createVariableDeclarationList(Ye);return mr(xt,Y),Ze(xt,Y),Ol(xt,Y),Y.transformFlags&524288&&(ko(Y.declarations[0].name)||ko(Da(Y.declarations).name))&&la(xt,gt(Ye)),xt}return un(Y,$,e)}function gt(Y){let Ye=-1,xt=-1;for(let Nt of Y)Ye=Ye===-1?Nt.pos:Nt.pos===-1?Ye:Math.min(Ye,Nt.pos),xt=Math.max(xt,Nt.end);return qp(Ye,xt)}function bt(Y){let Ye=p.getNodeCheckFlags(Y),xt=Ye&16384,Nt=Ye&32768;return!((S&64)!==0||xt&&Nt&&(S&512)!==0)&&(S&4096)===0&&(!p.isDeclarationWithCollidingName(Y)||Nt&&!xt&&(S&6144)===0)}function Ot(Y){let Ye=Y.name;return ko(Ye)?dn(Y):!Y.initializer&&bt(Y)?t.updateVariableDeclaration(Y,Y.name,void 0,void 0,t.createVoidZero()):un(Y,$,e)}function dn(Y){let Ye=U(32,0),xt;return ko(Y.name)?xt=v0(Y,$,e,0,void 0,(Ye&32)!==0):xt=un(Y,$,e),K(Ye,0,0),xt}function An(Y){R.labels.set(ar(Y.label),!0)}function Cn(Y){R.labels.set(ar(Y.label),!1)}function ti(Y){R&&!R.labels&&(R.labels=new Map);let Ye=R9(Y,R&&An);return Xv(Ye,!1)?di(Ye,Y):t.restoreEnclosingLabel(x.checkDefined(He(Ye,$,Di,t.liftToBlock)),Y,R&&Cn)}function di(Y,Ye){switch(Y.kind){case 246:case 247:return Ar(Y,Ye);case 248:return Zi(Y,Ye);case 249:return ui(Y,Ye);case 250:return Mr(Y,Ye)}}function jn(Y,Ye,xt,Nt,k){let ge=U(Y,Ye),Xe=ts(xt,Nt,ge,k);return K(ge,0,0),Xe}function Ar(Y,Ye){return jn(0,1280,Y,Ye)}function Zi(Y,Ye){return jn(5056,3328,Y,Ye)}function _i(Y){return t.updateForStatement(Y,He(Y.initializer,de,Up),He(Y.condition,$,lt),He(Y.incrementor,de,lt),x.checkDefined(He(Y.statement,$,Di,t.liftToBlock)))}function ui(Y,Ye){return jn(3008,5376,Y,Ye)}function Mr(Y,Ye){return jn(3008,5376,Y,Ye,d.downlevelIteration?Dl:fs)}function lo(Y,Ye,xt){let Nt=[],k=Y.initializer;if(yc(k)){Y.initializer.flags&7&&fu();let ge=Ac(k.declarations);if(ge&&ko(ge.name)){let Xe=v0(ge,$,e,0,Ye),Mt=Ze(t.createVariableDeclarationList(Xe),Y.initializer);mr(Mt,Y.initializer),la(Mt,qp(Xe[0].pos,Da(Xe).end)),Nt.push(t.createVariableStatement(void 0,Mt))}else Nt.push(Ze(t.createVariableStatement(void 0,mr(Ze(t.createVariableDeclarationList([t.createVariableDeclaration(ge?ge.name:t.createTempVariable(void 0),void 0,void 0,Ye)]),Cb(k,-1)),k)),XW(k,-1)))}else{let ge=t.createAssignment(k,Ye);nv(ge)?Nt.push(t.createExpressionStatement(te(ge,!0))):(Rx(ge,k.end),Nt.push(Ze(t.createExpressionStatement(x.checkDefined(He(ge,$,lt))),XW(k,-1))))}if(xt)return _n(Pr(Nt,xt));{let ge=He(Y.statement,$,Di,t.liftToBlock);return x.assert(ge),Do(ge)?t.updateBlock(ge,Ze(t.createNodeArray(ro(Nt,ge.statements)),ge.statements)):(Nt.push(ge),_n(Nt))}}function _n(Y){return $n(t.createBlock(t.createNodeArray(Y),!0),864)}function fs(Y,Ye,xt){let Nt=He(Y.expression,$,lt);x.assert(Nt);let k=t.createLoopVariable(),ge=Me(Nt)?t.getGeneratedNameForNode(Nt):t.createTempVariable(void 0);$n(Nt,96|ya(Nt));let Xe=Ze(t.createForStatement($n(Ze(t.createVariableDeclarationList([Ze(t.createVariableDeclaration(k,void 0,void 0,t.createNumericLiteral(0)),Cb(Y.expression,-1)),Ze(t.createVariableDeclaration(ge,void 0,void 0,Nt),Y.expression)]),Y.expression),4194304),Ze(t.createLessThan(k,t.createPropertyAccessExpression(ge,"length")),Y.expression),Ze(t.createPostfixIncrement(k),Y.expression),lo(Y,t.createElementAccessExpression(ge,k),xt)),Y);return $n(Xe,512),Ze(Xe,Y),t.restoreEnclosingLabel(Xe,Ye,R&&Cn)}function Dl(Y,Ye,xt,Nt){let k=He(Y.expression,$,lt);x.assert(k);let ge=Me(k)?t.getGeneratedNameForNode(k):t.createTempVariable(void 0),Xe=Me(k)?t.getGeneratedNameForNode(ge):t.createTempVariable(void 0),Mt=t.createUniqueName("e"),Vn=t.getGeneratedNameForNode(Mt),jr=t.createTempVariable(void 0),Or=Ze(r().createValuesHelper(k),Y.expression),zi=t.createCallExpression(t.createPropertyAccessExpression(ge,"next"),void 0,[]);l(Mt),l(jr);let ma=Nt&1024?t.inlineExpressions([t.createAssignment(Mt,t.createVoidZero()),Or]):Or,_a=$n(Ze(t.createForStatement($n(Ze(t.createVariableDeclarationList([Ze(t.createVariableDeclaration(ge,void 0,void 0,ma),Y.expression),t.createVariableDeclaration(Xe,void 0,void 0,zi)]),Y.expression),4194304),t.createLogicalNot(t.createPropertyAccessExpression(Xe,"done")),t.createAssignment(Xe,zi),lo(Y,t.createPropertyAccessExpression(Xe,"value"),xt)),Y),512);return t.createTryStatement(t.createBlock([t.restoreEnclosingLabel(_a,Ye,R&&Cn)]),t.createCatchClause(t.createVariableDeclaration(Vn),$n(t.createBlock([t.createExpressionStatement(t.createAssignment(Mt,t.createObjectLiteralExpression([t.createPropertyAssignment("error",Vn)])))]),1)),t.createBlock([t.createTryStatement(t.createBlock([$n(t.createIfStatement(t.createLogicalAnd(t.createLogicalAnd(Xe,t.createLogicalNot(t.createPropertyAccessExpression(Xe,"done"))),t.createAssignment(jr,t.createPropertyAccessExpression(ge,"return"))),t.createExpressionStatement(t.createFunctionCallCall(jr,ge,[]))),1)]),void 0,$n(t.createBlock([$n(t.createIfStatement(Mt,t.createThrowStatement(t.createPropertyAccessExpression(Mt,"error"))),1)]),1))]))}function _o(Y){let Ye=Y.properties,xt=-1,Nt=!1;for(let Mt=0;Mt<Ye.length;Mt++){let Vn=Ye[Mt];if(Vn.transformFlags&1048576&&S&4||(Nt=x.checkDefined(Vn.name).kind===167)){xt=Mt;break}}if(xt<0)return un(Y,$,e);let k=t.createTempVariable(l),ge=[],Xe=t.createAssignment(k,$n(t.createObjectLiteralExpression(Dn(Ye,$,Zh,0,xt),Y.multiLine),Nt?131072:0));return Y.multiLine&&Sd(Xe),ge.push(Xe),$t(ge,Y,k,xt),ge.push(Y.multiLine?Sd(Ta(Ze(t.cloneNode(k),k),k.parent)):k),t.inlineExpressions(ge)}function Va(Y){return(p.getNodeCheckFlags(Y)&8192)!==0}function gs(Y){return qS(Y)&&!!Y.initializer&&Va(Y.initializer)}function Js(Y){return qS(Y)&&!!Y.condition&&Va(Y.condition)}function Fc(Y){return qS(Y)&&!!Y.incrementor&&Va(Y.incrementor)}function $i(Y){return Uo(Y)||gs(Y)}function Uo(Y){return(p.getNodeCheckFlags(Y)&4096)!==0}function zc(Y,Ye){Y.hoistedLocalVariables||(Y.hoistedLocalVariables=[]),xt(Ye.name);function xt(Nt){if(Nt.kind===80)Y.hoistedLocalVariables.push(Nt);else for(let k of Nt.elements)vc(k)||xt(k.name)}}function ts(Y,Ye,xt,Nt){if(!$i(Y)){let Or;R&&(Or=R.allowedNonLabeledJumps,R.allowedNonLabeledJumps=6);let zi=Nt?Nt(Y,Ye,void 0,xt):t.restoreEnclosingLabel(qS(Y)?_i(Y):un(Y,$,e),Ye,R&&Cn);return R&&(R.allowedNonLabeledJumps=Or),zi}let k=ho(Y),ge=[],Xe=R;R=k;let Mt=gs(Y)?Pc(Y,k):void 0,Vn=Uo(Y)?Bc(Y,k,Xe):void 0;R=Xe,Mt&&ge.push(Mt.functionDeclaration),Vn&&ge.push(Vn.functionDeclaration),Ut(ge,k,Xe),Mt&&ge.push(tc(Mt.functionName,Mt.containsYield));let jr;if(Vn)if(Nt)jr=Nt(Y,Ye,Vn.part,xt);else{let Or=da(Y,Mt,t.createBlock(Vn.part,!0));jr=t.restoreEnclosingLabel(Or,Ye,R&&Cn)}else{let Or=da(Y,Mt,x.checkDefined(He(Y.statement,$,Di,t.liftToBlock)));jr=t.restoreEnclosingLabel(Or,Ye,R&&Cn)}return ge.push(jr),ge}function da(Y,Ye,xt){switch(Y.kind){case 248:return Us(Y,Ye,xt);case 249:return Wl(Y,xt);case 250:return tf(Y,xt);case 246:return il(Y,xt);case 247:return zs(Y,xt);default:return x.failBadSyntaxKind(Y,"IterationStatement expected")}}function Us(Y,Ye,xt){let Nt=Y.condition&&Va(Y.condition),k=Nt||Y.incrementor&&Va(Y.incrementor);return t.updateForStatement(Y,He(Ye?Ye.part:Y.initializer,de,Up),He(Nt?void 0:Y.condition,$,lt),He(k?void 0:Y.incrementor,de,lt),xt)}function tf(Y,Ye){return t.updateForOfStatement(Y,void 0,x.checkDefined(He(Y.initializer,$,Up)),x.checkDefined(He(Y.expression,$,lt)),Ye)}function Wl(Y,Ye){return t.updateForInStatement(Y,x.checkDefined(He(Y.initializer,$,Up)),x.checkDefined(He(Y.expression,$,lt)),Ye)}function il(Y,Ye){return t.updateDoStatement(Y,Ye,x.checkDefined(He(Y.expression,$,lt)))}function zs(Y,Ye){return t.updateWhileStatement(Y,x.checkDefined(He(Y.expression,$,lt)),Ye)}function ho(Y){let Ye;switch(Y.kind){case 248:case 249:case 250:let ge=Y.initializer;ge&&ge.kind===261&&(Ye=ge);break}let xt=[],Nt=[];if(Ye&&Xg(Ye)&7){let ge=gs(Y)||Js(Y)||Fc(Y);for(let Xe of Ye.declarations)dt(Y,Xe,xt,Nt,ge)}let k={loopParameters:xt,loopOutParameters:Nt};return R&&(R.argumentsName&&(k.argumentsName=R.argumentsName),R.thisName&&(k.thisName=R.thisName),R.hoistedLocalVariables&&(k.hoistedLocalVariables=R.hoistedLocalVariables)),k}function Ut(Y,Ye,xt){let Nt;if(Ye.argumentsName&&(xt?xt.argumentsName=Ye.argumentsName:(Nt||(Nt=[])).push(t.createVariableDeclaration(Ye.argumentsName,void 0,void 0,t.createIdentifier("arguments")))),Ye.thisName&&(xt?xt.thisName=Ye.thisName:(Nt||(Nt=[])).push(t.createVariableDeclaration(Ye.thisName,void 0,void 0,t.createIdentifier("this")))),Ye.hoistedLocalVariables)if(xt)xt.hoistedLocalVariables=Ye.hoistedLocalVariables;else{Nt||(Nt=[]);for(let k of Ye.hoistedLocalVariables)Nt.push(t.createVariableDeclaration(k))}if(Ye.loopOutParameters.length){Nt||(Nt=[]);for(let k of Ye.loopOutParameters)Nt.push(t.createVariableDeclaration(k.outParamName))}Ye.conditionVariable&&(Nt||(Nt=[]),Nt.push(t.createVariableDeclaration(Ye.conditionVariable,void 0,void 0,t.createFalse()))),Nt&&Y.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(Nt)))}function vs(Y){return t.createVariableDeclaration(Y.originalName,void 0,void 0,Y.outParamName)}function Pc(Y,Ye){let xt=t.createUniqueName("_loop_init"),Nt=(Y.initializer.transformFlags&1048576)!==0,k=0;Ye.containsLexicalThis&&(k|=16),Nt&&S&4&&(k|=524288);let ge=[];ge.push(t.createVariableStatement(void 0,Y.initializer)),ls(Ye.loopOutParameters,2,1,ge);let Xe=t.createVariableStatement(void 0,$n(t.createVariableDeclarationList([t.createVariableDeclaration(xt,void 0,void 0,$n(t.createFunctionExpression(void 0,Nt?t.createToken(42):void 0,void 0,void 0,void 0,void 0,x.checkDefined(He(t.createBlock(ge,!0),$,Do))),k))]),4194304)),Mt=t.createVariableDeclarationList(nn(Ye.loopOutParameters,vs));return{functionName:xt,containsYield:Nt,functionDeclaration:Xe,part:Mt}}function Bc(Y,Ye,xt){let Nt=t.createUniqueName("_loop");i();let k=He(Y.statement,$,Di,t.liftToBlock),ge=s(),Xe=[];(Js(Y)||Fc(Y))&&(Ye.conditionVariable=t.createUniqueName("inc"),Y.incrementor?Xe.push(t.createIfStatement(Ye.conditionVariable,t.createExpressionStatement(x.checkDefined(He(Y.incrementor,$,lt))),t.createExpressionStatement(t.createAssignment(Ye.conditionVariable,t.createTrue())))):Xe.push(t.createIfStatement(t.createLogicalNot(Ye.conditionVariable),t.createExpressionStatement(t.createAssignment(Ye.conditionVariable,t.createTrue())))),Js(Y)&&Xe.push(t.createIfStatement(t.createPrefixUnaryExpression(54,x.checkDefined(He(Y.condition,$,lt))),x.checkDefined(He(t.createBreakStatement(),$,Di))))),x.assert(k),Do(k)?Pr(Xe,k.statements):Xe.push(k),ls(Ye.loopOutParameters,1,1,Xe),vh(Xe,ge);let Mt=t.createBlock(Xe,!0);Do(k)&&mr(Mt,k);let Vn=(Y.statement.transformFlags&1048576)!==0,jr=1048576;Ye.containsLexicalThis&&(jr|=16),Vn&&S&4&&(jr|=524288);let Or=t.createVariableStatement(void 0,$n(t.createVariableDeclarationList([t.createVariableDeclaration(Nt,void 0,void 0,$n(t.createFunctionExpression(void 0,Vn?t.createToken(42):void 0,void 0,void 0,Ye.loopParameters,void 0,Mt),jr))]),4194304)),zi=ae(Nt,Ye,xt,Vn);return{functionName:Nt,containsYield:Vn,functionDeclaration:Or,part:zi}}function Ju(Y,Ye){let xt=Ye===0?Y.outParamName:Y.originalName,Nt=Ye===0?Y.originalName:Y.outParamName;return t.createBinaryExpression(Nt,64,xt)}function ls(Y,Ye,xt,Nt){for(let k of Y)k.flags&Ye&&Nt.push(t.createExpressionStatement(Ju(k,xt)))}function tc(Y,Ye){let xt=t.createCallExpression(Y,void 0,[]),Nt=Ye?t.createYieldExpression(t.createToken(42),$n(xt,8388608)):xt;return t.createExpressionStatement(Nt)}function ae(Y,Ye,xt,Nt){let k=[],ge=!(Ye.nonLocalJumps&-5)&&!Ye.labeledNonLocalBreaks&&!Ye.labeledNonLocalContinues,Xe=t.createCallExpression(Y,void 0,nn(Ye.loopParameters,Vn=>Vn.name)),Mt=Nt?t.createYieldExpression(t.createToken(42),$n(Xe,8388608)):Xe;if(ge)k.push(t.createExpressionStatement(Mt)),ls(Ye.loopOutParameters,1,0,k);else{let Vn=t.createUniqueName("state"),jr=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Vn,void 0,void 0,Mt)]));if(k.push(jr),ls(Ye.loopOutParameters,1,0,k),Ye.nonLocalJumps&8){let Or;xt?(xt.nonLocalJumps|=8,Or=t.createReturnStatement(Vn)):Or=t.createReturnStatement(t.createPropertyAccessExpression(Vn,"value")),k.push(t.createIfStatement(t.createTypeCheck(Vn,"object"),Or))}if(Ye.nonLocalJumps&2&&k.push(t.createIfStatement(t.createStrictEquality(Vn,t.createStringLiteral("break")),t.createBreakStatement())),Ye.labeledNonLocalBreaks||Ye.labeledNonLocalContinues){let Or=[];xe(Ye.labeledNonLocalBreaks,!0,Vn,xt,Or),xe(Ye.labeledNonLocalContinues,!1,Vn,xt,Or),k.push(t.createSwitchStatement(Vn,t.createCaseBlock(Or)))}}return k}function X(Y,Ye,xt,Nt){Ye?(Y.labeledNonLocalBreaks||(Y.labeledNonLocalBreaks=new Map),Y.labeledNonLocalBreaks.set(xt,Nt)):(Y.labeledNonLocalContinues||(Y.labeledNonLocalContinues=new Map),Y.labeledNonLocalContinues.set(xt,Nt))}function xe(Y,Ye,xt,Nt,k){Y&&Y.forEach((ge,Xe)=>{let Mt=[];if(!Nt||Nt.labels&&Nt.labels.get(Xe)){let Vn=t.createIdentifier(Xe);Mt.push(Ye?t.createBreakStatement(Vn):t.createContinueStatement(Vn))}else X(Nt,Ye,Xe,ge),Mt.push(t.createReturnStatement(xt));k.push(t.createCaseClause(t.createStringLiteral(ge),Mt))})}function dt(Y,Ye,xt,Nt,k){let ge=Ye.name;if(ko(ge))for(let Xe of ge.elements)vc(Xe)||dt(Y,Xe,xt,Nt,k);else{xt.push(t.createParameterDeclaration(void 0,void 0,ge));let Xe=p.getNodeCheckFlags(Ye);if(Xe&65536||k){let Mt=t.createUniqueName("out_"+ar(ge)),Vn=0;Xe&65536&&(Vn|=1),qS(Y)&&(Y.initializer&&p.isBindingCapturedByNode(Y.initializer,Ye)&&(Vn|=2),(Y.condition&&p.isBindingCapturedByNode(Y.condition,Ye)||Y.incrementor&&p.isBindingCapturedByNode(Y.incrementor,Ye))&&(Vn|=1)),Nt.push({flags:Vn,originalName:ge,outParamName:Mt})}}}function $t(Y,Ye,xt,Nt){let k=Ye.properties,ge=k.length;for(let Xe=Nt;Xe<ge;Xe++){let Mt=k[Xe];switch(Mt.kind){case 177:case 178:let Vn=wS(Ye.properties,Mt);Mt===Vn.firstAccessor&&Y.push(it(xt,Vn,Ye,!!Ye.multiLine));break;case 174:Y.push(Ir(Mt,xt,Ye,Ye.multiLine));break;case 303:Y.push(sr(Mt,xt,Ye.multiLine));break;case 304:Y.push(tr(Mt,xt,Ye.multiLine));break;default:x.failBadSyntaxKind(Ye);break}}}function sr(Y,Ye,xt){let Nt=t.createAssignment(QS(t,Ye,x.checkDefined(He(Y.name,$,kl))),x.checkDefined(He(Y.initializer,$,lt)));return Ze(Nt,Y),xt&&Sd(Nt),Nt}function tr(Y,Ye,xt){let Nt=t.createAssignment(QS(t,Ye,x.checkDefined(He(Y.name,$,kl))),t.cloneNode(Y.name));return Ze(Nt,Y),xt&&Sd(Nt),Nt}function Ir(Y,Ye,xt,Nt){let k=t.createAssignment(QS(t,Ye,x.checkDefined(He(Y.name,$,kl))),Zt(Y,Y,void 0,xt));return Ze(k,Y),Nt&&Sd(k),k}function pi(Y){let Ye=U(7104,0),xt;if(x.assert(!!Y.variableDeclaration,"Catch clause variable should always be present when downleveling ES2015."),ko(Y.variableDeclaration.name)){let Nt=t.createTempVariable(void 0),k=t.createVariableDeclaration(Nt);Ze(k,Y.variableDeclaration);let ge=v0(Y.variableDeclaration,$,e,0,Nt),Xe=t.createVariableDeclarationList(ge);Ze(Xe,Y.variableDeclaration);let Mt=t.createVariableStatement(void 0,Xe);xt=t.updateCatchClause(Y,k,hr(Y.block,Mt))}else xt=un(Y,$,e);return K(Ye,0,0),xt}function hr(Y,Ye){let xt=Dn(Y.statements,$,Di);return t.updateBlock(Y,[Ye,...xt])}function No(Y){x.assert(!Pa(Y.name));let Ye=Zt(Y,Cb(Y,-1),void 0,void 0);return $n(Ye,1024|ya(Ye)),Ze(t.createPropertyAssignment(Y.name,Ye),Y)}function Qs(Y){x.assert(!Pa(Y.name));let Ye=R;R=void 0;let xt=U(32670,65),Nt,k=rl(Y.parameters,$,e),ge=V(Y);return Y.kind===177?Nt=t.updateGetAccessorDeclaration(Y,Y.modifiers,Y.name,k,Y.type,ge):Nt=t.updateSetAccessorDeclaration(Y,Y.modifiers,Y.name,k,ge),K(xt,229376,0),R=Ye,Nt}function bc(Y){return Ze(t.createPropertyAssignment(Y.name,_e(t.cloneNode(Y.name))),Y)}function ys(Y){return un(Y,$,e)}function Jl(Y){return un(Y,$,e)}function Za(Y){return ct(Y.elements,bm)?Vd(Y.elements,!1,!!Y.multiLine,!!Y.elements.hasTrailingComma):un(Y,$,e)}function Ec(Y){if(Uf(Y)&1)return Du(Y);let Ye=Rl(Y.expression);return Ye.kind===108||cu(Ye)||ct(Y.arguments,bm)?pc(Y,!0):t.updateCallExpression(Y,x.checkDefined(He(Y.expression,q,lt)),void 0,Dn(Y.arguments,$,lt))}function Du(Y){let Ye=Fo(Fo(Rl(Y.expression),hs).body,Do),xt=_u=>cl(_u)&&!!Sa(_u.declarationList.declarations).initializer,Nt=R;R=void 0;let k=Dn(Ye.statements,fe,Di);R=Nt;let ge=Cr(k,xt),Xe=Cr(k,_u=>!xt(_u)),Vn=Fo(Sa(ge),cl).declarationList.declarations[0],jr=Rl(Vn.initializer),Or=Vr(jr,lc);!Or&&Zn(jr)&&jr.operatorToken.kind===28&&(Or=Vr(jr.left,lc));let zi=Fo(Or?Rl(Or.right):jr,Bo),ma=Fo(Rl(zi.expression),us),_a=ma.body.statements,pl=0,Gc=-1,nc=[];if(Or){let _u=Vr(_a[pl],Cc);_u&&(nc.push(_u),pl++),nc.push(_a[pl]),pl++,nc.push(t.createExpressionStatement(t.createAssignment(Or.left,Fo(Vn.name,Me))))}for(;!Kf(qg(_a,Gc));)Gc--;Pr(nc,_a,pl,Gc),Gc<-1&&Pr(nc,_a,Gc+1);let Xu=Vr(qg(_a,Gc),Kf);for(let _u of Xe)Kf(_u)&&Xu?.expression&&!Me(Xu.expression)?nc.push(Xu):nc.push(_u);return Pr(nc,ge,1),t.restoreOuterExpressions(Y.expression,t.restoreOuterExpressions(Vn.initializer,t.restoreOuterExpressions(Or&&Or.right,t.updateCallExpression(zi,t.restoreOuterExpressions(zi.expression,t.updateFunctionExpression(ma,void 0,void 0,void 0,void 0,ma.parameters,void 0,t.updateBlock(ma.body,nc))),void 0,zi.arguments))))}function pc(Y,Ye){if(Y.transformFlags&32768||Y.expression.kind===108||cu(Rl(Y.expression))){let{target:xt,thisArg:Nt}=t.createCallBinding(Y.expression,l);Y.expression.kind===108&&$n(Nt,8);let k;if(Y.transformFlags&32768?k=t.createFunctionApplyCall(x.checkDefined(He(xt,q,lt)),Y.expression.kind===108?Nt:x.checkDefined(He(Nt,$,lt)),Vd(Y.arguments,!0,!1,!1)):k=Ze(t.createFunctionCallCall(x.checkDefined(He(xt,q,lt)),Y.expression.kind===108?Nt:x.checkDefined(He(Nt,$,lt)),Dn(Y.arguments,$,lt)),Y),Y.expression.kind===108){let ge=t.createLogicalOr(k,so());k=Ye?t.createAssignment(Z(),ge):ge}return mr(k,Y)}return xS(Y)&&(S|=131072),un(Y,$,e)}function Nf(Y){if(ct(Y.arguments,bm)){let{target:Ye,thisArg:xt}=t.createCallBinding(t.createPropertyAccessExpression(Y.expression,"bind"),l);return t.createNewExpression(t.createFunctionApplyCall(x.checkDefined(He(Ye,$,lt)),xt,Vd(t.createNodeArray([t.createVoidZero(),...Y.arguments]),!0,!1,!1)),void 0,[])}return un(Y,$,e)}function Vd(Y,Ye,xt,Nt){let k=Y.length,ge=Ff(Q5(Y,Se,(jr,Or,zi,ma)=>Or(jr,xt,Nt&&ma===k)));if(ge.length===1){let jr=ge[0];if(Ye&&!d.downlevelIteration||kV(jr.expression)||oN(jr.expression,"___spreadArray"))return jr.expression}let Xe=r(),Mt=ge[0].kind!==0,Vn=Mt?t.createArrayLiteralExpression():ge[0].expression;for(let jr=Mt?0:1;jr<ge.length;jr++){let Or=ge[jr];Vn=Xe.createSpreadArrayHelper(Vn,Or.expression,Or.kind===1&&!Ye)}return Vn}function Se(Y){return bm(Y)?At:eo}function At(Y){return nn(Y,Ln)}function Ln(Y){x.assertNode(Y,bm);let Ye=He(Y.expression,$,lt);x.assert(Ye);let xt=oN(Ye,"___read"),Nt=xt||kV(Ye)?2:1;return d.downlevelIteration&&Nt===1&&!Bd(Ye)&&!xt&&(Ye=r().createReadHelper(Ye,void 0),Nt=2),zSe(Nt,Ye)}function eo(Y,Ye,xt){let Nt=t.createArrayLiteralExpression(Dn(t.createNodeArray(Y,xt),$,lt),Ye);return zSe(0,Nt)}function Po(Y){return He(Y.expression,$,lt)}function Oo(Y){return Ze(t.createStringLiteral(Y.text),Y)}function Cl(Y){return Y.hasExtendedUnicodeEscape?Ze(t.createStringLiteral(Y.text),Y):Y}function Kl(Y){return Y.numericLiteralFlags&384?Ze(t.createNumericLiteral(Y.text),Y):Y}function Bs(Y){return rH(e,Y,$,v,C,1)}function Ks(Y){let Ye=t.createStringLiteral(Y.head.text);for(let xt of Y.templateSpans){let Nt=[x.checkDefined(He(xt.expression,$,lt))];xt.literal.text.length>0&&Nt.push(t.createStringLiteral(xt.literal.text)),Ye=t.createCallExpression(t.createPropertyAccessExpression(Ye,"concat"),void 0,Nt)}return Ze(Ye,Y)}function vl(){return t.createUniqueName("_super",48)}function Nl(Y,Ye){let xt=S&8&&!Ye?t.createPropertyAccessExpression(mr(vl(),Y),"prototype"):vl();return mr(xt,Y),Ol(xt,Y),la(xt,Y),xt}function Sc(Y){return Y.keywordToken===105&&Y.name.escapedText==="target"?(S|=32768,t.createUniqueName("_newTarget",48)):Y}function Lp(Y,Ye,xt){if(L&1&&Lo(Ye)){let Nt=U(32670,ya(Ye)&16?81:65);m(Y,Ye,xt),K(Nt,0,0);return}m(Y,Ye,xt)}function fu(){L&2||(L|=2,e.enableSubstitution(80))}function tu(){L&1||(L|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function nf(Y,Ye){return Ye=h(Y,Ye),Y===1?fg(Ye):Me(Ye)?d_(Ye):Ye}function d_(Y){if(L&2&&!Fj(Y)){let Ye=uo(Y,Me);if(Ye&&K_(Ye))return Ze(t.getGeneratedNameForNode(Ye),Y)}return Y}function K_(Y){switch(Y.parent.kind){case 208:case 263:case 266:case 260:return Y.parent.name===Y&&p.isDeclarationWithCollidingName(Y.parent)}return!1}function fg(Y){switch(Y.kind){case 80:return fd(Y);case 110:return Ku(Y)}return Y}function fd(Y){if(L&2&&!Fj(Y)){let Ye=p.getReferencedDeclarationWithCollidingName(Y);if(Ye&&!(Kr(Ye)&&mg(Ye,Y)))return Ze(t.getGeneratedNameForNode(mo(Ye)),Y)}return Y}function mg(Y,Ye){let xt=uo(Ye);if(!xt||xt===Y||xt.end<=Y.pos||xt.pos>=Y.end)return!1;let Nt=O_(Y);for(;xt;){if(xt===Nt||xt===Y)return!1;if(xc(xt)&&xt.parent===Y)return!0;xt=xt.parent}return!1}function Ku(Y){return L&1&&S&16?Ze(Z(),Y):Y}function Lh(Y,Ye){return zo(Ye)?t.getInternalName(Y):t.createPropertyAccessExpression(t.getInternalName(Y),"prototype")}function mu(Y,Ye){if(!Y||!Ye||ct(Y.parameters))return!1;let xt=Ac(Y.body.statements);if(!xt||!xs(xt)||xt.kind!==244)return!1;let Nt=xt.expression;if(!xs(Nt)||Nt.kind!==213)return!1;let k=Nt.expression;if(!xs(k)||k.kind!==108)return!1;let ge=x_(Nt.arguments);if(!ge||!xs(ge)||ge.kind!==230)return!1;let Xe=ge.expression;return Me(Xe)&&Xe.escapedText==="arguments"}}var Yze=pt({"src/compiler/transformers/es2015.ts"(){"use strict";wo()}});function pae(e){let{factory:t}=e,r=e.getCompilerOptions(),i,o;(r.jsx===1||r.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=d,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),o=[]);let s=e.onSubstituteNode;return e.onSubstituteNode=p,e.enableSubstitution(211),e.enableSubstitution(303),$f(e,l);function l(E){return E}function d(E,S,A){switch(S.kind){case 286:case 287:case 285:let C=S.tagName;o[dd(C)]=!0;break}i(E,S,A)}function p(E,S){return S.id&&o&&o[S.id]?s(E,S):(S=s(E,S),Er(S)?h(S):Hl(S)?m(S):S)}function h(E){if(Ci(E.name))return E;let S=v(E.name);return S?Ze(t.createElementAccessExpression(E.expression,S),E):E}function m(E){let S=Me(E.name)&&v(E.name);return S?t.updatePropertyAssignment(E,S,E.initializer):E}function v(E){let S=vb(E);if(S!==void 0&&S>=83&&S<=118)return Ze(t.createStringLiteralFromNode(E),E)}}var $ze=pt({"src/compiler/transformers/es5.ts"(){"use strict";wo()}});function Qze(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function fae(e){let{factory:t,getEmitHelperFactory:r,resumeLexicalEnvironment:i,endLexicalEnvironment:o,hoistFunctionDeclaration:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=Wa(d),h=e.getEmitResolver(),m=e.onSubstituteNode;e.onSubstituteNode=St;let v,E,S,A,C,R,L,G,U,K,F=1,oe,W,$,de,fe=0,q=0,H,ee,le,Ee,ce,Z,pe,Ae;return $f(e,Oe);function Oe(Se){if(Se.isDeclarationFile||!(Se.transformFlags&2048))return Se;let At=un(Se,_e,e);return ag(At,e.readEmitHelpers()),At}function _e(Se){let At=Se.transformFlags;return A?be(Se):S?Te(Se):_s(Se)&&Se.asteriskToken?ft(Se):At&2048?un(Se,_e,e):Se}function be(Se){switch(Se.kind){case 246:return Jo(Se);case 247:return ln(Se);case 255:return it(Se);case 256:return on(Se);default:return Te(Se)}}function Te(Se){switch(Se.kind){case 262:return he(Se);case 218:return Le(Se);case 177:case 178:return Ke(Se);case 243:return st(Se);case 248:return ke(Se);case 249:return tt(Se);case 252:return et(Se);case 251:return re(Se);case 253:return Je(Se);default:return Se.transformFlags&1048576?De(Se):Se.transformFlags&4196352?un(Se,_e,e):Se}}function De(Se){switch(Se.kind){case 226:return Ge(Se);case 361:return gn(Se);case 227:return en(Se);case 229:return zt(Se);case 209:return Wt(Se);case 210:return Ki(Se);case 212:return gi(Se);case 213:return io(Se);case 214:return Gn(Se);default:return un(Se,_e,e)}}function ft(Se){switch(Se.kind){case 262:return he(Se);case 218:return Le(Se);default:return x.failBadSyntaxKind(Se)}}function he(Se){if(Se.asteriskToken)Se=mr(Ze(t.createFunctionDeclaration(Se.modifiers,void 0,Se.name,void 0,rl(Se.parameters,_e,e),void 0,Dt(Se.body)),Se),Se);else{let At=S,Ln=A;S=!1,A=!1,Se=un(Se,_e,e),S=At,A=Ln}if(S){s(Se);return}else return Se}function Le(Se){if(Se.asteriskToken)Se=mr(Ze(t.createFunctionExpression(void 0,void 0,Se.name,void 0,rl(Se.parameters,_e,e),void 0,Dt(Se.body)),Se),Se);else{let At=S,Ln=A;S=!1,A=!1,Se=un(Se,_e,e),S=At,A=Ln}return Se}function Ke(Se){let At=S,Ln=A;return S=!1,A=!1,Se=un(Se,_e,e),S=At,A=Ln,Se}function Dt(Se){let At=[],Ln=S,eo=A,Po=C,Oo=R,Cl=L,Kl=G,Bs=U,Ks=K,vl=F,Nl=oe,Sc=W,Lp=$,fu=de;S=!0,A=!1,C=void 0,R=void 0,L=void 0,G=void 0,U=void 0,K=void 0,F=1,oe=void 0,W=void 0,$=void 0,de=t.createTempVariable(void 0),i();let tu=t.copyPrologue(Se.statements,At,!1,_e);Nr(Se.statements,tu);let nf=X();return vh(At,o()),At.push(t.createReturnStatement(nf)),S=Ln,A=eo,C=Po,R=Oo,L=Cl,G=Kl,U=Bs,K=Ks,F=vl,oe=Nl,W=Sc,$=Lp,de=fu,Ze(t.createBlock(At,Se.multiLine),Se)}function st(Se){if(Se.transformFlags&1048576){qr(Se.declarationList);return}else{if(ya(Se)&2097152)return Se;for(let Ln of Se.declarationList.declarations)l(Ln.name);let At=wC(Se.declarationList);return At.length===0?void 0:la(t.createExpressionStatement(t.inlineExpressions(nn(At,ni))),Se)}}function Ge(Se){let At=Y9(Se);switch(At){case 0:return Vt(Se);case 1:return ot(Se);default:return x.assertNever(At)}}function ot(Se){let{left:At,right:Ln}=Se;if(V(Ln)){let eo;switch(At.kind){case 211:eo=t.updatePropertyAccessExpression(At,j(x.checkDefined(He(At.expression,_e,Tu))),At.name);break;case 212:eo=t.updateElementAccessExpression(At,j(x.checkDefined(He(At.expression,_e,Tu))),j(x.checkDefined(He(At.argumentExpression,_e,lt))));break;default:eo=x.checkDefined(He(At,_e,lt));break}let Po=Se.operatorToken.kind;return PN(Po)?Ze(t.createAssignment(eo,Ze(t.createBinaryExpression(j(eo),MN(Po),x.checkDefined(He(Ln,_e,lt))),Se)),Se):t.updateBinaryExpression(Se,eo,Se.operatorToken,x.checkDefined(He(Ln,_e,lt)))}return un(Se,_e,e)}function Vt(Se){return V(Se.right)?Ine(Se.operatorToken.kind)?On(Se):Se.operatorToken.kind===28?jt(Se):t.updateBinaryExpression(Se,j(x.checkDefined(He(Se.left,_e,lt))),Se.operatorToken,x.checkDefined(He(Se.right,_e,lt))):un(Se,_e,e)}function jt(Se){let At=[];return Ln(Se.left),Ln(Se.right),t.inlineExpressions(At);function Ln(eo){Zn(eo)&&eo.operatorToken.kind===28?(Ln(eo.left),Ln(eo.right)):(V(eo)&&At.length>0&&(ae(1,[t.createExpressionStatement(t.inlineExpressions(At))]),At=[]),At.push(x.checkDefined(He(eo,_e,lt))))}}function gn(Se){let At=[];for(let Ln of Se.elements)Zn(Ln)&&Ln.operatorToken.kind===28?At.push(jt(Ln)):(V(Ln)&&At.length>0&&(ae(1,[t.createExpressionStatement(t.inlineExpressions(At))]),At=[]),At.push(x.checkDefined(He(Ln,_e,lt))));return t.inlineExpressions(At)}function On(Se){let At=Pe(),Ln=se();return zs(Ln,x.checkDefined(He(Se.left,_e,lt)),Se.left),Se.operatorToken.kind===56?vs(At,Ln,Se.left):Ut(At,Ln,Se.left),zs(Ln,x.checkDefined(He(Se.right,_e,lt)),Se.right),Ie(At),Ln}function en(Se){if(V(Se.whenTrue)||V(Se.whenFalse)){let At=Pe(),Ln=Pe(),eo=se();return vs(At,x.checkDefined(He(Se.condition,_e,lt)),Se.condition),zs(eo,x.checkDefined(He(Se.whenTrue,_e,lt)),Se.whenTrue),ho(Ln),Ie(At),zs(eo,x.checkDefined(He(Se.whenFalse,_e,lt)),Se.whenFalse),Ie(Ln),eo}return un(Se,_e,e)}function zt(Se){let At=Pe(),Ln=He(Se.expression,_e,lt);if(Se.asteriskToken){let eo=ya(Se.expression)&8388608?Ln:Ze(r().createValuesHelper(Ln),Se);Pc(eo,Se)}else Bc(Ln,Se);return Ie(At),tf(Se)}function Wt(Se){return ei(Se.elements,void 0,void 0,Se.multiLine)}function ei(Se,At,Ln,eo){let Po=Re(Se),Oo;if(Po>0){Oo=se();let Bs=Dn(Se,_e,lt,0,Po);zs(Oo,t.createArrayLiteralExpression(At?[At,...Bs]:Bs)),At=void 0}let Cl=Nd(Se,Kl,[],Po);return Oo?t.createArrayConcatCall(Oo,[t.createArrayLiteralExpression(Cl,eo)]):Ze(t.createArrayLiteralExpression(At?[At,...Cl]:Cl,eo),Ln);function Kl(Bs,Ks){if(V(Ks)&&Bs.length>0){let vl=Oo!==void 0;Oo||(Oo=se()),zs(Oo,vl?t.createArrayConcatCall(Oo,[t.createArrayLiteralExpression(Bs,eo)]):t.createArrayLiteralExpression(At?[At,...Bs]:Bs,eo)),At=void 0,Bs=[]}return Bs.push(x.checkDefined(He(Ks,_e,lt))),Bs}}function Ki(Se){let At=Se.properties,Ln=Se.multiLine,eo=Re(At),Po=se();zs(Po,t.createObjectLiteralExpression(Dn(At,_e,Zh,0,eo),Ln));let Oo=Nd(At,Cl,[],eo);return Oo.push(Ln?Sd(Ta(Ze(t.cloneNode(Po),Po),Po.parent)):Po),t.inlineExpressions(Oo);function Cl(Kl,Bs){V(Bs)&&Kl.length>0&&(il(t.createExpressionStatement(t.inlineExpressions(Kl))),Kl=[]);let Ks=fie(t,Se,Bs,Po),vl=He(Ks,_e,lt);return vl&&(Ln&&Sd(vl),Kl.push(vl)),Kl}}function gi(Se){return V(Se.argumentExpression)?t.updateElementAccessExpression(Se,j(x.checkDefined(He(Se.expression,_e,Tu))),x.checkDefined(He(Se.argumentExpression,_e,lt))):un(Se,_e,e)}function io(Se){if(!lp(Se)&&an(Se.arguments,V)){let{target:At,thisArg:Ln}=t.createCallBinding(Se.expression,l,p,!0);return mr(Ze(t.createFunctionApplyCall(j(x.checkDefined(He(At,_e,Tu))),Ln,ei(Se.arguments)),Se),Se)}return un(Se,_e,e)}function Gn(Se){if(an(Se.arguments,V)){let{target:At,thisArg:Ln}=t.createCallBinding(t.createPropertyAccessExpression(Se.expression,"bind"),l);return mr(Ze(t.createNewExpression(t.createFunctionApplyCall(j(x.checkDefined(He(At,_e,lt))),Ln,ei(Se.arguments,t.createVoidZero())),void 0,[]),Se),Se)}return un(Se,_e,e)}function Nr(Se,At=0){let Ln=Se.length;for(let eo=At;eo<Ln;eo++)Jt(Se[eo])}function cr(Se){Do(Se)?Nr(Se.statements):Jt(Se)}function Jt(Se){let At=A;A||(A=V(Se)),Ue(Se),A=At}function Ue(Se){switch(Se.kind){case 241:return Rt(Se);case 244:return mn(Se);case 245:return ki(Se);case 246:return so(Se);case 247:return ba(Se);case 248:return Tn(Se);case 249:return nt(Se);case 251:return yt(Se);case 252:return Ce(Se);case 253:return z(Se);case 254:return _t(Se);case 255:return ze(Se);case 256:return Ct(Se);case 257:return Qt(Se);case 258:return Zt(Se);default:return il(He(Se,_e,Di))}}function Rt(Se){V(Se)?Nr(Se.statements):il(He(Se,_e,Di))}function mn(Se){il(He(Se,_e,Di))}function qr(Se){for(let Oo of Se.declarations){let Cl=t.cloneNode(Oo.name);Ol(Cl,Oo.name),l(Cl)}let At=wC(Se),Ln=At.length,eo=0,Po=[];for(;eo<Ln;){for(let Oo=eo;Oo<Ln;Oo++){let Cl=At[Oo];if(V(Cl.initializer)&&Po.length>0)break;Po.push(ni(Cl))}Po.length&&(il(t.createExpressionStatement(t.inlineExpressions(Po))),eo+=Po.length,Po=[])}}function ni(Se){return la(t.createAssignment(la(t.cloneNode(Se.name),Se.name),x.checkDefined(He(Se.initializer,_e,lt))),Se)}function ki(Se){if(V(Se))if(V(Se.thenStatement)||V(Se.elseStatement)){let At=Pe(),Ln=Se.elseStatement?Pe():void 0;vs(Se.elseStatement?Ln:At,x.checkDefined(He(Se.expression,_e,lt)),Se.expression),cr(Se.thenStatement),Se.elseStatement&&(ho(At),Ie(Ln),cr(Se.elseStatement)),Ie(At)}else il(He(Se,_e,Di));else il(He(Se,_e,Di))}function so(Se){if(V(Se)){let At=Pe(),Ln=Pe();_i(At),Ie(Ln),cr(Se.statement),Ie(At),Ut(Ln,x.checkDefined(He(Se.expression,_e,lt))),ui()}else il(He(Se,_e,Di))}function Jo(Se){return A?(Zi(),Se=un(Se,_e,e),ui(),Se):un(Se,_e,e)}function ba(Se){if(V(Se)){let At=Pe(),Ln=_i(At);Ie(At),vs(Ln,x.checkDefined(He(Se.expression,_e,lt))),cr(Se.statement),ho(At),ui()}else il(He(Se,_e,Di))}function ln(Se){return A?(Zi(),Se=un(Se,_e,e),ui(),Se):un(Se,_e,e)}function Tn(Se){if(V(Se)){let At=Pe(),Ln=Pe(),eo=_i(Ln);if(Se.initializer){let Po=Se.initializer;yc(Po)?qr(Po):il(Ze(t.createExpressionStatement(x.checkDefined(He(Po,_e,lt))),Po))}Ie(At),Se.condition&&vs(eo,x.checkDefined(He(Se.condition,_e,lt))),cr(Se.statement),Ie(Ln),Se.incrementor&&il(Ze(t.createExpressionStatement(x.checkDefined(He(Se.incrementor,_e,lt))),Se.incrementor)),ho(At),ui()}else il(He(Se,_e,Di))}function ke(Se){A&&Zi();let At=Se.initializer;if(At&&yc(At)){for(let eo of At.declarations)l(eo.name);let Ln=wC(At);Se=t.updateForStatement(Se,Ln.length>0?t.inlineExpressions(nn(Ln,ni)):void 0,He(Se.condition,_e,lt),He(Se.incrementor,_e,lt),Qd(Se.statement,_e,e))}else Se=un(Se,_e,e);return A&&ui(),Se}function nt(Se){if(V(Se)){let At=se(),Ln=se(),eo=se(),Po=t.createLoopVariable(),Oo=Se.initializer;l(Po),zs(At,x.checkDefined(He(Se.expression,_e,lt))),zs(Ln,t.createArrayLiteralExpression()),il(t.createForInStatement(eo,At,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Ln,"push"),void 0,[eo])))),zs(Po,t.createNumericLiteral(0));let Cl=Pe(),Kl=Pe(),Bs=_i(Kl);Ie(Cl),vs(Bs,t.createLessThan(Po,t.createPropertyAccessExpression(Ln,"length"))),zs(eo,t.createElementAccessExpression(Ln,Po)),vs(Kl,t.createBinaryExpression(eo,103,At));let Ks;if(yc(Oo)){for(let vl of Oo.declarations)l(vl.name);Ks=t.cloneNode(Oo.declarations[0].name)}else Ks=x.checkDefined(He(Oo,_e,lt)),x.assert(Tu(Ks));zs(Ks,eo),cr(Se.statement),Ie(Kl),il(t.createExpressionStatement(t.createPostfixIncrement(Po))),ho(Cl),ui()}else il(He(Se,_e,Di))}function tt(Se){A&&Zi();let At=Se.initializer;if(yc(At)){for(let Ln of At.declarations)l(Ln.name);Se=t.updateForInStatement(Se,At.declarations[0].name,x.checkDefined(He(Se.expression,_e,lt)),x.checkDefined(He(Se.statement,_e,Di,t.liftToBlock)))}else Se=un(Se,_e,e);return A&&ui(),Se}function yt(Se){let At=Uo(Se.label?ar(Se.label):void 0);At>0?ho(At,Se):il(Se)}function re(Se){if(A){let At=Uo(Se.label&&ar(Se.label));if(At>0)return da(At,Se)}return un(Se,_e,e)}function Ce(Se){let At=$i(Se.label?ar(Se.label):void 0);At>0?ho(At,Se):il(Se)}function et(Se){if(A){let At=$i(Se.label&&ar(Se.label));if(At>0)return da(At,Se)}return un(Se,_e,e)}function z(Se){Ju(He(Se.expression,_e,lt),Se)}function Je(Se){return Us(He(Se.expression,_e,lt),Se)}function _t(Se){V(Se)?(An(j(x.checkDefined(He(Se.expression,_e,lt)))),cr(Se.statement),Cn()):il(He(Se,_e,Di))}function ze(Se){if(V(Se.caseBlock)){let At=Se.caseBlock,Ln=At.clauses.length,eo=lo(),Po=j(x.checkDefined(He(Se.expression,_e,lt))),Oo=[],Cl=-1;for(let Ks=0;Ks<Ln;Ks++){let vl=At.clauses[Ks];Oo.push(Pe()),vl.kind===297&&Cl===-1&&(Cl=Ks)}let Kl=0,Bs=[];for(;Kl<Ln;){let Ks=0;for(let vl=Kl;vl<Ln;vl++){let Nl=At.clauses[vl];if(Nl.kind===296){if(V(Nl.expression)&&Bs.length>0)break;Bs.push(t.createCaseClause(x.checkDefined(He(Nl.expression,_e,lt)),[da(Oo[vl],Nl.expression)]))}else Ks++}Bs.length&&(il(t.createSwitchStatement(Po,t.createCaseBlock(Bs))),Kl+=Bs.length,Bs=[]),Ks>0&&(Kl+=Ks,Ks=0)}Cl>=0?ho(Oo[Cl]):ho(eo);for(let Ks=0;Ks<Ln;Ks++)Ie(Oo[Ks]),Nr(At.clauses[Ks].statements);_n()}else il(He(Se,_e,Di))}function it(Se){return A&&Mr(),Se=un(Se,_e,e),A&&_n(),Se}function Ct(Se){V(Se)?(Dl(ar(Se.label)),cr(Se.statement),_o()):il(He(Se,_e,Di))}function on(Se){return A&&fs(ar(Se.label)),Se=un(Se,_e,e),A&&_o(),Se}function Qt(Se){ls(x.checkDefined(He(Se.expression??t.createVoidZero(),_e,lt)),Se)}function Zt(Se){V(Se)?(ti(),cr(Se.tryBlock),Se.catchClause&&(di(Se.catchClause.variableDeclaration),cr(Se.catchClause.block)),Se.finallyBlock&&(jn(),cr(Se.finallyBlock)),Ar()):il(un(Se,_e,e))}function V(Se){return!!Se&&(Se.transformFlags&1048576)!==0}function Re(Se){let At=Se.length;for(let Ln=0;Ln<At;Ln++)if(V(Se[Ln]))return Ln;return-1}function St(Se,At){return At=m(Se,At),Se===1?M(At):At}function M(Se){return Me(Se)?te(Se):Se}function te(Se){if(!ws(Se)&&v&&v.has(ar(Se))){let At=sl(Se);if(Me(At)&&At.parent){let Ln=h.getReferencedValueDeclaration(At);if(Ln){let eo=E[dd(Ln)];if(eo){let Po=Ta(Ze(t.cloneNode(eo),eo),eo.parent);return la(Po,Se),Ol(Po,Se),Po}}}}return Se}function j(Se){if(ws(Se)||ya(Se)&8192)return Se;let At=t.createTempVariable(l);return zs(At,Se,Se),At}function se(Se){let At=Se?t.createUniqueName(Se):t.createTempVariable(void 0);return l(At),At}function Pe(){U||(U=[]);let Se=F;return F++,U[Se]=-1,Se}function Ie(Se){x.assert(U!==void 0,"No labels were defined."),U[Se]=oe?oe.length:0}function gt(Se){C||(C=[],L=[],R=[],G=[]);let At=L.length;return L[At]=0,R[At]=oe?oe.length:0,C[At]=Se,G.push(Se),At}function bt(){let Se=Ot();if(Se===void 0)return x.fail("beginBlock was never called.");let At=L.length;return L[At]=1,R[At]=oe?oe.length:0,C[At]=Se,G.pop(),Se}function Ot(){return Ns(G)}function dn(){let Se=Ot();return Se&&Se.kind}function An(Se){let At=Pe(),Ln=Pe();Ie(At),gt({kind:1,expression:Se,startLabel:At,endLabel:Ln})}function Cn(){x.assert(dn()===1);let Se=bt();Ie(Se.endLabel)}function ti(){let Se=Pe(),At=Pe();return Ie(Se),gt({kind:0,state:0,startLabel:Se,endLabel:At}),Wl(),At}function di(Se){x.assert(dn()===0);let At;if(ws(Se.name))At=Se.name,l(Se.name);else{let Oo=ar(Se.name);At=se(Oo),v||(v=new Map,E=[],e.enableSubstitution(80)),v.set(Oo,!0),E[dd(Se)]=At}let Ln=Ot();x.assert(Ln.state<1);let eo=Ln.endLabel;ho(eo);let Po=Pe();Ie(Po),Ln.state=1,Ln.catchVariable=At,Ln.catchLabel=Po,zs(At,t.createCallExpression(t.createPropertyAccessExpression(de,"sent"),void 0,[])),Wl()}function jn(){x.assert(dn()===0);let Se=Ot();x.assert(Se.state<2);let At=Se.endLabel;ho(At);let Ln=Pe();Ie(Ln),Se.state=2,Se.finallyLabel=Ln}function Ar(){x.assert(dn()===0);let Se=bt();Se.state<2?ho(Se.endLabel):tc(),Ie(Se.endLabel),Wl(),Se.state=3}function Zi(){gt({kind:3,isScript:!0,breakLabel:-1,continueLabel:-1})}function _i(Se){let At=Pe();return gt({kind:3,isScript:!1,breakLabel:At,continueLabel:Se}),At}function ui(){x.assert(dn()===3);let Se=bt(),At=Se.breakLabel;Se.isScript||Ie(At)}function Mr(){gt({kind:2,isScript:!0,breakLabel:-1})}function lo(){let Se=Pe();return gt({kind:2,isScript:!1,breakLabel:Se}),Se}function _n(){x.assert(dn()===2);let Se=bt(),At=Se.breakLabel;Se.isScript||Ie(At)}function fs(Se){gt({kind:4,isScript:!0,labelText:Se,breakLabel:-1})}function Dl(Se){let At=Pe();gt({kind:4,isScript:!1,labelText:Se,breakLabel:At})}function _o(){x.assert(dn()===4);let Se=bt();Se.isScript||Ie(Se.breakLabel)}function Va(Se){return Se.kind===2||Se.kind===3}function gs(Se){return Se.kind===4}function Js(Se){return Se.kind===3}function Fc(Se,At){for(let Ln=At;Ln>=0;Ln--){let eo=G[Ln];if(gs(eo)){if(eo.labelText===Se)return!0}else break}return!1}function $i(Se){if(G)if(Se)for(let At=G.length-1;At>=0;At--){let Ln=G[At];if(gs(Ln)&&Ln.labelText===Se)return Ln.breakLabel;if(Va(Ln)&&Fc(Se,At-1))return Ln.breakLabel}else for(let At=G.length-1;At>=0;At--){let Ln=G[At];if(Va(Ln))return Ln.breakLabel}return 0}function Uo(Se){if(G)if(Se)for(let At=G.length-1;At>=0;At--){let Ln=G[At];if(Js(Ln)&&Fc(Se,At-1))return Ln.continueLabel}else for(let At=G.length-1;At>=0;At--){let Ln=G[At];if(Js(Ln))return Ln.continueLabel}return 0}function zc(Se){if(Se!==void 0&&Se>0){K===void 0&&(K=[]);let At=t.createNumericLiteral(Number.MAX_SAFE_INTEGER);return K[Se]===void 0?K[Se]=[At]:K[Se].push(At),At}return t.createOmittedExpression()}function ts(Se){let At=t.createNumericLiteral(Se);return kF(At,3,Qze(Se)),At}function da(Se,At){return x.assertLessThan(0,Se,"Invalid label"),Ze(t.createReturnStatement(t.createArrayLiteralExpression([ts(3),zc(Se)])),At)}function Us(Se,At){return Ze(t.createReturnStatement(t.createArrayLiteralExpression(Se?[ts(2),Se]:[ts(2)])),At)}function tf(Se){return Ze(t.createCallExpression(t.createPropertyAccessExpression(de,"sent"),void 0,[]),Se)}function Wl(){ae(0)}function il(Se){Se?ae(1,[Se]):Wl()}function zs(Se,At,Ln){ae(2,[Se,At],Ln)}function ho(Se,At){ae(3,[Se],At)}function Ut(Se,At,Ln){ae(4,[Se,At],Ln)}function vs(Se,At,Ln){ae(5,[Se,At],Ln)}function Pc(Se,At){ae(7,[Se],At)}function Bc(Se,At){ae(6,[Se],At)}function Ju(Se,At){ae(8,[Se],At)}function ls(Se,At){ae(9,[Se],At)}function tc(){ae(10)}function ae(Se,At,Ln){oe===void 0&&(oe=[],W=[],$=[]),U===void 0&&Ie(Pe());let eo=oe.length;oe[eo]=Se,W[eo]=At,$[eo]=Ln}function X(){fe=0,q=0,H=void 0,ee=!1,le=!1,Ee=void 0,ce=void 0,Z=void 0,pe=void 0,Ae=void 0;let Se=xe();return r().createGeneratorHelper($n(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,de)],void 0,t.createBlock(Se,Se.length>0)),1048576))}function xe(){if(oe){for(let Se=0;Se<oe.length;Se++)No(Se);$t(oe.length)}else $t(0);if(Ee){let Se=t.createPropertyAccessExpression(de,"label"),At=t.createSwitchStatement(Se,t.createCaseBlock(Ee));return[Sd(At)]}return ce||[]}function dt(){ce&&(tr(!ee),ee=!1,le=!1,q++)}function $t(Se){sr(Se)&&(Ir(Se),Ae=void 0,Jl(void 0,void 0)),ce&&Ee&&tr(!1),pi()}function sr(Se){if(!le)return!0;if(!U||!K)return!1;for(let At=0;At<U.length;At++)if(U[At]===Se&&K[At])return!0;return!1}function tr(Se){if(Ee||(Ee=[]),ce){if(Ae)for(let At=Ae.length-1;At>=0;At--){let Ln=Ae[At];ce=[t.createWithStatement(Ln.expression,t.createBlock(ce))]}if(pe){let{startLabel:At,catchLabel:Ln,finallyLabel:eo,endLabel:Po}=pe;ce.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(de,"trys"),"push"),void 0,[t.createArrayLiteralExpression([zc(At),zc(Ln),zc(eo),zc(Po)])]))),pe=void 0}Se&&ce.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(de,"label"),t.createNumericLiteral(q+1))))}Ee.push(t.createCaseClause(t.createNumericLiteral(q),ce||[])),ce=void 0}function Ir(Se){if(U)for(let At=0;At<U.length;At++)U[At]===Se&&(dt(),H===void 0&&(H=[]),H[q]===void 0?H[q]=[At]:H[q].push(At))}function pi(){if(K!==void 0&&H!==void 0)for(let Se=0;Se<H.length;Se++){let At=H[Se];if(At!==void 0)for(let Ln of At){let eo=K[Ln];if(eo!==void 0)for(let Po of eo)Po.text=String(Se)}}}function hr(Se){if(C)for(;fe<L.length&&R[fe]<=Se;fe++){let At=C[fe],Ln=L[fe];switch(At.kind){case 0:Ln===0?(Z||(Z=[]),ce||(ce=[]),Z.push(pe),pe=At):Ln===1&&(pe=Z.pop());break;case 1:Ln===0?(Ae||(Ae=[]),Ae.push(At)):Ln===1&&Ae.pop();break}}}function No(Se){if(Ir(Se),hr(Se),ee)return;ee=!1,le=!1;let At=oe[Se];if(At===0)return;if(At===10)return Vd();let Ln=W[Se];if(At===1)return Qs(Ln[0]);let eo=$[Se];switch(At){case 2:return bc(Ln[0],Ln[1],eo);case 3:return Za(Ln[0],eo);case 4:return Ec(Ln[0],Ln[1],eo);case 5:return Du(Ln[0],Ln[1],eo);case 6:return pc(Ln[0],eo);case 7:return Nf(Ln[0],eo);case 8:return Jl(Ln[0],eo);case 9:return ys(Ln[0],eo)}}function Qs(Se){Se&&(ce?ce.push(Se):ce=[Se])}function bc(Se,At,Ln){Qs(Ze(t.createExpressionStatement(t.createAssignment(Se,At)),Ln))}function ys(Se,At){ee=!0,le=!0,Qs(Ze(t.createThrowStatement(Se),At))}function Jl(Se,At){ee=!0,le=!0,Qs($n(Ze(t.createReturnStatement(t.createArrayLiteralExpression(Se?[ts(2),Se]:[ts(2)])),At),768))}function Za(Se,At){ee=!0,Qs($n(Ze(t.createReturnStatement(t.createArrayLiteralExpression([ts(3),zc(Se)])),At),768))}function Ec(Se,At,Ln){Qs($n(t.createIfStatement(At,$n(Ze(t.createReturnStatement(t.createArrayLiteralExpression([ts(3),zc(Se)])),Ln),768)),1))}function Du(Se,At,Ln){Qs($n(t.createIfStatement(t.createLogicalNot(At),$n(Ze(t.createReturnStatement(t.createArrayLiteralExpression([ts(3),zc(Se)])),Ln),768)),1))}function pc(Se,At){ee=!0,Qs($n(Ze(t.createReturnStatement(t.createArrayLiteralExpression(Se?[ts(4),Se]:[ts(4)])),At),768))}function Nf(Se,At){ee=!0,Qs($n(Ze(t.createReturnStatement(t.createArrayLiteralExpression([ts(5),Se])),At),768))}function Vd(){ee=!0,Qs(t.createReturnStatement(t.createArrayLiteralExpression([ts(7)])))}}var Zze=pt({"src/compiler/transformers/generators.ts"(){"use strict";wo()}});function aH(e){function t(V){switch(V){case 2:return oe;case 3:return W;default:return F}}let{factory:r,getEmitHelperFactory:i,startLexicalEnvironment:o,endLexicalEnvironment:s,hoistVariableDeclaration:l}=e,d=e.getCompilerOptions(),p=e.getEmitResolver(),h=e.getEmitHost(),m=Wa(d),v=ld(d),E=e.onSubstituteNode,S=e.onEmitNode;e.onSubstituteNode=Je,e.onEmitNode=z,e.enableSubstitution(213),e.enableSubstitution(215),e.enableSubstitution(80),e.enableSubstitution(226),e.enableSubstitution(304),e.enableEmitNotification(312);let A=[],C,R,L=[],G;return $f(e,U);function U(V){if(V.isDeclarationFile||!(MA(V,d)||V.transformFlags&8388608||yf(V)&&rF(d)&&ss(d)))return V;C=V,R=XU(e,V),A[dd(V)]=R;let St=t(v)(V);return C=void 0,R=void 0,G=!1,St}function K(){return!!(!R.exportEquals&&wl(C))}function F(V){o();let Re=[],St=Fd(d,"alwaysStrict")||!d.noImplicitUseStrict&&wl(C),M=r.copyPrologue(V.statements,Re,St&&!yf(V),H);if(K()&&pn(Re,yt()),yn(R.exportedNames))for(let se=0;se<R.exportedNames.length;se+=50)pn(Re,r.createExpressionStatement(Nd(R.exportedNames.slice(se,se+50),(Pe,Ie)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(ar(Ie))),Pe),r.createVoidZero())));pn(Re,He(R.externalHelpersImportDeclaration,H,Di)),Pr(Re,Dn(V.statements,H,Di,M)),q(Re,!1),vh(Re,s());let te=r.updateSourceFile(V,Ze(r.createNodeArray(Re),V.statements));return ag(te,e.readEmitHelpers()),te}function oe(V){let Re=r.createIdentifier("define"),St=k2(r,V,h,d),M=yf(V)&&V,{aliasedModuleNames:te,unaliasedModuleNames:j,importAliasNames:se}=$(V,!0),Pe=r.updateSourceFile(V,Ze(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(Re,void 0,[...St?[St]:[],r.createArrayLiteralExpression(M?je:[r.createStringLiteral("require"),r.createStringLiteral("exports"),...te,...j]),M?M.statements.length?M.statements[0].expression:r.createObjectLiteralExpression():r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...se],void 0,fe(V))]))]),V.statements));return ag(Pe,e.readEmitHelpers()),Pe}function W(V){let{aliasedModuleNames:Re,unaliasedModuleNames:St,importAliasNames:M}=$(V,!1),te=k2(r,V,h,d),j=r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"factory")],void 0,Ze(r.createBlock([r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("module"),"object"),r.createTypeCheck(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),"object")),r.createBlock([r.createVariableStatement(void 0,[r.createVariableDeclaration("v",void 0,void 0,r.createCallExpression(r.createIdentifier("factory"),void 0,[r.createIdentifier("require"),r.createIdentifier("exports")]))]),$n(r.createIfStatement(r.createStrictInequality(r.createIdentifier("v"),r.createIdentifier("undefined")),r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),r.createIdentifier("v")))),1)]),r.createIfStatement(r.createLogicalAnd(r.createTypeCheck(r.createIdentifier("define"),"function"),r.createPropertyAccessExpression(r.createIdentifier("define"),"amd")),r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("define"),void 0,[...te?[te]:[],r.createArrayLiteralExpression([r.createStringLiteral("require"),r.createStringLiteral("exports"),...Re,...St]),r.createIdentifier("factory")]))])))],!0),void 0)),se=r.updateSourceFile(V,Ze(r.createNodeArray([r.createExpressionStatement(r.createCallExpression(j,void 0,[r.createFunctionExpression(void 0,void 0,void 0,void 0,[r.createParameterDeclaration(void 0,void 0,"require"),r.createParameterDeclaration(void 0,void 0,"exports"),...M],void 0,fe(V))]))]),V.statements));return ag(se,e.readEmitHelpers()),se}function $(V,Re){let St=[],M=[],te=[];for(let j of V.amdDependencies)j.name?(St.push(r.createStringLiteral(j.path)),te.push(r.createParameterDeclaration(void 0,void 0,j.name))):M.push(r.createStringLiteral(j.path));for(let j of R.externalImports){let se=hI(r,j,C,h,p,d),Pe=Hx(r,j,C);se&&(Re&&Pe?($n(Pe,8),St.push(se),te.push(r.createParameterDeclaration(void 0,void 0,Pe))):M.push(se))}return{aliasedModuleNames:St,unaliasedModuleNames:M,importAliasNames:te}}function de(V){if(Nc(V)||xl(V)||!hI(r,V,C,h,p,d))return;let Re=Hx(r,V,C),St=io(V,Re);if(St!==Re)return r.createExpressionStatement(r.createAssignment(Re,St))}function fe(V){o();let Re=[],St=r.copyPrologue(V.statements,Re,!d.noImplicitUseStrict,H);K()&&pn(Re,yt()),yn(R.exportedNames)&&pn(Re,r.createExpressionStatement(Nd(R.exportedNames,(te,j)=>r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.createIdentifier(ar(j))),te),r.createVoidZero()))),pn(Re,He(R.externalHelpersImportDeclaration,H,Di)),v===2&&Pr(Re,Fi(R.externalImports,de)),Pr(Re,Dn(V.statements,H,Di,St)),q(Re,!0),vh(Re,s());let M=r.createBlock(Re,!0);return G&&$A(M,BSe),M}function q(V,Re){if(R.exportEquals){let St=He(R.exportEquals.expression,Ee,lt);if(St)if(Re){let M=r.createReturnStatement(St);Ze(M,R.exportEquals),$n(M,3840),V.push(M)}else{let M=r.createExpressionStatement(r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("module"),"exports"),St));Ze(M,R.exportEquals),$n(M,3072),V.push(M)}}}function H(V){switch(V.kind){case 272:return Gn(V);case 271:return cr(V);case 278:return Jt(V);case 277:return Ue(V);default:return ee(V)}}function ee(V){switch(V.kind){case 243:return qr(V);case 262:return Rt(V);case 263:return mn(V);case 248:return Ae(V,!0);case 249:return Oe(V);case 250:return _e(V);case 246:return be(V);case 247:return Te(V);case 256:return De(V);case 254:return ft(V);case 245:return he(V);case 255:return Le(V);case 269:return Ke(V);case 296:return Dt(V);case 297:return st(V);case 258:return Ge(V);case 299:return ot(V);case 241:return Vt(V);default:return Ee(V)}}function le(V,Re){if(!(V.transformFlags&276828160))return V;switch(V.kind){case 248:return Ae(V,!1);case 244:return jt(V);case 217:return gn(V,Re);case 360:return On(V,Re);case 213:if(lp(V)&&C.impliedNodeFormat===void 0)return zt(V);break;case 226:if(nv(V))return pe(V,Re);break;case 224:case 225:return en(V,Re)}return un(V,Ee,e)}function Ee(V){return le(V,!1)}function ce(V){return le(V,!0)}function Z(V){if(fa(V))for(let Re of V.properties)switch(Re.kind){case 303:if(Z(Re.initializer))return!0;break;case 304:if(Z(Re.name))return!0;break;case 305:if(Z(Re.expression))return!0;break;case 174:case 177:case 178:return!1;default:x.assertNever(Re,"Unhandled object member kind")}else if(Bd(V)){for(let Re of V.elements)if(bm(Re)){if(Z(Re.expression))return!0}else if(Z(Re))return!0}else if(Me(V))return yn(Zt(V))>(R6(V)?1:0);return!1}function pe(V,Re){return Z(V.left)?nT(V,Ee,e,0,!Re,ni):un(V,Ee,e)}function Ae(V,Re){if(Re&&V.initializer&&yc(V.initializer)&&!(V.initializer.flags&7)){let St=ln(void 0,V.initializer,!1);if(St){let M=[],te=He(V.initializer,ce,yc),j=r.createVariableStatement(void 0,te);M.push(j),Pr(M,St);let se=He(V.condition,Ee,lt),Pe=He(V.incrementor,ce,lt),Ie=Qd(V.statement,Re?ee:Ee,e);return M.push(r.updateForStatement(V,void 0,se,Pe,Ie)),M}}return r.updateForStatement(V,He(V.initializer,ce,Up),He(V.condition,Ee,lt),He(V.incrementor,ce,lt),Qd(V.statement,Re?ee:Ee,e))}function Oe(V){if(yc(V.initializer)&&!(V.initializer.flags&7)){let Re=ln(void 0,V.initializer,!0);if(ct(Re)){let St=He(V.initializer,ce,Up),M=He(V.expression,Ee,lt),te=Qd(V.statement,ee,e),j=Do(te)?r.updateBlock(te,[...Re,...te.statements]):r.createBlock([...Re,te],!0);return r.updateForInStatement(V,St,M,j)}}return r.updateForInStatement(V,He(V.initializer,ce,Up),He(V.expression,Ee,lt),Qd(V.statement,ee,e))}function _e(V){if(yc(V.initializer)&&!(V.initializer.flags&7)){let Re=ln(void 0,V.initializer,!0),St=He(V.initializer,ce,Up),M=He(V.expression,Ee,lt),te=Qd(V.statement,ee,e);return ct(Re)&&(te=Do(te)?r.updateBlock(te,[...Re,...te.statements]):r.createBlock([...Re,te],!0)),r.updateForOfStatement(V,V.awaitModifier,St,M,te)}return r.updateForOfStatement(V,V.awaitModifier,He(V.initializer,ce,Up),He(V.expression,Ee,lt),Qd(V.statement,ee,e))}function be(V){return r.updateDoStatement(V,Qd(V.statement,ee,e),He(V.expression,Ee,lt))}function Te(V){return r.updateWhileStatement(V,He(V.expression,Ee,lt),Qd(V.statement,ee,e))}function De(V){return r.updateLabeledStatement(V,V.label,x.checkDefined(He(V.statement,ee,Di,r.liftToBlock)))}function ft(V){return r.updateWithStatement(V,He(V.expression,Ee,lt),x.checkDefined(He(V.statement,ee,Di,r.liftToBlock)))}function he(V){return r.updateIfStatement(V,He(V.expression,Ee,lt),x.checkDefined(He(V.thenStatement,ee,Di,r.liftToBlock)),He(V.elseStatement,ee,Di,r.liftToBlock))}function Le(V){return r.updateSwitchStatement(V,He(V.expression,Ee,lt),x.checkDefined(He(V.caseBlock,ee,fN)))}function Ke(V){return r.updateCaseBlock(V,Dn(V.clauses,ee,q8))}function Dt(V){return r.updateCaseClause(V,He(V.expression,Ee,lt),Dn(V.statements,ee,Di))}function st(V){return un(V,ee,e)}function Ge(V){return un(V,ee,e)}function ot(V){return r.updateCatchClause(V,V.variableDeclaration,x.checkDefined(He(V.block,ee,Do)))}function Vt(V){return V=un(V,ee,e),V}function jt(V){return r.updateExpressionStatement(V,He(V.expression,ce,lt))}function gn(V,Re){return r.updateParenthesizedExpression(V,He(V.expression,Re?ce:Ee,lt))}function On(V,Re){return r.updatePartiallyEmittedExpression(V,He(V.expression,Re?ce:Ee,lt))}function en(V,Re){if((V.operator===46||V.operator===47)&&Me(V.operand)&&!ws(V.operand)&&!lg(V.operand)&&!gV(V.operand)){let St=Zt(V.operand);if(St){let M,te=He(V.operand,Ee,lt);fy(V)?te=r.updatePrefixUnaryExpression(V,te):(te=r.updatePostfixUnaryExpression(V,te),Re||(M=r.createTempVariable(l),te=r.createAssignment(M,te),Ze(te,V)),te=r.createComma(te,r.cloneNode(V.operand)),Ze(te,V));for(let j of St)L[Fa(te)]=!0,te=Ce(j,te),Ze(te,V);return M&&(L[Fa(te)]=!0,te=r.createComma(te,M),Ze(te,V)),te}}return un(V,Ee,e)}function zt(V){if(v===0&&m>=7)return un(V,Ee,e);let Re=hI(r,V,C,h,p,d),St=He(Ac(V.arguments),Ee,lt),M=Re&&(!St||!ca(St)||St.text!==Re.text)?Re:St,te=!!(V.transformFlags&16384);switch(d.module){case 2:return ei(M,te);case 3:return Wt(M??r.createVoidZero(),te);case 1:default:return Ki(M)}}function Wt(V,Re){if(G=!0,g0(V)){let St=ws(V)?V:ca(V)?r.createStringLiteralFromNode(V):$n(Ze(r.cloneNode(V),V),3072);return r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Ki(V),void 0,ei(St,Re))}else{let St=r.createTempVariable(l);return r.createComma(r.createAssignment(St,V),r.createConditionalExpression(r.createIdentifier("__syncRequire"),void 0,Ki(St,!0),void 0,ei(St,Re)))}}function ei(V,Re){let St=r.createUniqueName("resolve"),M=r.createUniqueName("reject"),te=[r.createParameterDeclaration(void 0,void 0,St),r.createParameterDeclaration(void 0,void 0,M)],j=r.createBlock([r.createExpressionStatement(r.createCallExpression(r.createIdentifier("require"),void 0,[r.createArrayLiteralExpression([V||r.createOmittedExpression()]),St,M]))]),se;m>=2?se=r.createArrowFunction(void 0,void 0,te,void 0,void 0,j):(se=r.createFunctionExpression(void 0,void 0,void 0,void 0,te,void 0,j),Re&&$n(se,16));let Pe=r.createNewExpression(r.createIdentifier("Promise"),void 0,[se]);return F_(d)?r.createCallExpression(r.createPropertyAccessExpression(Pe,r.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):Pe}function Ki(V,Re){let St=V&&!i_(V)&&!Re,M=r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Promise"),"resolve"),void 0,St?m>=2?[r.createTemplateExpression(r.createTemplateHead(""),[r.createTemplateSpan(V,r.createTemplateTail(""))])]:[r.createCallExpression(r.createPropertyAccessExpression(r.createStringLiteral(""),"concat"),void 0,[V])]:[]),te=r.createCallExpression(r.createIdentifier("require"),void 0,St?[r.createIdentifier("s")]:V?[V]:[]);F_(d)&&(te=i().createImportStarHelper(te));let j=St?[r.createParameterDeclaration(void 0,void 0,"s")]:[],se;return m>=2?se=r.createArrowFunction(void 0,void 0,j,void 0,void 0,te):se=r.createFunctionExpression(void 0,void 0,void 0,void 0,j,void 0,r.createBlock([r.createReturnStatement(te)])),r.createCallExpression(r.createPropertyAccessExpression(M,"then"),void 0,[se])}function gi(V,Re){return!F_(d)||Uf(V)&2?Re:Ooe(V)?i().createImportStarHelper(Re):Re}function io(V,Re){return!F_(d)||Uf(V)&2?Re:_4(V)?i().createImportStarHelper(Re):KU(V)?i().createImportDefaultHelper(Re):Re}function Gn(V){let Re,St=cx(V);if(v!==2)if(V.importClause){let M=[];St&&!kA(V)?M.push(r.createVariableDeclaration(r.cloneNode(St.name),void 0,void 0,io(V,Nr(V)))):(M.push(r.createVariableDeclaration(r.getGeneratedNameForNode(V),void 0,void 0,io(V,Nr(V)))),St&&kA(V)&&M.push(r.createVariableDeclaration(r.cloneNode(St.name),void 0,void 0,r.getGeneratedNameForNode(V)))),Re=pn(Re,mr(Ze(r.createVariableStatement(void 0,r.createVariableDeclarationList(M,m>=2?2:0)),V),V))}else return mr(Ze(r.createExpressionStatement(Nr(V)),V),V);else St&&kA(V)&&(Re=pn(Re,r.createVariableStatement(void 0,r.createVariableDeclarationList([mr(Ze(r.createVariableDeclaration(r.cloneNode(St.name),void 0,void 0,r.getGeneratedNameForNode(V)),V),V)],m>=2?2:0))));return Re=so(Re,V),R_(Re)}function Nr(V){let Re=hI(r,V,C,h,p,d),St=[];return Re&&St.push(Re),r.createCallExpression(r.createIdentifier("require"),void 0,St)}function cr(V){x.assert(Ab(V),"import= for internal module references should be handled in an earlier transformer.");let Re;return v!==2?Wr(V,32)?Re=pn(Re,mr(Ze(r.createExpressionStatement(Ce(V.name,Nr(V))),V),V)):Re=pn(Re,mr(Ze(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(r.cloneNode(V.name),void 0,void 0,Nr(V))],m>=2?2:0)),V),V)):Wr(V,32)&&(Re=pn(Re,mr(Ze(r.createExpressionStatement(Ce(r.getExportName(V),r.getLocalName(V))),V),V))),Re=Jo(Re,V),R_(Re)}function Jt(V){if(!V.moduleSpecifier)return;let Re=r.getGeneratedNameForNode(V);if(V.exportClause&&$p(V.exportClause)){let St=[];v!==2&&St.push(mr(Ze(r.createVariableStatement(void 0,r.createVariableDeclarationList([r.createVariableDeclaration(Re,void 0,void 0,Nr(V))])),V),V));for(let M of V.exportClause.elements)if(m===0)St.push(mr(Ze(r.createExpressionStatement(i().createCreateBindingHelper(Re,r.createStringLiteralFromNode(M.propertyName||M.name),M.propertyName?r.createStringLiteralFromNode(M.name):void 0)),M),M));else{let te=!!F_(d)&&!(Uf(V)&2)&&ar(M.propertyName||M.name)==="default",j=r.createPropertyAccessExpression(te?i().createImportDefaultHelper(Re):Re,M.propertyName||M.name);St.push(mr(Ze(r.createExpressionStatement(Ce(r.getExportName(M),j,void 0,!0)),M),M))}return R_(St)}else if(V.exportClause){let St=[];return St.push(mr(Ze(r.createExpressionStatement(Ce(r.cloneNode(V.exportClause.name),gi(V,v!==2?Nr(V):rW(V)?Re:r.createIdentifier(ar(V.exportClause.name))))),V),V)),R_(St)}else return mr(Ze(r.createExpressionStatement(i().createExportStarHelper(v!==2?Nr(V):Re)),V),V)}function Ue(V){if(!V.isExportEquals)return re(r.createIdentifier("default"),He(V.expression,Ee,lt),V,!0)}function Rt(V){let Re;return Wr(V,32)?Re=pn(Re,mr(Ze(r.createFunctionDeclaration(Dn(V.modifiers,et,ia),V.asteriskToken,r.getDeclarationName(V,!0,!0),void 0,Dn(V.parameters,Ee,ao),void 0,un(V.body,Ee,e)),V),V)):Re=pn(Re,un(V,Ee,e)),Re=ke(Re,V),R_(Re)}function mn(V){let Re;return Wr(V,32)?Re=pn(Re,mr(Ze(r.createClassDeclaration(Dn(V.modifiers,et,Ws),r.getDeclarationName(V,!0,!0),void 0,Dn(V.heritageClauses,Ee,Ip),Dn(V.members,Ee,xc)),V),V)):Re=pn(Re,un(V,Ee,e)),Re=ke(Re,V),R_(Re)}function qr(V){let Re,St,M;if(Wr(V,32)){let te,j=!1;for(let se of V.declarationList.declarations)if(Me(se.name)&&lg(se.name))if(te||(te=Dn(V.modifiers,et,ia)),se.initializer){let Pe=r.updateVariableDeclaration(se,se.name,void 0,void 0,Ce(se.name,He(se.initializer,Ee,lt)));St=pn(St,Pe)}else St=pn(St,se);else if(se.initializer)if(!ko(se.name)&&(hs(se.initializer)||us(se.initializer)||Dc(se.initializer))){let Pe=r.createAssignment(Ze(r.createPropertyAccessExpression(r.createIdentifier("exports"),se.name),se.name),r.createIdentifier(Ef(se.name))),Ie=r.createVariableDeclaration(se.name,se.exclamationToken,se.type,He(se.initializer,Ee,lt));St=pn(St,Ie),M=pn(M,Pe),j=!0}else M=pn(M,ki(se));if(St&&(Re=pn(Re,r.updateVariableStatement(V,te,r.updateVariableDeclarationList(V.declarationList,St)))),M){let se=mr(Ze(r.createExpressionStatement(r.inlineExpressions(M)),V),V);j&&f2(se),Re=pn(Re,se)}}else Re=pn(Re,un(V,Ee,e));return Re=ba(Re,V),R_(Re)}function ni(V,Re,St){let M=Zt(V);if(M){let te=R6(V)?Re:r.createAssignment(V,Re);for(let j of M)$n(te,8),te=Ce(j,te,St);return te}return r.createAssignment(V,Re)}function ki(V){return ko(V.name)?nT(He(V,Ee,JL),Ee,e,0,!1,ni):r.createAssignment(Ze(r.createPropertyAccessExpression(r.createIdentifier("exports"),V.name),V.name),V.initializer?He(V.initializer,Ee,lt):r.createVoidZero())}function so(V,Re){if(R.exportEquals)return V;let St=Re.importClause;if(!St)return V;let M=new SI;St.name&&(V=nt(V,M,St));let te=St.namedBindings;if(te)switch(te.kind){case 274:V=nt(V,M,te);break;case 275:for(let j of te.elements)V=nt(V,M,j,!0);break}return V}function Jo(V,Re){return R.exportEquals?V:nt(V,new SI,Re)}function ba(V,Re){return ln(V,Re.declarationList,!1)}function ln(V,Re,St){if(R.exportEquals)return V;for(let M of Re.declarations)V=Tn(V,M,St);return V}function Tn(V,Re,St){if(R.exportEquals)return V;if(ko(Re.name))for(let M of Re.name.elements)vc(M)||(V=Tn(V,M,St));else!ws(Re.name)&&(!yi(Re)||Re.initializer||St)&&(V=nt(V,new SI,Re));return V}function ke(V,Re){if(R.exportEquals)return V;let St=new SI;if(Wr(Re,32)){let M=Wr(Re,2048)?r.createIdentifier("default"):r.getDeclarationName(Re);V=tt(V,St,M,r.getLocalName(Re),Re)}return Re.name&&(V=nt(V,St,Re)),V}function nt(V,Re,St,M){let te=r.getDeclarationName(St),j=R.exportSpecifiers.get(te);if(j)for(let se of j)V=tt(V,Re,se.name,te,se.name,void 0,M);return V}function tt(V,Re,St,M,te,j,se){return Re.has(St)||(Re.set(St,!0),V=pn(V,re(St,M,te,j,se))),V}function yt(){let V;return m===0?V=r.createExpressionStatement(Ce(r.createIdentifier("__esModule"),r.createTrue())):V=r.createExpressionStatement(r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteral("__esModule"),r.createObjectLiteralExpression([r.createPropertyAssignment("value",r.createTrue())])])),$n(V,2097152),V}function re(V,Re,St,M,te){let j=Ze(r.createExpressionStatement(Ce(V,Re,void 0,te)),St);return Sd(j),M||$n(j,3072),j}function Ce(V,Re,St,M){return Ze(M&&m!==0?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"defineProperty"),void 0,[r.createIdentifier("exports"),r.createStringLiteralFromNode(V),r.createObjectLiteralExpression([r.createPropertyAssignment("enumerable",r.createTrue()),r.createPropertyAssignment("get",r.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,r.createBlock([r.createReturnStatement(Re)])))])]):r.createAssignment(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(V)),Re),St)}function et(V){switch(V.kind){case 95:case 90:return}return V}function z(V,Re,St){Re.kind===312?(C=Re,R=A[dd(C)],S(V,Re,St),C=void 0,R=void 0):S(V,Re,St)}function Je(V,Re){return Re=E(V,Re),Re.id&&L[Re.id]?Re:V===1?ze(Re):xu(Re)?_t(Re):Re}function _t(V){let Re=V.name,St=on(Re);if(St!==Re){if(V.objectAssignmentInitializer){let M=r.createAssignment(St,V.objectAssignmentInitializer);return Ze(r.createPropertyAssignment(Re,M),V)}return Ze(r.createPropertyAssignment(Re,St),V)}return V}function ze(V){switch(V.kind){case 80:return on(V);case 213:return it(V);case 215:return Ct(V);case 226:return Qt(V)}return V}function it(V){if(Me(V.expression)){let Re=on(V.expression);if(L[Fa(Re)]=!0,!Me(Re)&&!(ya(V.expression)&8192))return XA(r.updateCallExpression(V,Re,void 0,V.arguments),16)}return V}function Ct(V){if(Me(V.tag)){let Re=on(V.tag);if(L[Fa(Re)]=!0,!Me(Re)&&!(ya(V.tag)&8192))return XA(r.updateTaggedTemplateExpression(V,Re,void 0,V.template),16)}return V}function on(V){var Re,St;if(ya(V)&8192){let M=L2(C);return M?r.createPropertyAccessExpression(M,V):V}else if(!(ws(V)&&!(V.emitNode.autoGenerate.flags&64))&&!lg(V)){let M=p.getReferencedExportContainer(V,R6(V));if(M&&M.kind===312)return Ze(r.createPropertyAccessExpression(r.createIdentifier("exports"),r.cloneNode(V)),V);let te=p.getReferencedImportDeclaration(V);if(te){if(G_(te))return Ze(r.createPropertyAccessExpression(r.getGeneratedNameForNode(te.parent),r.createIdentifier("default")),V);if(Iu(te)){let j=te.propertyName||te.name;return Ze(r.createPropertyAccessExpression(r.getGeneratedNameForNode(((St=(Re=te.parent)==null?void 0:Re.parent)==null?void 0:St.parent)||te),r.cloneNode(j)),V)}}}return V}function Qt(V){if(tv(V.operatorToken.kind)&&Me(V.left)&&(!ws(V.left)||HM(V.left))&&!lg(V.left)){let Re=Zt(V.left);if(Re){let St=V;for(let M of Re)L[Fa(St)]=!0,St=Ce(M,St,V);return St}}return V}function Zt(V){if(ws(V)){if(HM(V)){let Re=R?.exportSpecifiers.get(V);if(Re){let St=[];for(let M of Re)St.push(M.name);return St}}}else{let Re=p.getReferencedImportDeclaration(V);if(Re)return R?.exportedBindings[dd(Re)];let St=new Set,M=p.getReferencedValueDeclarations(V);if(M){for(let te of M){let j=R?.exportedBindings[dd(te)];if(j)for(let se of j)St.add(se)}if(St.size)return bo(St)}}}}var BSe,e7e=pt({"src/compiler/transformers/module/module.ts"(){"use strict";wo(),BSe={name:"typescript:dynamicimport-sync-require",scoped:!0,text:`
var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function mae(e){let{factory:t,startLexicalEnvironment:r,endLexicalEnvironment:i,hoistVariableDeclaration:o}=e,s=e.getCompilerOptions(),l=e.getEmitResolver(),d=e.getEmitHost(),p=e.onSubstituteNode,h=e.onEmitNode;e.onSubstituteNode=Ce,e.onEmitNode=re,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);let m=[],v=[],E=[],S=[],A,C,R,L,G,U,K;return $f(e,F);function F(V){if(V.isDeclarationFile||!(MA(V,s)||V.transformFlags&8388608))return V;let Re=dd(V);A=V,U=V,C=m[Re]=XU(e,V),R=t.createUniqueName("exports"),v[Re]=R,L=S[Re]=t.createUniqueName("context");let St=oe(C.externalImports),M=W(V,St),te=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,R),t.createParameterDeclaration(void 0,void 0,L)],void 0,M),j=k2(t,V,d,s),se=t.createArrayLiteralExpression(nn(St,Ie=>Ie.name)),Pe=$n(t.updateSourceFile(V,Ze(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,j?[j,se,te]:[se,te]))]),V.statements)),2048);return ss(s)||Mre(Pe,M,Ie=>!Ie.scoped),K&&(E[Re]=K,K=void 0),A=void 0,C=void 0,R=void 0,L=void 0,G=void 0,U=void 0,Pe}function oe(V){let Re=new Map,St=[];for(let M of V){let te=hI(t,M,A,d,l,s);if(te){let j=te.text,se=Re.get(j);se!==void 0?St[se].externalImports.push(M):(Re.set(j,St.length),St.push({name:te,externalImports:[M]}))}}return St}function W(V,Re){let St=[];r();let M=Fd(s,"alwaysStrict")||!s.noImplicitUseStrict&&wl(A),te=t.copyPrologue(V.statements,St,M,q);St.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(L,t.createPropertyAccessExpression(L,"id")))]))),He(C.externalHelpersImportDeclaration,q,Di);let j=Dn(V.statements,q,Di,te);Pr(St,G),vh(St,i());let se=$(St),Pe=V.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Ie=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",fe(se,Re)),t.createPropertyAssignment("execute",t.createFunctionExpression(Pe,void 0,void 0,void 0,[],void 0,t.createBlock(j,!0)))],!0);return St.push(t.createReturnStatement(Ie)),t.createBlock(St,!0)}function $(V){if(!C.hasExportStarsToExportValues)return;if(!C.exportedNames&&C.exportSpecifiers.size===0){let te=!1;for(let j of C.externalImports)if(j.kind===278&&j.exportClause){te=!0;break}if(!te){let j=de(void 0);return V.push(j),j.name}}let Re=[];if(C.exportedNames)for(let te of C.exportedNames)te.escapedText!=="default"&&Re.push(t.createPropertyAssignment(t.createStringLiteralFromNode(te),t.createTrue()));let St=t.createUniqueName("exportedNames");V.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(St,void 0,void 0,t.createObjectLiteralExpression(Re,!0))])));let M=de(St);return V.push(M),M.name}function de(V){let Re=t.createUniqueName("exportStar"),St=t.createIdentifier("m"),M=t.createIdentifier("n"),te=t.createIdentifier("exports"),j=t.createStrictInequality(M,t.createStringLiteral("default"));return V&&(j=t.createLogicalAnd(j,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(V,"hasOwnProperty"),void 0,[M])))),t.createFunctionDeclaration(void 0,void 0,Re,void 0,[t.createParameterDeclaration(void 0,void 0,St)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(te,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(M)]),St,t.createBlock([$n(t.createIfStatement(j,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(te,M),t.createElementAccessExpression(St,M)))),1)])),t.createExpressionStatement(t.createCallExpression(R,void 0,[te]))],!0))}function fe(V,Re){let St=[];for(let M of Re){let te=an(M.externalImports,Pe=>Hx(t,Pe,A)),j=te?t.getGeneratedNameForNode(te):t.createUniqueName(""),se=[];for(let Pe of M.externalImports){let Ie=Hx(t,Pe,A);switch(Pe.kind){case 272:if(!Pe.importClause)break;case 271:x.assert(Ie!==void 0),se.push(t.createExpressionStatement(t.createAssignment(Ie,j))),Wr(Pe,32)&&se.push(t.createExpressionStatement(t.createCallExpression(R,void 0,[t.createStringLiteral(ar(Ie)),j])));break;case 278:if(x.assert(Ie!==void 0),Pe.exportClause)if($p(Pe.exportClause)){let gt=[];for(let bt of Pe.exportClause.elements)gt.push(t.createPropertyAssignment(t.createStringLiteral(ar(bt.name)),t.createElementAccessExpression(j,t.createStringLiteral(ar(bt.propertyName||bt.name)))));se.push(t.createExpressionStatement(t.createCallExpression(R,void 0,[t.createObjectLiteralExpression(gt,!0)])))}else se.push(t.createExpressionStatement(t.createCallExpression(R,void 0,[t.createStringLiteral(ar(Pe.exportClause.name)),j])));else se.push(t.createExpressionStatement(t.createCallExpression(V,void 0,[j])));break}}St.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,j)],void 0,t.createBlock(se,!0)))}return t.createArrayLiteralExpression(St,!0)}function q(V){switch(V.kind){case 272:return H(V);case 271:return le(V);case 278:return ee(V);case 277:return Ee(V);default:return jt(V)}}function H(V){let Re;return V.importClause&&o(Hx(t,V,A)),R_(ft(Re,V))}function ee(V){x.assertIsDefined(V)}function le(V){x.assert(Ab(V),"import= for internal module references should be handled in an earlier transformer.");let Re;return o(Hx(t,V,A)),R_(he(Re,V))}function Ee(V){if(V.isExportEquals)return;let Re=He(V.expression,ki,lt);return ot(t.createIdentifier("default"),Re,!0)}function ce(V){Wr(V,32)?G=pn(G,t.updateFunctionDeclaration(V,Dn(V.modifiers,yt,Ws),V.asteriskToken,t.getDeclarationName(V,!0,!0),void 0,Dn(V.parameters,ki,ao),void 0,He(V.body,ki,Do))):G=pn(G,un(V,ki,e)),G=Dt(G,V)}function Z(V){let Re,St=t.getLocalName(V);return o(St),Re=pn(Re,Ze(t.createExpressionStatement(t.createAssignment(St,Ze(t.createClassExpression(Dn(V.modifiers,yt,Ws),V.name,void 0,Dn(V.heritageClauses,ki,Ip),Dn(V.members,ki,xc)),V))),V)),Re=Dt(Re,V),R_(Re)}function pe(V){if(!Oe(V.declarationList))return He(V,ki,Di);let Re;if(cL(V.declarationList)||lL(V.declarationList)){let St=Dn(V.modifiers,yt,Ws),M=[];for(let j of V.declarationList.declarations)M.push(t.updateVariableDeclaration(j,t.getGeneratedNameForNode(j.name),void 0,void 0,_e(j,!1)));let te=t.updateVariableDeclarationList(V.declarationList,M);Re=pn(Re,t.updateVariableStatement(V,St,te))}else{let St,M=Wr(V,32);for(let te of V.declarationList.declarations)te.initializer?St=pn(St,_e(te,M)):Ae(te);St&&(Re=pn(Re,Ze(t.createExpressionStatement(t.inlineExpressions(St)),V)))}return Re=Le(Re,V,!1),R_(Re)}function Ae(V){if(ko(V.name))for(let Re of V.name.elements)vc(Re)||Ae(Re);else o(t.cloneNode(V.name))}function Oe(V){return(ya(V)&4194304)===0&&(U.kind===312||(sl(V).flags&7)===0)}function _e(V,Re){let St=Re?be:Te;return ko(V.name)?nT(V,ki,e,0,!1,St):V.initializer?St(V.name,He(V.initializer,ki,lt)):V.name}function be(V,Re,St){return De(V,Re,St,!0)}function Te(V,Re,St){return De(V,Re,St,!1)}function De(V,Re,St,M){return o(t.cloneNode(V)),M?Vt(V,Qt(Ze(t.createAssignment(V,Re),St))):Qt(Ze(t.createAssignment(V,Re),St))}function ft(V,Re){if(C.exportEquals)return V;let St=Re.importClause;if(!St)return V;St.name&&(V=st(V,St));let M=St.namedBindings;if(M)switch(M.kind){case 274:V=st(V,M);break;case 275:for(let te of M.elements)V=st(V,te);break}return V}function he(V,Re){return C.exportEquals?V:st(V,Re)}function Le(V,Re,St){if(C.exportEquals)return V;for(let M of Re.declarationList.declarations)(M.initializer||St)&&(V=Ke(V,M,St));return V}function Ke(V,Re,St){if(C.exportEquals)return V;if(ko(Re.name))for(let M of Re.name.elements)vc(M)||(V=Ke(V,M,St));else if(!ws(Re.name)){let M;St&&(V=Ge(V,Re.name,t.getLocalName(Re)),M=ar(Re.name)),V=st(V,Re,M)}return V}function Dt(V,Re){if(C.exportEquals)return V;let St;if(Wr(Re,32)){let M=Wr(Re,2048)?t.createStringLiteral("default"):Re.name;V=Ge(V,M,t.getLocalName(Re)),St=Ef(M)}return Re.name&&(V=st(V,Re,St)),V}function st(V,Re,St){if(C.exportEquals)return V;let M=t.getDeclarationName(Re),te=C.exportSpecifiers.get(M);if(te)for(let j of te)j.name.escapedText!==St&&(V=Ge(V,j.name,M));return V}function Ge(V,Re,St,M){return V=pn(V,ot(Re,St,M)),V}function ot(V,Re,St){let M=t.createExpressionStatement(Vt(V,Re));return Sd(M),St||$n(M,3072),M}function Vt(V,Re){let St=Me(V)?t.createStringLiteralFromNode(V):V;return $n(Re,ya(Re)|3072),Ol(t.createCallExpression(R,void 0,[St,Re]),Re)}function jt(V){switch(V.kind){case 243:return pe(V);case 262:return ce(V);case 263:return Z(V);case 248:return gn(V,!0);case 249:return On(V);case 250:return en(V);case 246:return ei(V);case 247:return Ki(V);case 256:return gi(V);case 254:return io(V);case 245:return Gn(V);case 255:return Nr(V);case 269:return cr(V);case 296:return Jt(V);case 297:return Ue(V);case 258:return Rt(V);case 299:return mn(V);case 241:return qr(V);default:return ki(V)}}function gn(V,Re){let St=U;return U=V,V=t.updateForStatement(V,He(V.initializer,Re?Wt:so,Up),He(V.condition,ki,lt),He(V.incrementor,so,lt),Qd(V.statement,Re?jt:ki,e)),U=St,V}function On(V){let Re=U;return U=V,V=t.updateForInStatement(V,Wt(V.initializer),He(V.expression,ki,lt),Qd(V.statement,jt,e)),U=Re,V}function en(V){let Re=U;return U=V,V=t.updateForOfStatement(V,V.awaitModifier,Wt(V.initializer),He(V.expression,ki,lt),Qd(V.statement,jt,e)),U=Re,V}function zt(V){return yc(V)&&Oe(V)}function Wt(V){if(zt(V)){let Re;for(let St of V.declarations)Re=pn(Re,_e(St,!1)),St.initializer||Ae(St);return Re?t.inlineExpressions(Re):t.createOmittedExpression()}else return He(V,so,Up)}function ei(V){return t.updateDoStatement(V,Qd(V.statement,jt,e),He(V.expression,ki,lt))}function Ki(V){return t.updateWhileStatement(V,He(V.expression,ki,lt),Qd(V.statement,jt,e))}function gi(V){return t.updateLabeledStatement(V,V.label,x.checkDefined(He(V.statement,jt,Di,t.liftToBlock)))}function io(V){return t.updateWithStatement(V,He(V.expression,ki,lt),x.checkDefined(He(V.statement,jt,Di,t.liftToBlock)))}function Gn(V){return t.updateIfStatement(V,He(V.expression,ki,lt),x.checkDefined(He(V.thenStatement,jt,Di,t.liftToBlock)),He(V.elseStatement,jt,Di,t.liftToBlock))}function Nr(V){return t.updateSwitchStatement(V,He(V.expression,ki,lt),x.checkDefined(He(V.caseBlock,jt,fN)))}function cr(V){let Re=U;return U=V,V=t.updateCaseBlock(V,Dn(V.clauses,jt,q8)),U=Re,V}function Jt(V){return t.updateCaseClause(V,He(V.expression,ki,lt),Dn(V.statements,jt,Di))}function Ue(V){return un(V,jt,e)}function Rt(V){return un(V,jt,e)}function mn(V){let Re=U;return U=V,V=t.updateCatchClause(V,V.variableDeclaration,x.checkDefined(He(V.block,jt,Do))),U=Re,V}function qr(V){let Re=U;return U=V,V=un(V,jt,e),U=Re,V}function ni(V,Re){if(!(V.transformFlags&276828160))return V;switch(V.kind){case 248:return gn(V,!1);case 244:return Jo(V);case 217:return ba(V,Re);case 360:return ln(V,Re);case 226:if(nv(V))return ke(V,Re);break;case 213:if(lp(V))return Tn(V);break;case 224:case 225:return tt(V,Re)}return un(V,ki,e)}function ki(V){return ni(V,!1)}function so(V){return ni(V,!0)}function Jo(V){return t.updateExpressionStatement(V,He(V.expression,so,lt))}function ba(V,Re){return t.updateParenthesizedExpression(V,He(V.expression,Re?so:ki,lt))}function ln(V,Re){return t.updatePartiallyEmittedExpression(V,He(V.expression,Re?so:ki,lt))}function Tn(V){let Re=hI(t,V,A,d,l,s),St=He(Ac(V.arguments),ki,lt),M=Re&&(!St||!ca(St)||St.text!==Re.text)?Re:St;return t.createCallExpression(t.createPropertyAccessExpression(L,t.createIdentifier("import")),void 0,M?[M]:[])}function ke(V,Re){return nt(V.left)?nT(V,ki,e,0,!Re):un(V,ki,e)}function nt(V){if(lc(V,!0))return nt(V.left);if(bm(V))return nt(V.expression);if(fa(V))return ct(V.properties,nt);if(Bd(V))return ct(V.elements,nt);if(xu(V))return nt(V.name);if(Hl(V))return nt(V.initializer);if(Me(V)){let Re=l.getReferencedExportContainer(V);return Re!==void 0&&Re.kind===312}else return!1}function tt(V,Re){if((V.operator===46||V.operator===47)&&Me(V.operand)&&!ws(V.operand)&&!lg(V.operand)&&!gV(V.operand)){let St=Ct(V.operand);if(St){let M,te=He(V.operand,ki,lt);fy(V)?te=t.updatePrefixUnaryExpression(V,te):(te=t.updatePostfixUnaryExpression(V,te),Re||(M=t.createTempVariable(o),te=t.createAssignment(M,te),Ze(te,V)),te=t.createComma(te,t.cloneNode(V.operand)),Ze(te,V));for(let j of St)te=Vt(j,Qt(te));return M&&(te=t.createComma(te,M),Ze(te,V)),te}}return un(V,ki,e)}function yt(V){switch(V.kind){case 95:case 90:return}return V}function re(V,Re,St){if(Re.kind===312){let M=dd(Re);A=Re,C=m[M],R=v[M],K=E[M],L=S[M],K&&delete E[M],h(V,Re,St),A=void 0,C=void 0,R=void 0,L=void 0,K=void 0}else h(V,Re,St)}function Ce(V,Re){return Re=p(V,Re),Zt(Re)?Re:V===1?Je(Re):V===4?et(Re):Re}function et(V){switch(V.kind){case 304:return z(V)}return V}function z(V){var Re,St;let M=V.name;if(!ws(M)&&!lg(M)){let te=l.getReferencedImportDeclaration(M);if(te){if(G_(te))return Ze(t.createPropertyAssignment(t.cloneNode(M),t.createPropertyAccessExpression(t.getGeneratedNameForNode(te.parent),t.createIdentifier("default"))),V);if(Iu(te))return Ze(t.createPropertyAssignment(t.cloneNode(M),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((St=(Re=te.parent)==null?void 0:Re.parent)==null?void 0:St.parent)||te),t.cloneNode(te.propertyName||te.name))),V)}}return V}function Je(V){switch(V.kind){case 80:return _t(V);case 226:return ze(V);case 236:return it(V)}return V}function _t(V){var Re,St;if(ya(V)&8192){let M=L2(A);return M?t.createPropertyAccessExpression(M,V):V}if(!ws(V)&&!lg(V)){let M=l.getReferencedImportDeclaration(V);if(M){if(G_(M))return Ze(t.createPropertyAccessExpression(t.getGeneratedNameForNode(M.parent),t.createIdentifier("default")),V);if(Iu(M))return Ze(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((St=(Re=M.parent)==null?void 0:Re.parent)==null?void 0:St.parent)||M),t.cloneNode(M.propertyName||M.name)),V)}}return V}function ze(V){if(tv(V.operatorToken.kind)&&Me(V.left)&&(!ws(V.left)||HM(V.left))&&!lg(V.left)){let Re=Ct(V.left);if(Re){let St=V;for(let M of Re)St=Vt(M,Qt(St));return St}}return V}function it(V){return ex(V)?t.createPropertyAccessExpression(L,t.createIdentifier("meta")):V}function Ct(V){let Re,St=on(V);if(St){let M=l.getReferencedExportContainer(V,!1);M&&M.kind===312&&(Re=pn(Re,t.getDeclarationName(St))),Re=Pr(Re,C?.exportedBindings[dd(St)])}else if(ws(V)&&HM(V)){let M=C?.exportSpecifiers.get(V);if(M){let te=[];for(let j of M)te.push(j.name);return te}}return Re}function on(V){if(!ws(V)){let Re=l.getReferencedImportDeclaration(V);if(Re)return Re;let St=l.getReferencedValueDeclaration(V);if(St&&C?.exportedBindings[dd(St)])return St;let M=l.getReferencedValueDeclarations(V);if(M){for(let te of M)if(te!==St&&C?.exportedBindings[dd(te)])return te}return St}}function Qt(V){return K===void 0&&(K=[]),K[Fa(V)]=!0,V}function Zt(V){return K&&V.id&&K[V.id]}}var t7e=pt({"src/compiler/transformers/module/system.ts"(){"use strict";wo()}});function sH(e){let{factory:t,getEmitHelperFactory:r}=e,i=e.getEmitHost(),o=e.getEmitResolver(),s=e.getCompilerOptions(),l=Wa(s),d=e.onEmitNode,p=e.onSubstituteNode;e.onEmitNode=K,e.onSubstituteNode=F,e.enableEmitNotification(312),e.enableSubstitution(80);let h,m,v;return $f(e,E);function E(W){if(W.isDeclarationFile)return W;if(wl(W)||xf(s)){m=W,v=void 0;let $=S(W);return m=void 0,v&&($=t.updateSourceFile($,Ze(t.createNodeArray(c9($.statements.slice(),v)),$.statements))),!wl(W)||ld(s)===200||ct($.statements,YM)?$:t.updateSourceFile($,Ze(t.createNodeArray([...$.statements,N2(t)]),$.statements))}return W}function S(W){let $=Bj(t,r(),W,s);if($){let de=[],fe=t.copyPrologue(W.statements,de);return pn(de,$),Pr(de,Dn(W.statements,A,Di,fe)),t.updateSourceFile(W,Ze(t.createNodeArray(de),W.statements))}else return un(W,A,e)}function A(W){switch(W.kind){case 271:return ld(s)>=100?R(W):void 0;case 277:return G(W);case 278:return U(W)}return W}function C(W){let $=hI(t,W,x.checkDefined(m),i,o,s),de=[];if($&&de.push($),ld(s)===200)return t.createCallExpression(t.createIdentifier("require"),void 0,de);if(!v){let q=t.createUniqueName("_createRequire",48),H=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),q)])),t.createStringLiteral("module"),void 0),ee=t.createUniqueName("__require",48),le=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ee,void 0,void 0,t.createCallExpression(t.cloneNode(q),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],l>=2?2:0));v=[H,le]}let fe=v[1].declarationList.declarations[0].name;return x.assertNode(fe,Me),t.createCallExpression(t.cloneNode(fe),void 0,de)}function R(W){x.assert(Ab(W),"import= for internal module references should be handled in an earlier transformer.");let $;return $=pn($,mr(Ze(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(W.name),void 0,void 0,C(W))],l>=2?2:0)),W),W)),$=L($,W),R_($)}function L(W,$){return Wr($,32)&&(W=pn(W,t.createExportDeclaration(void 0,$.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,ar($.name))])))),W}function G(W){return W.isExportEquals?ld(s)===200?mr(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createIdentifier("module"),"exports"),W.expression)),W):void 0:W}function U(W){if(s.module!==void 0&&s.module>5||!W.exportClause||!V_(W.exportClause)||!W.moduleSpecifier)return W;let $=W.exportClause.name,de=t.getGeneratedNameForNode($),fe=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(de)),W.moduleSpecifier,W.attributes);mr(fe,W.exportClause);let q=rW(W)?t.createExportDefault(de):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,de,$)]));return mr(q,W),[fe,q]}function K(W,$,de){Li($)?((wl($)||xf(s))&&s.importHelpers&&(h=new Map),d(W,$,de),h=void 0):d(W,$,de)}function F(W,$){return $=p(W,$),h&&Me($)&&ya($)&8192?oe($):$}function oe(W){let $=ar(W),de=h.get($);return de||h.set($,de=t.createUniqueName($,48)),de}}var n7e=pt({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";wo()}});function _ae(e){let t=e.onSubstituteNode,r=e.onEmitNode,i=sH(e),o=e.onSubstituteNode,s=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=r;let l=aH(e),d=e.onSubstituteNode,p=e.onEmitNode;e.onSubstituteNode=m,e.onEmitNode=v,e.enableSubstitution(312),e.enableEmitNotification(312);let h;return A;function m(R,L){return Li(L)?(h=L,t(R,L)):h?h.impliedNodeFormat===99?o(R,L):d(R,L):t(R,L)}function v(R,L,G){return Li(L)&&(h=L),h?h.impliedNodeFormat===99?s(R,L,G):p(R,L,G):r(R,L,G)}function E(R){return R.impliedNodeFormat===99?i:l}function S(R){if(R.isDeclarationFile)return R;h=R;let L=E(R)(R);return h=void 0,x.assert(Li(L)),L}function A(R){return R.kind===312?S(R):C(R)}function C(R){return e.factory.createBundle(nn(R.sourceFiles,S),R.prepends)}}var r7e=pt({"src/compiler/transformers/module/node.ts"(){"use strict";wo()}});function T4(e){return yi(e)||xo(e)||Gu(e)||Na(e)||$g(e)||Yv(e)||S2(e)||iI(e)||El(e)||z_(e)||Ql(e)||ao(e)||qs(e)||sv(e)||Nc(e)||Xf(e)||ll(e)||r0(e)||Er(e)||Rs(e)||Zn(e)||bf(e)}function hae(e){if($g(e)||Yv(e))return t;return z_(e)||El(e)?i:cv(e);function t(s){let l=r(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function r(s){return zo(e)?s.errorModuleName?s.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(s){let l=o(s);return l!==void 0?{diagnosticMessage:l,errorNode:e,typeName:e.name}:void 0}function o(s){return zo(e)?s.errorModuleName?s.accessibility===2?f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?s.errorModuleName?s.accessibility===2?f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_method_0_of_exported_class_has_or_is_using_private_name_1:s.errorModuleName?f.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function cv(e){if(yi(e)||xo(e)||Gu(e)||Er(e)||Rs(e)||Zn(e)||Na(e)||ll(e))return r;return $g(e)||Yv(e)?i:S2(e)||iI(e)||El(e)||z_(e)||Ql(e)||r0(e)?o:ao(e)?wu(e,e.parent)&&Wr(e.parent,2)?r:s:qs(e)?d:sv(e)?p:Nc(e)?h:Xf(e)||bf(e)?m:x.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${x.formatSyntaxKind(e.kind)}`);function t(v){if(e.kind===260||e.kind===208)return v.errorModuleName?v.accessibility===2?f.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:f.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Wr(e.parent,2))return zo(e)?v.errorModuleName?v.accessibility===2?f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?v.errorModuleName?v.accessibility===2?f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:f.Public_property_0_of_exported_class_has_or_is_using_private_name_1:v.errorModuleName?f.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Property_0_of_exported_interface_has_or_is_using_private_name_1}function r(v){let E=t(v);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function i(v){let E;return e.kind===178?zo(e)?E=v.errorModuleName?f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:E=v.errorModuleName?f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:zo(e)?E=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:E=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:E,errorNode:e.name,typeName:e.name}}function o(v){let E;switch(e.kind){case 180:E=v.errorModuleName?f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:E=v.errorModuleName?f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:E=v.errorModuleName?f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:zo(e)?E=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?E=v.errorModuleName?v.accessibility===2?f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:E=v.errorModuleName?f.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:E=v.errorModuleName?v.accessibility===2?f.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:f.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:f.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return x.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:E,errorNode:e.name||e}}function s(v){let E=l(v);return E!==void 0?{diagnosticMessage:E,errorNode:e,typeName:e.name}:void 0}function l(v){switch(e.parent.kind){case 176:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return v.errorModuleName?f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return v.errorModuleName?f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return v.errorModuleName?f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return zo(e.parent)?v.errorModuleName?v.accessibility===2?f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?v.errorModuleName?v.accessibility===2?f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v.errorModuleName?f.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return v.errorModuleName?v.accessibility===2?f.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:f.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:f.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return x.fail(`Unknown parent for parameter: ${x.formatSyntaxKind(e.parent.kind)}`)}}function d(){let v;switch(e.parent.kind){case 263:v=f.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:v=f.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:v=f.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:v=f.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:v=f.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:zo(e.parent)?v=f.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?v=f.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:v=f.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:v=f.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:v=f.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:v=f.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return x.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:v,errorNode:e,typeName:e.name}}function p(){let v;return Zl(e.parent.parent)?v=Ip(e.parent)&&e.parent.token===119?f.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:f.extends_clause_of_exported_class_has_or_is_using_private_name_0:v=f.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:v,errorNode:e,typeName:mo(e.parent.parent)}}function h(){return{diagnosticMessage:f.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function m(v){return{diagnosticMessage:v.errorModuleName?f.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:f.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:bf(e)?x.checkDefined(e.typeExpression):e.type,typeName:bf(e)?mo(e):e.name}}}var i7e=pt({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";wo()}});function gae(e,t,r){let i=e.getCompilerOptions();return mk(t,e,P,i,r?[r]:Cr(e.getSourceFiles(),P9),[lH],!1).diagnostics}function lH(e){let t=()=>x.fail("Diagnostic emitted without context"),r=t,i=!0,o=!1,s=!1,l=!1,d=!1,p,h,m,v,E,S,{factory:A}=e,C=e.getEmitHost(),R={trackSymbol:ce,reportInaccessibleThisError:_e,reportInaccessibleUniqueSymbolError:Ae,reportCyclicStructureError:Oe,reportPrivateInBaseOfClassExpression:Z,reportLikelyUnsafeImportRequiredError:be,reportTruncationError:Te,moduleResolverHost:C,trackReferencedAmbientModule:H,trackExternalModuleSymbolOfImportTypeNode:Ee,reportNonlocalAugmentation:De,reportNonSerializableProperty:ft},L,G,U,K,F,oe,W=e.getEmitResolver(),$=e.getCompilerOptions(),{noResolve:de,stripInternal:fe}=$;return Le;function q(z){if(z){h=h||new Set;for(let Je of z)h.add(Je)}}function H(z,Je){let _t=W.getTypeReferenceDirectivesForSymbol(Je,-1);if(yn(_t))return q(_t);let ze=Nn(z);K.set(dd(ze),ze)}function ee(z){let Je=sx(z),_t=Je&&W.tryFindAmbientModule(Je);if(_t?.declarations)for(let ze of _t.declarations)sd(ze)&&Nn(ze)!==U&&H(ze,_t)}function le(z){if(z.accessibility===0){if(z.aliasesToMakeVisible)if(!m)m=z.aliasesToMakeVisible;else for(let Je of z.aliasesToMakeVisible)jp(m,Je)}else{let Je=r(z);if(Je)return Je.typeName?e.addDiagnostic(vr(z.errorNode||Je.errorNode,Je.diagnosticMessage,Vl(Je.typeName),z.errorSymbolName,z.errorModuleName)):e.addDiagnostic(vr(z.errorNode||Je.errorNode,Je.diagnosticMessage,z.errorSymbolName,z.errorModuleName)),!0}return!1}function Ee(z){o||(S||(S=[])).push(z)}function ce(z,Je,_t){if(z.flags&262144)return!1;let ze=le(W.isSymbolAccessible(z,Je,_t,!0));return q(W.getTypeReferenceDirectivesForSymbol(z,_t)),ze}function Z(z){(L||G)&&e.addDiagnostic(vr(L||G,f.Property_0_of_exported_class_expression_may_not_be_private_or_protected,z))}function pe(){return L?is(L):G&&mo(G)?is(mo(G)):G&&dl(G)?G.isExportEquals?"export=":"default":"(Missing)"}function Ae(){(L||G)&&e.addDiagnostic(vr(L||G,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,pe(),"unique symbol"))}function Oe(){(L||G)&&e.addDiagnostic(vr(L||G,f.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,pe()))}function _e(){(L||G)&&e.addDiagnostic(vr(L||G,f.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,pe(),"this"))}function be(z){(L||G)&&e.addDiagnostic(vr(L||G,f.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,pe(),z))}function Te(){(L||G)&&e.addDiagnostic(vr(L||G,f.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function De(z,Je,_t){var ze;let it=(ze=Je.declarations)==null?void 0:ze.find(on=>Nn(on)===z),Ct=Cr(_t.declarations,on=>Nn(on)!==z);if(it&&Ct)for(let on of Ct)e.addDiagnostic(pa(vr(on,f.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),vr(it,f.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function ft(z){(L||G)&&e.addDiagnostic(vr(L||G,f.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,z))}function he(z,Je){let _t=r;r=it=>it.errorNode&&T4(it.errorNode)?cv(it.errorNode)(it):{diagnosticMessage:it.errorModuleName?f.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:f.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:it.errorNode||z};let ze=W.getDeclarationStatementsForSourceFile(z,rT,R,Je);return r=_t,ze}function Le(z){if(z.kind===312&&z.isDeclarationFile)return z;if(z.kind===313){o=!0,K=new Map,F=new Map;let Re=!1,St=A.createBundle(nn(z.sourceFiles,j=>{if(j.isDeclarationFile)return;if(Re=Re||j.hasNoDefaultLib,U=j,p=j,m=void 0,E=!1,v=new Map,r=t,l=!1,d=!1,Ke(j,K),Dt(j,F),sp(j)||yf(j)){s=!1,i=!1;let Pe=wd(j)?A.createNodeArray(he(j,!0)):Dn(j.statements,qr,Di);return A.updateSourceFile(j,[A.createModuleDeclaration([A.createModifier(138)],A.createStringLiteral(wW(e.getEmitHost(),j)),A.createModuleBlock(Ze(A.createNodeArray(Ue(Pe)),j.statements)))],!0,[],[],!1,[])}i=!0;let se=wd(j)?A.createNodeArray(he(j)):Dn(j.statements,qr,Di);return A.updateSourceFile(j,Ue(se),!0,[],[],!1,[])}),Fi(z.prepends,j=>{if(j.kind===315){let se=ij(j,"dts",fe);return Re=Re||!!se.hasNoDefaultLib,Ke(se,K),q(nn(se.typeReferenceDirectives,Pe=>[Pe.fileName,Pe.resolutionMode])),Dt(se,F),se}return j}));St.syntheticFileReferences=[],St.syntheticTypeReferences=Qt(),St.syntheticLibReferences=on(),St.hasNoDefaultLib=Re;let M=Ur(ad(BN(z,C,!0).declarationFilePath)),te=V(St.syntheticFileReferences,M);return K.forEach(te),St}i=!0,l=!1,d=!1,p=z,U=z,r=t,o=!1,s=!1,E=!1,m=void 0,v=new Map,h=void 0,K=Ke(U,new Map),F=Dt(U,new Map);let Je=[],_t=Ur(ad(BN(z,C,!0).declarationFilePath)),ze=V(Je,_t),it;if(wd(U))it=A.createNodeArray(he(z)),K.forEach(ze),oe=Cr(it,AS);else{let Re=Dn(z.statements,qr,Di);it=Ze(A.createNodeArray(Ue(Re)),z.statements),K.forEach(ze),oe=Cr(it,AS),wl(z)&&(!s||l&&!d)&&(it=Ze(A.createNodeArray([...it,N2(A)]),it))}let Ct=A.updateSourceFile(z,it,!0,Je,Qt(),z.hasNoDefaultLib,on());return Ct.exportedModulesFromDeclarationEmit=S,Ct;function on(){return bo(F.keys(),Re=>({fileName:Re,pos:-1,end:-1}))}function Qt(){return h?Fi(bo(h.keys()),Zt):[]}function Zt([Re,St]){if(oe){for(let M of oe)if(Nc(M)&&j_(M.moduleReference)){let te=M.moduleReference.expression;if(Ga(te)&&te.text===Re)return}else if(cc(M)&&ca(M.moduleSpecifier)&&M.moduleSpecifier.text===Re)return}return{fileName:Re,pos:-1,end:-1,...St?{resolutionMode:St}:void 0}}function V(Re,St){return M=>{if(S?.includes(M.symbol))return;let te;if(M.isDeclarationFile)te=M.fileName;else{if(o&&To(z.sourceFiles,M))return;let j=BN(M,C,!0);te=j.declarationFilePath||j.jsFilePath||M.fileName}if(te){let j=i4($,U,Qi(St,C.getCurrentDirectory()),Qi(te,C.getCurrentDirectory()),C);if(!op(j)){q([[j,void 0]]);return}let se=AA(St,te,C.getCurrentDirectory(),C.getCanonicalFileName,!1);if(Ui(se,"./")&&TA(se)&&(se=se.substring(2)),Ui(se,"node_modules/")||Gb(se))return;Re.push({pos:-1,end:-1,fileName:se})}}}}function Ke(z,Je){return de||!XS(z)&&wd(z)||an(z.referencedFiles,_t=>{let ze=C.getSourceFileFromReference(z,_t);ze&&Je.set(dd(ze),ze)}),Je}function Dt(z,Je){return an(z.libReferenceDirectives,_t=>{C.getLibFileFromReference(_t)&&Je.set(D_(_t.fileName),!0)}),Je}function st(z){if(z.kind===80)return z;return z.kind===207?A.updateArrayBindingPattern(z,Dn(z.elements,Je,V8)):A.updateObjectBindingPattern(z,Dn(z.elements,Je,Na));function Je(_t){return _t.kind===232?_t:(_t.propertyName&&Pa(_t.propertyName)&&gl(_t.propertyName.expression)&&gi(_t.propertyName.expression,p),A.updateBindingElement(_t,_t.dotDotDotToken,_t.propertyName,st(_t.name),ot(_t)?_t.initializer:void 0))}}function Ge(z,Je,_t){let ze;E||(ze=r,r=cv(z));let it=A.updateParameterDeclaration(z,a7e(A,z,Je),z.dotDotDotToken,st(z.name),W.isOptionalParameter(z)?z.questionToken||A.createToken(58):void 0,jt(z,_t||z.type,!0),Vt(z));return E||(r=ze),it}function ot(z){return s7e(z)&&W.isLiteralConstDeclaration(uo(z))}function Vt(z){if(ot(z))return W.createLiteralConstValue(uo(z),R)}function jt(z,Je,_t){if(!_t&&zu(z,2)||ot(z))return;let ze=z.kind===169&&(W.isRequiredInitializedParameter(z)||W.isOptionalUninitializedParameterProperty(z));if(Je&&!ze)return He(Je,Rt,xi);if(!uo(z))return Je?He(Je,Rt,xi):A.createKeywordTypeNode(133);if(z.kind===178)return A.createKeywordTypeNode(133);L=z.name;let it;if(E||(it=r,r=cv(z)),z.kind===260||z.kind===208)return Ct(W.createTypeOfDeclaration(z,p,rT,R));if(z.kind===169||z.kind===172||z.kind===171)return Gu(z)||!z.initializer?Ct(W.createTypeOfDeclaration(z,p,rT,R,ze)):Ct(W.createTypeOfDeclaration(z,p,rT,R,ze)||W.createTypeOfExpression(z.initializer,p,rT,R));return Ct(W.createReturnTypeOfSignatureDeclaration(z,p,rT,R));function Ct(on){return L=void 0,E||(r=it),on||A.createKeywordTypeNode(133)}}function gn(z){switch(z=uo(z),z.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!W.isDeclarationVisible(z);case 260:return!en(z);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function On(z){var Je;if(z.body)return!0;let _t=(Je=z.symbol.declarations)==null?void 0:Je.filter(ze=>Ql(ze)&&!ze.body);return!_t||_t.indexOf(z)===_t.length-1}function en(z){return vc(z)?!1:ko(z.name)?ct(z.name.elements,en):W.isDeclarationVisible(z)}function zt(z,Je,_t){if(zu(z,2))return A.createNodeArray();let ze=nn(Je,it=>Ge(it,_t));return ze?A.createNodeArray(ze,Je.hasTrailingComma):A.createNodeArray()}function Wt(z,Je){let _t;if(!Je){let ze=KE(z);ze&&(_t=[Ge(ze)])}if(Vu(z)){let ze;if(!Je){let it=CC(z);if(it){let Ct=Ce(z,W.getAllAccessorDeclarations(z));ze=Ge(it,void 0,Ct)}}ze||(ze=A.createParameterDeclaration(void 0,void 0,"value")),_t=pn(_t,ze)}return A.createNodeArray(_t||je)}function ei(z,Je){return zu(z,2)?void 0:Dn(Je,Rt,qs)}function Ki(z){return Li(z)||Xf(z)||Il(z)||Zl(z)||Gd(z)||Lo(z)||r0(z)||wx(z)}function gi(z,Je){let _t=W.isEntityNameVisible(z,Je);le(_t),q(W.getTypeReferenceDirectivesForEntityName(z))}function io(z,Je){return ap(z)&&ap(Je)&&(z.jsDoc=Je.jsDoc),Ol(z,e_(Je))}function Gn(z,Je){if(Je){if(s=s||z.kind!==267&&z.kind!==205,Ga(Je))if(o){let _t=lne(e.getEmitHost(),W,z);if(_t)return A.createStringLiteral(_t)}else{let _t=W.getSymbolOfExternalModuleSpecifier(Je);_t&&(S||(S=[])).push(_t)}return Je}}function Nr(z){if(W.isDeclarationVisible(z))if(z.moduleReference.kind===283){let Je=gC(z);return A.updateImportEqualsDeclaration(z,z.modifiers,z.isTypeOnly,z.name,A.updateExternalModuleReference(z.moduleReference,Gn(z,Je)))}else{let Je=r;return r=cv(z),gi(z.moduleReference,p),r=Je,z}}function cr(z){if(!z.importClause)return A.updateImportDeclaration(z,z.modifiers,z.importClause,Gn(z,z.moduleSpecifier),Jt(z.attributes));let Je=z.importClause&&z.importClause.name&&W.isDeclarationVisible(z.importClause)?z.importClause.name:void 0;if(!z.importClause.namedBindings)return Je&&A.updateImportDeclaration(z,z.modifiers,A.updateImportClause(z.importClause,z.importClause.isTypeOnly,Je,void 0),Gn(z,z.moduleSpecifier),Jt(z.attributes));if(z.importClause.namedBindings.kind===274){let ze=W.isDeclarationVisible(z.importClause.namedBindings)?z.importClause.namedBindings:void 0;return Je||ze?A.updateImportDeclaration(z,z.modifiers,A.updateImportClause(z.importClause,z.importClause.isTypeOnly,Je,ze),Gn(z,z.moduleSpecifier),Jt(z.attributes)):void 0}let _t=Fi(z.importClause.namedBindings.elements,ze=>W.isDeclarationVisible(ze)?ze:void 0);if(_t&&_t.length||Je)return A.updateImportDeclaration(z,z.modifiers,A.updateImportClause(z.importClause,z.importClause.isTypeOnly,Je,_t&&_t.length?A.updateNamedImports(z.importClause.namedBindings,_t):void 0),Gn(z,z.moduleSpecifier),Jt(z.attributes));if(W.isImportRequiredByAugmentation(z))return A.updateImportDeclaration(z,z.modifiers,void 0,Gn(z,z.moduleSpecifier),Jt(z.attributes))}function Jt(z){let Je=oR(z);return z&&Je!==void 0?z:void 0}function Ue(z){for(;yn(m);){let _t=m.shift();if(!oW(_t))return x.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${x.formatSyntaxKind(_t.kind)}`);let ze=i;i=_t.parent&&Li(_t.parent)&&!(wl(_t.parent)&&o);let it=so(_t);i=ze,v.set(dd(_t),it)}return Dn(z,Je,Di);function Je(_t){if(oW(_t)){let ze=dd(_t);if(v.has(ze)){let it=v.get(ze);return v.delete(ze),it&&((oo(it)?ct(it,j8):j8(it))&&(l=!0),Li(_t.parent)&&(oo(it)?ct(it,YM):YM(it))&&(s=!0)),it}}return _t}}function Rt(z){if(ke(z)||bd(z)&&(gn(z)||ty(z)&&!W.isLateBound(uo(z)))||Lo(z)&&W.isImplementationOfOverload(z)||$re(z))return;let Je;Ki(z)&&(Je=p,p=z);let _t=r,ze=T4(z),it=E,Ct=(z.kind===187||z.kind===200)&&z.parent.kind!==265;if((El(z)||z_(z))&&zu(z,2))return z.symbol&&z.symbol.declarations&&z.symbol.declarations[0]!==z?void 0:on(A.createPropertyDeclaration(yt(z),z.name,void 0,void 0,void 0));if(ze&&!E&&(r=cv(z)),oI(z)&&gi(z.exprName,p),Ct&&(E=!0),c7e(z))switch(z.kind){case 233:{(Su(z.expression)||gl(z.expression))&&gi(z.expression,p);let Qt=un(z,Rt,e);return on(A.updateExpressionWithTypeArguments(Qt,Qt.expression,Qt.typeArguments))}case 183:{gi(z.typeName,p);let Qt=un(z,Rt,e);return on(A.updateTypeReferenceNode(Qt,Qt.typeName,Qt.typeArguments))}case 180:return on(A.updateConstructSignature(z,ei(z,z.typeParameters),zt(z,z.parameters),jt(z,z.type)));case 176:{let Qt=A.createConstructorDeclaration(yt(z),zt(z,z.parameters,0),void 0);return on(Qt)}case 174:{if(Ci(z.name))return on(void 0);let Qt=A.createMethodDeclaration(yt(z),void 0,z.name,z.questionToken,ei(z,z.typeParameters),zt(z,z.parameters),jt(z,z.type),void 0);return on(Qt)}case 177:{if(Ci(z.name))return on(void 0);let Qt=Ce(z,W.getAllAccessorDeclarations(z));return on(A.updateGetAccessorDeclaration(z,yt(z),z.name,Wt(z,zu(z,2)),jt(z,Qt),void 0))}case 178:return Ci(z.name)?on(void 0):on(A.updateSetAccessorDeclaration(z,yt(z),z.name,Wt(z,zu(z,2)),void 0));case 172:return Ci(z.name)?on(void 0):on(A.updatePropertyDeclaration(z,yt(z),z.name,z.questionToken,jt(z,z.type),Vt(z)));case 171:return Ci(z.name)?on(void 0):on(A.updatePropertySignature(z,yt(z),z.name,z.questionToken,jt(z,z.type)));case 173:return Ci(z.name)?on(void 0):on(A.updateMethodSignature(z,yt(z),z.name,z.questionToken,ei(z,z.typeParameters),zt(z,z.parameters),jt(z,z.type)));case 179:return on(A.updateCallSignature(z,ei(z,z.typeParameters),zt(z,z.parameters),jt(z,z.type)));case 181:return on(A.updateIndexSignature(z,yt(z),zt(z,z.parameters),He(z.type,Rt,xi)||A.createKeywordTypeNode(133)));case 260:return ko(z.name)?ba(z.name):(Ct=!0,E=!0,on(A.updateVariableDeclaration(z,z.name,void 0,jt(z,z.type),Vt(z))));case 168:return mn(z)&&(z.default||z.constraint)?on(A.updateTypeParameterDeclaration(z,z.modifiers,z.name,void 0,void 0)):on(un(z,Rt,e));case 194:{let Qt=He(z.checkType,Rt,xi),Zt=He(z.extendsType,Rt,xi),V=p;p=z.trueType;let Re=He(z.trueType,Rt,xi);p=V;let St=He(z.falseType,Rt,xi);return x.assert(Qt),x.assert(Zt),x.assert(Re),x.assert(St),on(A.updateConditionalTypeNode(z,Qt,Zt,Re,St))}case 184:return on(A.updateFunctionTypeNode(z,Dn(z.typeParameters,Rt,qs),zt(z,z.parameters),x.checkDefined(He(z.type,Rt,xi))));case 185:return on(A.updateConstructorTypeNode(z,yt(z),Dn(z.typeParameters,Rt,qs),zt(z,z.parameters),x.checkDefined(He(z.type,Rt,xi))));case 205:return ey(z)?(ee(z),on(A.updateImportTypeNode(z,A.updateLiteralTypeNode(z.argument,Gn(z,z.argument.literal)),z.attributes,z.qualifier,Dn(z.typeArguments,Rt,xi),z.isTypeOf))):on(z);default:x.assertNever(z,`Attempted to process unhandled node kind: ${x.formatSyntaxKind(z.kind)}`)}return aI(z)&&$a(U,z.pos).line===$a(U,z.end).line&&$n(z,1),on(un(z,Rt,e));function on(Qt){return Qt&&ze&&ty(z)&&Tn(z),Ki(z)&&(p=Je),ze&&!E&&(r=_t),Ct&&(E=it),Qt===z?Qt:Qt&&mr(io(Qt,z),z)}}function mn(z){return z.parent.kind===174&&zu(z.parent,2)}function qr(z){if(!l7e(z)||ke(z))return;switch(z.kind){case 278:return Li(z.parent)&&(s=!0),d=!0,ee(z),A.updateExportDeclaration(z,z.modifiers,z.isTypeOnly,z.exportClause,Gn(z,z.moduleSpecifier),Jt(z.attributes));case 277:{if(Li(z.parent)&&(s=!0),d=!0,z.expression.kind===80)return z;{let _t=A.createUniqueName("_default",16);r=()=>({diagnosticMessage:f.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:z}),G=z;let ze=A.createVariableDeclaration(_t,void 0,W.createTypeOfExpression(z.expression,z,rT,R),void 0);G=void 0;let it=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([ze],2));return io(it,z),f2(z),[it,A.updateExportAssignment(z,z.modifiers,_t)]}}}let Je=so(z);return v.set(dd(z),Je),z}function ni(z){if(Nc(z)||zu(z,2048)||!Yf(z))return z;let Je=A.createModifiersFromModifierFlags(Wd(z)&131039);return A.replaceModifiers(z,Je)}function ki(z,Je,_t,ze){let it=A.updateModuleDeclaration(z,Je,_t,ze);if(sd(it)||it.flags&32)return it;let Ct=A.createModuleDeclaration(it.modifiers,it.name,it.body,it.flags|32);return mr(Ct,it),Ze(Ct,it),Ct}function so(z){if(m)for(;N1(m,z););if(ke(z))return;switch(z.kind){case 271:{let on=Nr(z);return on&&ee(z),on}case 272:{let on=cr(z);return on&&ee(z),on}}if(bd(z)&&gn(z)||Lo(z)&&W.isImplementationOfOverload(z))return;let Je;Ki(z)&&(Je=p,p=z);let _t=T4(z),ze=r;_t&&(r=cv(z));let it=i;switch(z.kind){case 265:{i=!1;let on=Ct(A.updateTypeAliasDeclaration(z,yt(z),z.name,Dn(z.typeParameters,Rt,qs),x.checkDefined(He(z.type,Rt,xi))));return i=it,on}case 264:return Ct(A.updateInterfaceDeclaration(z,yt(z),z.name,ei(z,z.typeParameters),et(z.heritageClauses),Dn(z.members,Rt,bS)));case 262:{let on=Ct(A.updateFunctionDeclaration(z,yt(z),void 0,z.name,ei(z,z.typeParameters),zt(z,z.parameters),jt(z,z.type),void 0));if(on&&W.isExpandoFunctionDeclaration(z)&&On(z)){let Qt=W.getPropertiesOfContainerFunction(z),Zt=U_.createModuleDeclaration(void 0,on.name||A.createIdentifier("_default"),A.createModuleBlock([]),32);Ta(Zt,p),Zt.locals=Vo(Qt),Zt.symbol=Qt[0].parent;let V=[],Re=Fi(Qt,Pe=>{if(!EF(Pe.valueDeclaration))return;let Ie=Ii(Pe.escapedName);if(!Sp(Ie,99))return;r=cv(Pe.valueDeclaration);let gt=W.createTypeOfDeclaration(Pe.valueDeclaration,Zt,rT,R);r=ze;let bt=FA(Ie),Ot=bt?A.getGeneratedNameForNode(Pe.valueDeclaration):A.createIdentifier(Ie);bt&&V.push([Ot,Ie]);let dn=A.createVariableDeclaration(Ot,void 0,gt,void 0);return A.createVariableStatement(bt?void 0:[A.createToken(95)],A.createVariableDeclarationList([dn]))});V.length?Re.push(A.createExportDeclaration(void 0,!1,A.createNamedExports(nn(V,([Pe,Ie])=>A.createExportSpecifier(!1,Pe,Ie))))):Re=Fi(Re,Pe=>A.replaceModifiers(Pe,0));let St=A.createModuleDeclaration(yt(z),z.name,A.createModuleBlock(Re),32);if(!zu(on,2048))return[on,St];let M=A.createModifiersFromModifierFlags(Wd(on)&-2081|128),te=A.updateFunctionDeclaration(on,M,void 0,on.name,on.typeParameters,on.parameters,on.type,void 0),j=A.updateModuleDeclaration(St,M,St.name,St.body),se=A.createExportAssignment(void 0,!1,St.name);return Li(z.parent)&&(s=!0),d=!0,[te,j,se]}else return on}case 267:{i=!1;let on=z.body;if(on&&on.kind===268){let Qt=l,Zt=d;d=!1,l=!1;let V=Dn(on.statements,qr,Di),Re=Ue(V);z.flags&33554432&&(l=!1),!qm(z)&&!tt(Re)&&!d&&(l?Re=A.createNodeArray([...Re,N2(A)]):Re=Dn(Re,ni,Di));let St=A.updateModuleBlock(on,Re);i=it,l=Qt,d=Zt;let M=yt(z);return Ct(ki(z,M,zE(z)?Gn(z,z.name):z.name,St))}else{i=it;let Qt=yt(z);i=!1,He(on,qr);let Zt=dd(on),V=v.get(Zt);return v.delete(Zt),Ct(ki(z,Qt,z.name,V))}}case 263:{L=z.name,G=z;let on=A.createNodeArray(yt(z)),Qt=ei(z,z.typeParameters),Zt=Ah(z),V;if(Zt){let se=r;V=pM(ta(Zt.parameters,Pe=>{if(!Wr(Pe,31)||ke(Pe))return;if(r=cv(Pe),Pe.name.kind===80)return io(A.createPropertyDeclaration(yt(Pe),Pe.name,Pe.questionToken,jt(Pe,Pe.type),Vt(Pe)),Pe);return Ie(Pe.name);function Ie(gt){let bt;for(let Ot of gt.elements)vc(Ot)||(ko(Ot.name)&&(bt=ro(bt,Ie(Ot.name))),bt=bt||[],bt.push(A.createPropertyDeclaration(yt(Pe),Ot.name,void 0,jt(Ot,void 0),void 0)));return bt}})),r=se}let St=ct(z.members,se=>!!se.name&&Ci(se.name))?[A.createPropertyDeclaration(void 0,A.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,M=ro(ro(St,V),Dn(z.members,Rt,xc)),te=A.createNodeArray(M),j=Jm(z);if(j&&!gl(j.expression)&&j.expression.kind!==106){let se=z.name?Ii(z.name.escapedText):"default",Pe=A.createUniqueName(`${se}_base`,16);r=()=>({diagnosticMessage:f.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:j,typeName:z.name});let Ie=A.createVariableDeclaration(Pe,void 0,W.createTypeOfExpression(j.expression,z,rT,R),void 0),gt=A.createVariableStatement(i?[A.createModifier(138)]:[],A.createVariableDeclarationList([Ie],2)),bt=A.createNodeArray(nn(z.heritageClauses,Ot=>{if(Ot.token===96){let dn=r;r=cv(Ot.types[0]);let An=A.updateHeritageClause(Ot,nn(Ot.types,Cn=>A.updateExpressionWithTypeArguments(Cn,Pe,Dn(Cn.typeArguments,Rt,xi))));return r=dn,An}return A.updateHeritageClause(Ot,Dn(A.createNodeArray(Cr(Ot.types,dn=>gl(dn.expression)||dn.expression.kind===106)),Rt,sv))}));return[gt,Ct(A.updateClassDeclaration(z,on,z.name,Qt,bt,te))]}else{let se=et(z.heritageClauses);return Ct(A.updateClassDeclaration(z,on,z.name,Qt,se,te))}}case 243:return Ct(Jo(z));case 266:return Ct(A.updateEnumDeclaration(z,A.createNodeArray(yt(z)),z.name,A.createNodeArray(Fi(z.members,on=>{if(ke(on))return;let Qt=W.getConstantValue(on),Zt=Qt===void 0?void 0:typeof Qt=="string"?A.createStringLiteral(Qt):Qt<0?A.createPrefixUnaryExpression(41,A.createNumericLiteral(-Qt)):A.createNumericLiteral(Qt);return io(A.updateEnumMember(on,on.name,Zt),on)}))))}return x.assertNever(z,`Unhandled top-level node in declaration emit: ${x.formatSyntaxKind(z.kind)}`);function Ct(on){return Ki(z)&&(p=Je),_t&&(r=ze),z.kind===267&&(i=it),on===z?on:(G=void 0,L=void 0,on&&mr(io(on,z),z))}}function Jo(z){if(!an(z.declarationList.declarations,en))return;let Je=Dn(z.declarationList.declarations,Rt,yi);if(!yn(Je))return;let _t=A.createNodeArray(yt(z)),ze;return cL(z.declarationList)||lL(z.declarationList)?(ze=A.createVariableDeclarationList(Je,2),mr(ze,z.declarationList),Ze(ze,z.declarationList),Ol(ze,z.declarationList)):ze=A.updateVariableDeclarationList(z.declarationList,Je),A.updateVariableStatement(z,_t,ze)}function ba(z){return Ff(Fi(z.elements,Je=>ln(Je)))}function ln(z){if(z.kind!==232&&z.name)return en(z)?ko(z.name)?ba(z.name):A.createVariableDeclaration(z.name,void 0,jt(z,void 0),void 0):void 0}function Tn(z){let Je;E||(Je=r,r=hae(z)),L=z.name,x.assert(W.isLateBound(uo(z)));let ze=z.name.expression;gi(ze,p),E||(r=Je),L=void 0}function ke(z){return!!fe&&!!z&&o9(z,U)}function nt(z){return dl(z)||xl(z)}function tt(z){return ct(z,nt)}function yt(z){let Je=Wd(z),_t=re(z);return Je===_t?ck(z.modifiers,ze=>Vr(ze,ia),ia):A.createModifiersFromModifierFlags(_t)}function re(z){let Je=130030,_t=i&&!o7e(z)?128:0,ze=z.parent.kind===312;return(!ze||o&&ze&&wl(z.parent))&&(Je^=128,_t=0),GSe(z,Je,_t)}function Ce(z,Je){let _t=vae(z);return!_t&&z!==Je.firstAccessor&&(_t=vae(Je.firstAccessor),r=cv(Je.firstAccessor)),!_t&&Je.secondAccessor&&z!==Je.secondAccessor&&(_t=vae(Je.secondAccessor),r=cv(Je.secondAccessor)),_t}function et(z){return A.createNodeArray(Cr(nn(z,Je=>A.updateHeritageClause(Je,Dn(A.createNodeArray(Cr(Je.types,_t=>gl(_t.expression)||Je.token===96&&_t.expression.kind===106)),Rt,sv))),Je=>Je.types&&!!Je.types.length))}}function o7e(e){return e.kind===264}function a7e(e,t,r,i){return e.createModifiersFromModifierFlags(GSe(t,r,i))}function GSe(e,t=131070,r=0){let i=Wd(e)&t|r;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function vae(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function s7e(e){switch(e.kind){case 172:case 171:return!zu(e,2);case 169:case 260:return!0}return!1}function l7e(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function c7e(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var rT,d7e=pt({"src/compiler/transformers/declarations.ts"(){"use strict";wo(),Toe(),rT=531469}});function u7e(e){switch(e){case 99:case 7:case 6:case 5:case 200:return sH;case 4:return mae;case 100:case 199:return _ae;default:return aH}}function cH(e,t,r){return{scriptTransformers:p7e(e,t,r),declarationTransformers:f7e(t)}}function p7e(e,t,r){if(r)return je;let i=Wa(e),o=ld(e),s=nN(e),l=[];return Pr(l,t&&nn(t.before,jSe)),l.push(Xoe),e.experimentalDecorators&&l.push(Qoe),oF(e)&&l.push(cae),i<99&&l.push(oae),!e.experimentalDecorators&&(i<99||!s)&&l.push(Zoe),l.push(Yoe),i<8&&l.push(iae),i<7&&l.push(rae),i<6&&l.push(nae),i<5&&l.push(tae),i<4&&l.push(eae),i<3&&l.push(dae),i<2&&(l.push(uae),l.push(fae)),l.push(u7e(o)),i<1&&l.push(pae),Pr(l,t&&nn(t.after,jSe)),l}function f7e(e){let t=[];return t.push(lH),Pr(t,e&&nn(e.afterDeclarations,_7e)),t}function m7e(e){return t=>xj(t)?e.transformBundle(t):e.transformSourceFile(t)}function VSe(e,t){return r=>{let i=e(r);return typeof i=="function"?t(r,i):m7e(i)}}function jSe(e){return VSe(e,$f)}function _7e(e){return VSe(e,(t,r)=>r)}function WN(e,t){return t}function fk(e,t,r){r(e,t)}function mk(e,t,r,i,o,s,l){var d,p;let h=new Array(363),m,v,E,S=0,A=[],C=[],R=[],L=[],G=0,U=!1,K=[],F=0,oe,W,$=WN,de=fk,fe=0,q=[],H={factory:r,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Kd(()=>Wre(H)),startLexicalEnvironment:he,suspendLexicalEnvironment:Le,resumeLexicalEnvironment:Ke,endLexicalEnvironment:Dt,setLexicalEnvironmentFlags:st,getLexicalEnvironmentFlags:Ge,hoistVariableDeclaration:Te,hoistFunctionDeclaration:De,addInitializationStatement:ft,startBlockScope:ot,endBlockScope:Vt,addBlockScopedVariable:jt,requestEmitHelper:gn,readEmitHelpers:On,enableSubstitution:Z,enableEmitNotification:Oe,isSubstitutionEnabled:pe,isEmitNotificationEnabled:_e,get onSubstituteNode(){return $},set onSubstituteNode(zt){x.assert(fe<1,"Cannot modify transformation hooks after initialization has completed."),x.assert(zt!==void 0,"Value must not be 'undefined'"),$=zt},get onEmitNode(){return de},set onEmitNode(zt){x.assert(fe<1,"Cannot modify transformation hooks after initialization has completed."),x.assert(zt!==void 0,"Value must not be 'undefined'"),de=zt},addDiagnostic(zt){q.push(zt)}};for(let zt of o)lj(Nn(uo(zt)));Ls("beforeTransform");let ee=s.map(zt=>zt(H)),le=zt=>{for(let Wt of ee)zt=Wt(zt);return zt};fe=1;let Ee=[];for(let zt of o)(d=qn)==null||d.push(qn.Phase.Emit,"transformNodes",zt.kind===312?{path:zt.path}:{kind:zt.kind,pos:zt.pos,end:zt.end}),Ee.push((l?le:ce)(zt)),(p=qn)==null||p.pop();return fe=2,Ls("afterTransform"),Ep("transformTime","beforeTransform","afterTransform"),{transformed:Ee,substituteNode:Ae,emitNodeWithNotification:be,isEmitNotificationEnabled:_e,dispose:en,diagnostics:q};function ce(zt){return zt&&(!Li(zt)||!zt.isDeclarationFile)?le(zt):zt}function Z(zt){x.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),h[zt]|=1}function pe(zt){return(h[zt.kind]&1)!==0&&(ya(zt)&8)===0}function Ae(zt,Wt){return x.assert(fe<3,"Cannot substitute a node after the result is disposed."),Wt&&pe(Wt)&&$(zt,Wt)||Wt}function Oe(zt){x.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),h[zt]|=2}function _e(zt){return(h[zt.kind]&2)!==0||(ya(zt)&4)!==0}function be(zt,Wt,ei){x.assert(fe<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Wt&&(_e(Wt)?de(zt,Wt,ei):ei(zt,Wt))}function Te(zt){x.assert(fe>0,"Cannot modify the lexical environment during initialization."),x.assert(fe<2,"Cannot modify the lexical environment after transformation has completed.");let Wt=$n(r.createVariableDeclaration(zt),128);m?m.push(Wt):m=[Wt],S&1&&(S|=2)}function De(zt){x.assert(fe>0,"Cannot modify the lexical environment during initialization."),x.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),$n(zt,2097152),v?v.push(zt):v=[zt]}function ft(zt){x.assert(fe>0,"Cannot modify the lexical environment during initialization."),x.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),$n(zt,2097152),E?E.push(zt):E=[zt]}function he(){x.assert(fe>0,"Cannot modify the lexical environment during initialization."),x.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!U,"Lexical environment is suspended."),A[G]=m,C[G]=v,R[G]=E,L[G]=S,G++,m=void 0,v=void 0,E=void 0,S=0}function Le(){x.assert(fe>0,"Cannot modify the lexical environment during initialization."),x.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!U,"Lexical environment is already suspended."),U=!0}function Ke(){x.assert(fe>0,"Cannot modify the lexical environment during initialization."),x.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(U,"Lexical environment is not suspended."),U=!1}function Dt(){x.assert(fe>0,"Cannot modify the lexical environment during initialization."),x.assert(fe<2,"Cannot modify the lexical environment after transformation has completed."),x.assert(!U,"Lexical environment is suspended.");let zt;if(m||v||E){if(v&&(zt=[...v]),m){let Wt=r.createVariableStatement(void 0,r.createVariableDeclarationList(m));$n(Wt,2097152),zt?zt.push(Wt):zt=[Wt]}E&&(zt?zt=[...zt,...E]:zt=[...E])}return G--,m=A[G],v=C[G],E=R[G],S=L[G],G===0&&(A=[],C=[],R=[],L=[]),zt}function st(zt,Wt){S=Wt?S|zt:S&~zt}function Ge(){return S}function ot(){x.assert(fe>0,"Cannot start a block scope during initialization."),x.assert(fe<2,"Cannot start a block scope after transformation has completed."),K[F]=oe,F++,oe=void 0}function Vt(){x.assert(fe>0,"Cannot end a block scope during initialization."),x.assert(fe<2,"Cannot end a block scope after transformation has completed.");let zt=ct(oe)?[r.createVariableStatement(void 0,r.createVariableDeclarationList(oe.map(Wt=>r.createVariableDeclaration(Wt)),1))]:void 0;return F--,oe=K[F],F===0&&(K=[]),zt}function jt(zt){x.assert(F>0,"Cannot add a block scoped variable outside of an iteration body."),(oe||(oe=[])).push(zt)}function gn(zt){if(x.assert(fe>0,"Cannot modify the transformation context during initialization."),x.assert(fe<2,"Cannot modify the transformation context after transformation has completed."),x.assert(!zt.scoped,"Cannot request a scoped emit helper."),zt.dependencies)for(let Wt of zt.dependencies)gn(Wt);W=pn(W,zt)}function On(){x.assert(fe>0,"Cannot modify the transformation context during initialization."),x.assert(fe<2,"Cannot modify the transformation context after transformation has completed.");let zt=W;return W=void 0,zt}function en(){if(fe<3){for(let zt of o)lj(Nn(uo(zt)));m=void 0,A=void 0,v=void 0,C=void 0,$=void 0,de=void 0,W=void 0,fe=3}}}var dH,FN,h7e=pt({"src/compiler/transformer.ts"(){"use strict";wo(),mS(),dH={scriptTransformers:je,declarationTransformers:je},FN={factory:P,getCompilerOptions:()=>({}),getEmitResolver:Ro,getEmitHost:Ro,getEmitHelperFactory:Ro,startLexicalEnvironment:Ca,resumeLexicalEnvironment:Ca,suspendLexicalEnvironment:Ca,endLexicalEnvironment:ub,setLexicalEnvironmentFlags:Ca,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ca,hoistFunctionDeclaration:Ca,addInitializationStatement:Ca,startBlockScope:Ca,endBlockScope:ub,addBlockScopedVariable:Ca,requestEmitHelper:Ca,readEmitHelpers:Ro,enableSubstitution:Ca,enableEmitNotification:Ca,isSubstitutionEnabled:Ro,isEmitNotificationEnabled:Ro,onSubstituteNode:WN,onEmitNode:fk,addDiagnostic:Ca}}});function yae(e){return el(e,".tsbuildinfo")}function uH(e,t,r,i=!1,o,s){let l=oo(r)?r:iV(e,r,i),d=e.getCompilerOptions();if(ss(d)){let p=e.getPrependNodes();if(l.length||p.length){let h=P.createBundle(l,p),m=t(BN(h,e,i),h);if(m)return m}}else{if(!o)for(let p of l){let h=t(BN(p,e,i),p);if(h)return h}if(s){let p=dv(d);if(p)return t({buildInfoPath:p},void 0)}}}function dv(e){let t=e.configFilePath;if(!tN(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let r=ss(e),i;if(r)i=Yd(r);else{if(!t)return;let o=Yd(t);i=e.outDir?e.rootDir?jv(e.outDir,Gf(e.rootDir,o,!0)):wr(e.outDir,Ll(o)):o}return i+".tsbuildinfo"}function zN(e,t){let r=ss(e),i=e.emitDeclarationOnly?void 0:r,o=i&&USe(i,e),s=t||Xp(e)?Yd(r)+".d.ts":void 0,l=s&&a2(e)?s+".map":void 0,d=dv(e);return{jsFilePath:i,sourceMapFilePath:o,declarationFilePath:s,declarationMapPath:l,buildInfoPath:d}}function BN(e,t,r){let i=t.getCompilerOptions();if(e.kind===313)return zN(i,r);{let o=cne(e.fileName,t,A4(e.fileName,i)),s=yf(e),l=s&&Xh(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,d=i.emitDeclarationOnly||l?void 0:o,p=!d||yf(e)?void 0:USe(d,i),h=r||Xp(i)&&!s?dne(e.fileName,t):void 0,m=h&&a2(i)?h+".map":void 0;return{jsFilePath:d,sourceMapFilePath:p,declarationFilePath:h,declarationMapPath:m,buildInfoPath:void 0}}}function USe(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function A4(e,t){return el(e,".json")?".json":t.jsx===1&&$l(e,[".jsx",".tsx"])?".jsx":$l(e,[".mts",".mjs"])?".mjs":$l(e,[".cts",".cjs"])?".cjs":".js"}function HSe(e,t,r,i){return r?jv(r,Gf(i(),e,t)):e}function GN(e,t,r,i=()=>iR(t,r)){return pH(e,t.options,r,i)}function pH(e,t,r,i){return Nb(HSe(e,r,t.declarationDir||t.outDir,i),FW(e))}function qSe(e,t,r,i=()=>iR(t,r)){if(t.options.emitDeclarationOnly)return;let o=el(e,".json"),s=fH(e,t.options,r,i);return!o||Xh(e,s,x.checkDefined(t.options.configFilePath),r)!==0?s:void 0}function fH(e,t,r,i){return Nb(HSe(e,r,t.outDir,i),A4(e,t))}function JSe(){let e;return{addOutput:t,getOutputs:r};function t(i){i&&(e||(e=[])).push(i)}function r(){return e||je}}function KSe(e,t){let{jsFilePath:r,sourceMapFilePath:i,declarationFilePath:o,declarationMapPath:s,buildInfoPath:l}=zN(e.options,!1);t(r),t(i),t(o),t(s),t(l)}function XSe(e,t,r,i,o){if(Yc(t))return;let s=qSe(t,e,r,o);if(i(s),!el(t,".json")&&(s&&e.options.sourceMap&&i(`${s}.map`),Xp(e.options))){let l=GN(t,e,r,o);i(l),e.options.declarationMap&&i(`${l}.map`)}}function VN(e,t,r,i,o){let s;return e.rootDir?(s=Qi(e.rootDir,r),o?.(e.rootDir)):e.composite&&e.configFilePath?(s=Ur(ad(e.configFilePath)),o?.(s)):s=Iae(t(),r,i),s&&s[s.length-1]!==Os&&(s+=Os),s}function iR({options:e,fileNames:t},r){return VN(e,()=>Cr(t,i=>!(e.noEmitForJsFiles&&$l(i,Px))&&!Yc(i)),Ur(ad(x.checkDefined(e.configFilePath))),od(!r))}function I4(e,t){let{addOutput:r,getOutputs:i}=JSe();if(ss(e.options))KSe(e,r);else{let o=Kd(()=>iR(e,t));for(let s of e.fileNames)XSe(e,s,t,r,o);r(dv(e.options))}return i()}function YSe(e,t,r){t=Yo(t),x.assert(To(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:o}=JSe();return ss(e.options)?KSe(e,i):XSe(e,t,r,i),o()}function mH(e,t){if(ss(e.options)){let{jsFilePath:o,declarationFilePath:s}=zN(e.options,!1);return x.checkDefined(o||s,`project ${e.options.configFilePath} expected to have at least one output`)}let r=Kd(()=>iR(e,t));for(let o of e.fileNames){if(Yc(o))continue;let s=qSe(o,e,t,r);if(s)return s;if(!el(o,".json")&&Xp(e.options))return GN(o,e,t,r)}let i=dv(e.options);return i||x.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function x4(e,t,r,{scriptTransformers:i,declarationTransformers:o},s,l,d){var p=t.getCompilerOptions(),h=p.sourceMap||p.inlineSourceMap||a2(p)?[]:void 0,m=p.listEmittedFiles?[]:void 0,v=hx(),E=rv(p),S=GL(E),{enter:A,exit:C}=EB("printTime","beforePrint","afterPrint"),R,L=!1;return A(),uH(t,G,iV(t,r,d),d,l,!r),C(),{emitSkipped:L,diagnostics:v.getDiagnostics(),emittedFiles:m,sourceMaps:h};function G({jsFilePath:H,sourceMapFilePath:ee,declarationFilePath:le,declarationMapPath:Ee,buildInfoPath:ce},Z){var pe,Ae,Oe,_e,be,Te;let De;ce&&Z&&xj(Z)&&(De=Ur(Qi(ce,t.getCurrentDirectory())),R={commonSourceDirectory:ft(t.getCommonSourceDirectory()),sourceFiles:Z.sourceFiles.map(he=>ft(Qi(he.fileName,t.getCurrentDirectory())))}),(pe=qn)==null||pe.push(qn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:H}),K(Z,H,ee,ft),(Ae=qn)==null||Ae.pop(),(Oe=qn)==null||Oe.push(qn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:le}),F(Z,le,Ee,ft),(_e=qn)==null||_e.pop(),(be=qn)==null||be.push(qn.Phase.Emit,"emitBuildInfo",{buildInfoPath:ce}),U(R,ce),(Te=qn)==null||Te.pop();function ft(he){return ME(Gf(De,he,t.getCanonicalFileName))}}function U(H,ee){if(!ee||r||L)return;if(t.isEmitBlocked(ee)){L=!0;return}let le=t.getBuildInfo(H)||_k(void 0,H);RC(t,v,ee,bae(le),!1,void 0,{buildInfo:le}),m?.push(ee)}function K(H,ee,le,Ee){if(!H||s||!ee)return;if(t.isEmitBlocked(ee)||p.noEmit){L=!0;return}let ce=mk(e,t,P,p,[H],i,!1),Z={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:p.noEmitHelpers,module:p.module,target:p.target,sourceMap:p.sourceMap,inlineSourceMap:p.inlineSourceMap,inlineSources:p.inlineSources,extendedDiagnostics:p.extendedDiagnostics,writeBundleFileInfo:!!R,relativeToBuildInfo:Ee},pe=Vb(Z,{hasGlobalName:e.hasGlobalName,onEmitNode:ce.emitNodeWithNotification,isEmitNotificationEnabled:ce.isEmitNotificationEnabled,substituteNode:ce.substituteNode});x.assert(ce.transformed.length===1,"Should only see one output from the transform"),W(ee,le,ce,pe,p),ce.dispose(),R&&(R.js=pe.bundleFileInfo),m&&(m.push(ee),le&&m.push(le))}function F(H,ee,le,Ee){if(!H||s===0)return;if(!ee){(s||p.emitDeclarationOnly)&&(L=!0);return}let ce=Li(H)?[H]:H.sourceFiles,Z=d?ce:Cr(ce,P9),pe=ss(p)?[P.createBundle(Z,Li(H)?void 0:H.prepends)]:Z;s&&!Xp(p)&&Z.forEach(oe);let Ae=mk(e,t,P,p,pe,o,!1);if(yn(Ae.diagnostics))for(let _e of Ae.diagnostics)v.add(_e);let Oe=!!Ae.diagnostics&&!!Ae.diagnostics.length||!!t.isEmitBlocked(ee)||!!p.noEmit;if(L=L||Oe,!Oe||d){x.assert(Ae.transformed.length===1,"Should only see one output from the decl transform");let _e={removeComments:p.removeComments,newLine:p.newLine,noEmitHelpers:!0,module:p.module,target:p.target,sourceMap:!d&&p.declarationMap,inlineSourceMap:p.inlineSourceMap,extendedDiagnostics:p.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!R,recordInternalSection:!!R,relativeToBuildInfo:Ee},be=Vb(_e,{hasGlobalName:e.hasGlobalName,onEmitNode:Ae.emitNodeWithNotification,isEmitNotificationEnabled:Ae.isEmitNotificationEnabled,substituteNode:Ae.substituteNode});W(ee,le,Ae,be,{sourceMap:_e.sourceMap,sourceRoot:p.sourceRoot,mapRoot:p.mapRoot,extendedDiagnostics:p.extendedDiagnostics}),m&&(m.push(ee),le&&m.push(le)),R&&(R.dts=be.bundleFileInfo)}Ae.dispose()}function oe(H){if(dl(H)){H.expression.kind===80&&e.collectLinkedAliases(H.expression,!0);return}else if(Ed(H)){e.collectLinkedAliases(H.propertyName||H.name,!0);return}Ao(H,oe)}function W(H,ee,le,Ee,ce){let Z=le.transformed[0],pe=Z.kind===313?Z:void 0,Ae=Z.kind===312?Z:void 0,Oe=pe?pe.sourceFiles:[Ae],_e;$(ce,Z)&&(_e=Noe(t,Ll(ad(H)),de(ce),fe(ce,H,Ae),ce)),pe?Ee.writeBundle(pe,S,_e):Ee.writeFile(Ae,S,_e);let be;if(_e){h&&h.push({inputSourceFileNames:_e.getSources(),sourceMap:_e.toJSON()});let De=q(ce,_e,H,ee,Ae);if(De&&(S.isAtStartOfLine()||S.rawWrite(E),be=S.getTextPos(),S.writeComment(`//# sourceMappingURL=${De}`)),ee){let ft=_e.toString();RC(t,v,ee,ft,!1,Oe),Ee.bundleFileInfo&&(Ee.bundleFileInfo.mapHash=oT(ft,t))}}else S.writeLine();let Te=S.getText();RC(t,v,H,Te,!!p.emitBOM,Oe,{sourceMapUrlPos:be,diagnostics:le.diagnostics}),Ee.bundleFileInfo&&(Ee.bundleFileInfo.hash=oT(Te,t)),S.clear()}function $(H,ee){return(H.sourceMap||H.inlineSourceMap)&&(ee.kind!==312||!el(ee.fileName,".json"))}function de(H){let ee=ad(H.sourceRoot||"");return ee&&_c(ee)}function fe(H,ee,le){if(H.sourceRoot)return t.getCommonSourceDirectory();if(H.mapRoot){let Ee=ad(H.mapRoot);return le&&(Ee=Ur(BW(le.fileName,t,Ee))),P_(Ee)===0&&(Ee=wr(t.getCommonSourceDirectory(),Ee)),Ee}return Ur(Yo(ee))}function q(H,ee,le,Ee,ce){if(H.inlineSourceMap){let pe=ee.toString();return`data:application/json;base64,${Nne(Hc,pe)}`}let Z=Ll(ad(x.checkDefined(Ee)));if(H.mapRoot){let pe=ad(H.mapRoot);return ce&&(pe=Ur(BW(ce.fileName,t,pe))),P_(pe)===0?(pe=wr(t.getCommonSourceDirectory(),pe),encodeURI(AA(Ur(Yo(le)),wr(pe,Z),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(wr(pe,Z))}return encodeURI(Z)}}function _k(e,t){return{bundle:t,program:e,version:yp}}function bae(e){return JSON.stringify(e)}function R4(e,t){return mV(e,t)}function g7e(e,t,r){var i;let o=x.checkDefined(e.js),s=((i=o.sources)==null?void 0:i.prologues)&&PE(o.sources.prologues,l=>l.file);return e.sourceFiles.map((l,d)=>{let p=s?.get(d),h=p?.directives.map(E=>{let S=Ze(P.createStringLiteral(E.expression.text),E.expression),A=Ze(P.createExpressionStatement(S),E);return Ta(S,A),A}),m=P.createToken(1),v=P.createSourceFile(h??[],m,0);return v.fileName=Gf(r.getCurrentDirectory(),Qi(l,t),!r.useCaseSensitiveFileNames()),v.text=p?.text??"",JC(v,0,p?.text.length??0),Dx(v.statements,v),JC(m,v.end,0),Ta(m,v),v})}function Eae(e,t,r,i){var o,s;(o=qn)==null||o.push(qn.Phase.Emit,"emitUsingBuildInfo",{},!0),Ls("beforeEmit");let l=v7e(e,t,r,i);return Ls("afterEmit"),Ep("Emit","beforeEmit","afterEmit"),(s=qn)==null||s.pop(),l}function v7e(e,t,r,i){let{buildInfoPath:o,jsFilePath:s,sourceMapFilePath:l,declarationFilePath:d,declarationMapPath:p}=zN(e.options,!1),h=t.getBuildInfo(o,e.options.configFilePath);if(!h||!h.bundle||!h.bundle.js||d&&!h.bundle.dts)return o;let m=t.readFile(x.checkDefined(s));if(!m||oT(m,t)!==h.bundle.js.hash)return s;let v=l&&t.readFile(l);if(l&&!v||e.options.inlineSourceMap)return l||"inline sourcemap decoding";if(l&&oT(v,t)!==h.bundle.js.mapHash)return l;let E=d&&t.readFile(d);if(d&&!E||d&&oT(E,t)!==h.bundle.dts.hash)return d;let S=p&&t.readFile(p);if(p&&!S||e.options.inlineSourceMap)return p||"inline sourcemap decoding";if(p&&oT(S,t)!==h.bundle.dts.mapHash)return p;let A=Ur(Qi(o,t.getCurrentDirectory())),C=aj(s,m,l,v,d,E,p,S,o,h,!0),R=[],L=WH(e.projectReferences,r,oe=>t.readFile(oe),t),G=g7e(h.bundle,A,t),U,K,F={getPrependNodes:Kd(()=>[...L,C]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>Qi(h.bundle.commonSourceDirectory,A),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:ub,getSourceFileByPath:ub,getSourceFiles:()=>G,getLibFileFromReference:Ro,isSourceFileFromExternalLibrary:_m,getResolvedProjectReferenceToRedirect:ub,getProjectReferenceRedirect:ub,isSourceOfProjectReferenceRedirect:_m,writeFile:(oe,W,$,de,fe,q)=>{switch(oe){case s:if(m===W)return;break;case l:if(v===W)return;break;case o:break;case d:if(E===W)return;U=W,K=q;break;case p:if(S===W)return;break;default:x.fail(`Unexpected path: ${oe}`)}R.push({name:oe,text:W,writeByteOrderMark:$,data:q})},isEmitBlocked:_m,readFile:oe=>t.readFile(oe),fileExists:oe=>t.fileExists(oe),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:oe=>{let W=h.program;W&&U!==void 0&&e.options.composite&&(W.outSignature=oT(U,t,K));let{js:$,dts:de,sourceFiles:fe}=h.bundle;return oe.js.sources=$.sources,de&&(oe.dts.sources=de.sources),oe.sourceFiles=fe,_k(W,oe)},getSourceFileFromReference:ub,redirectTargetsMap:bp(),getFileIncludeReasons:Ro,createHash:Wo(t,t.createHash)};return x4(D4,F,void 0,cH(e.options,i)),R}function Vb(e={},t={}){var{hasGlobalName:r,onEmitNode:i=fk,isEmitNotificationEnabled:o,substituteNode:s=WN,onBeforeEmitNode:l,onAfterEmitNode:d,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:h,onBeforeEmitToken:m,onAfterEmitToken:v}=t,E=!!e.extendedDiagnostics,S=!!e.omitBraceSourceMapPositions,A=rv(e),C=ld(e),R=new Map,L,G,U,K,F,oe,W,$,de,fe,q,H,ee,le,Ee,ce=e.preserveSourceNewlines,Z,pe,Ae,Oe=DT,_e,be=e.writeBundleFileInfo?{sections:[]}:void 0,Te=be?x.checkDefined(e.relativeToBuildInfo):void 0,De=e.recordInternalSection,ft=0,he="text",Le=!0,Ke,Dt,st=-1,Ge,ot=-1,Vt=-1,jt=-1,gn=-1,On,en,zt=!1,Wt=!!e.removeComments,ei,Ki,{enter:gi,exit:io}=Cve(E,"commentTime","beforeComment","afterComment"),Gn=P.parenthesizer,Nr={select:I=>I===0?Gn.parenthesizeLeadingTypeArgument:void 0},cr=mg();return Je(),{printNode:Jt,printList:Ue,printFile:mn,printBundle:Rt,writeNode:ni,writeList:ki,writeFile:tt,writeBundle:ke,bundleFileInfo:be};function Jt(I,ne,rt){switch(I){case 0:x.assert(Li(ne),"Expected a SourceFile node.");break;case 2:x.assert(Me(ne),"Expected an Identifier node.");break;case 1:x.assert(lt(ne),"Expected an Expression node.");break}switch(ne.kind){case 312:return mn(ne);case 313:return Rt(ne);case 314:return qr(ne)}return ni(I,ne,rt,yt()),re()}function Ue(I,ne,rt){return ki(I,ne,rt,yt()),re()}function Rt(I){return ke(I,yt(),void 0),re()}function mn(I){return tt(I,yt(),void 0),re()}function qr(I){return nt(I,yt()),re()}function ni(I,ne,rt,Ht){let yr=pe;z(Ht,void 0),Ce(I,ne,rt),Je(),pe=yr}function ki(I,ne,rt,Ht){let yr=pe;z(Ht,void 0),rt&&et(rt),Ds(void 0,ne,I),Je(),pe=yr}function so(){return pe.getTextPosWithWriteLine?pe.getTextPosWithWriteLine():pe.getTextPos()}function Jo(I,ne,rt){let Ht=Ns(be.sections);Ht&&Ht.kind===rt?Ht.end=ne:be.sections.push({pos:I,end:ne,kind:rt})}function ba(I){if(De&&be&&L&&(bd(I)||cl(I))&&o9(I,L)&&he!=="internal"){let ne=he;return Tn(pe.getTextPos()),ft=so(),he="internal",ne}}function ln(I){I&&(Tn(pe.getTextPos()),ft=so(),he=I)}function Tn(I){return ft<I?(Jo(ft,I,he),!0):!1}function ke(I,ne,rt){_e=!1;let Ht=pe;z(ne,rt),Cy(I),bg(I),Ot(I),Cm(I);for(let yr of I.prepends){Tc();let vi=pe.getTextPos(),ri=be&&be.sections;if(ri&&(be.sections=[]),Ce(4,yr,void 0),be){let wi=be.sections;be.sections=ri,yr.oldFileOfCurrentEmit?be.sections.push(...wi):(wi.forEach($o=>x.assert(zne($o))),be.sections.push({pos:vi,end:pe.getTextPos(),kind:"prepend",data:Te(yr.fileName),texts:wi}))}}ft=so();for(let yr of I.sourceFiles)Ce(0,yr,yr);if(be&&I.sourceFiles.length){let yr=pe.getTextPos();if(Tn(yr)){let vi=AP(I);vi&&(be.sources||(be.sources={}),be.sources.prologues=vi);let ri=bt(I);ri&&(be.sources||(be.sources={}),be.sources.helpers=ri)}}Je(),pe=Ht}function nt(I,ne){let rt=pe;z(ne,void 0),Ce(4,I,void 0),Je(),pe=rt}function tt(I,ne,rt){_e=!0;let Ht=pe;z(ne,rt),Cy(I),bg(I),Ce(0,I,I),Je(),pe=Ht}function yt(){return Ae||(Ae=GL(A))}function re(){let I=Ae.getText();return Ae.clear(),I}function Ce(I,ne,rt){rt&&et(rt),V(I,ne,void 0)}function et(I){L=I,On=void 0,en=void 0,I&&Ig(I)}function z(I,ne){I&&e.omitTrailingSemicolon&&(I=nV(I)),pe=I,Ke=ne,Le=!pe||!Ke}function Je(){G=[],U=[],K=[],F=new Set,oe=[],W=new Map,$=[],de=0,fe=[],q=0,H=[],ee=void 0,le=[],Ee=void 0,L=void 0,On=void 0,en=void 0,z(void 0,void 0)}function _t(){return On||(On=Yh(x.checkDefined(L)))}function ze(I,ne){if(I===void 0)return;let rt=ba(I);V(4,I,ne),ln(rt)}function it(I){I!==void 0&&V(2,I,void 0)}function Ct(I,ne){I!==void 0&&V(1,I,ne)}function on(I){V(ca(I)?6:4,I)}function Qt(I){ce&&Uf(I)&4&&(ce=!1)}function Zt(I){ce=I}function V(I,ne,rt){Ki=rt,M(0,I,ne)(I,ne),Ki=void 0}function Re(I){return!Wt&&!Li(I)}function St(I){return!Le&&!Li(I)&&!SW(I)&&!XS(I)&&!nie(I)}function M(I,ne,rt){switch(I){case 0:if(i!==fk&&(!o||o(rt)))return j;case 1:if(s!==WN&&(ei=s(ne,rt)||rt)!==rt)return Ki&&(ei=Ki(ei)),gt;case 2:if(Re(rt))return tD;case 3:if(St(rt))return dE;case 4:return se;default:return x.assertNever(I)}}function te(I,ne,rt){return M(I+1,ne,rt)}function j(I,ne){let rt=te(0,I,ne);i(I,ne,rt)}function se(I,ne){if(l?.(ne),ce){let rt=ce;Qt(ne),Pe(I,ne),Zt(rt)}else Pe(I,ne);d?.(ne),Ki=void 0}function Pe(I,ne,rt=!0){if(rt){let Ht=cj(ne);if(Ht)return Zi(I,ne,Ht)}if(I===0)return t1(Fo(ne,Li));if(I===2)return Mr(Fo(ne,Me));if(I===6)return Cn(Fo(ne,ca),!0);if(I===3)return Ie(Fo(ne,qs));if(I===7)return KI(Fo(ne,uI));if(I===5)return x.assertNode(ne,Tj),zi(!0);if(I===4){switch(ne.kind){case 16:case 17:case 18:return Cn(ne,!1);case 80:return Mr(ne);case 81:return lo(ne);case 166:return _n(ne);case 167:return Dl(ne);case 168:return _o(ne);case 169:return Va(ne);case 170:return gs(ne);case 171:return Js(ne);case 172:return Fc(ne);case 173:return $i(ne);case 174:return Uo(ne);case 175:return zc(ne);case 176:return ts(ne);case 177:case 178:return da(ne);case 179:return Us(ne);case 180:return tf(ne);case 181:return Wl(ne);case 182:return ho(ne);case 183:return Ut(ne);case 184:return vs(ne);case 185:return tc(ne);case 186:return ae(ne);case 187:return X(ne);case 188:return xe(ne);case 189:return $t(ne);case 190:return tr(ne);case 192:return Ir(ne);case 193:return pi(ne);case 194:return hr(ne);case 195:return No(ne);case 196:return Qs(ne);case 233:return xt(ne);case 197:return bc();case 198:return ys(ne);case 199:return Jl(ne);case 200:return Za(ne);case 201:return Ec(ne);case 202:return sr(ne);case 203:return Du(ne);case 204:return il(ne);case 205:return pc(ne);case 206:return Nf(ne);case 207:return Vd(ne);case 208:return Se(ne);case 239:return Mt(ne);case 240:return zs();case 241:return Vn(ne);case 243:return Or(ne);case 242:return zi(!1);case 244:return ma(ne);case 245:return _a(ne);case 246:return Gc(ne);case 247:return nc(ne);case 248:return Xu(ne);case 249:return _u(ne);case 250:return Ay(ne);case 251:return em(ne);case 252:return tm(ne);case 253:return C0(ne);case 254:return kp(ne);case 255:return u_(ne);case 256:return Op(ne);case 257:return hg(ne);case 258:return Ne(ne);case 259:return Ve(ne);case 260:return Tt(ne);case 261:return Pt(ne);case 262:return rn(ne);case 263:return Mo(ne);case 264:return xd(ne);case 265:return Vc(ne);case 266:return gg(ne);case 267:return $b(ne);case 268:return UI(ne);case 269:return Qb(ne);case 270:return YI(ne);case 271:return GR(ne);case 272:return jR(ne);case 273:return gT(ne);case 274:return N0(ne);case 280:return P0(ne);case 275:return HI(ne);case 276:return UR(ne);case 277:return qI(ne);case 278:return JI(ne);case 279:return M0(ne);case 281:return Iy(ne);case 300:return XI(ne);case 301:return vT(ne);case 282:return;case 283:return Zb(ne);case 12:return vg(ne);case 286:case 289:return eE(ne);case 287:case 290:return X_(ne);case 291:return hu(ne);case 292:return rf(ne);case 293:return Yu(ne);case 294:return qR(ne);case 295:return $I(ne);case 296:return tE(ne);case 297:return QI(ne);case 298:return Ev(ne);case 299:return ZI(ne);case 303:return xm(ne);case 304:return ET(ne);case 305:return we(ne);case 306:return Rm(ne);case 307:return di(ne);case 314:case 308:return ti(ne);case 309:case 310:return jn(ne);case 311:return Ar(ne);case 312:return t1(ne);case 313:return x.fail("Bundles should be printed using printBundle");case 315:return x.fail("InputFiles should not be printed");case 316:return yg(ne);case 317:return Dy(ne);case 319:return nr("*");case 320:return nr("?");case 321:return Bc(ne);case 322:return Ju(ne);case 323:return ls(ne);case 324:return Pc(ne);case 191:case 325:return dt(ne);case 326:return;case 327:return jc(ne);case 329:return TT(ne);case 330:return rE(ne);case 334:case 339:case 344:return ST(ne);case 335:case 336:return Sv(ne);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return xa(ne);case 346:return Dm(ne);case 348:case 355:return AT(ne);case 347:case 349:case 350:case 351:case 356:case 357:return nE(ne);case 352:return Tv(ne);case 353:return SP(ne);case 354:return e1(ne);case 359:return}if(lt(ne)&&(I=1,s!==WN)){let Ht=s(I,ne)||ne;Ht!==ne&&(ne=Ht,Ki&&(ne=Ki(ne)))}}if(I===1)switch(ne.kind){case 9:case 10:return An(ne);case 11:case 14:case 15:return Cn(ne,!1);case 80:return Mr(ne);case 81:return lo(ne);case 209:return At(ne);case 210:return Ln(ne);case 211:return eo(ne);case 212:return Oo(ne);case 213:return Cl(ne);case 214:return Kl(ne);case 215:return Bs(ne);case 216:return Ks(ne);case 217:return vl(ne);case 218:return Nl(ne);case 219:return Sc(ne);case 220:return fu(ne);case 221:return tu(ne);case 222:return nf(ne);case 223:return d_(ne);case 224:return K_(ne);case 225:return fd(ne);case 226:return cr(ne);case 227:return Ku(ne);case 228:return Lh(ne);case 229:return mu(ne);case 230:return Y(ne);case 231:return Ye(ne);case 232:return;case 234:return Nt(ne);case 235:return k(ne);case 233:return xt(ne);case 238:return ge(ne);case 236:return Xe(ne);case 237:return x.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return La(ne);case 285:return yT(ne);case 288:return HR(ne);case 358:return x.fail("SyntaxList should not be printed");case 359:return;case 360:return Fr(ne);case 361:return Y_(ne);case 362:return x.fail("SyntheticReferenceExpression should not be printed")}if(du(ne.kind))return W0(ne,Oi);if(qG(ne.kind))return W0(ne,nr);x.fail(`Unhandled SyntaxKind: ${x.formatSyntaxKind(ne.kind)}.`)}function Ie(I){ze(I.name),Xn(),Oi("in"),Xn(),ze(I.constraint)}function gt(I,ne){let rt=te(1,I,ne);x.assertIsDefined(ei),ne=ei,ei=void 0,rt(I,ne)}function bt(I){let ne;if(C===0||e.noEmitHelpers)return;let rt=new Map;for(let Ht of I.sourceFiles){let yr=L2(Ht)!==void 0,vi=dn(Ht);if(vi)for(let ri of vi)!ri.scoped&&!yr&&!rt.get(ri.name)&&(rt.set(ri.name,!0),(ne||(ne=[])).push(ri.name))}return ne}function Ot(I){let ne=!1,rt=I.kind===313?I:void 0;if(rt&&C===0)return;let Ht=rt?rt.prepends.length:0,yr=rt?rt.sourceFiles.length+Ht:1;for(let vi=0;vi<yr;vi++){let ri=rt?vi<Ht?rt.prepends[vi]:rt.sourceFiles[vi-Ht]:I,wi=Li(ri)?ri:XS(ri)?void 0:L,$o=e.noEmitHelpers||!!wi&&hie(wi),Rd=(Li(ri)||XS(ri))&&!_e,ru=XS(ri)?ri.helpers:dn(ri);if(ru)for(let sf of ru){if(sf.scoped){if(rt)continue}else{if($o)continue;if(Rd){if(R.get(sf.name))continue;R.set(sf.name,!0)}}let Fy=so();typeof sf.text=="string"?NT(sf.text):NT(sf.text(o1)),be&&be.sections.push({pos:Fy,end:pe.getTextPos(),kind:"emitHelpers",data:sf.name}),ne=!0}}return ne}function dn(I){let ne=OF(I);return ne&&Gg(ne,Fre)}function An(I){Cn(I,!1)}function Cn(I,ne){let rt=LT(I,e.neverAsciiEscape,ne);(e.sourceMap||e.inlineSourceMap)&&(I.kind===11||Jv(I.kind))?Py(rt):$R(rt)}function ti(I){for(let ne of I.texts)Tc(),ze(ne)}function di(I){pe.rawWrite(I.parent.text.substring(I.pos,I.end))}function jn(I){let ne=so();di(I),be&&Jo(ne,pe.getTextPos(),I.kind===309?"text":"internal")}function Ar(I){let ne=so();if(di(I),be){let rt=aB(I.section);rt.pos=ne,rt.end=pe.getTextPos(),be.sections.push(rt)}}function Zi(I,ne,rt){switch(rt.kind){case 1:_i(I,ne,rt);break;case 0:ui(I,ne,rt);break}}function _i(I,ne,rt){iE(`\${${rt.order}:`),Pe(I,ne,!1),iE("}")}function ui(I,ne,rt){x.assert(ne.kind===242,`A tab stop cannot be attached to a node of kind ${x.formatSyntaxKind(ne.kind)}.`),x.assert(I!==5,"A tab stop cannot be attached to an embedded statement."),iE(`$${rt.order}`)}function Mr(I){(I.symbol?IP:Oe)(fc(I,!1),I.symbol),Ds(I,BS(I),53776)}function lo(I){Oe(fc(I,!1))}function _n(I){fs(I.left),nr("."),ze(I.right)}function fs(I){I.kind===80?Ct(I):ze(I)}function Dl(I){let ne=de,rt=Ee;ky(),nr("["),Ct(I.expression,Gn.parenthesizeExpressionOfComputedPropertyName),nr("]"),of(ne,rt)}function _o(I){Oh(I,I.modifiers),ze(I.name),I.constraint&&(Xn(),Oi("extends"),Xn(),ze(I.constraint)),I.default&&(Xn(),wp("="),Xn(),ze(I.default))}function Va(I){pp(I,I.modifiers,!0),ze(I.dotDotDotToken),Xs(I.name,Iv),ze(I.questionToken),I.parent&&I.parent.kind===324&&!I.name?ze(I.type):Lf(I.type),Ny(I.initializer,I.type?I.type.end:I.questionToken?I.questionToken.end:I.name?I.name.end:I.modifiers?I.modifiers.end:I.pos,I,Gn.parenthesizeExpressionForDisallowedComma)}function gs(I){nr("@"),Ct(I.expression,Gn.parenthesizeLeftSideOfAccess)}function Js(I){Oh(I,I.modifiers),Xs(I.name,CT),ze(I.questionToken),Lf(I.type),Mc()}function Fc(I){pp(I,I.modifiers,!0),ze(I.name),ze(I.questionToken),ze(I.exclamationToken),Lf(I.type),Ny(I.initializer,I.type?I.type.end:I.questionToken?I.questionToken.end:I.name.end,I),Mc()}function $i(I){Qc(I),Oh(I,I.modifiers),ze(I.name),ze(I.questionToken),p_(I,I.typeParameters),Av(I,I.parameters),Lf(I.type),Mc(),Nu(I)}function Uo(I){pp(I,I.modifiers,!0),ze(I.asteriskToken),ze(I.name),ze(I.questionToken),tn(I,Wn)}function zc(I){Oi("static"),Kn(I.body)}function ts(I){pp(I,I.modifiers,!1),Oi("constructor"),tn(I,Wn)}function da(I){let ne=pp(I,I.modifiers,!0),rt=I.kind===177?139:153;Ri(rt,ne,Oi,I),Xn(),ze(I.name),tn(I,Wn)}function Us(I){Qc(I),p_(I,I.typeParameters),Av(I,I.parameters),Lf(I.type),Mc(),Nu(I)}function tf(I){Qc(I),Oi("new"),Xn(),p_(I,I.typeParameters),Av(I,I.parameters),Lf(I.type),Mc(),Nu(I)}function Wl(I){pp(I,I.modifiers,!1),YR(I,I.parameters),Lf(I.type),Mc()}function il(I){ze(I.type),ze(I.literal)}function zs(){Mc()}function ho(I){I.assertsModifier&&(ze(I.assertsModifier),Xn()),ze(I.parameterName),I.type&&(Xn(),Oi("is"),Xn(),ze(I.type))}function Ut(I){ze(I.typeName),Wh(I,I.typeArguments)}function vs(I){Qc(I),p_(I,I.typeParameters),XR(I,I.parameters),Xn(),nr("=>"),Xn(),ze(I.type),Nu(I)}function Pc(I){Oi("function"),Av(I,I.parameters),nr(":"),ze(I.type)}function Bc(I){nr("?"),ze(I.type)}function Ju(I){nr("!"),ze(I.type)}function ls(I){ze(I.type),nr("=")}function tc(I){Qc(I),Oh(I,I.modifiers),Oi("new"),Xn(),p_(I,I.typeParameters),Av(I,I.parameters),Xn(),nr("=>"),Xn(),ze(I.type),Nu(I)}function ae(I){Oi("typeof"),Xn(),ze(I.exprName),Wh(I,I.typeArguments)}function X(I){of(0,void 0),nr("{");let ne=ya(I)&1?768:32897;Ds(I,I.members,ne|524288),nr("}"),ky()}function xe(I){ze(I.elementType,Gn.parenthesizeNonArrayTypeOfPostfixType),nr("["),nr("]")}function dt(I){nr("..."),ze(I.type)}function $t(I){Ri(23,I.pos,nr,I);let ne=ya(I)&1?528:657;Ds(I,I.elements,ne|524288,Gn.parenthesizeElementTypeOfTupleType),Ri(24,I.elements.end,nr,I)}function sr(I){ze(I.dotDotDotToken),ze(I.name),ze(I.questionToken),Ri(59,I.name.end,nr,I),Xn(),ze(I.type)}function tr(I){ze(I.type,Gn.parenthesizeTypeOfOptionalType),nr("?")}function Ir(I){Ds(I,I.types,516,Gn.parenthesizeConstituentTypeOfUnionType)}function pi(I){Ds(I,I.types,520,Gn.parenthesizeConstituentTypeOfIntersectionType)}function hr(I){ze(I.checkType,Gn.parenthesizeCheckTypeOfConditionalType),Xn(),Oi("extends"),Xn(),ze(I.extendsType,Gn.parenthesizeExtendsTypeOfConditionalType),Xn(),nr("?"),Xn(),ze(I.trueType),Xn(),nr(":"),Xn(),ze(I.falseType)}function No(I){Oi("infer"),Xn(),ze(I.typeParameter)}function Qs(I){nr("("),ze(I.type),nr(")")}function bc(){Oi("this")}function ys(I){My(I.operator,Oi),Xn();let ne=I.operator===148?Gn.parenthesizeOperandOfReadonlyTypeOperator:Gn.parenthesizeOperandOfTypeOperator;ze(I.type,ne)}function Jl(I){ze(I.objectType,Gn.parenthesizeNonArrayTypeOfPostfixType),nr("["),ze(I.indexType),nr("]")}function Za(I){let ne=ya(I);nr("{"),ne&1?Xn():(Tc(),$_()),I.readonlyToken&&(ze(I.readonlyToken),I.readonlyToken.kind!==148&&Oi("readonly"),Xn()),nr("["),V(3,I.typeParameter),I.nameType&&(Xn(),Oi("as"),Xn(),ze(I.nameType)),nr("]"),I.questionToken&&(ze(I.questionToken),I.questionToken.kind!==58&&nr("?")),nr(":"),Xn(),ze(I.type),Mc(),ne&1?Xn():(Tc(),om()),Ds(I,I.members,2),nr("}")}function Ec(I){Ct(I.literal)}function Du(I){ze(I.head),Ds(I,I.templateSpans,262144)}function pc(I){I.isTypeOf&&(Oi("typeof"),Xn()),Oi("import"),nr("("),ze(I.argument),I.attributes&&(nr(","),Xn(),V(7,I.attributes)),nr(")"),I.qualifier&&(nr("."),ze(I.qualifier)),Wh(I,I.typeArguments)}function Nf(I){nr("{"),Ds(I,I.elements,525136),nr("}")}function Vd(I){nr("["),Ds(I,I.elements,524880),nr("]")}function Se(I){ze(I.dotDotDotToken),I.propertyName&&(ze(I.propertyName),nr(":"),Xn()),ze(I.name),Ny(I.initializer,I.name.end,I,Gn.parenthesizeExpressionForDisallowedComma)}function At(I){let ne=I.elements,rt=I.multiLine?65536:0;O0(I,ne,8914|rt,Gn.parenthesizeExpressionForDisallowedComma)}function Ln(I){of(0,void 0),an(I.properties,i1);let ne=ya(I)&131072;ne&&$_();let rt=I.multiLine?65536:0,Ht=L&&L.languageVersion>=1&&!yf(L)?64:0;Ds(I,I.properties,526226|Ht|rt),ne&&om(),ky()}function eo(I){Ct(I.expression,Gn.parenthesizeLeftSideOfAccess);let ne=I.questionDotToken||W_(P.createToken(25),I.expression.end,I.name.pos),rt=fp(I,I.expression,ne),Ht=fp(I,ne,I.name);am(rt,!1),ne.kind!==29&&Po(I.expression)&&!pe.hasTrailingComment()&&!pe.hasTrailingWhitespace()&&nr("."),I.questionDotToken?ze(ne):Ri(ne.kind,I.expression.end,nr,I),am(Ht,!1),ze(I.name),oE(rt,Ht)}function Po(I){if(I=jf(I),Bu(I)){let ne=LT(I,!0,!1);return!(I.numericLiteralFlags&448)&&!ne.includes(qo(25))&&!ne.includes("E")&&!ne.includes("e")}else if(ds(I)){let ne=Nre(I);return typeof ne=="number"&&isFinite(ne)&&ne>=0&&Math.floor(ne)===ne}}function Oo(I){Ct(I.expression,Gn.parenthesizeLeftSideOfAccess),ze(I.questionDotToken),Ri(23,I.expression.end,nr,I),Ct(I.argumentExpression),Ri(24,I.argumentExpression.end,nr,I)}function Cl(I){let ne=Uf(I)&16;ne&&(nr("("),Py("0"),nr(","),Xn()),Ct(I.expression,Gn.parenthesizeLeftSideOfAccess),ne&&nr(")"),ze(I.questionDotToken),Wh(I,I.typeArguments),O0(I,I.arguments,2576,Gn.parenthesizeExpressionForDisallowedComma)}function Kl(I){Ri(105,I.pos,Oi,I),Xn(),Ct(I.expression,Gn.parenthesizeExpressionOfNew),Wh(I,I.typeArguments),O0(I,I.arguments,18960,Gn.parenthesizeExpressionForDisallowedComma)}function Bs(I){let ne=Uf(I)&16;ne&&(nr("("),Py("0"),nr(","),Xn()),Ct(I.tag,Gn.parenthesizeLeftSideOfAccess),ne&&nr(")"),Wh(I,I.typeArguments),Xn(),Ct(I.template)}function Ks(I){nr("<"),ze(I.type),nr(">"),Ct(I.expression,Gn.parenthesizeOperandOfPrefixUnary)}function vl(I){let ne=Ri(21,I.pos,nr,I),rt=QR(I.expression,I);Ct(I.expression,void 0),F0(I.expression,I),oE(rt),Ri(22,I.expression?I.expression.end:ne,nr,I)}function Nl(I){mp(I.name),wn(I)}function Sc(I){Oh(I,I.modifiers),tn(I,Lp)}function Lp(I){p_(I,I.typeParameters),XR(I,I.parameters),Lf(I.type),Xn(),ze(I.equalsGreaterThanToken)}function fu(I){Ri(91,I.pos,Oi,I),Xn(),Ct(I.expression,Gn.parenthesizeOperandOfPrefixUnary)}function tu(I){Ri(114,I.pos,Oi,I),Xn(),Ct(I.expression,Gn.parenthesizeOperandOfPrefixUnary)}function nf(I){Ri(116,I.pos,Oi,I),Xn(),Ct(I.expression,Gn.parenthesizeOperandOfPrefixUnary)}function d_(I){Ri(135,I.pos,Oi,I),Xn(),Ct(I.expression,Gn.parenthesizeOperandOfPrefixUnary)}function K_(I){My(I.operator,wp),fg(I)&&Xn(),Ct(I.operand,Gn.parenthesizeOperandOfPrefixUnary)}function fg(I){let ne=I.operand;return ne.kind===224&&(I.operator===40&&(ne.operator===40||ne.operator===46)||I.operator===41&&(ne.operator===41||ne.operator===47))}function fd(I){Ct(I.operand,Gn.parenthesizeOperandOfPostfixUnary),My(I.operator,wp)}function mg(){return M6(I,ne,rt,Ht,yr,void 0);function I(ri,wi){if(wi){wi.stackIndex++,wi.preserveSourceNewlinesStack[wi.stackIndex]=ce,wi.containerPosStack[wi.stackIndex]=Vt,wi.containerEndStack[wi.stackIndex]=jt,wi.declarationListContainerEndStack[wi.stackIndex]=gn;let $o=wi.shouldEmitCommentsStack[wi.stackIndex]=Re(ri),Rd=wi.shouldEmitSourceMapsStack[wi.stackIndex]=St(ri);l?.(ri),$o&&WT(ri),Rd&&c1(ri),Qt(ri)}else wi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return wi}function ne(ri,wi,$o){return vi(ri,$o,"left")}function rt(ri,wi,$o){let Rd=ri.kind!==28,ru=fp($o,$o.left,ri),sf=fp($o,ri,$o.right);am(ru,Rd),zh(ri.pos),W0(ri,ri.kind===103?Oi:wp),sm(ri.end,!0),am(sf,!0)}function Ht(ri,wi,$o){return vi(ri,$o,"right")}function yr(ri,wi){let $o=fp(ri,ri.left,ri.operatorToken),Rd=fp(ri,ri.operatorToken,ri.right);if(oE($o,Rd),wi.stackIndex>0){let ru=wi.preserveSourceNewlinesStack[wi.stackIndex],sf=wi.containerPosStack[wi.stackIndex],Fy=wi.containerEndStack[wi.stackIndex],ai=wi.declarationListContainerEndStack[wi.stackIndex],eh=wi.shouldEmitCommentsStack[wi.stackIndex],Pn=wi.shouldEmitSourceMapsStack[wi.stackIndex];Zt(ru),Pn&&BT(ri),eh&&nD(ri,sf,Fy,ai),d?.(ri),wi.stackIndex--}}function vi(ri,wi,$o){let Rd=$o==="left"?Gn.getParenthesizeLeftSideOfBinaryForOperator(wi.operatorToken.kind):Gn.getParenthesizeRightSideOfBinaryForOperator(wi.operatorToken.kind),ru=M(0,1,ri);if(ru===gt&&(x.assertIsDefined(ei),ri=Rd(Fo(ei,lt)),ru=te(1,1,ri),ei=void 0),(ru===tD||ru===dE||ru===se)&&Zn(ri))return ri;Ki=Rd,ru(1,ri)}}function Ku(I){let ne=fp(I,I.condition,I.questionToken),rt=fp(I,I.questionToken,I.whenTrue),Ht=fp(I,I.whenTrue,I.colonToken),yr=fp(I,I.colonToken,I.whenFalse);Ct(I.condition,Gn.parenthesizeConditionOfConditionalExpression),am(ne,!0),ze(I.questionToken),am(rt,!0),Ct(I.whenTrue,Gn.parenthesizeBranchOfConditionalExpression),oE(ne,rt),am(Ht,!0),ze(I.colonToken),am(yr,!0),Ct(I.whenFalse,Gn.parenthesizeBranchOfConditionalExpression),oE(Ht,yr)}function Lh(I){ze(I.head),Ds(I,I.templateSpans,262144)}function mu(I){Ri(127,I.pos,Oi,I),ze(I.asteriskToken),k0(I.expression&&nm(I.expression),D0)}function Y(I){Ri(26,I.pos,nr,I),Ct(I.expression,Gn.parenthesizeExpressionForDisallowedComma)}function Ye(I){mp(I.name),Ia(I)}function xt(I){Ct(I.expression,Gn.parenthesizeLeftSideOfAccess),Wh(I,I.typeArguments)}function Nt(I){Ct(I.expression,void 0),I.type&&(Xn(),Oi("as"),Xn(),ze(I.type))}function k(I){Ct(I.expression,Gn.parenthesizeLeftSideOfAccess),wp("!")}function ge(I){Ct(I.expression,void 0),I.type&&(Xn(),Oi("satisfies"),Xn(),ze(I.type))}function Xe(I){w0(I.keywordToken,I.pos,nr),nr("."),ze(I.name)}function Mt(I){Ct(I.expression),ze(I.literal)}function Vn(I){jr(I,!I.multiLine&&MT(I))}function jr(I,ne){Ri(19,I.pos,nr,I);let rt=ne||ya(I)&1?768:129;Ds(I,I.statements,rt),Ri(20,I.statements.end,nr,I,!!(rt&1))}function Or(I){pp(I,I.modifiers,!1),ze(I.declarationList),Mc()}function zi(I){I?nr(";"):Mc()}function ma(I){Ct(I.expression,Gn.parenthesizeExpressionOfExpressionStatement),(!L||!yf(L)||xs(I.expression))&&Mc()}function _a(I){let ne=Ri(101,I.pos,Oi,I);Xn(),Ri(21,ne,nr,I),Ct(I.expression),Ri(22,I.expression.end,nr,I),wh(I,I.thenStatement),I.elseStatement&&(Sg(I,I.thenStatement,I.elseStatement),Ri(93,I.thenStatement.end,Oi,I),I.elseStatement.kind===245?(Xn(),ze(I.elseStatement)):wh(I,I.elseStatement))}function pl(I,ne){let rt=Ri(117,ne,Oi,I);Xn(),Ri(21,rt,nr,I),Ct(I.expression),Ri(22,I.expression.end,nr,I)}function Gc(I){Ri(92,I.pos,Oi,I),wh(I,I.statement),Do(I.statement)&&!ce?Xn():Sg(I,I.statement,I.expression),pl(I,I.statement.end),Mc()}function nc(I){pl(I,I.pos),wh(I,I.statement)}function Xu(I){let ne=Ri(99,I.pos,Oi,I);Xn();let rt=Ri(21,ne,nr,I);ja(I.initializer),rt=Ri(27,I.initializer?I.initializer.end:rt,nr,I),k0(I.condition),rt=Ri(27,I.condition?I.condition.end:rt,nr,I),k0(I.incrementor),Ri(22,I.incrementor?I.incrementor.end:rt,nr,I),wh(I,I.statement)}function _u(I){let ne=Ri(99,I.pos,Oi,I);Xn(),Ri(21,ne,nr,I),ja(I.initializer),Xn(),Ri(103,I.initializer.end,Oi,I),Xn(),Ct(I.expression),Ri(22,I.expression.end,nr,I),wh(I,I.statement)}function Ay(I){let ne=Ri(99,I.pos,Oi,I);Xn(),IT(I.awaitModifier),Ri(21,ne,nr,I),ja(I.initializer),Xn(),Ri(165,I.initializer.end,Oi,I),Xn(),Ct(I.expression),Ri(22,I.expression.end,nr,I),wh(I,I.statement)}function ja(I){I!==void 0&&(I.kind===261?ze(I):Ct(I))}function em(I){Ri(88,I.pos,Oi,I),Eg(I.label),Mc()}function tm(I){Ri(83,I.pos,Oi,I),Eg(I.label),Mc()}function Ri(I,ne,rt,Ht,yr){let vi=uo(Ht),ri=vi&&vi.kind===Ht.kind,wi=ne;if(ri&&L&&(ne=ua(L.text,ne)),ri&&Ht.pos!==wi){let $o=yr&&L&&!Jp(wi,ne,L);$o&&$_(),zh(wi),$o&&om()}if(!S&&(I===19||I===20)?ne=w0(I,ne,rt,Ht):ne=My(I,rt,ne),ri&&Ht.end!==ne){let $o=Ht.kind===294;sm(ne,!$o,$o)}return ne}function _g(I){return I.kind===2||!!I.hasTrailingNewLine}function yv(I){if(!L)return!1;let ne=mh(L.text,I.pos);if(ne){let rt=uo(I);if(rt&&uu(rt.parent))return!0}return ct(ne,_g)||ct(Mx(I),_g)?!0:v6(I)?I.pos!==I.expression.pos&&ct(mb(L.text,I.expression.pos),_g)?!0:yv(I.expression):!1}function nm(I){if(!Wt&&v6(I)&&yv(I)){let ne=uo(I);if(ne&&uu(ne)){let rt=P.createParenthesizedExpression(I.expression);return mr(rt,I),Ze(rt,ne),rt}return P.createParenthesizedExpression(I)}return I}function D0(I){return nm(Gn.parenthesizeExpressionForDisallowedComma(I))}function C0(I){Ri(107,I.pos,Oi,I),k0(I.expression&&nm(I.expression),nm),Mc()}function kp(I){let ne=Ri(118,I.pos,Oi,I);Xn(),Ri(21,ne,nr,I),Ct(I.expression),Ri(22,I.expression.end,nr,I),wh(I,I.statement)}function u_(I){let ne=Ri(109,I.pos,Oi,I);Xn(),Ri(21,ne,nr,I),Ct(I.expression),Ri(22,I.expression.end,nr,I),Xn(),ze(I.caseBlock)}function Op(I){ze(I.label),Ri(59,I.label.end,nr,I),Xn(),ze(I.statement)}function hg(I){Ri(111,I.pos,Oi,I),k0(nm(I.expression),nm),Mc()}function Ne(I){Ri(113,I.pos,Oi,I),Xn(),ze(I.tryBlock),I.catchClause&&(Sg(I,I.tryBlock,I.catchClause),ze(I.catchClause)),I.finallyBlock&&(Sg(I,I.catchClause||I.tryBlock,I.finallyBlock),Ri(98,(I.catchClause||I.tryBlock).end,Oi,I),Xn(),ze(I.finallyBlock))}function Ve(I){w0(89,I.pos,Oi),Mc()}function Tt(I){var ne,rt,Ht;ze(I.name),ze(I.exclamationToken),Lf(I.type),Ny(I.initializer,((ne=I.type)==null?void 0:ne.end)??((Ht=(rt=I.name.emitNode)==null?void 0:rt.typeNode)==null?void 0:Ht.end)??I.name.end,I,Gn.parenthesizeExpressionForDisallowedComma)}function Pt(I){if(lL(I))Oi("await"),Xn(),Oi("using");else{let ne=lW(I)?"let":Z1(I)?"const":cL(I)?"using":"var";Oi(ne)}Xn(),Ds(I,I.declarations,528)}function rn(I){wn(I)}function wn(I){pp(I,I.modifiers,!1),Oi("function"),ze(I.asteriskToken),Xn(),it(I.name),tn(I,Wn)}function tn(I,ne){let rt=I.body;if(rt)if(Do(rt)){let Ht=ya(I)&131072;Ht&&$_(),Qc(I),an(I.parameters,Lc),Lc(I.body),ne(I),Kn(rt),Nu(I),Ht&&om()}else ne(I),Xn(),Ct(rt,Gn.parenthesizeConciseBodyOfArrowFunction);else ne(I),Mc()}function Wn(I){p_(I,I.typeParameters),Av(I,I.parameters),Lf(I.type)}function Qr(I){if(ya(I)&1)return!0;if(I.multiLine||!xs(I)&&L&&!WS(I,L)||Fh(I,Ac(I.statements),2)||r1(I,Ns(I.statements),2,I.statements))return!1;let ne;for(let rt of I.statements){if(Ly(ne,rt,2)>0)return!1;ne=rt}return!0}function Kn(I){l?.(I),Xn(),nr("{"),$_();let ne=Qr(I)?Gr:Qn;dr(I,I.statements,ne),om(),w0(20,I.statements.end,nr,I),d?.(I)}function Gr(I){Qn(I,!0)}function Qn(I,ne){let rt=gu(I.statements),Ht=pe.getTextPos();Ot(I),rt===0&&Ht===pe.getTextPos()&&ne?(om(),Ds(I,I.statements,768),$_()):Ds(I,I.statements,1,void 0,rt)}function Mo(I){Ia(I)}function Ia(I){of(0,void 0),an(I.members,i1),pp(I,I.modifiers,!0),Ri(86,Qm(I).pos,Oi,I),I.name&&(Xn(),it(I.name));let ne=ya(I)&131072;ne&&$_(),p_(I,I.typeParameters),Ds(I,I.heritageClauses,0),Xn(),nr("{"),Ds(I,I.members,129),nr("}"),ne&&om(),ky()}function xd(I){of(0,void 0),pp(I,I.modifiers,!1),Oi("interface"),Xn(),ze(I.name),p_(I,I.typeParameters),Ds(I,I.heritageClauses,512),Xn(),nr("{"),Ds(I,I.members,129),nr("}"),ky()}function Vc(I){pp(I,I.modifiers,!1),Oi("type"),Xn(),ze(I.name),p_(I,I.typeParameters),Xn(),nr("="),Xn(),ze(I.type),Mc()}function gg(I){pp(I,I.modifiers,!1),Oi("enum"),Xn(),ze(I.name),Xn(),nr("{"),Ds(I,I.members,145),nr("}")}function $b(I){pp(I,I.modifiers,!1),~I.flags&2048&&(Oi(I.flags&32?"namespace":"module"),Xn()),ze(I.name);let ne=I.body;if(!ne)return Mc();for(;ne&&Il(ne);)nr("."),ze(ne.name),ne=ne.body;Xn(),ze(ne)}function UI(I){Qc(I),an(I.statements,Lc),jr(I,MT(I)),Nu(I)}function Qb(I){Ri(19,I.pos,nr,I),Ds(I,I.clauses,129),Ri(20,I.clauses.end,nr,I,!0)}function GR(I){pp(I,I.modifiers,!1),Ri(102,I.modifiers?I.modifiers.end:I.pos,Oi,I),Xn(),I.isTypeOnly&&(Ri(156,I.pos,Oi,I),Xn()),ze(I.name),Xn(),Ri(64,I.name.end,nr,I),Xn(),VR(I.moduleReference),Mc()}function VR(I){I.kind===80?Ct(I):ze(I)}function jR(I){pp(I,I.modifiers,!1),Ri(102,I.modifiers?I.modifiers.end:I.pos,Oi,I),Xn(),I.importClause&&(ze(I.importClause),Xn(),Ri(161,I.importClause.end,Oi,I),Xn()),Ct(I.moduleSpecifier),I.attributes&&Eg(I.attributes),Mc()}function gT(I){I.isTypeOnly&&(Ri(156,I.pos,Oi,I),Xn()),ze(I.name),I.name&&I.namedBindings&&(Ri(28,I.name.end,nr,I),Xn()),ze(I.namedBindings)}function N0(I){let ne=Ri(42,I.pos,nr,I);Xn(),Ri(130,ne,Oi,I),Xn(),ze(I.name)}function HI(I){xy(I)}function UR(I){kh(I)}function qI(I){let ne=Ri(95,I.pos,Oi,I);Xn(),I.isExportEquals?Ri(64,ne,wp,I):Ri(90,ne,Oi,I),Xn(),Ct(I.expression,I.isExportEquals?Gn.getParenthesizeRightSideOfBinaryForOperator(64):Gn.parenthesizeExpressionOfExportDefault),Mc()}function JI(I){pp(I,I.modifiers,!1);let ne=Ri(95,I.pos,Oi,I);if(Xn(),I.isTypeOnly&&(ne=Ri(156,ne,Oi,I),Xn()),I.exportClause?ze(I.exportClause):ne=Ri(42,ne,nr,I),I.moduleSpecifier){Xn();let rt=I.exportClause?I.exportClause.end:ne;Ri(161,rt,Oi,I),Xn(),Ct(I.moduleSpecifier)}I.attributes&&Eg(I.attributes),Mc()}function KI(I){nr("{"),Xn(),Oi(I.token===132?"assert":"with"),nr(":"),Xn();let ne=I.elements;Ds(I,ne,526226),Xn(),nr("}")}function XI(I){Ri(I.token,I.pos,Oi,I),Xn();let ne=I.elements;Ds(I,ne,526226)}function vT(I){ze(I.name),nr(":"),Xn();let ne=I.value;if(!(ya(ne)&1024)){let rt=e_(ne);sm(rt.pos)}ze(ne)}function YI(I){let ne=Ri(95,I.pos,Oi,I);Xn(),ne=Ri(130,ne,Oi,I),Xn(),ne=Ri(145,ne,Oi,I),Xn(),ze(I.name),Mc()}function P0(I){let ne=Ri(42,I.pos,nr,I);Xn(),Ri(130,ne,Oi,I),Xn(),ze(I.name)}function M0(I){xy(I)}function Iy(I){kh(I)}function xy(I){nr("{"),Ds(I,I.elements,525136),nr("}")}function kh(I){I.isTypeOnly&&(Oi("type"),Xn()),I.propertyName&&(ze(I.propertyName),Xn(),Ri(130,I.propertyName.end,Oi,I),Xn()),ze(I.name)}function Zb(I){Oi("require"),nr("("),Ct(I.expression),nr(")")}function La(I){ze(I.openingElement),Ds(I,I.children,262144),ze(I.closingElement)}function yT(I){nr("<"),Ry(I.tagName),Wh(I,I.typeArguments),Xn(),ze(I.attributes),nr("/>")}function HR(I){ze(I.openingFragment),Ds(I,I.children,262144),ze(I.closingFragment)}function eE(I){if(nr("<"),n_(I)){let ne=QR(I.tagName,I);Ry(I.tagName),Wh(I,I.typeArguments),I.attributes.properties&&I.attributes.properties.length>0&&Xn(),ze(I.attributes),F0(I.attributes,I),oE(ne)}nr(">")}function vg(I){pe.writeLiteral(I.text)}function X_(I){nr("</"),l0(I)&&Ry(I.tagName),nr(">")}function rf(I){Ds(I,I.properties,262656)}function hu(I){ze(I.name),rm("=",nr,I.initializer,on)}function Yu(I){nr("{..."),Ct(I.expression),nr("}")}function Cu(I){let ne=!1;return LM(L?.text||"",I+1,()=>ne=!0),ne}function bv(I){let ne=!1;return MM(L?.text||"",I+1,()=>ne=!0),ne}function bT(I){return Cu(I)||bv(I)}function qR(I){var ne;if(I.expression||!Wt&&!xs(I)&&bT(I.pos)){let rt=L&&!xs(I)&&$a(L,I.pos).line!==$a(L,I.end).line;rt&&pe.increaseIndent();let Ht=Ri(19,I.pos,nr,I);ze(I.dotDotDotToken),Ct(I.expression),Ri(20,((ne=I.expression)==null?void 0:ne.end)||Ht,nr,I),rt&&pe.decreaseIndent()}}function $I(I){it(I.namespace),nr(":"),it(I.name)}function Ry(I){I.kind===80?Ct(I):ze(I)}function tE(I){Ri(84,I.pos,Oi,I),Xn(),Ct(I.expression,Gn.parenthesizeExpressionForDisallowedComma),Xl(I,I.statements,I.expression.end)}function QI(I){let ne=Ri(90,I.pos,Oi,I);Xl(I,I.statements,ne)}function Xl(I,ne,rt){let Ht=ne.length===1&&(!L||xs(I)||xs(ne[0])||YW(I,ne[0],L)),yr=163969;Ht?(w0(59,rt,nr,I),Xn(),yr&=-130):Ri(59,rt,nr,I),Ds(I,ne,yr)}function Ev(I){Xn(),My(I.token,Oi),Xn(),Ds(I,I.types,528)}function ZI(I){let ne=Ri(85,I.pos,Oi,I);Xn(),I.variableDeclaration&&(Ri(21,ne,nr,I),ze(I.variableDeclaration),Ri(22,I.variableDeclaration.end,nr,I),Xn()),ze(I.block)}function xm(I){ze(I.name),nr(":"),Xn();let ne=I.initializer;if(!(ya(ne)&1024)){let rt=e_(ne);sm(rt.pos)}Ct(ne,Gn.parenthesizeExpressionForDisallowedComma)}function ET(I){ze(I.name),I.objectAssignmentInitializer&&(Xn(),nr("="),Xn(),Ct(I.objectAssignmentInitializer,Gn.parenthesizeExpressionForDisallowedComma))}function we(I){I.expression&&(Ri(26,I.pos,nr,I),Ct(I.expression,Gn.parenthesizeExpressionForDisallowedComma))}function Rm(I){ze(I.name),Ny(I.initializer,I.name.end,I,Gn.parenthesizeExpressionForDisallowedComma)}function jc(I){if(Oe("/**"),I.comment){let ne=VM(I.comment);if(ne){let rt=ne.split(/\r\n?|\n/g);for(let Ht of rt)Tc(),Xn(),nr("*"),Xn(),Oe(Ht)}}I.tags&&(I.tags.length===1&&I.tags[0].kind===351&&!I.comment?(Xn(),ze(I.tags[0])):Ds(I,I.tags,33)),Xn(),Oe("*/")}function nE(I){Pf(I.tagName),yg(I.typeExpression),Mf(I.comment)}function e1(I){Pf(I.tagName),ze(I.name),Mf(I.comment)}function Dy(I){Xn(),nr("{"),ze(I.name),nr("}")}function Sv(I){Pf(I.tagName),Xn(),nr("{"),ze(I.class),nr("}"),Mf(I.comment)}function Tv(I){Pf(I.tagName),yg(I.constraint),Xn(),Ds(I,I.typeParameters,528),Mf(I.comment)}function SP(I){Pf(I.tagName),I.typeExpression&&(I.typeExpression.kind===316?yg(I.typeExpression):(Xn(),nr("{"),Oe("Object"),I.typeExpression.isArrayType&&(nr("["),nr("]")),nr("}"))),I.fullName&&(Xn(),ze(I.fullName)),Mf(I.comment),I.typeExpression&&I.typeExpression.kind===329&&TT(I.typeExpression)}function xa(I){Pf(I.tagName),I.name&&(Xn(),ze(I.name)),Mf(I.comment),rE(I.typeExpression)}function Dm(I){Mf(I.comment),rE(I.typeExpression)}function ST(I){Pf(I.tagName),Mf(I.comment)}function TT(I){Ds(I,P.createNodeArray(I.jsDocPropertyTags),33)}function rE(I){I.typeParameters&&Ds(I,P.createNodeArray(I.typeParameters),33),I.parameters&&Ds(I,P.createNodeArray(I.parameters),33),I.type&&(Tc(),Xn(),nr("*"),Xn(),ze(I.type))}function AT(I){Pf(I.tagName),yg(I.typeExpression),Xn(),I.isBracketed&&nr("["),ze(I.name),I.isBracketed&&nr("]"),Mf(I.comment)}function Pf(I){nr("@"),ze(I)}function Mf(I){let ne=VM(I);ne&&(Xn(),Oe(ne))}function yg(I){I&&(Xn(),nr("{"),ze(I.type),nr("}"))}function t1(I){Tc();let ne=I.statements;if(ne.length===0||!Hf(ne[0])||xs(ne[0])){dr(I,ne,Pi);return}Pi(I)}function Cm(I){L0(!!I.hasNoDefaultLib,I.syntheticFileReferences||[],I.syntheticTypeReferences||[],I.syntheticLibReferences||[]);for(let ne of I.prepends)if(XS(ne)&&ne.syntheticReferences)for(let rt of ne.syntheticReferences)ze(rt),Tc()}function JR(I){I.isDeclarationFile&&L0(I.hasNoDefaultLib,I.referencedFiles,I.typeReferenceDirectives,I.libReferenceDirectives)}function L0(I,ne,rt,Ht){if(I){let yr=pe.getTextPos();f_('/// <reference no-default-lib="true"/>'),be&&be.sections.push({pos:yr,end:pe.getTextPos(),kind:"no-default-lib"}),Tc()}if(L&&L.moduleName&&(f_(`/// <amd-module name="${L.moduleName}" />`),Tc()),L&&L.amdDependencies)for(let yr of L.amdDependencies)yr.name?f_(`/// <amd-dependency name="${yr.name}" path="${yr.path}" />`):f_(`/// <amd-dependency path="${yr.path}" />`),Tc();for(let yr of ne){let vi=pe.getTextPos();f_(`/// <reference path="${yr.fileName}" />`),be&&be.sections.push({pos:vi,end:pe.getTextPos(),kind:"reference",data:yr.fileName}),Tc()}for(let yr of rt){let vi=pe.getTextPos(),ri=yr.resolutionMode&&yr.resolutionMode!==L?.impliedNodeFormat?`resolution-mode="${yr.resolutionMode===99?"import":"require"}"`:"";f_(`/// <reference types="${yr.fileName}" ${ri}/>`),be&&be.sections.push({pos:vi,end:pe.getTextPos(),kind:yr.resolutionMode?yr.resolutionMode===99?"type-import":"type-require":"type",data:yr.fileName}),Tc()}for(let yr of Ht){let vi=pe.getTextPos();f_(`/// <reference lib="${yr.fileName}" />`),be&&be.sections.push({pos:vi,end:pe.getTextPos(),kind:"lib",data:yr.fileName}),Tc()}}function Pi(I){let ne=I.statements;Qc(I),an(I.statements,Lc),Ot(I);let rt=Tl(ne,Ht=>!Hf(Ht));JR(I),Ds(I,ne,1,void 0,rt===-1?ne.length:rt),Nu(I)}function Fr(I){let ne=ya(I);!(ne&1024)&&I.pos!==I.expression.pos&&sm(I.expression.pos),Ct(I.expression),!(ne&2048)&&I.end!==I.expression.end&&zh(I.expression.end)}function Y_(I){O0(I,I.elements,528,void 0)}function gu(I,ne,rt,Ht){let yr=!!ne;for(let vi=0;vi<I.length;vi++){let ri=I[vi];if(Hf(ri)){if(rt?!rt.has(ri.expression.text):!0){yr&&(yr=!1,et(ne)),Tc();let $o=pe.getTextPos();ze(ri),Ht&&be&&be.sections.push({pos:$o,end:pe.getTextPos(),kind:"prologue",data:ri.expression.text}),rt&&rt.add(ri.expression.text)}}else return vi}return I.length}function TP(I,ne){for(let rt of I)if(!ne.has(rt.data)){Tc();let Ht=pe.getTextPos();ze(rt),be&&be.sections.push({pos:Ht,end:pe.getTextPos(),kind:"prologue",data:rt.data}),ne&&ne.add(rt.data)}}function bg(I){if(Li(I))gu(I.statements,I);else{let ne=new Set;for(let rt of I.prepends)TP(rt.prologues,ne);for(let rt of I.sourceFiles)gu(rt.statements,rt,ne,!0);et(void 0)}}function AP(I){let ne=new Set,rt;for(let Ht=0;Ht<I.sourceFiles.length;Ht++){let yr=I.sourceFiles[Ht],vi,ri=0;for(let wi of yr.statements){if(!Hf(wi))break;ne.has(wi.expression.text)||(ne.add(wi.expression.text),(vi||(vi=[])).push({pos:wi.pos,end:wi.end,expression:{pos:wi.expression.pos,end:wi.expression.end,text:wi.expression.text}}),ri=ri<wi.end?wi.end:ri)}vi&&(rt||(rt=[])).push({file:Ht,text:yr.text.substring(0,ri),directives:vi})}return rt}function Cy(I){if(Li(I)||XS(I)){let ne=C8(I.text);if(ne)return f_(ne),Tc(),!0}else{for(let ne of I.prepends)if(x.assertNode(ne,XS),Cy(ne))return!0;for(let ne of I.sourceFiles)if(Cy(ne))return!0}}function Xs(I,ne){if(!I)return;let rt=Oe;Oe=ne,ze(I),Oe=rt}function pp(I,ne,rt){if(ne?.length){if(ji(ne,ia))return Oh(I,ne);if(ji(ne,Xc))return rt?n1(I,ne):I.pos;p?.(ne);let Ht,yr,vi=0,ri=0,wi;for(;vi<ne.length;){for(;ri<ne.length;){if(wi=ne[ri],yr=Xc(wi)?"decorators":"modifiers",Ht===void 0)Ht=yr;else if(yr!==Ht)break;ri++}let $o={pos:-1,end:-1};vi===0&&($o.pos=ne.pos),ri===ne.length-1&&($o.end=ne.end),(Ht==="modifiers"||rt)&&im(ze,I,ne,Ht==="modifiers"?2359808:2146305,void 0,vi,ri-vi,!1,$o),vi=ri,Ht=yr,ri++}if(h?.(ne),wi&&!ym(wi.end))return wi.end}return I.pos}function Oh(I,ne){Ds(I,ne,2359808);let rt=Ns(ne);return rt&&!ym(rt.end)?rt.end:I.pos}function Lf(I){I&&(nr(":"),Xn(),ze(I))}function Ny(I,ne,rt,Ht){I&&(Xn(),Ri(64,ne,wp,rt),Xn(),Ct(I,Ht))}function rm(I,ne,rt,Ht){rt&&(ne(I),Ht(rt))}function Eg(I){I&&(Xn(),ze(I))}function k0(I,ne){I&&(Xn(),Ct(I,ne))}function IT(I){I&&(ze(I),Xn())}function wh(I,ne){Do(ne)||ya(I)&1||ce&&!Fh(I,ne,0)?(Xn(),ze(ne)):(Tc(),$_(),Tj(ne)?V(5,ne):ze(ne),om())}function n1(I,ne){Ds(I,ne,2146305);let rt=Ns(ne);return rt&&!ym(rt.end)?rt.end:I.pos}function Wh(I,ne){Ds(I,ne,53776,Nr)}function p_(I,ne){if(Lo(I)&&I.typeArguments)return Wh(I,I.typeArguments);Ds(I,ne,53776)}function Av(I,ne){Ds(I,ne,2576)}function KR(I,ne){let rt=x_(ne);return rt&&rt.pos===I.pos&&hs(I)&&!I.type&&!ct(I.modifiers)&&!ct(I.typeParameters)&&!ct(rt.modifiers)&&!rt.dotDotDotToken&&!rt.questionToken&&!rt.type&&!rt.initializer&&Me(rt.name)}function XR(I,ne){KR(I,ne)?Ds(I,ne,528):Av(I,ne)}function YR(I,ne){Ds(I,ne,8848)}function xT(I){switch(I&60){case 0:break;case 16:nr(",");break;case 4:Xn(),nr("|");break;case 32:Xn(),nr("*"),Xn();break;case 8:Xn(),nr("&");break}}function Ds(I,ne,rt,Ht,yr,vi){RT(ze,I,ne,rt|(I&&ya(I)&2?65536:0),Ht,yr,vi)}function O0(I,ne,rt,Ht,yr,vi){RT(Ct,I,ne,rt,Ht,yr,vi)}function RT(I,ne,rt,Ht,yr,vi=0,ri=rt?rt.length-vi:0){if(rt===void 0&&Ht&16384)return;let $o=rt===void 0||vi>=rt.length||ri===0;if($o&&Ht&32768){p?.(rt),h?.(rt);return}Ht&15360&&(nr(b7e(Ht)),$o&&rt&&sm(rt.pos,!0)),p?.(rt),$o?Ht&1&&!(ce&&(!ne||L&&WS(ne,L)))?Tc():Ht&256&&!(Ht&524288)&&Xn():im(I,ne,rt,Ht,yr,vi,ri,rt.hasTrailingComma,rt),h?.(rt),Ht&15360&&($o&&rt&&zh(rt.end),nr(E7e(Ht)))}function im(I,ne,rt,Ht,yr,vi,ri,wi,$o){let Rd=(Ht&262144)===0,ru=Rd,sf=Fh(ne,rt[vi],Ht);sf?(Tc(sf),ru=!1):Ht&256&&Xn(),Ht&128&&$_();let Fy=I7e(I,yr),ai,eh,Pn=!1;for(let H0=0;H0<ri;H0++){let __=rt[vi+H0];if(Ht&32)Tc(),xT(Ht);else if(ai){Ht&60&&ai.end!==(ne?ne.end:-1)&&(ya(ai)&2048||zh(ai.end)),xT(Ht),ln(eh);let th=Ly(ai,__,Ht);if(th>0){if(Ht&131||($_(),Pn=!0),ru&&Ht&60&&!ym(__.pos)){let aD=e_(__);sm(aD.pos,!!(Ht&512),!0)}Tc(th),ru=!1}else ai&&Ht&512&&Xn()}if(eh=ba(__),ru){let th=e_(__);sm(th.pos)}else ru=Rd;Z=__.pos,Fy(__,I,yr,H0),Pn&&(om(),Pn=!1),ai=__}let d1=ai?ya(ai):0,zy=Wt||!!(d1&2048),By=wi&&Ht&64&&Ht&16;By&&(ai&&!zy?Ri(28,ai.end,nr,ai):nr(",")),ai&&(ne?ne.end:-1)!==ai.end&&Ht&60&&!zy&&zh(By&&$o?.end?$o.end:ai.end),Ht&128&&om(),ln(eh);let GT=r1(ne,rt[vi+ri-1],Ht,$o);GT?Tc(GT):Ht&2097408&&Xn()}function Py(I){pe.writeLiteral(I)}function $R(I){pe.writeStringLiteral(I)}function DT(I){pe.write(I)}function IP(I,ne){pe.writeSymbol(I,ne)}function nr(I){pe.writePunctuation(I)}function Mc(){pe.writeTrailingSemicolon(";")}function Oi(I){pe.writeKeyword(I)}function wp(I){pe.writeOperator(I)}function Iv(I){pe.writeParameter(I)}function f_(I){pe.writeComment(I)}function Xn(){pe.writeSpace(" ")}function CT(I){pe.writeProperty(I)}function iE(I){pe.nonEscapingWrite?pe.nonEscapingWrite(I):pe.write(I)}function Tc(I=1){for(let ne=0;ne<I;ne++)pe.writeLine(ne>0)}function $_(){pe.increaseIndent()}function om(){pe.decreaseIndent()}function w0(I,ne,rt,Ht){return Le?My(I,rt,ne):U0(Ht,I,rt,ne,My)}function W0(I,ne){m&&m(I),ne(qo(I.kind)),v&&v(I)}function My(I,ne,rt){let Ht=qo(I);return ne(Ht),rt<0?rt:rt+Ht.length}function Sg(I,ne,rt){if(ya(I)&1)Xn();else if(ce){let Ht=fp(I,ne,rt);Ht?Tc(Ht):Xn()}else Tc()}function NT(I){let ne=I.split(/\r\n?|\n/g),rt=dte(ne);for(let Ht of ne){let yr=rt?Ht.slice(rt):Ht;yr.length&&(Tc(),Oe(yr))}}function am(I,ne){I?($_(),Tc(I)):ne&&Xn()}function oE(I,ne){I&&om(),ne&&om()}function Fh(I,ne,rt){if(rt&2||ce){if(rt&65536)return 1;if(ne===void 0)return!I||L&&WS(I,L)?0:1;if(ne.pos===Z||ne.kind===12)return 0;if(L&&I&&!ym(I.pos)&&!xs(ne)&&(!ne.parent||sl(ne.parent)===sl(I)))return ce?aE(Ht=>One(ne.pos,I.pos,L,Ht)):YW(I,ne,L)?0:1;if(PT(ne,rt))return 1}return rt&1?1:0}function Ly(I,ne,rt){if(rt&2||ce){if(I===void 0||ne===void 0||ne.kind===12)return 0;if(L&&!xs(I)&&!xs(ne))return ce&&nu(I,ne)?aE(Ht=>hV(I,ne,L,Ht)):!ce&&Wp(I,ne)?qL(I,ne,L)?0:1:rt&65536?1:0;if(PT(I,rt)||PT(ne,rt))return 1}else if(rN(ne))return 1;return rt&1?1:0}function r1(I,ne,rt,Ht){if(rt&2||ce){if(rt&65536)return 1;if(ne===void 0)return!I||L&&WS(I,L)?0:1;if(L&&I&&!ym(I.pos)&&!xs(ne)&&(!ne.parent||ne.parent===I)){if(ce){let yr=Ht&&!ym(Ht.end)?Ht.end:ne.end;return aE(vi=>wne(yr,I.end,L,vi))}return Mne(I,ne,L)?0:1}if(PT(ne,rt))return 1}return rt&1&&!(rt&131072)?1:0}function aE(I){x.assert(!!ce);let ne=I(!0);return ne===0?I(!1):ne}function QR(I,ne){let rt=ce&&Fh(ne,I,0);return rt&&am(rt,!1),!!rt}function F0(I,ne){let rt=ce&&r1(ne,I,0,void 0);rt&&Tc(rt)}function PT(I,ne){if(xs(I)){let rt=rN(I);return rt===void 0?(ne&65536)!==0:rt}return(ne&65536)!==0}function fp(I,ne,rt){return ya(I)&262144?0:(I=yl(I),ne=yl(ne),rt=yl(rt),rN(rt)?1:L&&!xs(I)&&!xs(ne)&&!xs(rt)?ce?aE(Ht=>hV(ne,rt,L,Ht)):qL(ne,rt,L)?0:1:0)}function MT(I){return I.statements.length===0&&(!L||qL(I,I,L))}function yl(I){for(;I.kind===217&&xs(I);)I=I.expression;return I}function fc(I,ne){if(ws(I)||vS(I))return kT(I);if(ca(I)&&I.textSourceNode)return fc(I.textSourceNode,ne);let rt=L,Ht=!!rt&&!!I.parent&&!xs(I);if(hh(I)){if(!Ht||Nn(I)!==sl(rt))return ar(I)}else if(Em(I)){if(!Ht||Nn(I)!==sl(rt))return ZC(I)}else if(x.assertNode(I,wE),!Ht)return I.text;return FE(rt,I,ne)}function LT(I,ne,rt){if(I.kind===11&&I.textSourceNode){let yr=I.textSourceNode;if(Me(yr)||Ci(yr)||Bu(yr)||Em(yr)){let vi=Bu(yr)?yr.text:fc(yr);return rt?`"${tV(vi)}"`:ne||ya(I)&16777216?`"${Th(vi)}"`:`"${BL(vi)}"`}else return LT(yr,ne,rt)}let Ht=(ne?1:0)|(rt?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target>=8?8:0);return Ete(I,L,Ht)}function Qc(I){I&&ya(I)&1048576||(fe.push(q),q=0,oe.push(W),W=void 0,H.push(ee))}function Nu(I){I&&ya(I)&1048576||(q=fe.pop(),W=oe.pop(),ee=H.pop())}function sE(I){(!ee||ee===Ns(H))&&(ee=new Set),ee.add(I)}function of(I,ne){$.push(de),de=I,le.push(ee),Ee=ne}function ky(){de=$.pop(),Ee=le.pop()}function Oy(I){(!Ee||Ee===Ns(le))&&(Ee=new Set),Ee.add(I)}function Lc(I){if(I)switch(I.kind){case 241:an(I.statements,Lc);break;case 256:case 254:case 246:case 247:Lc(I.statement);break;case 245:Lc(I.thenStatement),Lc(I.elseStatement);break;case 248:case 250:case 249:Lc(I.initializer),Lc(I.statement);break;case 255:Lc(I.caseBlock);break;case 269:an(I.clauses,Lc);break;case 296:case 297:an(I.statements,Lc);break;case 258:Lc(I.tryBlock),Lc(I.catchClause),Lc(I.finallyBlock);break;case 299:Lc(I.variableDeclaration),Lc(I.block);break;case 243:Lc(I.declarationList);break;case 261:an(I.declarations,Lc);break;case 260:case 169:case 208:case 263:mp(I.name);break;case 262:mp(I.name),ya(I)&1048576&&(an(I.parameters,Lc),Lc(I.body));break;case 206:case 207:an(I.elements,Lc);break;case 272:Lc(I.importClause);break;case 273:mp(I.name),Lc(I.namedBindings);break;case 274:mp(I.name);break;case 280:mp(I.name);break;case 275:an(I.elements,Lc);break;case 276:mp(I.propertyName||I.name);break}}function i1(I){if(I)switch(I.kind){case 303:case 304:case 172:case 174:case 177:case 178:mp(I.name);break}}function mp(I){I&&(ws(I)||vS(I)?kT(I):ko(I)&&Lc(I))}function kT(I){let ne=I.emitNode.autoGenerate;if((ne.flags&7)===4)return OT(W2(I),Ci(I),ne.flags,ne.prefix,ne.suffix);{let rt=ne.id;return K[rt]||(K[rt]=eD(I))}}function OT(I,ne,rt,Ht,yr){let vi=Fa(I),ri=ne?U:G;return ri[vi]||(ri[vi]=wT(I,ne,rt??0,Jx(Ht,kT),Jx(yr)))}function bs(I,ne){return lE(I,ne)&&!ZR(I,ne)&&!F.has(I)}function ZR(I,ne){return ne?!!Ee?.has(I):!!ee?.has(I)}function lE(I,ne){return L?tW(L,I,r):!0}function z0(I,ne){for(let rt=ne;rt&&HE(rt,ne);rt=rt.nextContainer)if(M_(rt)&&rt.locals){let Ht=rt.locals.get(Hs(I));if(Ht&&Ht.flags&3257279)return!1}return!0}function xP(I){switch(I){case"":return q;case"#":return de;default:return W?.get(I)??0}}function jd(I,ne){switch(I){case"":q=ne;break;case"#":de=ne;break;default:W??(W=new Map),W.set(I,ne);break}}function Tg(I,ne,rt,Ht,yr){Ht.length>0&&Ht.charCodeAt(0)===35&&(Ht=Ht.slice(1));let vi=Wb(rt,Ht,"",yr),ri=xP(vi);if(I&&!(ri&I)){let $o=Wb(rt,Ht,I===268435456?"_i":"_n",yr);if(bs($o,rt))return ri|=I,rt?Oy($o):ne&&sE($o),jd(vi,ri),$o}for(;;){let wi=ri&268435455;if(ri++,wi!==8&&wi!==13){let $o=wi<26?"_"+String.fromCharCode(97+wi):"_"+(wi-26),Rd=Wb(rt,Ht,$o,yr);if(bs(Rd,rt))return rt?Oy(Rd):ne&&sE(Rd),jd(vi,ri),Rd}}}function m_(I,ne=bs,rt,Ht,yr,vi,ri){if(I.length>0&&I.charCodeAt(0)===35&&(I=I.slice(1)),vi.length>0&&vi.charCodeAt(0)===35&&(vi=vi.slice(1)),rt){let $o=Wb(yr,vi,I,ri);if(ne($o,yr))return yr?Oy($o):Ht?sE($o):F.add($o),$o}I.charCodeAt(I.length-1)!==95&&(I+="_");let wi=1;for(;;){let $o=Wb(yr,vi,I+wi,ri);if(ne($o,yr))return yr?Oy($o):Ht?sE($o):F.add($o),$o;wi++}}function o1(I){return m_(I,lE,!0,!1,!1,"","")}function $u(I){let ne=fc(I.name);return z0(ne,Vr(I,M_))?ne:m_(ne,bs,!1,!1,!1,"","")}function a1(I){let ne=lx(I),rt=ca(ne)?Tte(ne.text):"module";return m_(rt,bs,!1,!1,!1,"","")}function Pu(){return m_("default",bs,!1,!1,!1,"","")}function s1(){return m_("class",bs,!1,!1,!1,"","")}function xv(I,ne,rt,Ht){return Me(I.name)?OT(I.name,ne):Tg(0,!1,ne,rt,Ht)}function wT(I,ne,rt,Ht,yr){switch(I.kind){case 80:case 81:return m_(fc(I),bs,!!(rt&16),!!(rt&8),ne,Ht,yr);case 267:case 266:return x.assert(!Ht&&!yr&&!ne),$u(I);case 272:case 278:return x.assert(!Ht&&!yr&&!ne),a1(I);case 262:case 263:{x.assert(!Ht&&!yr&&!ne);let vi=I.name;return vi&&!ws(vi)?wT(vi,!1,rt,Ht,yr):Pu()}case 277:return x.assert(!Ht&&!yr&&!ne),Pu();case 231:return x.assert(!Ht&&!yr&&!ne),s1();case 174:case 177:case 178:return xv(I,ne,Ht,yr);case 167:return Tg(0,!0,ne,Ht,yr);default:return Tg(0,!1,ne,Ht,yr)}}function eD(I){let ne=I.emitNode.autoGenerate,rt=Jx(ne.prefix,kT),Ht=Jx(ne.suffix);switch(ne.flags&7){case 1:return Tg(0,!!(ne.flags&8),Ci(I),rt,Ht);case 2:return x.assertNode(I,Me),Tg(268435456,!!(ne.flags&8),!1,rt,Ht);case 3:return m_(ar(I),ne.flags&32?lE:bs,!!(ne.flags&16),!!(ne.flags&8),Ci(I),rt,Ht)}return x.fail(`Unsupported GeneratedIdentifierKind: ${x.formatEnum(ne.flags&7,c8,!0)}.`)}function tD(I,ne){let rt=te(2,I,ne),Ht=Vt,yr=jt,vi=gn;WT(ne),rt(I,ne),nD(ne,Ht,yr,vi)}function WT(I){let ne=ya(I),rt=e_(I);wy(I,ne,rt.pos,rt.end),ne&4096&&(Wt=!0)}function nD(I,ne,rt,Ht){let yr=ya(I),vi=e_(I);yr&4096&&(Wt=!1),Qu(I,yr,vi.pos,vi.end,ne,rt,Ht);let ri=kre(I);ri&&Qu(I,yr,ri.pos,ri.end,ne,rt,Ht)}function wy(I,ne,rt,Ht){gi(),zt=!1;let yr=rt<0||(ne&1024)!==0||I.kind===12,vi=Ht<0||(ne&2048)!==0||I.kind===12;(rt>0||Ht>0)&&rt!==Ht&&(yr||B0(rt,I.kind!==359),(!yr||rt>=0&&ne&1024)&&(Vt=rt),(!vi||Ht>=0&&ne&2048)&&(jt=Ht,I.kind===261&&(gn=Ht))),an(Mx(I),Q_),io()}function Qu(I,ne,rt,Ht,yr,vi,ri){gi();let wi=Ht<0||(ne&2048)!==0||I.kind===12;an(_2(I),rD),(rt>0||Ht>0)&&rt!==Ht&&(Vt=yr,jt=vi,gn=ri,!wi&&I.kind!==359&&Nm(Ht)),io()}function Q_(I){(I.hasLeadingNewline||I.kind===2)&&pe.writeLine(),FT(I),I.hasTrailingNewLine||I.kind===2?pe.writeLine():pe.writeSpace(" ")}function rD(I){pe.isAtStartOfLine()||pe.writeSpace(" "),FT(I),I.hasTrailingNewLine&&pe.writeLine()}function FT(I){let ne=Oa(I),rt=I.kind===3?IA(ne):void 0;bx(ne,rt,pe,0,ne.length,A)}function Oa(I){return I.kind===3?`/*${I.text}*/`:`//${I.text}`}function dr(I,ne,rt){gi();let{pos:Ht,end:yr}=ne,vi=ya(I),ri=Ht<0||(vi&1024)!==0,wi=Wt||yr<0||(vi&2048)!==0;ri||af(ne),io(),vi&4096&&!Wt?(Wt=!0,rt(I),Wt=!1):rt(I),gi(),wi||(B0(ne.end,!0),zt&&!pe.isAtStartOfLine()&&pe.writeLine()),io()}function Wp(I,ne){return I=sl(I),I.parent&&I.parent===sl(ne).parent}function nu(I,ne){if(ne.pos<I.end)return!1;I=sl(I),ne=sl(ne);let rt=I.parent;if(!rt||rt!==ne.parent)return!1;let Ht=ure(I),yr=Ht?.indexOf(I);return yr!==void 0&&yr>-1&&Ht.indexOf(ne)===yr+1}function B0(I,ne){zt=!1,ne?I===0&&L?.isDeclarationFile?Gh(I,cE):Gh(I,zT):I===0&&Gh(I,iD)}function iD(I,ne,rt,Ht,yr){zp(I,ne)&&zT(I,ne,rt,Ht,yr)}function cE(I,ne,rt,Ht,yr){zp(I,ne)||zT(I,ne,rt,Ht,yr)}function G0(I,ne){return e.onlyPrintJsDocStyle?Jj(I,ne)||nW(I,ne):!0}function zT(I,ne,rt,Ht,yr){!L||!G0(L.text,I)||(zt||(gne(_t(),pe,yr,I),zt=!0),cs(I),bx(L.text,_t(),pe,I,ne,A),cs(ne),Ht?pe.writeLine():rt===3&&pe.writeSpace(" "))}function zh(I){Wt||I===-1||B0(I,!0)}function Nm(I){l1(I,Fp)}function Fp(I,ne,rt,Ht){!L||!G0(L.text,I)||(pe.isAtStartOfLine()||pe.writeSpace(" "),cs(I),bx(L.text,_t(),pe,I,ne,A),cs(ne),Ht&&pe.writeLine())}function sm(I,ne,rt){Wt||(gi(),l1(I,ne?Fp:rt?Ag:Bh),io())}function Ag(I,ne,rt){L&&(cs(I),bx(L.text,_t(),pe,I,ne,A),cs(ne),rt===2&&pe.writeLine())}function Bh(I,ne,rt,Ht){L&&(cs(I),bx(L.text,_t(),pe,I,ne,A),cs(ne),Ht?pe.writeLine():pe.writeSpace(" "))}function Gh(I,ne){L&&(Vt===-1||I!==Vt)&&(Fl(I)?oD(ne):MM(L.text,I,ne,I))}function l1(I,ne){L&&(jt===-1||I!==jt&&I!==gn)&&LM(L.text,I,ne)}function Fl(I){return en!==void 0&&Da(en).nodePos===I}function oD(I){if(!L)return;let ne=Da(en).detachedCommentEndPos;en.length-1?en.pop():en=void 0,MM(L.text,ne,I,ne)}function af(I){let ne=L&&yne(L.text,_t(),pe,Z_,I,A,Wt);ne&&(en?en.push(ne):en=[ne])}function Z_(I,ne,rt,Ht,yr,vi){!L||!G0(L.text,Ht)||(cs(Ht),bx(I,ne,rt,Ht,yr,vi),cs(yr))}function zp(I,ne){return!!L&&d9(L.text,I,ne)}function V0(I){return I.parsedSourceMap===void 0&&I.sourceMapText!==void 0&&(I.parsedSourceMap=HU(I.sourceMapText)||!1),I.parsedSourceMap||void 0}function dE(I,ne){let rt=te(3,I,ne);c1(ne),rt(I,ne),BT(ne)}function c1(I){let ne=ya(I),rt=ov(I);if(HG(I)){x.assertIsDefined(I.parent,"UnparsedNodes must have parent pointers");let Ht=V0(I.parent);Ht&&Ke&&Ke.appendSourceMap(pe.getLine(),pe.getColumn(),Ht,I.parent.sourceMapPath,I.parent.getLineAndCharacterOfPosition(I.pos),I.parent.getLineAndCharacterOfPosition(I.end))}else{let Ht=rt.source||Dt;I.kind!==359&&!(ne&32)&&rt.pos>=0&&j0(rt.source||Dt,Bp(Ht,rt.pos)),ne&128&&(Le=!0)}}function BT(I){let ne=ya(I),rt=ov(I);HG(I)||(ne&128&&(Le=!1),I.kind!==359&&!(ne&64)&&rt.end>=0&&j0(rt.source||Dt,rt.end))}function Bp(I,ne){return I.skipTrivia?I.skipTrivia(ne):ua(I.text,ne)}function cs(I){if(Le||ym(I)||uE(Dt))return;let{line:ne,character:rt}=$a(Dt,I);Ke.addMapping(pe.getLine(),pe.getColumn(),st,ne,rt,void 0)}function j0(I,ne){if(I!==Dt){let rt=Dt,Ht=st;Ig(I),cs(ne),Wy(rt,Ht)}else cs(ne)}function U0(I,ne,rt,Ht,yr){if(Le||I&&SW(I))return yr(ne,rt,Ht);let vi=I&&I.emitNode,ri=vi&&vi.flags||0,wi=vi&&vi.tokenSourceMapRanges&&vi.tokenSourceMapRanges[ne],$o=wi&&wi.source||Dt;return Ht=Bp($o,wi?wi.pos:Ht),!(ri&256)&&Ht>=0&&j0($o,Ht),Ht=yr(ne,rt,Ht),wi&&(Ht=wi.end),!(ri&512)&&Ht>=0&&j0($o,Ht),Ht}function Ig(I){if(!Le){if(Dt=I,I===Ge){st=ot;return}uE(I)||(st=Ke.addSource(I.fileName),e.inlineSources&&Ke.setSourceContent(st,I.text),Ge=I,ot=st)}}function Wy(I,ne){Dt=I,st=ne}function uE(I){return el(I.fileName,".json")}}function y7e(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function b7e(e){return Sae[e&15360][0]}function E7e(e){return Sae[e&15360][1]}function S7e(e,t,r,i){t(e)}function T7e(e,t,r,i){t(e,r.select(i))}function A7e(e,t,r,i){t(e,r)}function I7e(e,t){return e.length===1?S7e:typeof t=="object"?T7e:A7e}var Sae,D4,_H,y0,hH,hk,x7e=pt({"src/compiler/emitter.ts"(){"use strict";wo(),wo(),mS(),Sae=y7e(),D4={hasGlobalName:Ro,getReferencedExportContainer:Ro,getReferencedImportDeclaration:Ro,getReferencedDeclarationWithCollidingName:Ro,isDeclarationWithCollidingName:Ro,isValueAliasDeclaration:Ro,isReferencedAliasDeclaration:Ro,isTopLevelValueImportEqualsWithEntityName:Ro,getNodeCheckFlags:Ro,isDeclarationVisible:Ro,isLateBound:e=>!1,collectLinkedAliases:Ro,isImplementationOfOverload:Ro,isRequiredInitializedParameter:Ro,isOptionalUninitializedParameterProperty:Ro,isExpandoFunctionDeclaration:Ro,getPropertiesOfContainerFunction:Ro,createTypeOfDeclaration:Ro,createReturnTypeOfSignatureDeclaration:Ro,createTypeOfExpression:Ro,createLiteralConstValue:Ro,isSymbolAccessible:Ro,isEntityNameVisible:Ro,getConstantValue:Ro,getReferencedValueDeclaration:Ro,getReferencedValueDeclarations:Ro,getTypeReferenceSerializationKind:Ro,isOptionalParameter:Ro,moduleExportsSomeValue:Ro,isArgumentsLocalBinding:Ro,getExternalModuleFileFromDeclaration:Ro,getTypeReferenceDirectivesForEntityName:Ro,getTypeReferenceDirectivesForSymbol:Ro,isLiteralConstDeclaration:Ro,getJsxFactoryEntity:Ro,getJsxFragmentFactoryEntity:Ro,getAllAccessorDeclarations:Ro,getSymbolOfExternalModuleSpecifier:Ro,isBindingCapturedByNode:Ro,getDeclarationStatementsForSourceFile:Ro,isImportRequiredByAugmentation:Ro,tryFindAmbientModule:Ro},_H=Kd(()=>Vb({})),y0=Kd(()=>Vb({removeComments:!0})),hH=Kd(()=>Vb({removeComments:!0,neverAsciiEscape:!0})),hk=Kd(()=>Vb({removeComments:!0,omitTrailingSemicolon:!0}))}});function C4(e,t,r){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,o=od(r);return{useCaseSensitiveFileNames:r,fileExists:S,readFile:(W,$)=>e.readFile(W,$),directoryExists:e.directoryExists&&A,getDirectories:R,readDirectory:L,createDirectory:e.createDirectory&&C,writeFile:e.writeFile&&E,addOrDeleteFileOrDirectory:U,addOrDeleteFile:K,clearCache:oe,realpath:e.realpath&&G};function s(W){return ks(W,t,o)}function l(W){return i.get(_c(W))}function d(W){let $=l(Ur(W));return $&&($.sortedAndCanonicalizedFiles||($.sortedAndCanonicalizedFiles=$.files.map(o).sort(),$.sortedAndCanonicalizedDirectories=$.directories.map(o).sort()),$)}function p(W){return Ll(Yo(W))}function h(W,$){var de;if(!e.realpath||_c(s(e.realpath(W)))===$){let fe={files:nn(e.readDirectory(W,void 0,void 0,["*.*"]),p)||[],directories:e.getDirectories(W)||[]};return i.set(_c($),fe),fe}if((de=e.directoryExists)!=null&&de.call(e,W))return i.set($,!1),!1}function m(W,$){$=_c($);let de=l($);if(de)return de;try{return h(W,$)}catch{x.assert(!i.has(_c($)));return}}function v(W,$){return Vg(W,$,Ps,gd)>=0}function E(W,$,de){let fe=s(W),q=d(fe);return q&&F(q,p(W),!0),e.writeFile(W,$,de)}function S(W){let $=s(W),de=d($);return de&&v(de.sortedAndCanonicalizedFiles,o(p(W)))||e.fileExists(W)}function A(W){let $=s(W);return i.has(_c($))||e.directoryExists(W)}function C(W){let $=s(W),de=d($);if(de){let fe=p(W),q=o(fe),H=de.sortedAndCanonicalizedDirectories;Fv(H,q,gd)&&de.directories.push(fe)}e.createDirectory(W)}function R(W){let $=s(W),de=m(W,$);return de?de.directories.slice():e.getDirectories(W)}function L(W,$,de,fe,q){let H=s(W),ee=m(W,H),le;if(ee!==void 0)return DV(W,$,de,fe,r,t,q,Ee,G);return e.readDirectory(W,$,de,fe,q);function Ee(Z){let pe=s(Z);if(pe===H)return ee||ce(Z,pe);let Ae=m(Z,pe);return Ae!==void 0?Ae||ce(Z,pe):NF}function ce(Z,pe){if(le&&pe===H)return le;let Ae={files:nn(e.readDirectory(Z,void 0,void 0,["*.*"]),p)||je,directories:e.getDirectories(Z)||je};return pe===H&&(le=Ae),Ae}}function G(W){return e.realpath?e.realpath(W):W}function U(W,$){if(l($)!==void 0){oe();return}let fe=d($);if(!fe)return;if(!e.directoryExists){oe();return}let q=p(W),H={fileExists:e.fileExists(W),directoryExists:e.directoryExists(W)};return H.directoryExists||v(fe.sortedAndCanonicalizedDirectories,o(q))?oe():F(fe,q,H.fileExists),H}function K(W,$,de){if(de===1)return;let fe=d($);fe&&F(fe,p(W),de===0)}function F(W,$,de){let fe=W.sortedAndCanonicalizedFiles,q=o($);if(de)Fv(fe,q,gd)&&W.files.push($);else{let H=Vg(fe,q,Ps,gd);if(H>=0){fe.splice(H,1);let ee=W.files.findIndex(le=>o(le)===q);W.files.splice(ee,1)}}}function oe(){i.clear()}}function N4(e,t,r,i,o){var s;let l=PE(((s=t?.configFile)==null?void 0:s.extendedSourceFiles)||je,o);r.forEach((d,p)=>{l.has(p)||(d.projects.delete(e),d.close())}),l.forEach((d,p)=>{let h=r.get(p);h?h.projects.add(e):r.set(p,{projects:new Set([e]),watcher:i(d,p),close:()=>{let m=r.get(p);!m||m.projects.size!==0||(m.watcher.close(),r.delete(p))}})})}function gH(e,t){t.forEach(r=>{r.projects.delete(e)&&r.close()})}function P4(e,t,r){e.delete(t)&&e.forEach(({extendedResult:i},o)=>{var s;(s=i.extendedSourceFiles)!=null&&s.some(l=>r(l)===t)&&P4(e,o,r)})}function vH(e,t,r){FC(t,e.getMissingFilePaths(),{createNewValue:r,onDeleteValue:vm})}function gk(e,t,r){t?FC(e,new Map(Object.entries(t)),{createNewValue:i,onDeleteValue:Qp,onExistingValue:o}):Au(e,Qp);function i(s,l){return{watcher:r(s,l),flags:l}}function o(s,l,d){s.flags!==l&&(s.watcher.close(),e.set(d,i(d,l)))}}function vk({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:r,configFileName:i,options:o,program:s,extraFileExtensions:l,currentDirectory:d,useCaseSensitiveFileNames:p,writeLog:h,toPath:m,getScriptKind:v}){let E=j4(r);if(!E)return h(`Project: ${i} Detected ignored path: ${t}`),!0;if(r=E,r===e)return!1;if(TA(r)&&!(rre(t,o,l)||L()))return h(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(zie(t,o.configFile.configFileSpecs,Qi(Ur(i),d),p,d))return h(`Project: ${i} Detected excluded file: ${t}`),!0;if(!s||ss(o)||o.outDir)return!1;if(Yc(r)){if(o.declarationDir)return!1}else if(!$l(r,Px))return!1;let S=Yd(r),A=oo(s)?void 0:R7e(s)?s.getProgramOrUndefined():s,C=!A&&!oo(s)?s:void 0;if(R(S+".ts")||R(S+".tsx"))return h(`Project: ${i} Detected output file: ${t}`),!0;return!1;function R(G){return A?!!A.getSourceFileByPath(G):C?C.getState().fileInfos.has(G):!!Dr(s,U=>m(U)===G)}function L(){if(!v)return!1;switch(v(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return sy(o);case 6:return Mb(o);case 0:return!1}}}function R7e(e){return!!e.getState}function Tae(e,t){return e?e.isEmittedFile(t):!1}function yH(e,t,r,i){see(t===2?r:Ca);let o={watchFile:(C,R,L,G)=>e.watchFile(C,R,L,G),watchDirectory:(C,R,L,G)=>e.watchDirectory(C,R,(L&1)!==0,G)},s=t!==0?{watchFile:S("watchFile"),watchDirectory:S("watchDirectory")}:void 0,l=t===2?{watchFile:v,watchDirectory:E}:s||o,d=t===2?m:pR;return{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")};function p(C){return(R,L,G,U,K,F)=>{var oe;return B6(R,C==="watchFile"?U?.excludeFiles:U?.excludeDirectories,h(),((oe=e.getCurrentDirectory)==null?void 0:oe.call(e))||"")?d(R,G,U,K,F):l[C].call(void 0,R,L,G,U,K,F)}}function h(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function m(C,R,L,G,U){return r(`ExcludeWatcher:: Added:: ${A(C,R,L,G,U,i)}`),{close:()=>r(`ExcludeWatcher:: Close:: ${A(C,R,L,G,U,i)}`)}}function v(C,R,L,G,U,K){r(`FileWatcher:: Added:: ${A(C,L,G,U,K,i)}`);let F=s.watchFile(C,R,L,G,U,K);return{close:()=>{r(`FileWatcher:: Close:: ${A(C,L,G,U,K,i)}`),F.close()}}}function E(C,R,L,G,U,K){let F=`DirectoryWatcher:: Added:: ${A(C,L,G,U,K,i)}`;r(F);let oe=Is(),W=s.watchDirectory(C,R,L,G,U,K),$=Is()-oe;return r(`Elapsed:: ${$}ms ${F}`),{close:()=>{let de=`DirectoryWatcher:: Close:: ${A(C,L,G,U,K,i)}`;r(de);let fe=Is();W.close();let q=Is()-fe;r(`Elapsed:: ${q}ms ${de}`)}}}function S(C){return(R,L,G,U,K,F)=>o[C].call(void 0,R,(...oe)=>{let W=`${C==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${oe[0]} ${oe[1]!==void 0?oe[1]:""}:: ${A(R,G,U,K,F,i)}`;r(W);let $=Is();L.call(void 0,...oe);let de=Is()-$;r(`Elapsed:: ${de}ms ${W}`)},G,U,K,F)}function A(C,R,L,G,U,K){return`WatchInfo: ${C} ${R} ${JSON.stringify(L)} ${K?K(G,U):U===void 0?G:`${G} ${U}`}`}}function yk(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Qp(e){e.watcher.close()}var bH,EH,D7e=pt({"src/compiler/watchUtilities.ts"(){"use strict";wo(),bH=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(bH||{}),EH=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))(EH||{})}});function Aae(e,t,r="tsconfig.json"){return Vf(e,i=>{let o=wr(i,r);return t(o)?o:void 0})}function M4(e,t){let r=Ur(t),i=Ou(e)?e:wr(r,e);return Yo(i)}function Iae(e,t,r){let i;return an(e,s=>{let l=IM(s,t);if(l.pop(),!i){i=l;return}let d=Math.min(i.length,l.length);for(let p=0;p<d;p++)if(r(i[p])!==r(l[p])){if(p===0)return!0;i.length=p;break}l.length<i.length&&(i.length=l.length)})?"":i?Vv(i):t}function xae(e,t){return AH(e,t)}function SH(e,t,r){return(i,o,s)=>{let l;try{Ls("beforeIORead"),l=e(i,t().charset),Ls("afterIORead"),Ep("I/O Read","beforeIORead","afterIORead")}catch(d){s&&s(d.message),l=""}return l!==void 0?B2(i,l,o,r):void 0}}function TH(e,t,r){return(i,o,s,l)=>{try{Ls("beforeIOWrite"),oV(i,o,s,e,t,r),Ls("afterIOWrite"),Ep("I/O Write","beforeIOWrite","afterIOWrite")}catch(d){l&&l(d.message)}}}function AH(e,t,r=Hc){let i=new Map,o=od(r.useCaseSensitiveFileNames);function s(m){return i.has(m)?!0:(h.directoryExists||r.directoryExists)(m)?(i.set(m,!0),!0):!1}function l(){return Ur(Yo(r.getExecutingFilePath()))}let d=rv(e),p=r.realpath&&(m=>r.realpath(m)),h={getSourceFile:SH(m=>h.readFile(m),()=>e,t),getDefaultLibLocation:l,getDefaultLibFileName:m=>wr(l(),OM(m)),writeFile:TH((m,v,E)=>r.writeFile(m,v,E),m=>(h.createDirectory||r.createDirectory)(m),m=>s(m)),getCurrentDirectory:Kd(()=>r.getCurrentDirectory()),useCaseSensitiveFileNames:()=>r.useCaseSensitiveFileNames,getCanonicalFileName:o,getNewLine:()=>d,fileExists:m=>r.fileExists(m),readFile:m=>r.readFile(m),trace:m=>r.write(m+d),directoryExists:m=>r.directoryExists(m),getEnvironmentVariable:m=>r.getEnvironmentVariable?r.getEnvironmentVariable(m):"",getDirectories:m=>r.getDirectories(m),realpath:p,readDirectory:(m,v,E,S,A)=>r.readDirectory(m,v,E,S,A),createDirectory:m=>r.createDirectory(m),createHash:Wo(r,r.createHash)};return h}function bk(e,t,r){let i=e.readFile,o=e.fileExists,s=e.directoryExists,l=e.createDirectory,d=e.writeFile,p=new Map,h=new Map,m=new Map,v=new Map,E=C=>{let R=t(C),L=p.get(R);return L!==void 0?L!==!1?L:void 0:S(R,C)},S=(C,R)=>{let L=i.call(e,R);return p.set(C,L!==void 0?L:!1),L};e.readFile=C=>{let R=t(C),L=p.get(R);return L!==void 0?L!==!1?L:void 0:!el(C,".json")&&!yae(C)?i.call(e,C):S(R,C)};let A=r?(C,R,L,G)=>{let U=t(C),K=typeof R=="object"?R.impliedNodeFormat:void 0,F=v.get(K),oe=F?.get(U);if(oe)return oe;let W=r(C,R,L,G);return W&&(Yc(C)||el(C,".json"))&&v.set(K,(F||new Map).set(U,W)),W}:void 0;return e.fileExists=C=>{let R=t(C),L=h.get(R);if(L!==void 0)return L;let G=o.call(e,C);return h.set(R,!!G),G},d&&(e.writeFile=(C,R,...L)=>{let G=t(C);h.delete(G);let U=p.get(G);U!==void 0&&U!==R?(p.delete(G),v.forEach(K=>K.delete(G))):A&&v.forEach(K=>{let F=K.get(G);F&&F.text!==R&&K.delete(G)}),d.call(e,C,R,...L)}),s&&(e.directoryExists=C=>{let R=t(C),L=m.get(R);if(L!==void 0)return L;let G=s.call(e,C);return m.set(R,!!G),G},l&&(e.createDirectory=C=>{let R=t(C);m.delete(R),l.call(e,C)})),{originalReadFile:i,originalFileExists:o,originalDirectoryExists:s,originalCreateDirectory:l,originalWriteFile:d,getSourceFileWithCache:A,readFileWithCache:E}}function $Se(e,t,r){let i;return i=Pr(i,e.getConfigFileParsingDiagnostics()),i=Pr(i,e.getOptionsDiagnostics(r)),i=Pr(i,e.getSyntacticDiagnostics(t,r)),i=Pr(i,e.getGlobalDiagnostics(r)),i=Pr(i,e.getSemanticDiagnostics(t,r)),Xp(e.getCompilerOptions())&&(i=Pr(i,e.getDeclarationDiagnostics(t,r))),z1(i||je)}function QSe(e,t){let r="";for(let i of e)r+=IH(i,t);return r}function IH(e,t){let r=`${_S(e)} TS${e.code}: ${o_(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:o}=$a(e.file,e.start),s=e.file.fileName;return`${KD(s,t.getCurrentDirectory(),d=>t.getCanonicalFileName(d))}(${i+1},${o+1}): `+r}return r}function ZSe(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return x.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function b0(e,t){return t+e+Nae}function eTe(e,t,r,i,o,s){let{line:l,character:d}=$a(e,t),{line:p,character:h}=$a(e,t+r),m=$a(e,e.text.length).line,v=p-l>=4,E=(p+1+"").length;v&&(E=Math.max(Pae.length,E));let S="";for(let A=l;A<=p;A++){S+=s.getNewLine(),v&&l+1<A&&A<p-1&&(S+=i+b0(Pae.padStart(E),BH)+GH+s.getNewLine(),A=p-1);let C=NM(e,A,0),R=A<m?NM(e,A+1,0):e.text.length,L=e.text.slice(C,R);if(L=L.trimEnd(),L=L.replace(/\t/g," "),S+=i+b0((A+1+"").padStart(E),BH)+GH,S+=L+s.getNewLine(),S+=i+b0("".padStart(E),BH)+GH,S+=o,A===l){let G=A===p?h:void 0;S+=L.slice(0,d).replace(/\S/g," "),S+=L.slice(d,G).replace(/./g,"~")}else A===p?S+=L.slice(0,h).replace(/./g,"~"):S+=L.replace(/./g,"~");S+=Nae}return S}function xH(e,t,r,i=b0){let{line:o,character:s}=$a(e,t),l=r?KD(e.fileName,r.getCurrentDirectory(),p=>r.getCanonicalFileName(p)):e.fileName,d="";return d+=i(l,"\x1B[96m"),d+=":",d+=i(`${o+1}`,"\x1B[93m"),d+=":",d+=i(`${s+1}`,"\x1B[93m"),d}function Rae(e,t){let r="";for(let i of e){if(i.file){let{file:o,start:s}=i;r+=xH(o,s,t),r+=" - "}if(r+=b0(_S(i),ZSe(i.category)),r+=b0(` TS${i.code}: `,"\x1B[90m"),r+=o_(i.messageText,t.getNewLine()),i.file&&i.code!==f.File_appears_to_be_binary.code&&(r+=t.getNewLine(),r+=eTe(i.file,i.start,i.length,"",ZSe(i.category),t)),i.relatedInformation){r+=t.getNewLine();for(let{file:o,start:s,length:l,messageText:d}of i.relatedInformation)o&&(r+=t.getNewLine(),r+=rTe+xH(o,s,t),r+=eTe(o,s,l,Mae,"\x1B[96m",t)),r+=t.getNewLine(),r+=Mae+o_(d,t.getNewLine())}r+=t.getNewLine()}return r}function o_(e,t,r=0){if(fo(e))return e;if(e===void 0)return"";let i="";if(r){i+=t;for(let o=0;o<r;o++)i+=" "}if(i+=e.messageText,r++,e.next)for(let o of e.next)i+=o_(o,t,r);return i}function Ek(e,t){return(fo(e)?t:e.resolutionMode)||t}function Dae(e,t,r){return CH(e,Ak(e,t),r)}function RH(e){var t;return xl(e)?e.isTypeOnly:!!((t=e.importClause)!=null&&t.isTypeOnly)}function DH(e,t,r){return CH(e,t,r)}function CH(e,t,r){var i;if((cc(t.parent)||xl(t.parent))&&RH(t.parent)){let l=oR(t.parent.attributes);if(l)return l}if(t.parent.parent&&Dh(t.parent.parent)){let s=oR(t.parent.parent.attributes);if(s)return s}if(r&&ld(r)===200)return t.parent.parent&&Nc(t.parent.parent)||Xd(t.parent,!1)?1:99;if(e.impliedNodeFormat===void 0)return;if(e.impliedNodeFormat!==99)return lp(Zg(t.parent))?99:1;let o=(i=Zg(t.parent))==null?void 0:i.parent;return o&&Nc(o)?1:99}function oR(e,t){if(!e)return;if(yn(e.elements)!==1){t?.(e,e.token===118?f.Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:f.Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require);return}let r=e.elements[0];if(Ga(r.name)){if(r.name.text!=="resolution-mode"){t?.(r.name,e.token===118?f.resolution_mode_is_the_only_valid_key_for_type_import_attributes:f.resolution_mode_is_the_only_valid_key_for_type_import_assertions);return}if(Ga(r.value)){if(r.value.text!=="import"&&r.value.text!=="require"){t?.(r.value,f.resolution_mode_should_be_either_require_or_import);return}return r.value.text==="import"?99:1}}}function Cae(e){return e.text}function NH(e,t,r,i,o){return{nameAndMode:z4,resolve:(s,l)=>Zx(s,e,r,i,o,t,l)}}function PH(e){return fo(e)?e:D_(e.fileName)}function L4(e,t,r,i,o){return{nameAndMode:iTe,resolve:(s,l)=>eoe(s,e,r,i,t,o,l)}}function Sk(e,t,r,i,o,s,l,d){if(e.length===0)return je;let p=[],h=new Map,m=d(t,r,i,s,l);for(let v of e){let E=m.nameAndMode.getName(v),S=m.nameAndMode.getMode(v,o,r?.commandLine.options||i),A=DN(E,S),C=h.get(A);C||h.set(A,C=m.resolve(E,S)),p.push(C)}return p}function MH(e,t){return k4(void 0,e,(r,i)=>r&&t(r,i))}function k4(e,t,r,i){let o;return s(e,t,void 0);function s(l,d,p){if(i){let h=i(l,p);if(h)return h}return an(d,(h,m)=>{if(h&&o?.has(h.sourceFile.path))return;let v=r(h,p,m);return v||!h?v:((o||(o=new Set)).add(h.sourceFile.path),s(h.commandLine.projectReferences,h.references,h))})}}function O4(e,t,r){let i=e.configFilePath?Ur(e.configFilePath):t;return wr(i,`__lib_node_modules_lookup_${r}__.ts`)}function LH(e){let t=e.split("."),r=t[1],i=2;for(;t[i]&&t[i]!=="d";)r+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+r}function tTe(e){let t=D_(e.fileName),r=G6.get(t);return{libName:t,libFileName:r}}function jb(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function aR(e){return e.pos!==void 0}function jN(e,t){var r,i,o,s;let l=x.checkDefined(e.getSourceFileByPath(t.file)),{kind:d,index:p}=t,h,m,v,E;switch(d){case 3:let S=Ak(l,p);if(v=(i=(r=e.getResolvedModule(l,S.text,e.getModeForUsageLocation(l,S)))==null?void 0:r.resolvedModule)==null?void 0:i.packageId,S.pos===-1)return{file:l,packageId:v,text:S.text};h=ua(l.text,S.pos),m=S.end;break;case 4:({pos:h,end:m}=l.referencedFiles[p]);break;case 5:({pos:h,end:m,resolutionMode:E}=l.typeReferenceDirectives[p]),v=(s=(o=e.getResolvedTypeReferenceDirective(l,D_(l.typeReferenceDirectives[p].fileName),E||l.impliedNodeFormat))==null?void 0:o.resolvedTypeReferenceDirective)==null?void 0:s.packageId;break;case 7:({pos:h,end:m}=l.libReferenceDirectives[p]);break;default:return x.assertNever(d)}return{file:l,pos:h,end:m,packageId:v}}function kH(e,t,r,i,o,s,l,d,p,h){if(!e||d?.()||!mm(e.getRootFileNames(),t))return!1;let m;if(!mm(e.getProjectReferences(),h,C)||e.getSourceFiles().some(S))return!1;let v=e.getMissingFilePaths();if(v&&hc(v,o))return!1;let E=e.getCompilerOptions();if(!vV(E,r)||e.resolvedLibReferences&&hc(e.resolvedLibReferences,(L,G)=>l(G)))return!1;if(E.configFile&&r.configFile)return E.configFile.text===r.configFile.text;return!0;function S(L){return!A(L)||s(L.path)}function A(L){return L.version===i(L.resolvedPath,L.fileName)}function C(L,G,U){return s9(L,G)&&R(e.getResolvedProjectReferences()[U],L)}function R(L,G){if(L){if(To(m,L))return!0;let K=sR(G),F=p(K);return!F||L.commandLine.options.configFile!==F.options.configFile||!mm(L.commandLine.fileNames,F.fileNames)?!1:((m||(m=[])).push(L),!an(L.references,(oe,W)=>!R(oe,L.commandLine.projectReferences[W])))}let U=sR(G);return!p(U)}}function iT(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function Tk(e,t,r,i){let o=OH(e,t,r,i);return typeof o=="object"?o.impliedNodeFormat:o}function OH(e,t,r,i){switch(zd(i)){case 3:case 99:return $l(e,[".d.mts",".mts",".mjs"])?99:$l(e,[".d.cts",".cts",".cjs"])?1:$l(e,[".d.ts",".ts",".tsx",".js",".jsx"])?o():void 0;default:return}function o(){let s=nk(t,r,i),l=[];s.failedLookupLocations=l,s.affectingLocations=l;let d=rk(e,s);return{impliedNodeFormat:d?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:l,packageJsonScope:d}}}function C7e(e,t){return e?K1(e.getCompilerOptions(),t,j6):!1}function N7e(e,t,r,i,o,s){return{rootNames:e,options:t,host:r,oldProgram:i,configFileParsingDiagnostics:o,typeScriptVersion:s}}function w4(e,t,r,i,o){var s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K;let F=oo(e)?N7e(e,t,r,i,o):e,{rootNames:oe,options:W,configFileParsingDiagnostics:$,projectReferences:de,typeScriptVersion:fe}=F,{oldProgram:q}=F,H=Kd(()=>em("ignoreDeprecations",f.Invalid_value_for_ignoreDeprecations)),ee,le,Ee,ce,Z,pe,Ae,Oe=new Map,_e=bp(),be={},Te={},De=bI(),ft,he,Le,Ke,Dt,st,Ge,ot,Vt,jt,gn=typeof W.maxNodeModuleJsDepth=="number"?W.maxNodeModuleJsDepth:0,On=0,en=new Map,zt=new Map;(s=qn)==null||s.push(qn.Phase.Program,"createProgram",{configFilePath:W.configFilePath,rootDir:W.rootDir},!0),Ls("beforeProgram");let Wt=F.host||xae(W),ei=F4(Wt),Ki=W.noLib,gi=Kd(()=>Wt.getDefaultLibFileName(W)),io=Wt.getDefaultLibLocation?Wt.getDefaultLibLocation():Ur(gi()),Gn=hx(),Nr=Wt.getCurrentDirectory(),cr=GC(W),Jt=YL(W,cr),Ue=new Map,Rt,mn,qr,ni=Wt.hasInvalidatedResolutions||_m;Wt.resolveModuleNameLiterals?(qr=Wt.resolveModuleNameLiterals.bind(Wt),mn=(l=Wt.getModuleResolutionCache)==null?void 0:l.call(Wt)):Wt.resolveModuleNames?(qr=(Ne,Ve,Tt,Pt,rn,wn)=>Wt.resolveModuleNames(Ne.map(Cae),Ve,wn?.map(Cae),Tt,Pt,rn).map(tn=>tn?tn.extension!==void 0?{resolvedModule:tn}:{resolvedModule:{...tn,extension:jC(tn.resolvedFileName)}}:Lae),mn=(d=Wt.getModuleResolutionCache)==null?void 0:d.call(Wt)):(mn=Qx(Nr,Y,W),qr=(Ne,Ve,Tt,Pt,rn)=>Sk(Ne,Ve,Tt,Pt,rn,Wt,mn,NH));let ki;if(Wt.resolveTypeReferenceDirectiveReferences)ki=Wt.resolveTypeReferenceDirectiveReferences.bind(Wt);else if(Wt.resolveTypeReferenceDirectives)ki=(Ne,Ve,Tt,Pt,rn)=>Wt.resolveTypeReferenceDirectives(Ne.map(PH),Ve,Tt,Pt,rn?.impliedNodeFormat).map(wn=>({resolvedTypeReferenceDirective:wn}));else{let Ne=Q6(Nr,Y,void 0,mn?.getPackageJsonInfoCache(),mn?.optionsToRedirectsKey);ki=(Ve,Tt,Pt,rn,wn)=>Sk(Ve,Tt,Pt,rn,wn,Wt,Ne,L4)}let so=Wt.hasInvalidatedLibResolutions||_m,Jo;if(Wt.resolveLibrary)Jo=Wt.resolveLibrary.bind(Wt);else{let Ne=Qx(Nr,Y,W,mn?.getPackageJsonInfoCache());Jo=(Ve,Tt,Pt)=>Z6(Ve,Tt,Pt,Wt,Ne)}let ba=new Map,ln=new Map,Tn=bp(),ke=!1,nt=new Map,tt=new Map,yt=Wt.useCaseSensitiveFileNames()?new Map:void 0,re,Ce,et,z,Je=!!((p=Wt.useSourceOfProjectReferenceRedirect)!=null&&p.call(Wt))&&!W.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:_t,fileExists:ze,directoryExists:it}=P7e({compilerHost:Wt,getSymlinkCache:u_,useSourceOfProjectReferenceRedirect:Je,toPath:jn,getResolvedProjectReferences:_o,getSourceOfProjectReferenceRedirect:tu,forEachResolvedProjectReference:fu}),Ct=Wt.readFile.bind(Wt);(h=qn)==null||h.push(qn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!q});let on=C7e(q,W);(m=qn)==null||m.pop();let Qt;if((v=qn)==null||v.push(qn.Phase.Program,"tryReuseStructureFromOldProgram",{}),Qt=lo(),(E=qn)==null||E.pop(),Qt!==2){if(ee=[],le=[],de&&(re||(re=de.map(Nt)),oe.length&&re?.forEach((Ne,Ve)=>{if(!Ne)return;let Tt=ss(Ne.commandLine.options);if(Je){if(Tt||ld(Ne.commandLine.options)===0)for(let Pt of Ne.commandLine.fileNames)At(Pt,{kind:1,index:Ve})}else if(Tt)At(Nb(Tt,".d.ts"),{kind:2,index:Ve});else if(ld(Ne.commandLine.options)===0){let Pt=Kd(()=>iR(Ne.commandLine,!Wt.useCaseSensitiveFileNames()));for(let rn of Ne.commandLine.fileNames)!Yc(rn)&&!el(rn,".json")&&At(GN(rn,Ne.commandLine,!Wt.useCaseSensitiveFileNames(),Pt),{kind:2,index:Ve})}})),(S=qn)==null||S.push(qn.Phase.Program,"processRootFiles",{count:oe.length}),an(oe,(Ne,Ve)=>ys(Ne,!1,!1,{kind:0,index:Ve})),(A=qn)==null||A.pop(),he??(he=oe.length?Y6(W,Wt):je),Le=bI(),he.length){(C=qn)==null||C.push(qn.Phase.Program,"processTypeReferences",{count:he.length});let Ne=W.configFilePath?Ur(W.configFilePath):Nr,Ve=wr(Ne,lR),Tt=ui(he,Ve);for(let Pt=0;Pt<he.length;Pt++)Le.set(he[Pt],void 0,Tt[Pt]),fd(he[Pt],void 0,Tt[Pt],{kind:8,typeReference:he[Pt],packageId:(L=(R=Tt[Pt])==null?void 0:R.resolvedTypeReferenceDirective)==null?void 0:L.packageId});(G=qn)==null||G.pop()}if(oe.length&&!Ki){let Ne=gi();!W.lib&&Ne?ys(Ne,!0,!1,{kind:6}):an(W.lib,(Ve,Tt)=>{ys(Ku(Ve),!0,!1,{kind:6,index:Tt})})}Ee=Gg(ee,ti).concat(le),ee=void 0,le=void 0}if(q&&Wt.onReleaseOldSourceFile){let Ne=q.getSourceFiles();for(let Ve of Ne){let Tt=Us(Ve.resolvedPath);(on||!Tt||Tt.impliedNodeFormat!==Ve.impliedNodeFormat||Ve.resolvedPath===Ve.path&&Tt.resolvedPath!==Ve.path)&&Wt.onReleaseOldSourceFile(Ve,q.getCompilerOptions(),!!Us(Ve.path))}Wt.getParsedCommandLine||q.forEachResolvedProjectReference(Ve=>{d_(Ve.sourceFile.path)||Wt.onReleaseOldSourceFile(Ve.sourceFile,q.getCompilerOptions(),!1)})}q&&Wt.onReleaseParsedCommandLine&&k4(q.getProjectReferences(),q.getResolvedProjectReferences(),(Ne,Ve,Tt)=>{let Pt=Ve?.commandLine.projectReferences[Tt]||q.getProjectReferences()[Tt],rn=sR(Pt);Ce?.has(jn(rn))||Wt.onReleaseParsedCommandLine(rn,Ne,q.getCompilerOptions())}),q=void 0,Dt=void 0,Ge=void 0,Vt=void 0;let Zt={getRootFileNames:()=>oe,getSourceFile:da,getSourceFileByPath:Us,getSourceFiles:()=>Ee,getMissingFilePaths:()=>tt,getModuleResolutionCache:()=>mn,getFilesByNameMap:()=>nt,getCompilerOptions:()=>W,getSyntacticDiagnostics:Wl,getOptionsDiagnostics:hr,getGlobalDiagnostics:Qs,getSemanticDiagnostics:il,getCachedSemanticDiagnostics:zs,getSuggestionDiagnostics:xe,getDeclarationDiagnostics:vs,getBindAndCheckDiagnostics:ho,getProgramDiagnostics:Ut,getTypeChecker:$i,getClassifiableNames:Zi,getCommonSourceDirectory:Ar,emit:Uo,getCurrentDirectory:()=>Nr,getNodeCount:()=>$i().getNodeCount(),getIdentifierCount:()=>$i().getIdentifierCount(),getSymbolCount:()=>$i().getSymbolCount(),getTypeCount:()=>$i().getTypeCount(),getInstantiationCount:()=>$i().getInstantiationCount(),getRelationCacheSizes:()=>$i().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>ft,getResolvedTypeReferenceDirectives:()=>De,getAutomaticTypeDirectiveNames:()=>he,getAutomaticTypeDirectiveResolutions:()=>Le,isSourceFileFromExternalLibrary:Js,isSourceFileDefaultLibrary:Fc,getModeForUsageLocation:Op,getModeForResolutionAtIndex:hg,getSourceFileFromReference:Nf,getLibFileFromReference:pc,sourceFileToPackageName:ln,redirectTargetsMap:Tn,usesUriStyleNodeCoreModules:ke,resolvedModules:st,resolvedTypeReferenceDirectiveNames:ot,resolvedLibReferences:Ke,getResolvedModule:V,getResolvedModuleFromModuleSpecifier:Re,getResolvedTypeReferenceDirective:St,forEachResolvedModule:M,forEachResolvedTypeReferenceDirective:te,getCurrentPackagesMap:()=>jt,typesPackageExists:Pe,packageBundlesTypes:Ie,isEmittedFile:C0,getConfigFileParsingDiagnostics:bc,getProjectReferences:Va,getResolvedProjectReferences:_o,getProjectReferenceRedirect:vl,getResolvedProjectReferenceToRedirect:Lp,getResolvedProjectReferenceByPath:d_,forEachResolvedProjectReference:fu,isSourceOfProjectReferenceRedirect:nf,emitBuildInfo:Dl,fileExists:ze,readFile:Ct,directoryExists:it,getSymlinkCache:u_,realpath:(U=Wt.realpath)==null?void 0:U.bind(Wt),useCaseSensitiveFileNames:()=>Wt.useCaseSensitiveFileNames(),getCanonicalFileName:Y,getFileIncludeReasons:()=>_e,structureIsReused:Qt,writeFile:fs};return _t(),ft?.forEach(Ne=>{switch(Ne.kind){case 1:return Gn.add(jr(Ne.file&&Us(Ne.file),Ne.fileProcessingReason,Ne.diagnostic,Ne.args||je));case 0:let{file:Ve,pos:Tt,end:Pt}=jN(Zt,Ne.reason);return Gn.add(Rc(Ve,x.checkDefined(Tt),x.checkDefined(Pt)-Tt,Ne.diagnostic,...Ne.args||je));case 2:return Ne.diagnostics.forEach(rn=>Gn.add(rn));default:x.assertNever(Ne)}}),k(),Ls("afterProgram"),Ep("Program","beforeProgram","afterProgram"),(K=qn)==null||K.pop(),Zt;function V(Ne,Ve,Tt){var Pt;return(Pt=st?.get(Ne.path))==null?void 0:Pt.get(Ve,Tt)}function Re(Ne){let Ve=Nn(Ne);return x.assertIsDefined(Ve,"`moduleSpecifier` must have a `SourceFile` ancestor. Use `program.getResolvedModule` instead to provide the containing file and resolution mode."),V(Ve,Ne.text,Op(Ve,Ne))}function St(Ne,Ve,Tt){var Pt;return(Pt=ot?.get(Ne.path))==null?void 0:Pt.get(Ve,Tt)}function M(Ne,Ve){j(st,Ne,Ve)}function te(Ne,Ve){j(ot,Ne,Ve)}function j(Ne,Ve,Tt){var Pt;Tt?(Pt=Ne?.get(Tt.path))==null||Pt.forEach((rn,wn,tn)=>Ve(rn,wn,tn,Tt.path)):Ne?.forEach((rn,wn)=>rn.forEach((tn,Wn,Qr)=>Ve(tn,Wn,Qr,wn)))}function se(){return jt||(jt=new Map,M(({resolvedModule:Ne})=>{Ne?.packageId&&jt.set(Ne.packageId.name,Ne.extension===".d.ts"||!!jt.get(Ne.packageId.name))}),jt)}function Pe(Ne){return se().has(n4(Ne))}function Ie(Ne){return!!se().get(Ne)}function gt(Ne){var Ve;(Ve=Ne.resolutionDiagnostics)!=null&&Ve.length&&(ft??(ft=[])).push({kind:2,diagnostics:Ne.resolutionDiagnostics})}function bt(Ne,Ve,Tt,Pt){if(Wt.resolveModuleNameLiterals||!Wt.resolveModuleNames)return gt(Tt);if(!mn||Ic(Ve))return;let rn=Qi(Ne.originalFileName,Nr),wn=Ur(rn),tn=An(Ne),Wn=mn.getFromNonRelativeNameCache(Ve,Pt,wn,tn);Wn&>(Wn)}function Ot(Ne,Ve,Tt){var Pt,rn;if(!Ne.length)return je;let wn=Qi(Ve.originalFileName,Nr),tn=An(Ve);(Pt=qn)==null||Pt.push(qn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:wn}),Ls("beforeResolveModule");let Wn=qr(Ne,wn,tn,W,Ve,Tt);return Ls("afterResolveModule"),Ep("ResolveModule","beforeResolveModule","afterResolveModule"),(rn=qn)==null||rn.pop(),Wn}function dn(Ne,Ve,Tt){var Pt,rn;if(!Ne.length)return[];let wn=fo(Ve)?void 0:Ve,tn=fo(Ve)?Ve:Qi(Ve.originalFileName,Nr),Wn=wn&&An(wn);(Pt=qn)==null||Pt.push(qn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:tn}),Ls("beforeResolveTypeReference");let Qr=ki(Ne,tn,Wn,W,wn,Tt);return Ls("afterResolveTypeReference"),Ep("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(rn=qn)==null||rn.pop(),Qr}function An(Ne){let Ve=Lp(Ne.originalFileName);if(Ve||!Yc(Ne.originalFileName))return Ve;let Tt=Cn(Ne.path);if(Tt)return Tt;if(!Wt.realpath||!W.preserveSymlinks||!Ne.originalFileName.includes(H_))return;let Pt=jn(Wt.realpath(Ne.originalFileName));return Pt===Ne.path?void 0:Cn(Pt)}function Cn(Ne){let Ve=tu(Ne);if(fo(Ve))return Lp(Ve);if(Ve)return fu(Tt=>{let Pt=ss(Tt.commandLine.options);if(Pt)return jn(Pt)===Ne?Tt:void 0})}function ti(Ne,Ve){return Ms(di(Ne),di(Ve))}function di(Ne){if(Bf(io,Ne.fileName,!1)){let Ve=Ll(Ne.fileName);if(Ve==="lib.d.ts"||Ve==="lib.es6.d.ts")return 0;let Tt=C1(jD(Ve,"lib."),".d.ts"),Pt=K2.indexOf(Tt);if(Pt!==-1)return Pt+1}return K2.length+2}function jn(Ne){return ks(Ne,Nr,Y)}function Ar(){if(Z===void 0){let Ne=Cr(Ee,Ve=>LS(Ve,Zt));Z=VN(W,()=>Fi(Ne,Ve=>Ve.isDeclarationFile?void 0:Ve.fileName),Nr,Y,Ve=>xt(Ne,Ve))}return Z}function Zi(){var Ne;if(!Ae){$i(),Ae=new Set;for(let Ve of Ee)(Ne=Ve.classifiableNames)==null||Ne.forEach(Tt=>Ae.add(Tt))}return Ae}function _i(Ne,Ve){if(Qt===0&&!Ve.ambientModuleNames.length)return Ot(Ne,Ve,void 0);let Tt,Pt,rn,wn=Lae,tn=q&&q.getSourceFile(Ve.fileName);for(let Gr=0;Gr<Ne.length;Gr++){let Qn=Ne[Gr];if(Ve===tn&&!ni(Ve.path)){let Ia=q?.getResolvedModule(Ve,Qn.text,Op(Ve,Qn));if(Ia?.resolvedModule){cg(W,Wt)&&to(Wt,Ia.resolvedModule.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Qn.text,Qi(Ve.originalFileName,Nr),Ia.resolvedModule.resolvedFileName,Ia.resolvedModule.packageId&&Qv(Ia.resolvedModule.packageId)),(Pt??(Pt=new Array(Ne.length)))[Gr]=Ia,(rn??(rn=[])).push(Qn);continue}}let Mo=!1;To(Ve.ambientModuleNames,Qn.text)?(Mo=!0,cg(W,Wt)&&to(Wt,f.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1,Qn.text,Qi(Ve.originalFileName,Nr))):Mo=Kn(Qn),Mo?(Pt||(Pt=new Array(Ne.length)))[Gr]=wn:(Tt??(Tt=[])).push(Qn)}let Wn=Tt&&Tt.length?Ot(Tt,Ve,rn):je;if(!Pt)return x.assert(Wn.length===Ne.length),Wn;let Qr=0;for(let Gr=0;Gr<Pt.length;Gr++)Pt[Gr]||(Pt[Gr]=Wn[Qr],Qr++);return x.assert(Qr===Wn.length),Pt;function Kn(Gr){var Qn;let Mo=(Qn=q?.getResolvedModule(Ve,Gr.text,Op(Ve,Gr)))==null?void 0:Qn.resolvedModule,Ia=Mo&&q.getSourceFile(Mo.resolvedFileName);if(Mo&&Ia)return!1;let xd=Oe.get(Gr.text);return xd?(cg(W,Wt)&&to(Wt,f.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,Gr.text,xd),!0):!1}}function ui(Ne,Ve){var Tt;if(Qt===0)return dn(Ne,Ve,void 0);let Pt,rn,wn,tn=fo(Ve)?void 0:Ve,Wn=fo(Ve)?void 0:q&&q.getSourceFile(Ve.fileName),Qr=fo(Ve)?!ni(jn(Ve)):Ve===Wn&&!ni(Ve.path);for(let Qn=0;Qn<Ne.length;Qn++){let Mo=Ne[Qn];if(Qr){let Ia=PH(Mo),xd=Ek(Mo,tn?.impliedNodeFormat),Vc=fo(Ve)?(Tt=q?.getAutomaticTypeDirectiveResolutions())==null?void 0:Tt.get(Ia,xd):q?.getResolvedTypeReferenceDirective(Ve,Ia,xd);if(Vc?.resolvedTypeReferenceDirective){cg(W,Wt)&&to(Wt,Vc.resolvedTypeReferenceDirective.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2,Ia,fo(Ve)?Ve:Qi(Ve.originalFileName,Nr),Vc.resolvedTypeReferenceDirective.resolvedFileName,Vc.resolvedTypeReferenceDirective.packageId&&Qv(Vc.resolvedTypeReferenceDirective.packageId)),(rn??(rn=new Array(Ne.length)))[Qn]=Vc,(wn??(wn=[])).push(Mo);continue}}(Pt??(Pt=[])).push(Mo)}if(!Pt)return rn||je;let Kn=dn(Pt,Ve,wn);if(!rn)return x.assert(Kn.length===Ne.length),Kn;let Gr=0;for(let Qn=0;Qn<rn.length;Qn++)rn[Qn]||(rn[Qn]=Kn[Gr],Gr++);return x.assert(Gr===Kn.length),rn}function Mr(){return!k4(q.getProjectReferences(),q.getResolvedProjectReferences(),(Ne,Ve,Tt)=>{let Pt=(Ve?Ve.commandLine.projectReferences:de)[Tt],rn=Nt(Pt);return Ne?!rn||rn.sourceFile!==Ne.sourceFile||!mm(Ne.commandLine.fileNames,rn.commandLine.fileNames):rn!==void 0},(Ne,Ve)=>{let Tt=Ve?d_(Ve.sourceFile.path).commandLine.projectReferences:de;return!mm(Ne,Tt,s9)})}function lo(){var Ne;if(!q)return 0;let Ve=q.getCompilerOptions();if(Y8(Ve,W))return 0;let Tt=q.getRootFileNames();if(!mm(Tt,oe)||!Mr())return 0;de&&(re=de.map(Nt));let Pt=[],rn=[];if(Qt=2,hc(q.getMissingFilePaths(),Kn=>Wt.fileExists(Kn)))return 0;let wn=q.getSourceFiles(),tn;(Kn=>{Kn[Kn.Exists=0]="Exists",Kn[Kn.Modified=1]="Modified"})(tn||(tn={}));let Wn=new Map;for(let Kn of wn){let Gr=Oo(Kn.fileName,mn,Wt,W),Qn=Wt.getSourceFileByPath?Wt.getSourceFileByPath(Kn.fileName,Kn.resolvedPath,Gr,void 0,on):Wt.getSourceFile(Kn.fileName,Gr,void 0,on);if(!Qn)return 0;Qn.packageJsonLocations=(Ne=Gr.packageJsonLocations)!=null&&Ne.length?Gr.packageJsonLocations:void 0,Qn.packageJsonScope=Gr.packageJsonScope,x.assert(!Qn.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Mo;if(Kn.redirectInfo){if(Qn!==Kn.redirectInfo.unredirected)return 0;Mo=!1,Qn=Kn}else if(q.redirectTargetsMap.has(Kn.path)){if(Qn!==Kn)return 0;Mo=!1}else Mo=Qn!==Kn;Qn.path=Kn.path,Qn.originalFileName=Kn.originalFileName,Qn.resolvedPath=Kn.resolvedPath,Qn.fileName=Kn.fileName;let Ia=q.sourceFileToPackageName.get(Kn.path);if(Ia!==void 0){let xd=Wn.get(Ia),Vc=Mo?1:0;if(xd!==void 0&&Vc===1||xd===1)return 0;Wn.set(Ia,Vc)}if(Mo)Kn.impliedNodeFormat!==Qn.impliedNodeFormat?Qt=1:mm(Kn.libReferenceDirectives,Qn.libReferenceDirectives,Jl)?Kn.hasNoDefaultLib!==Qn.hasNoDefaultLib?Qt=1:mm(Kn.referencedFiles,Qn.referencedFiles,Jl)?(Du(Qn),mm(Kn.imports,Qn.imports,Za)&&mm(Kn.moduleAugmentations,Qn.moduleAugmentations,Za)?(Kn.flags&12582912)!==(Qn.flags&12582912)?Qt=1:mm(Kn.typeReferenceDirectives,Qn.typeReferenceDirectives,Jl)||(Qt=1):Qt=1):Qt=1:Qt=1,rn.push(Qn);else if(ni(Kn.path))Qt=1,rn.push(Qn);else for(let xd of Kn.ambientModuleNames)Oe.set(xd,Kn.fileName);Pt.push(Qn)}if(Qt!==2)return Qt;for(let Kn of rn){let Gr=nTe(Kn),Qn=_i(Gr,Kn);(Ge??(Ge=new Map)).set(Kn.path,Qn),l9(Gr,Qn,gg=>q.getResolvedModule(Kn,gg.text,Op(Kn,gg)),hte)&&(Qt=1);let Ia=Kn.typeReferenceDirectives,xd=ui(Ia,Kn);(Vt??(Vt=new Map)).set(Kn.path,xd),l9(Ia,xd,gg=>q.getResolvedTypeReferenceDirective(Kn,PH(gg),Ek(gg,Kn.impliedNodeFormat)),gte)&&(Qt=1)}if(Qt!==2)return Qt;if(mte(Ve,W)||q.resolvedLibReferences&&hc(q.resolvedLibReferences,(Kn,Gr)=>Lh(Gr).actual!==Kn.actual))return 1;if(Wt.hasChangedAutomaticTypeDirectiveNames){if(Wt.hasChangedAutomaticTypeDirectiveNames())return 1}else if(he=Y6(W,Wt),!mm(q.getAutomaticTypeDirectiveNames(),he))return 1;tt=q.getMissingFilePaths(),x.assert(Pt.length===q.getSourceFiles().length);for(let Kn of Pt)nt.set(Kn.path,Kn);return q.getFilesByNameMap().forEach((Kn,Gr)=>{if(!Kn){nt.set(Gr,Kn);return}if(Kn.path===Gr){q.isSourceFileFromExternalLibrary(Kn)&&zt.set(Kn.path,!0);return}nt.set(Gr,nt.get(Kn.path))}),Ee=Pt,_e=q.getFileIncludeReasons(),ft=q.getFileProcessingDiagnostics(),De=q.getResolvedTypeReferenceDirectives(),he=q.getAutomaticTypeDirectiveNames(),Le=q.getAutomaticTypeDirectiveResolutions(),ln=q.sourceFileToPackageName,Tn=q.redirectTargetsMap,ke=q.usesUriStyleNodeCoreModules,st=q.resolvedModules,ot=q.resolvedTypeReferenceDirectiveNames,Ke=q.resolvedLibReferences,jt=q.getCurrentPackagesMap(),2}function _n(Ne){return{getPrependNodes:gs,getCanonicalFileName:Y,getCommonSourceDirectory:Zt.getCommonSourceDirectory,getCompilerOptions:Zt.getCompilerOptions,getCurrentDirectory:()=>Nr,getSourceFile:Zt.getSourceFile,getSourceFileByPath:Zt.getSourceFileByPath,getSourceFiles:Zt.getSourceFiles,getLibFileFromReference:Zt.getLibFileFromReference,isSourceFileFromExternalLibrary:Js,getResolvedProjectReferenceToRedirect:Lp,getProjectReferenceRedirect:vl,isSourceOfProjectReferenceRedirect:nf,getSymlinkCache:u_,writeFile:Ne||fs,isEmitBlocked:zc,readFile:Ve=>Wt.readFile(Ve),fileExists:Ve=>{let Tt=jn(Ve);return Us(Tt)?!0:tt.has(Tt)?!1:Wt.fileExists(Ve)},useCaseSensitiveFileNames:()=>Wt.useCaseSensitiveFileNames(),getBuildInfo:Ve=>{var Tt;return(Tt=Zt.getBuildInfo)==null?void 0:Tt.call(Zt,Ve)},getSourceFileFromReference:(Ve,Tt)=>Zt.getSourceFileFromReference(Ve,Tt),redirectTargetsMap:Tn,getFileIncludeReasons:Zt.getFileIncludeReasons,createHash:Wo(Wt,Wt.createHash)}}function fs(Ne,Ve,Tt,Pt,rn,wn){Wt.writeFile(Ne,Ve,Tt,Pt,rn,wn)}function Dl(Ne){var Ve,Tt;x.assert(!ss(W)),(Ve=qn)==null||Ve.push(qn.Phase.Emit,"emitBuildInfo",{},!0),Ls("beforeEmit");let Pt=x4(D4,_n(Ne),void 0,dH,!1,!0);return Ls("afterEmit"),Ep("Emit","beforeEmit","afterEmit"),(Tt=qn)==null||Tt.pop(),Pt}function _o(){return re}function Va(){return de}function gs(){return WH(de,(Ne,Ve)=>{var Tt;return(Tt=re[Ve])==null?void 0:Tt.commandLine},Ne=>{let Ve=jn(Ne),Tt=Us(Ve);return Tt?Tt.text:nt.has(Ve)?void 0:Wt.readFile(Ve)},Wt)}function Js(Ne){return!!zt.get(Ne.path)}function Fc(Ne){if(!Ne.isDeclarationFile)return!1;if(Ne.hasNoDefaultLib)return!0;if(!W.noLib)return!1;let Ve=Wt.useCaseSensitiveFileNames()?pS:pb;return W.lib?ct(W.lib,Tt=>Ve(Ne.fileName,Ke.get(Tt).actual)):Ve(Ne.fileName,gi())}function $i(){return pe||(pe=Aoe(Zt))}function Uo(Ne,Ve,Tt,Pt,rn,wn){var tn,Wn;(tn=qn)==null||tn.push(qn.Phase.Emit,"emit",{path:Ne?.path},!0);let Qr=Bc(()=>ts(Zt,Ne,Ve,Tt,Pt,rn,wn));return(Wn=qn)==null||Wn.pop(),Qr}function zc(Ne){return Ue.has(jn(Ne))}function ts(Ne,Ve,Tt,Pt,rn,wn,tn){if(!tn){let Kn=wH(Ne,Ve,Tt,Pt);if(Kn)return Kn}let Wn=$i().getEmitResolver(ss(W)?void 0:Ve,Pt);Ls("beforeEmit");let Qr=x4(Wn,_n(Tt),Ve,cH(W,wn,rn),rn,!1,tn);return Ls("afterEmit"),Ep("Emit","beforeEmit","afterEmit"),Qr}function da(Ne){return Us(jn(Ne))}function Us(Ne){return nt.get(Ne)||void 0}function tf(Ne,Ve,Tt){return z1(Ne?Ve(Ne,Tt):ta(Zt.getSourceFiles(),Pt=>(Tt&&Tt.throwIfCancellationRequested(),Ve(Pt,Tt))))}function Wl(Ne,Ve){return tf(Ne,Pc,Ve)}function il(Ne,Ve){return tf(Ne,Ju,Ve)}function zs(Ne){var Ve;return Ne?(Ve=be.perFile)==null?void 0:Ve.get(Ne.path):be.allDiagnostics}function ho(Ne,Ve){return ls(Ne,Ve)}function Ut(Ne){var Ve;if(UC(Ne,W,Zt))return je;let Tt=Gn.getDiagnostics(Ne.fileName);return(Ve=Ne.commentDirectives)!=null&&Ve.length?X(Ne,Ne.commentDirectives,Tt).diagnostics:Tt}function vs(Ne,Ve){let Tt=Zt.getCompilerOptions();return!Ne||ss(Tt)?sr(Ne,Ve):tf(Ne,pi,Ve)}function Pc(Ne){return wd(Ne)?(Ne.additionalSyntacticDiagnostics||(Ne.additionalSyntacticDiagnostics=$t(Ne)),ro(Ne.additionalSyntacticDiagnostics,Ne.parseDiagnostics)):Ne.parseDiagnostics}function Bc(Ne){try{return Ne()}catch(Ve){throw Ve instanceof k1&&(pe=void 0),Ve}}function Ju(Ne,Ve){return ro(W4(ls(Ne,Ve),W),Ut(Ne))}function ls(Ne,Ve){return Ir(Ne,Ve,be,tc)}function tc(Ne,Ve){return Bc(()=>{if(UC(Ne,W,Zt))return je;let Tt=$i();x.assert(!!Ne.bindDiagnostics);let rn=(Ne.scriptKind===1||Ne.scriptKind===2)&&ZL(Ne,W),wn=nL(Ne,W.checkJs),Wn=!(!!Ne.checkJsDirective&&Ne.checkJsDirective.enabled===!1)&&(Ne.scriptKind===3||Ne.scriptKind===4||Ne.scriptKind===5||wn||rn||Ne.scriptKind===7),Qr=Wn?Ne.bindDiagnostics:je,Kn=Wn?Tt.getDiagnostics(Ne,Ve):je;return wn&&(Qr=Cr(Qr,Gr=>B4.has(Gr.code)),Kn=Cr(Kn,Gr=>B4.has(Gr.code))),ae(Ne,Wn&&!wn,Qr,Kn,rn?Ne.jsDocDiagnostics:void 0)})}function ae(Ne,Ve,...Tt){var Pt;let rn=Ff(Tt);if(!Ve||!((Pt=Ne.commentDirectives)!=null&&Pt.length))return rn;let{diagnostics:wn,directives:tn}=X(Ne,Ne.commentDirectives,rn);for(let Wn of tn.getUnusedExpectations())wn.push(Mte(Ne,Wn.range,f.Unused_ts_expect_error_directive));return wn}function X(Ne,Ve,Tt){let Pt=bte(Ne,Ve);return{diagnostics:Tt.filter(wn=>dt(wn,Pt)===-1),directives:Pt}}function xe(Ne,Ve){return Bc(()=>$i().getSuggestionDiagnostics(Ne,Ve))}function dt(Ne,Ve){let{file:Tt,start:Pt}=Ne;if(!Tt)return-1;let rn=Yh(Tt),wn=W1(rn,Pt).line-1;for(;wn>=0;){if(Ve.markUsed(wn))return wn;let tn=Tt.text.slice(rn[wn],rn[wn+1]).trim();if(tn!==""&&!/^(\s*)\/\/(.*)$/.test(tn))return-1;wn--}return-1}function $t(Ne){return Bc(()=>{let Ve=[];return Tt(Ne,Ne),EN(Ne,Tt,Pt),Ve;function Tt(Wn,Qr){switch(Qr.kind){case 169:case 172:case 174:if(Qr.questionToken===Wn)return Ve.push(tn(Wn,f.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(Qr.type===Wn)return Ve.push(tn(Wn,f.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(Wn.kind){case 273:if(Wn.isTypeOnly)return Ve.push(tn(Qr,f._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(Wn.isTypeOnly)return Ve.push(tn(Wn,f._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(Wn.isTypeOnly)return Ve.push(tn(Wn,f._0_declarations_can_only_be_used_in_TypeScript_files,Iu(Wn)?"import...type":"export...type")),"skip";break;case 271:return Ve.push(tn(Wn,f.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(Wn.isExportEquals)return Ve.push(tn(Wn,f.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(Wn.token===119)return Ve.push(tn(Wn,f.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let Gr=qo(120);return x.assertIsDefined(Gr),Ve.push(tn(Wn,f._0_declarations_can_only_be_used_in_TypeScript_files,Gr)),"skip";case 267:let Qn=Wn.flags&32?qo(145):qo(144);return x.assertIsDefined(Qn),Ve.push(tn(Wn,f._0_declarations_can_only_be_used_in_TypeScript_files,Qn)),"skip";case 265:return Ve.push(tn(Wn,f.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return Wn.body?void 0:(Ve.push(tn(Wn,f.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Mo=x.checkDefined(qo(94));return Ve.push(tn(Wn,f._0_declarations_can_only_be_used_in_TypeScript_files,Mo)),"skip";case 235:return Ve.push(tn(Wn,f.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Ve.push(tn(Wn.type,f.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Ve.push(tn(Wn.type,f.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:x.fail()}}function Pt(Wn,Qr){if(jj(Qr)){let Kn=Dr(Qr.modifiers,Xc);Kn&&Ve.push(tn(Kn,f.Decorators_are_not_valid_here))}else if(ZS(Qr)&&Qr.modifiers){let Kn=Tl(Qr.modifiers,Xc);if(Kn>=0){if(ao(Qr)&&!W.experimentalDecorators)Ve.push(tn(Qr.modifiers[Kn],f.Decorators_are_not_valid_here));else if(Zl(Qr)){let Gr=Tl(Qr.modifiers,nI);if(Gr>=0){let Qn=Tl(Qr.modifiers,f6);if(Kn>Gr&&Qn>=0&&Kn<Qn)Ve.push(tn(Qr.modifiers[Kn],f.Decorators_are_not_valid_here));else if(Gr>=0&&Kn<Gr){let Mo=Tl(Qr.modifiers,Xc,Gr);Mo>=0&&Ve.push(pa(tn(Qr.modifiers[Mo],f.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),tn(Qr.modifiers[Kn],f.Decorator_used_before_export_here)))}}}}}switch(Qr.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(Wn===Qr.typeParameters)return Ve.push(wn(Wn,f.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(Wn===Qr.modifiers)return rn(Qr.modifiers,Qr.kind===243),"skip";break;case 172:if(Wn===Qr.modifiers){for(let Kn of Wn)ia(Kn)&&Kn.kind!==126&&Kn.kind!==129&&Ve.push(tn(Kn,f.The_0_modifier_can_only_be_used_in_TypeScript_files,qo(Kn.kind)));return"skip"}break;case 169:if(Wn===Qr.modifiers&&ct(Wn,ia))return Ve.push(wn(Wn,f.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(Wn===Qr.typeArguments)return Ve.push(wn(Wn,f.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function rn(Wn,Qr){for(let Kn of Wn)switch(Kn.kind){case 87:if(Qr)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Ve.push(tn(Kn,f.The_0_modifier_can_only_be_used_in_TypeScript_files,qo(Kn.kind)));break;case 126:case 95:case 90:case 129:}}function wn(Wn,Qr,...Kn){let Gr=Wn.pos;return Rc(Ne,Gr,Wn.end-Gr,Qr,...Kn)}function tn(Wn,Qr,...Kn){return vf(Ne,Wn,Qr,...Kn)}})}function sr(Ne,Ve){return Ir(Ne,Ve,Te,tr)}function tr(Ne,Ve){return Bc(()=>{let Tt=$i().getEmitResolver(Ne,Ve);return gae(_n(Ca),Tt,Ne)||je})}function Ir(Ne,Ve,Tt,Pt){var rn;let wn=Ne?(rn=Tt.perFile)==null?void 0:rn.get(Ne.path):Tt.allDiagnostics;if(wn)return wn;let tn=Pt(Ne,Ve);return Ne?(Tt.perFile||(Tt.perFile=new Map)).set(Ne.path,tn):Tt.allDiagnostics=tn,tn}function pi(Ne,Ve){return Ne.isDeclarationFile?[]:sr(Ne,Ve)}function hr(){return z1(ro(Gn.getGlobalDiagnostics(),No()))}function No(){if(!W.configFile)return je;let Ne=Gn.getDiagnostics(W.configFile.fileName);return fu(Ve=>{Ne=ro(Ne,Gn.getDiagnostics(Ve.sourceFile.fileName))}),Ne}function Qs(){return oe.length?z1($i().getGlobalDiagnostics().slice()):je}function bc(){return $||je}function ys(Ne,Ve,Tt,Pt){Se(Yo(Ne),Ve,Tt,void 0,Pt)}function Jl(Ne,Ve){return Ne.fileName===Ve.fileName}function Za(Ne,Ve){return Ne.kind===80?Ve.kind===80&&Ne.escapedText===Ve.escapedText:Ve.kind===11&&Ne.text===Ve.text}function Ec(Ne,Ve){let Tt=P.createStringLiteral(Ne),Pt=P.createImportDeclaration(void 0,void 0,Tt,void 0);return XA(Pt,2),Ta(Tt,Pt),Ta(Pt,Ve),Tt.flags&=-17,Pt.flags&=-17,Tt}function Du(Ne){if(Ne.imports)return;let Ve=wd(Ne),Tt=wl(Ne),Pt,rn,wn;if((xf(W)||Tt)&&!Ne.isDeclarationFile){W.importHelpers&&(Pt=[Ec(ay,Ne)]);let Kn=sF(aF(W,Ne),W);Kn&&(Pt||(Pt=[])).push(Ec(Kn,Ne))}for(let Kn of Ne.statements)tn(Kn,!1);(Ne.flags&4194304||Ve)&&Wn(Ne),Ne.imports=Pt||je,Ne.moduleAugmentations=rn||je,Ne.ambientModuleNames=wn||je;return;function tn(Kn,Gr){if(oL(Kn)){let Qn=lx(Kn);Qn&&ca(Qn)&&Qn.text&&(!Gr||!Ic(Qn.text))&&(oy(Kn,!1),Pt=pn(Pt,Qn),!ke&&On===0&&!Ne.isDeclarationFile&&(ke=Ui(Qn.text,"node:")))}else if(Il(Kn)&&sd(Kn)&&(Gr||Wr(Kn,128)||Ne.isDeclarationFile)){Kn.name.parent=Kn;let Qn=Ef(Kn.name);if(Tt||Gr&&!Ic(Qn))(rn||(rn=[])).push(Kn.name);else if(!Gr){Ne.isDeclarationFile&&(wn||(wn=[])).push(Qn);let Mo=Kn.body;if(Mo)for(let Ia of Mo.statements)tn(Ia,!0)}}}function Wn(Kn){let Gr=/import|require/g;for(;Gr.exec(Kn.text)!==null;){let Qn=Qr(Kn,Gr.lastIndex);Ve&&Xd(Qn,!0)||lp(Qn)&&Qn.arguments.length>=1&&Ga(Qn.arguments[0])?(oy(Qn,!1),Pt=pn(Pt,Qn.arguments[0])):ey(Qn)&&(oy(Qn,!1),Pt=pn(Pt,Qn.argument.literal))}}function Qr(Kn,Gr){let Qn=Kn,Mo=Ia=>{if(Ia.pos<=Gr&&(Gr<Ia.end||Gr===Ia.end&&Ia.kind===1))return Ia};for(;;){let Ia=Ve&&ap(Qn)&&an(Qn.jsDoc,Mo)||Ao(Qn,Mo);if(!Ia)return Qn;Qn=Ia}}}function pc(Ne){var Ve;let{libFileName:Tt}=tTe(Ne),Pt=Tt&&((Ve=Ke?.get(Tt))==null?void 0:Ve.actual);return Pt!==void 0?da(Pt):void 0}function Nf(Ne,Ve){return Vd(M4(Ve.fileName,Ne.fileName),da)}function Vd(Ne,Ve,Tt,Pt){if(TA(Ne)){let rn=Wt.getCanonicalFileName(Ne);if(!W.allowNonTsExtensions&&!an(Ff(Jt),tn=>el(rn,tn))){Tt&&(QE(rn)?Tt(f.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ne):Tt(f.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ne,"'"+Ff(cr).join("', '")+"'"));return}let wn=Ve(Ne);if(Tt)if(wn)jb(Pt)&&rn===Wt.getCanonicalFileName(Us(Pt.file).fileName)&&Tt(f.A_file_cannot_have_a_reference_to_itself);else{let tn=vl(Ne);tn?Tt(f.Output_file_0_has_not_been_built_from_source_file_1,tn,Ne):Tt(f.File_0_not_found,Ne)}return wn}else{let rn=W.allowNonTsExtensions&&Ve(Ne);if(rn)return rn;if(Tt&&W.allowNonTsExtensions){Tt(f.File_0_not_found,Ne);return}let wn=an(cr[0],tn=>Ve(Ne+tn));return Tt&&!wn&&Tt(f.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ne,"'"+Ff(cr).join("', '")+"'"),wn}}function Se(Ne,Ve,Tt,Pt,rn){Vd(Ne,wn=>Po(wn,Ve,Tt,rn,Pt),(wn,...tn)=>Or(void 0,rn,wn,tn),rn)}function At(Ne,Ve){return Se(Ne,!1,!1,void 0,Ve)}function Ln(Ne,Ve,Tt){!jb(Tt)&&ct(_e.get(Ve.path),jb)?Or(Ve,Tt,f.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Ve.fileName,Ne]):Or(Ve,Tt,f.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ne,Ve.fileName])}function eo(Ne,Ve,Tt,Pt,rn,wn,tn){var Wn;let Qr=U_.createRedirectedSourceFile({redirectTarget:Ne,unredirected:Ve});return Qr.fileName=Tt,Qr.path=Pt,Qr.resolvedPath=rn,Qr.originalFileName=wn,Qr.packageJsonLocations=(Wn=tn.packageJsonLocations)!=null&&Wn.length?tn.packageJsonLocations:void 0,Qr.packageJsonScope=tn.packageJsonScope,zt.set(Pt,On>0),Qr}function Po(Ne,Ve,Tt,Pt,rn){var wn,tn;(wn=qn)==null||wn.push(qn.Phase.Program,"findSourceFile",{fileName:Ne,isDefaultLib:Ve||void 0,fileIncludeKind:d8[Pt.kind]});let Wn=Cl(Ne,Ve,Tt,Pt,rn);return(tn=qn)==null||tn.pop(),Wn}function Oo(Ne,Ve,Tt,Pt){let rn=OH(Qi(Ne,Nr),Ve?.getPackageJsonInfoCache(),Tt,Pt),wn=Wa(Pt),tn=XL(Pt);return typeof rn=="object"?{...rn,languageVersion:wn,setExternalModuleIndicator:tn,jsDocParsingMode:Tt.jsDocParsingMode}:{languageVersion:wn,impliedNodeFormat:rn,setExternalModuleIndicator:tn,jsDocParsingMode:Tt.jsDocParsingMode}}function Cl(Ne,Ve,Tt,Pt,rn){var wn;let tn=jn(Ne);if(Je){let Qn=tu(tn);if(!Qn&&Wt.realpath&&W.preserveSymlinks&&Yc(Ne)&&Ne.includes(H_)){let Mo=jn(Wt.realpath(Ne));Mo!==tn&&(Qn=tu(Mo))}if(Qn){let Mo=fo(Qn)?Po(Qn,Ve,Tt,Pt,rn):void 0;return Mo&&Bs(Mo,tn,Ne,void 0),Mo}}let Wn=Ne;if(nt.has(tn)){let Qn=nt.get(tn);if(Kl(Qn||void 0,Pt),Qn&&W.forceConsistentCasingInFileNames!==!1){let Mo=Qn.fileName;jn(Mo)!==jn(Ne)&&(Ne=vl(Ne)||Ne);let xd=DG(Mo,Nr),Vc=DG(Ne,Nr);xd!==Vc&&Ln(Ne,Qn,Pt)}return Qn&&zt.get(Qn.path)&&On===0?(zt.set(Qn.path,!1),W.noResolve||(K_(Qn,Ve),fg(Qn)),W.noLib||mu(Qn),en.set(Qn.path,!1),Ye(Qn)):Qn&&en.get(Qn.path)&&On<gn&&(en.set(Qn.path,!1),Ye(Qn)),Qn||void 0}let Qr;if(jb(Pt)&&!Je){let Qn=Nl(Ne);if(Qn){if(ss(Qn.commandLine.options))return;let Mo=Sc(Qn,Ne);Ne=Mo,Qr=jn(Mo)}}let Kn=Oo(Ne,mn,Wt,W),Gr=Wt.getSourceFile(Ne,Kn,Qn=>Or(void 0,Pt,f.Cannot_read_file_0_Colon_1,[Ne,Qn]),on);if(rn){let Qn=Qv(rn),Mo=ba.get(Qn);if(Mo){let Ia=eo(Mo,Gr,Ne,tn,jn(Ne),Wn,Kn);return Tn.add(Mo.path,Ne),Bs(Ia,tn,Ne,Qr),Kl(Ia,Pt),ln.set(tn,Z8(rn)),le.push(Ia),Ia}else Gr&&(ba.set(Qn,Gr),ln.set(tn,Z8(rn)))}if(Bs(Gr,tn,Ne,Qr),Gr){if(zt.set(tn,On>0),Gr.fileName=Ne,Gr.path=tn,Gr.resolvedPath=jn(Ne),Gr.originalFileName=Wn,Gr.packageJsonLocations=(wn=Kn.packageJsonLocations)!=null&&wn.length?Kn.packageJsonLocations:void 0,Gr.packageJsonScope=Kn.packageJsonScope,Kl(Gr,Pt),Wt.useCaseSensitiveFileNames()){let Qn=D_(tn),Mo=yt.get(Qn);Mo?Ln(Ne,Mo,Pt):yt.set(Qn,Gr)}Ki=Ki||Gr.hasNoDefaultLib&&!Tt,W.noResolve||(K_(Gr,Ve),fg(Gr)),W.noLib||mu(Gr),Ye(Gr),Ve?ee.push(Gr):le.push(Gr)}return Gr}function Kl(Ne,Ve){Ne&&_e.add(Ne.path,Ve)}function Bs(Ne,Ve,Tt,Pt){Pt?(Ks(Tt,Pt,Ne),Ks(Tt,Ve,Ne||!1)):Ks(Tt,Ve,Ne)}function Ks(Ne,Ve,Tt){nt.set(Ve,Tt),Tt!==void 0?tt.delete(Ve):tt.set(Ve,Ne)}function vl(Ne){let Ve=Nl(Ne);return Ve&&Sc(Ve,Ne)}function Nl(Ne){if(!(!re||!re.length||Yc(Ne)||el(Ne,".json")))return Lp(Ne)}function Sc(Ne,Ve){let Tt=ss(Ne.commandLine.options);return Tt?Nb(Tt,".d.ts"):GN(Ve,Ne.commandLine,!Wt.useCaseSensitiveFileNames())}function Lp(Ne){et===void 0&&(et=new Map,fu(Tt=>{jn(W.configFilePath)!==Tt.sourceFile.path&&Tt.commandLine.fileNames.forEach(Pt=>et.set(jn(Pt),Tt.sourceFile.path))}));let Ve=et.get(jn(Ne));return Ve&&d_(Ve)}function fu(Ne){return MH(re,Ne)}function tu(Ne){if(Yc(Ne))return z===void 0&&(z=new Map,fu(Ve=>{let Tt=ss(Ve.commandLine.options);if(Tt){let Pt=Nb(Tt,".d.ts");z.set(jn(Pt),!0)}else{let Pt=Kd(()=>iR(Ve.commandLine,!Wt.useCaseSensitiveFileNames()));an(Ve.commandLine.fileNames,rn=>{if(!Yc(rn)&&!el(rn,".json")){let wn=GN(rn,Ve.commandLine,!Wt.useCaseSensitiveFileNames(),Pt);z.set(jn(wn),rn)}})}})),z.get(Ne)}function nf(Ne){return Je&&!!Lp(Ne)}function d_(Ne){if(Ce)return Ce.get(Ne)||void 0}function K_(Ne,Ve){an(Ne.referencedFiles,(Tt,Pt)=>{Se(M4(Tt.fileName,Ne.fileName),Ve,!1,void 0,{kind:4,file:Ne.path,index:Pt})})}function fg(Ne){let Ve=Ne.typeReferenceDirectives;if(!Ve.length)return;let Tt=Vt?.get(Ne.path)||ui(Ve,Ne),Pt=bI();(ot??(ot=new Map)).set(Ne.path,Pt);for(let rn=0;rn<Ve.length;rn++){let wn=Ne.typeReferenceDirectives[rn],tn=Tt[rn],Wn=D_(wn.fileName);Pt.set(Wn,Ek(wn,Ne.impliedNodeFormat),tn);let Qr=wn.resolutionMode||Ne.impliedNodeFormat;fd(Wn,Qr,tn,{kind:5,file:Ne.path,index:rn})}}function fd(Ne,Ve,Tt,Pt){var rn,wn;(rn=qn)==null||rn.push(qn.Phase.Program,"processTypeReferenceDirective",{directive:Ne,hasResolved:!!Tt.resolvedTypeReferenceDirective,refKind:Pt.kind,refPath:jb(Pt)?Pt.file:void 0}),mg(Ne,Ve,Tt,Pt),(wn=qn)==null||wn.pop()}function mg(Ne,Ve,Tt,Pt){var rn;gt(Tt);let wn=(rn=De.get(Ne,Ve))==null?void 0:rn.resolvedTypeReferenceDirective;if(wn&&wn.primary)return;let tn=!0,{resolvedTypeReferenceDirective:Wn}=Tt;if(Wn){if(Wn.isExternalLibraryImport&&On++,Wn.primary)Se(Wn.resolvedFileName,!1,!1,Wn.packageId,Pt);else if(wn){if(Wn.resolvedFileName!==wn.resolvedFileName){let Qr=Wt.readFile(Wn.resolvedFileName),Kn=da(wn.resolvedFileName);Qr!==Kn.text&&Or(Kn,Pt,f.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict,[Ne,Wn.resolvedFileName,wn.resolvedFileName])}tn=!1}else Se(Wn.resolvedFileName,!1,!1,Wn.packageId,Pt);Wn.isExternalLibraryImport&&On--}else Or(void 0,Pt,f.Cannot_find_type_definition_file_for_0,[Ne]);tn&&De.set(Ne,Ve,Tt)}function Ku(Ne){let Ve=Ke?.get(Ne);if(Ve)return Ve.actual;let Tt=Lh(Ne);return(Ke??(Ke=new Map)).set(Ne,Tt),Tt.actual}function Lh(Ne){var Ve,Tt,Pt,rn,wn;let tn=Dt?.get(Ne);if(tn)return tn;if(Qt!==0&&q&&!so(Ne)){let Qn=(Ve=q.resolvedLibReferences)==null?void 0:Ve.get(Ne);if(Qn){if(Qn.resolution&&cg(W,Wt)){let Mo=LH(Ne),Ia=O4(W,Nr,Ne);to(Wt,Qn.resolution.resolvedModule?Qn.resolution.resolvedModule.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,Mo,Qi(Ia,Nr),(Tt=Qn.resolution.resolvedModule)==null?void 0:Tt.resolvedFileName,((Pt=Qn.resolution.resolvedModule)==null?void 0:Pt.packageId)&&Qv(Qn.resolution.resolvedModule.packageId))}return(Dt??(Dt=new Map)).set(Ne,Qn),Qn}}let Wn=LH(Ne),Qr=O4(W,Nr,Ne);(rn=qn)==null||rn.push(qn.Phase.Program,"resolveLibrary",{resolveFrom:Qr}),Ls("beforeResolveLibrary");let Kn=Jo(Wn,Qr,W,Ne);Ls("afterResolveLibrary"),Ep("ResolveLibrary","beforeResolveLibrary","afterResolveLibrary"),(wn=qn)==null||wn.pop();let Gr={resolution:Kn,actual:Kn.resolvedModule?Kn.resolvedModule.resolvedFileName:wr(io,Ne)};return(Dt??(Dt=new Map)).set(Ne,Gr),Gr}function mu(Ne){an(Ne.libReferenceDirectives,(Ve,Tt)=>{let{libName:Pt,libFileName:rn}=tTe(Ve);if(rn)ys(Ku(rn),!0,!0,{kind:7,file:Ne.path,index:Tt});else{let wn=C1(jD(Pt,"lib."),".d.ts"),tn=VD(wn,K2,Ps),Wn=tn?f.Cannot_find_lib_definition_for_0_Did_you_mean_1:f.Cannot_find_lib_definition_for_0,Qr=tn?[Pt,tn]:[Pt];(ft||(ft=[])).push({kind:0,reason:{kind:7,file:Ne.path,index:Tt},diagnostic:Wn,args:Qr})}})}function Y(Ne){return Wt.getCanonicalFileName(Ne)}function Ye(Ne){var Ve;if(Du(Ne),Ne.imports.length||Ne.moduleAugmentations.length){let Tt=nTe(Ne),Pt=Ge?.get(Ne.path)||_i(Tt,Ne);x.assert(Pt.length===Tt.length);let rn=((Ve=An(Ne))==null?void 0:Ve.commandLine.options)||W,wn=bI();(st??(st=new Map)).set(Ne.path,wn);for(let tn=0;tn<Tt.length;tn++){let Wn=Pt[tn].resolvedModule,Qr=Tt[tn].text,Kn=CH(Ne,Tt[tn],rn);if(wn.set(Qr,Kn,Pt[tn]),bt(Ne,Qr,Pt[tn],Kn),!Wn)continue;let Gr=Wn.isExternalLibraryImport,Qn=!VC(Wn.extension),Mo=Gr&&Qn&&(!Wn.originalPath||Gb(Wn.resolvedFileName)),Ia=Wn.resolvedFileName;Gr&&On++;let xd=Mo&&On>gn,Vc=Ia&&!FH(rn,Wn,Ne)&&!rn.noResolve&&tn<Ne.imports.length&&!xd&&!(Qn&&!sy(rn))&&(Jn(Ne.imports[tn])||!(Ne.imports[tn].flags&16777216));xd?en.set(Ne.path,!0):Vc&&Po(Ia,!1,!1,{kind:3,file:Ne.path,index:tn},Wn.packageId),Gr&&On--}}}function xt(Ne,Ve){let Tt=!0,Pt=Wt.getCanonicalFileName(Qi(Ve,Nr));for(let rn of Ne)rn.isDeclarationFile||Wt.getCanonicalFileName(Qi(rn.fileName,Nr)).indexOf(Pt)!==0&&(zi(rn,f.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files,[rn.fileName,Ve]),Tt=!1);return Tt}function Nt(Ne){Ce||(Ce=new Map);let Ve=sR(Ne),Tt=jn(Ve),Pt=Ce.get(Tt);if(Pt!==void 0)return Pt||void 0;let rn,wn;if(Wt.getParsedCommandLine){if(rn=Wt.getParsedCommandLine(Ve),!rn){Bs(void 0,Tt,Ve,void 0),Ce.set(Tt,!1);return}wn=x.checkDefined(rn.options.configFile),x.assert(!wn.path||wn.path===Tt),Bs(wn,Tt,Ve,void 0)}else{let Wn=Qi(Ur(Ve),Nr);if(wn=Wt.getSourceFile(Ve,100),Bs(wn,Tt,Ve,void 0),wn===void 0){Ce.set(Tt,!1);return}rn=H2(wn,ei,Wn,void 0,Ve)}wn.fileName=Ve,wn.path=Tt,wn.resolvedPath=Tt,wn.originalFileName=Ve;let tn={commandLine:rn,sourceFile:wn};return Ce.set(Tt,tn),rn.projectReferences&&(tn.references=rn.projectReferences.map(Nt)),tn}function k(){W.strictPropertyInitialization&&!Fd(W,"strictNullChecks")&&ja(f.Option_0_cannot_be_specified_without_specifying_option_1,"strictPropertyInitialization","strictNullChecks"),W.exactOptionalPropertyTypes&&!Fd(W,"strictNullChecks")&&ja(f.Option_0_cannot_be_specified_without_specifying_option_1,"exactOptionalPropertyTypes","strictNullChecks"),(W.isolatedModules||W.verbatimModuleSyntax)&&(W.out&&ja(f.Option_0_cannot_be_specified_with_option_1,"out",W.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules"),W.outFile&&ja(f.Option_0_cannot_be_specified_with_option_1,"outFile",W.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules")),W.inlineSourceMap&&(W.sourceMap&&ja(f.Option_0_cannot_be_specified_with_option_1,"sourceMap","inlineSourceMap"),W.mapRoot&&ja(f.Option_0_cannot_be_specified_with_option_1,"mapRoot","inlineSourceMap")),W.composite&&(W.declaration===!1&&ja(f.Composite_projects_may_not_disable_declaration_emit,"declaration"),W.incremental===!1&&ja(f.Composite_projects_may_not_disable_incremental_compilation,"declaration"));let Ne=ss(W);if(W.tsBuildInfoFile?tN(W)||ja(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"tsBuildInfoFile","incremental","composite"):W.incremental&&!Ne&&!W.configFilePath&&Gn.add(bl(f.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified)),Mt(),_a(),W.composite){let tn=new Set(oe.map(jn));for(let Wn of Ee)LS(Wn,Zt)&&!tn.has(Wn.path)&&zi(Wn,f.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern,[Wn.fileName,W.configFilePath||""])}if(W.paths){for(let tn in W.paths)if(rs(W.paths,tn))if(AV(tn)||Gc(!0,tn,f.Pattern_0_can_have_at_most_one_Asterisk_character,tn),oo(W.paths[tn])){let Wn=W.paths[tn].length;Wn===0&&Gc(!1,tn,f.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array,tn);for(let Qr=0;Qr<Wn;Qr++){let Kn=W.paths[tn][Qr],Gr=typeof Kn;Gr==="string"?(AV(Kn)||pl(tn,Qr,f.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character,Kn,tn),!W.baseUrl&&!op(Kn)&&!JD(Kn)&&pl(tn,Qr,f.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash)):pl(tn,Qr,f.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2,Kn,tn,Gr)}}else Gc(!1,tn,f.Substitutions_for_pattern_0_should_be_an_array,tn)}!W.sourceMap&&!W.inlineSourceMap&&(W.inlineSources&&ja(f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"inlineSources"),W.sourceRoot&&ja(f.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided,"sourceRoot")),W.out&&W.outFile&&ja(f.Option_0_cannot_be_specified_with_option_1,"out","outFile"),W.mapRoot&&!(W.sourceMap||W.declarationMap)&&ja(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"mapRoot","sourceMap","declarationMap"),W.declarationDir&&(Xp(W)||ja(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationDir","declaration","composite"),Ne&&ja(f.Option_0_cannot_be_specified_with_option_1,"declarationDir",W.out?"out":"outFile")),W.declarationMap&&!Xp(W)&&ja(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"declarationMap","declaration","composite"),W.lib&&W.noLib&&ja(f.Option_0_cannot_be_specified_with_option_1,"lib","noLib"),W.noImplicitUseStrict&&Fd(W,"alwaysStrict")&&ja(f.Option_0_cannot_be_specified_with_option_1,"noImplicitUseStrict","alwaysStrict");let Ve=Wa(W),Tt=Dr(Ee,tn=>wl(tn)&&!tn.isDeclarationFile);if(W.isolatedModules||W.verbatimModuleSyntax)W.module===0&&Ve<2&&W.isolatedModules&&ja(f.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),W.preserveConstEnums===!1&&ja(f.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,W.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(Tt&&Ve<2&&W.module===0){let tn=IS(Tt,typeof Tt.externalModuleIndicator=="boolean"?Tt:Tt.externalModuleIndicator);Gn.add(Rc(Tt,tn.start,tn.length,f.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ne&&!W.emitDeclarationOnly){if(W.module&&!(W.module===2||W.module===4))ja(f.Only_amd_and_system_modules_are_supported_alongside_0,W.out?"out":"outFile","module");else if(W.module===void 0&&Tt){let tn=IS(Tt,typeof Tt.externalModuleIndicator=="boolean"?Tt:Tt.externalModuleIndicator);Gn.add(Rc(Tt,tn.start,tn.length,f.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,W.out?"out":"outFile"))}}if(Mb(W)&&(zd(W)===1?ja(f.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):rF(W)||ja(f.Option_resolveJsonModule_cannot_be_specified_when_module_is_set_to_none_system_or_umd,"resolveJsonModule","module")),W.outDir||W.rootDir||W.sourceRoot||W.mapRoot){let tn=Ar();W.outDir&&tn===""&&Ee.some(Wn=>P_(Wn.fileName)>1)&&ja(f.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}W.useDefineForClassFields&&Ve===0&&ja(f.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),W.checkJs&&!sy(W)&&Gn.add(bl(f.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),W.emitDeclarationOnly&&(Xp(W)||ja(f.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),W.noEmit&&ja(f.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),W.emitDecoratorMetadata&&!W.experimentalDecorators&&ja(f.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),W.jsxFactory?(W.reactNamespace&&ja(f.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(W.jsx===4||W.jsx===5)&&ja(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",IN.get(""+W.jsx)),gI(W.jsxFactory,Ve)||em("jsxFactory",f.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,W.jsxFactory)):W.reactNamespace&&!Sp(W.reactNamespace,Ve)&&em("reactNamespace",f.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,W.reactNamespace),W.jsxFragmentFactory&&(W.jsxFactory||ja(f.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(W.jsx===4||W.jsx===5)&&ja(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",IN.get(""+W.jsx)),gI(W.jsxFragmentFactory,Ve)||em("jsxFragmentFactory",f.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,W.jsxFragmentFactory)),W.reactNamespace&&(W.jsx===4||W.jsx===5)&&ja(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",IN.get(""+W.jsx)),W.jsxImportSource&&W.jsx===2&&ja(f.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",IN.get(""+W.jsx)),W.preserveValueImports&&ld(W)<5&&ja(f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"preserveValueImports");let Pt=ld(W);W.verbatimModuleSyntax&&((Pt===2||Pt===3||Pt===4)&&ja(f.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),W.preserveValueImports&&nm("preserveValueImports","verbatimModuleSyntax"),W.importsNotUsedAsValues&&nm("importsNotUsedAsValues","verbatimModuleSyntax")),W.allowImportingTsExtensions&&!(W.noEmit||W.emitDeclarationOnly)&&em("allowImportingTsExtensions",f.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let rn=zd(W);if(W.resolvePackageJsonExports&&!HA(rn)&&ja(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),W.resolvePackageJsonImports&&!HA(rn)&&ja(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),W.customConditions&&!HA(rn)&&ja(f.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),rn===100&&!nF(Pt)&&Pt!==200&&em("moduleResolution",f.Option_0_can_only_be_used_when_module_is_set_to_preserve_or_to_es2015_or_later,"bundler"),HD[Pt]&&100<=Pt&&Pt<=199&&!(3<=rn&&rn<=99)){let tn=HD[Pt];em("moduleResolution",f.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,tn,tn)}else if(O1[rn]&&3<=rn&&rn<=99&&!(100<=Pt&&Pt<=199)){let tn=O1[rn];em("module",f.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,tn,tn)}if(!W.noEmit&&!W.suppressOutputPathCheck){let tn=_n(),Wn=new Set;uH(tn,Qr=>{W.emitDeclarationOnly||wn(Qr.jsFilePath,Wn),wn(Qr.declarationFilePath,Wn)})}function wn(tn,Wn){if(tn){let Qr=jn(tn);if(nt.has(Qr)){let Gr;W.configFilePath||(Gr=So(void 0,f.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),Gr=So(Gr,f.Cannot_write_file_0_because_it_would_overwrite_input_file,tn),D0(tn,eF(Gr))}let Kn=Wt.useCaseSensitiveFileNames()?Qr:D_(Qr);Wn.has(Kn)?D0(tn,bl(f.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,tn)):Wn.add(Kn)}}}function ge(){let Ne=W.ignoreDeprecations;if(Ne){if(Ne==="5.0")return new zf(Ne);H()}return zf.zero}function Xe(Ne,Ve,Tt,Pt){let rn=new zf(Ne),wn=new zf(Ve),tn=new zf(fe||uh),Wn=ge(),Qr=wn.compareTo(tn)!==1,Kn=!Qr&&Wn.compareTo(rn)===-1;(Qr||Kn)&&Pt((Gr,Qn,Mo)=>{Qr?Qn===void 0?Tt(Gr,Qn,Mo,f.Option_0_has_been_removed_Please_remove_it_from_your_configuration,Gr):Tt(Gr,Qn,Mo,f.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,Gr,Qn):Qn===void 0?Tt(Gr,Qn,Mo,f.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,Gr,Ve,Ne):Tt(Gr,Qn,Mo,f.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,Gr,Qn,Ve,Ne)})}function Mt(){function Ne(Ve,Tt,Pt,rn,...wn){if(Pt){let tn=So(void 0,f.Use_0_instead,Pt),Wn=So(tn,rn,...wn);Ri(!Tt,Ve,void 0,Wn)}else Ri(!Tt,Ve,void 0,rn,...wn)}Xe("5.0","5.5",Ne,Ve=>{W.target===0&&Ve("target","ES3"),W.noImplicitUseStrict&&Ve("noImplicitUseStrict"),W.keyofStringsOnly&&Ve("keyofStringsOnly"),W.suppressExcessPropertyErrors&&Ve("suppressExcessPropertyErrors"),W.suppressImplicitAnyIndexErrors&&Ve("suppressImplicitAnyIndexErrors"),W.noStrictGenericChecks&&Ve("noStrictGenericChecks"),W.charset&&Ve("charset"),W.out&&Ve("out",void 0,"outFile"),W.importsNotUsedAsValues&&Ve("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),W.preserveValueImports&&Ve("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Vn(Ne,Ve,Tt){function Pt(rn,wn,tn,Wn,...Qr){tm(Ve,Tt,Wn,...Qr)}Xe("5.0","5.5",Pt,rn=>{Ne.prepend&&rn("prepend")})}function jr(Ne,Ve,Tt,Pt){var rn;let wn,tn,Wn=jb(Ve)?Ve:void 0;Ne&&((rn=_e.get(Ne.path))==null||rn.forEach(Mo)),Ve&&Mo(Ve),Wn&&wn?.length===1&&(wn=void 0);let Qr=Wn&&jN(Zt,Wn),Kn=wn&&So(wn,f.The_file_is_in_the_program_because_Colon),Gr=Ne&&tq(Ne),Qn=So(Gr?Kn?[Kn,...Gr]:Gr:Kn,Tt,...Pt||je);return Qr&&aR(Qr)?aW(Qr.file,Qr.pos,Qr.end-Qr.pos,Qn,tn):eF(Qn,tn);function Mo(Ia){(wn||(wn=[])).push(iq(Zt,Ia)),!Wn&&jb(Ia)?Wn=Ia:Wn!==Ia&&(tn=pn(tn,ma(Ia))),Ia===Ve&&(Ve=void 0)}}function Or(Ne,Ve,Tt,Pt){(ft||(ft=[])).push({kind:1,file:Ne&&Ne.path,fileProcessingReason:Ve,diagnostic:Tt,args:Pt})}function zi(Ne,Ve,Tt){Gn.add(jr(Ne,void 0,Ve,Tt))}function ma(Ne){if(jb(Ne)){let Pt=jN(Zt,Ne),rn;switch(Ne.kind){case 3:rn=f.File_is_included_via_import_here;break;case 4:rn=f.File_is_included_via_reference_here;break;case 5:rn=f.File_is_included_via_type_library_reference_here;break;case 7:rn=f.File_is_included_via_library_reference_here;break;default:x.assertNever(Ne)}return aR(Pt)?Rc(Pt.file,Pt.pos,Pt.end-Pt.pos,rn):void 0}if(!W.configFile)return;let Ve,Tt;switch(Ne.kind){case 0:if(!W.configFile.configFileSpecs)return;let Pt=Qi(oe[Ne.index],Nr),rn=nq(Zt,Pt);if(rn){Ve=fW(W.configFile,"files",rn),Tt=f.File_is_matched_by_files_list_specified_here;break}let wn=rq(Zt,Pt);if(!wn||!fo(wn))return;Ve=fW(W.configFile,"include",wn),Tt=f.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let tn=x.checkDefined(re?.[Ne.index]),Wn=k4(de,re,(Mo,Ia,xd)=>Mo===tn?{sourceFile:Ia?.sourceFile||W.configFile,index:xd}:void 0);if(!Wn)return;let{sourceFile:Qr,index:Kn}=Wn,Gr=uL(Qr,"references",Mo=>Bd(Mo.initializer)?Mo.initializer:void 0);return Gr&&Gr.elements.length>Kn?vf(Qr,Gr.elements[Kn],Ne.kind===2?f.File_is_output_from_referenced_project_specified_here:f.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!W.types)return;Ve=Ay("types",Ne.typeReference),Tt=f.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ne.index!==void 0){Ve=Ay("lib",W.lib[Ne.index]),Tt=f.File_is_library_specified_here;break}let Qn=hc(Y2.type,(Mo,Ia)=>Mo===Wa(W)?Ia:void 0);Ve=Qn?_u("target",Qn):void 0,Tt=f.File_is_default_library_for_target_specified_here;break;default:x.assertNever(Ne)}return Ve&&vf(W.configFile,Ve,Tt)}function _a(){let Ne=W.suppressOutputPathCheck?void 0:dv(W);k4(de,re,(Ve,Tt,Pt)=>{let rn=(Tt?Tt.commandLine.projectReferences:de)[Pt],wn=Tt&&Tt.sourceFile;if(Vn(rn,wn,Pt),!Ve){tm(wn,Pt,f.File_0_not_found,rn.path);return}let tn=Ve.commandLine.options;if((!tn.composite||tn.noEmit)&&(Tt?Tt.commandLine.fileNames:oe).length&&(tn.composite||tm(wn,Pt,f.Referenced_project_0_must_have_setting_composite_Colon_true,rn.path),tn.noEmit&&tm(wn,Pt,f.Referenced_project_0_may_not_disable_emit,rn.path)),rn.prepend){let Wn=ss(tn);Wn?Wt.fileExists(Wn)||tm(wn,Pt,f.Output_file_0_from_project_1_does_not_exist,Wn,rn.path):tm(wn,Pt,f.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,rn.path)}!Tt&&Ne&&Ne===dv(tn)&&(tm(wn,Pt,f.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ne,rn.path),Ue.set(jn(Ne),!0))})}function pl(Ne,Ve,Tt,...Pt){let rn=!0;Xu(wn=>{fa(wn.initializer)&&nx(wn.initializer,Ne,tn=>{let Wn=tn.initializer;Bd(Wn)&&Wn.elements.length>Ve&&(Gn.add(vf(W.configFile,Wn.elements[Ve],Tt,...Pt)),rn=!1)})}),rn&&Gn.add(bl(Tt,...Pt))}function Gc(Ne,Ve,Tt,...Pt){let rn=!0;Xu(wn=>{fa(wn.initializer)&&yv(wn.initializer,Ne,Ve,void 0,Tt,...Pt)&&(rn=!1)}),rn&&Gn.add(bl(Tt,...Pt))}function nc(Ne,Ve){return nx(_g(),Ne,Ve)}function Xu(Ne){return nc("paths",Ne)}function _u(Ne,Ve){return nc(Ne,Tt=>ca(Tt.initializer)&&Tt.initializer.text===Ve?Tt.initializer:void 0)}function Ay(Ne,Ve){let Tt=_g();return Tt&&Gte(Tt,Ne,Ve)}function ja(Ne,Ve,Tt,Pt){Ri(!0,Ve,Tt,Ne,Ve,Tt,Pt)}function em(Ne,Ve,...Tt){Ri(!1,Ne,void 0,Ve,...Tt)}function tm(Ne,Ve,Tt,...Pt){let rn=uL(Ne||W.configFile,"references",wn=>Bd(wn.initializer)?wn.initializer:void 0);rn&&rn.elements.length>Ve?Gn.add(vf(Ne||W.configFile,rn.elements[Ve],Tt,...Pt)):Gn.add(bl(Tt,...Pt))}function Ri(Ne,Ve,Tt,Pt,...rn){let wn=_g();(!wn||!yv(wn,Ne,Ve,Tt,Pt,...rn))&&("messageText"in Pt?Gn.add(eF(Pt)):Gn.add(bl(Pt,...rn)))}function _g(){return Rt===void 0&&(Rt=nx(_C(W.configFile),"compilerOptions",Ne=>fa(Ne.initializer)?Ne.initializer:void 0)||!1),Rt||void 0}function yv(Ne,Ve,Tt,Pt,rn,...wn){let tn=!1;return nx(Ne,Tt,Wn=>{"messageText"in rn?Gn.add(eg(W.configFile,Ve?Wn.name:Wn.initializer,rn)):Gn.add(vf(W.configFile,Ve?Wn.name:Wn.initializer,rn,...wn)),tn=!0},Pt),tn}function nm(Ne,Ve){let Tt=_g();Tt?yv(Tt,!0,Ne,void 0,f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ne,Ve):ja(f.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ne,Ve)}function D0(Ne,Ve){Ue.set(jn(Ne),!0),Gn.add(Ve)}function C0(Ne){if(W.noEmit)return!1;let Ve=jn(Ne);if(Us(Ve))return!1;let Tt=ss(W);if(Tt)return kp(Ve,Tt)||kp(Ve,Yd(Tt)+".d.ts");if(W.declarationDir&&Bf(W.declarationDir,Ve,Nr,!Wt.useCaseSensitiveFileNames()))return!0;if(W.outDir)return Bf(W.outDir,Ve,Nr,!Wt.useCaseSensitiveFileNames());if($l(Ve,Px)||Yc(Ve)){let Pt=Yd(Ve);return!!Us(Pt+".ts")||!!Us(Pt+".tsx")}return!1}function kp(Ne,Ve){return Xh(Ne,Ve,Nr,!Wt.useCaseSensitiveFileNames())===0}function u_(){return Wt.getSymlinkCache?Wt.getSymlinkCache():(ce||(ce=IV(Nr,Y)),Ee&&!ce.hasProcessedResolutions()&&ce.setSymlinksFromResolutions(M,te,Le),ce)}function Op(Ne,Ve){var Tt;let Pt=((Tt=An(Ne))==null?void 0:Tt.commandLine.options)||W;return CH(Ne,Ve,Pt)}function hg(Ne,Ve){return Op(Ne,Ak(Ne,Ve))}}function P7e(e){let t,r=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,o=e.compilerHost.getDirectories,s=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ca,fileExists:p};e.compilerHost.fileExists=p;let l;return i&&(l=e.compilerHost.directoryExists=S=>i.call(e.compilerHost,S)?(v(S),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(A=>{let C=ss(A.commandLine.options);if(C)t.add(Ur(e.toPath(C)));else{let R=A.commandLine.options.declarationDir||A.commandLine.options.outDir;R&&t.add(e.toPath(R))}})),E(S,!1)):!1),o&&(e.compilerHost.getDirectories=S=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,S)?o.call(e.compilerHost,S):[]),s&&(e.compilerHost.realpath=S=>{var A;return((A=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:A.get(e.toPath(S)))||s.call(e.compilerHost,S)}),{onProgramCreateComplete:d,fileExists:p,directoryExists:l};function d(){e.compilerHost.fileExists=r,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=o}function p(S){return r.call(e.compilerHost,S)?!0:!e.getResolvedProjectReferences()||!Yc(S)?!1:E(S,!0)}function h(S){let A=e.getSourceOfProjectReferenceRedirect(e.toPath(S));return A!==void 0?fo(A)?r.call(e.compilerHost,A):!0:void 0}function m(S){let A=e.toPath(S),C=`${A}${Os}`;return k_(t,R=>A===R||Ui(R,C)||Ui(A,`${R}/`))}function v(S){var A;if(!e.getResolvedProjectReferences()||KC(S)||!s||!S.includes(H_))return;let C=e.getSymlinkCache(),R=_c(e.toPath(S));if((A=C.getSymlinkedDirectories())!=null&&A.has(R))return;let L=Yo(s.call(e.compilerHost,S)),G;if(L===S||(G=_c(e.toPath(L)))===R){C.setSymlinkedDirectory(R,!1);return}C.setSymlinkedDirectory(S,{real:_c(L),realPath:G})}function E(S,A){var C;let R=A?F=>h(F):F=>m(F),L=R(S);if(L!==void 0)return L;let G=e.getSymlinkCache(),U=G.getSymlinkedDirectories();if(!U)return!1;let K=e.toPath(S);return K.includes(H_)?A&&((C=G.getSymlinkedFiles())!=null&&C.has(K))?!0:cM(U.entries(),([F,oe])=>{if(!oe||!Ui(K,F))return;let W=R(K.replace(F,oe.realPath));if(A&&W){let $=Qi(S,e.compilerHost.getCurrentDirectory());G.setSymlinkedFile(K,`${oe.real}${$.replace(new RegExp(F,"i"),"")}`)}return W})||!1:!1}}function wH(e,t,r,i){let o=e.getCompilerOptions();if(o.noEmit)return e.getSemanticDiagnostics(t,i),t||ss(o)?G4:e.emitBuildInfo(r,i);if(!o.noEmitOnError)return;let s=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(s.length===0&&Xp(e.getCompilerOptions())&&(s=e.getDeclarationDiagnostics(void 0,i)),!s.length)return;let l;if(!t&&!ss(o)){let d=e.emitBuildInfo(r,i);d.diagnostics&&(s=[...s,...d.diagnostics]),l=d.emittedFiles}return{diagnostics:s,sourceMaps:void 0,emittedFiles:l,emitSkipped:!0}}function W4(e,t){return Cr(e,r=>!r.skippedOn||!t[r.skippedOn])}function F4(e,t=e){return{fileExists:r=>t.fileExists(r),readDirectory(r,i,o,s,l){return x.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(r,i,o,s,l)},readFile:r=>t.readFile(r),directoryExists:Wo(t,t.directoryExists),getDirectories:Wo(t,t.getDirectories),realpath:Wo(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||ub,trace:e.trace?r=>e.trace(r):void 0}}function WH(e,t,r,i){if(!e)return je;let o;for(let s=0;s<e.length;s++){let l=e[s],d=t(l,s);if(l.prepend&&d&&d.options){if(!ss(d.options))continue;let{jsFilePath:h,sourceMapFilePath:m,declarationFilePath:v,declarationMapPath:E,buildInfoPath:S}=zN(d.options,!0),A=oj(r,h,m,v,E,S,i,d.options);(o||(o=[])).push(A)}}return o||je}function sR(e){return dq(e.path)}function FH(e,{extension:t},{isDeclarationFile:r}){switch(t){case".ts":case".d.ts":case".mts":case".d.mts":case".cts":case".d.cts":return;case".tsx":return i();case".jsx":return i()||o();case".js":case".mjs":case".cjs":return o();case".json":return s();default:return l()}function i(){return e.jsx?void 0:f.Module_0_was_resolved_to_1_but_jsx_is_not_set}function o(){return sy(e)||!Fd(e,"noImplicitAny")?void 0:f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type}function s(){return Mb(e)?void 0:f.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used}function l(){return r||e.allowArbitraryExtensions?void 0:f.Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set}}function nTe({imports:e,moduleAugmentations:t}){let r=e.map(i=>i);for(let i of t)i.kind===11&&r.push(i);return r}function Ak({imports:e,moduleAugmentations:t},r){if(r<e.length)return e[r];let i=e.length;for(let o of t)if(o.kind===11){if(r===i)return o;i++}x.fail("should never ask for module name at index higher than possible module name")}var zH,BH,GH,Nae,Pae,rTe,Mae,Lae,z4,iTe,lR,B4,G4,M7e=pt({"src/compiler/program.ts"(){"use strict";wo(),mS(),zH=(e=>(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(zH||{}),BH="\x1B[7m",GH=" ",Nae="\x1B[0m",Pae="...",rTe=" ",Mae=" ",Lae={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},z4={getName:Cae,getMode:(e,t,r)=>DH(t,e,r)},iTe={getName:PH,getMode:(e,t)=>Ek(e,t?.impliedNodeFormat)},lR="__inferred type names__.ts",B4=new Set([f.Cannot_redeclare_block_scoped_variable_0.code,f.A_module_cannot_have_multiple_default_exports.code,f.Another_export_default_is_here.code,f.The_first_export_default_is_here.code,f.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,f.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,f.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,f.constructor_is_a_reserved_word.code,f.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,f.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,f.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,f.Invalid_use_of_0_in_strict_mode.code,f.A_label_is_not_allowed_here.code,f.with_statements_are_not_allowed_in_strict_mode.code,f.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,f.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,f.A_class_declaration_without_the_default_modifier_must_have_a_name.code,f.A_class_member_cannot_have_the_0_keyword.code,f.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,f.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,f.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,f.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,f.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,f.A_destructuring_declaration_must_have_an_initializer.code,f.A_get_accessor_cannot_have_parameters.code,f.A_rest_element_cannot_contain_a_binding_pattern.code,f.A_rest_element_cannot_have_a_property_name.code,f.A_rest_element_cannot_have_an_initializer.code,f.A_rest_element_must_be_last_in_a_destructuring_pattern.code,f.A_rest_parameter_cannot_have_an_initializer.code,f.A_rest_parameter_must_be_last_in_a_parameter_list.code,f.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,f.A_return_statement_cannot_be_used_inside_a_class_static_block.code,f.A_set_accessor_cannot_have_rest_parameter.code,f.A_set_accessor_must_have_exactly_one_parameter.code,f.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_export_declaration_cannot_have_modifiers.code,f.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,f.An_import_declaration_cannot_have_modifiers.code,f.An_object_member_cannot_be_declared_optional.code,f.Argument_of_dynamic_import_cannot_be_spread_element.code,f.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,f.Cannot_redeclare_identifier_0_in_catch_clause.code,f.Catch_clause_variable_cannot_have_an_initializer.code,f.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,f.Classes_can_only_extend_a_single_class.code,f.Classes_may_not_have_a_field_named_constructor.code,f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,f.Duplicate_label_0.code,f.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,f.for_await_loops_cannot_be_used_inside_a_class_static_block.code,f.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,f.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,f.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,f.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,f.Jump_target_cannot_cross_function_boundary.code,f.Line_terminator_not_permitted_before_arrow.code,f.Modifiers_cannot_appear_here.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,f.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,f.Private_identifiers_are_not_allowed_outside_class_bodies.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,f.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,f.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,f.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,f.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,f.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,f.Trailing_comma_not_allowed.code,f.Variable_declaration_list_cannot_be_empty.code,f._0_and_1_operations_cannot_be_mixed_without_parentheses.code,f._0_expected.code,f._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,f._0_list_cannot_be_empty.code,f._0_modifier_already_seen.code,f._0_modifier_cannot_appear_on_a_constructor_declaration.code,f._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,f._0_modifier_cannot_appear_on_a_parameter.code,f._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,f._0_modifier_cannot_be_used_here.code,f._0_modifier_must_precede_1_modifier.code,f._0_declarations_can_only_be_declared_inside_a_block.code,f._0_declarations_must_be_initialized.code,f.extends_clause_already_seen.code,f.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,f.Class_constructor_may_not_be_a_generator.code,f.Class_constructor_may_not_be_an_accessor.code,f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Private_field_0_must_be_declared_in_an_enclosing_class.code,f.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),G4={diagnostics:je,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),L7e=pt({"src/compiler/builderStatePublic.ts"(){"use strict"}});function kae(e,t,r,i,o,s){let l=[],{emitSkipped:d,diagnostics:p}=e.emit(t,h,i,r,o,s);return{outputFiles:l,emitSkipped:d,diagnostics:p};function h(m,v,E){l.push({name:m,writeByteOrderMark:E,text:v})}}var Qf,k7e=pt({"src/compiler/builderState.ts"(){"use strict";wo(),(e=>{function t(){function q(H,ee,le){let Ee={getKeys:ce=>ee.get(ce),getValues:ce=>H.get(ce),keys:()=>H.keys(),deleteKey:ce=>{(le||(le=new Set)).add(ce);let Z=H.get(ce);return Z?(Z.forEach(pe=>i(ee,pe,ce)),H.delete(ce),!0):!1},set:(ce,Z)=>{le?.delete(ce);let pe=H.get(ce);return H.set(ce,Z),pe?.forEach(Ae=>{Z.has(Ae)||i(ee,Ae,ce)}),Z.forEach(Ae=>{pe?.has(Ae)||r(ee,Ae,ce)}),Ee}};return Ee}return q(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function r(q,H,ee){let le=q.get(H);le||(le=new Set,q.set(H,le)),le.add(ee)}function i(q,H,ee){let le=q.get(H);return le?.delete(ee)?(le.size||q.delete(H),!0):!1}function o(q){return Fi(q.declarations,H=>{var ee;return(ee=Nn(H))==null?void 0:ee.resolvedPath})}function s(q,H){let ee=q.getSymbolAtLocation(H);return ee&&o(ee)}function l(q,H,ee,le){return ks(q.getProjectReferenceRedirect(H)||H,ee,le)}function d(q,H,ee){let le;if(H.imports&&H.imports.length>0){let pe=q.getTypeChecker();for(let Ae of H.imports){let Oe=s(pe,Ae);Oe?.forEach(Z)}}let Ee=Ur(H.resolvedPath);if(H.referencedFiles&&H.referencedFiles.length>0)for(let pe of H.referencedFiles){let Ae=l(q,pe.fileName,Ee,ee);Z(Ae)}if(q.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:pe})=>{if(!pe)return;let Ae=pe.resolvedFileName,Oe=l(q,Ae,Ee,ee);Z(Oe)},H),H.moduleAugmentations.length){let pe=q.getTypeChecker();for(let Ae of H.moduleAugmentations){if(!ca(Ae))continue;let Oe=pe.getSymbolAtLocation(Ae);Oe&&ce(Oe)}}for(let pe of q.getTypeChecker().getAmbientModules())pe.declarations&&pe.declarations.length>1&&ce(pe);return le;function ce(pe){if(pe.declarations)for(let Ae of pe.declarations){let Oe=Nn(Ae);Oe&&Oe!==H&&Z(Oe.resolvedPath)}}function Z(pe){(le||(le=new Set)).add(pe)}}function p(q,H){return H&&!H.referencedMap==!q}e.canReuseOldState=p;function h(q,H,ee){var le,Ee,ce;let Z=new Map,pe=q.getCompilerOptions(),Ae=ss(pe),Oe=pe.module!==0&&!Ae?t():void 0,_e=Oe?t():void 0,be=p(Oe,H);q.getTypeChecker();for(let Te of q.getSourceFiles()){let De=x.checkDefined(Te.version,"Program intended to be used with Builder should have source files with versions set"),ft=be?(le=H.oldSignatures)==null?void 0:le.get(Te.resolvedPath):void 0,he=ft===void 0?be?(Ee=H.fileInfos.get(Te.resolvedPath))==null?void 0:Ee.signature:void 0:ft||void 0;if(Oe){let Le=d(q,Te,q.getCanonicalFileName);if(Le&&Oe.set(Te.resolvedPath,Le),be){let Ke=(ce=H.oldExportedModulesMap)==null?void 0:ce.get(Te.resolvedPath),Dt=Ke===void 0?H.exportedModulesMap.getValues(Te.resolvedPath):Ke||void 0;Dt&&_e.set(Te.resolvedPath,Dt)}}Z.set(Te.resolvedPath,{version:De,signature:he,affectsGlobalScope:Ae?void 0:W(Te)||void 0,impliedFormat:Te.impliedNodeFormat})}return{fileInfos:Z,referencedMap:Oe,exportedModulesMap:_e,useFileVersionAsSignature:!ee&&!be}}e.create=h;function m(q){q.allFilesExcludingDefaultLibraryFile=void 0,q.allFileNames=void 0}e.releaseCache=m;function v(q,H,ee,le,Ee){var ce,Z;let pe=E(q,H,ee,le,Ee);return(ce=q.oldSignatures)==null||ce.clear(),(Z=q.oldExportedModulesMap)==null||Z.clear(),pe}e.getFilesAffectedBy=v;function E(q,H,ee,le,Ee){let ce=H.getSourceFileByPath(ee);return ce?C(q,H,ce,le,Ee)?(q.referencedMap?fe:de)(q,H,ce,le,Ee):[ce]:je}e.getFilesAffectedByWithOldState=E;function S(q,H,ee){q.fileInfos.get(ee).signature=H,(q.hasCalledUpdateShapeSignature||(q.hasCalledUpdateShapeSignature=new Set)).add(ee)}e.updateSignatureOfFile=S;function A(q,H,ee,le,Ee){q.emit(H,(ce,Z,pe,Ae,Oe,_e)=>{x.assert(Yc(ce),`File extension for signature expected to be dts: Got:: ${ce}`),Ee(jH(q,H,Z,le,_e),Oe)},ee,!0,void 0,!0)}e.computeDtsSignature=A;function C(q,H,ee,le,Ee,ce=q.useFileVersionAsSignature){var Z;if((Z=q.hasCalledUpdateShapeSignature)!=null&&Z.has(ee.resolvedPath))return!1;let pe=q.fileInfos.get(ee.resolvedPath),Ae=pe.signature,Oe;if(!ee.isDeclarationFile&&!ce&&A(H,ee,le,Ee,(_e,be)=>{Oe=_e,Oe!==Ae&&R(q,ee,be[0].exportedModulesFromDeclarationEmit)}),Oe===void 0&&(Oe=ee.version,q.exportedModulesMap&&Oe!==Ae)){(q.oldExportedModulesMap||(q.oldExportedModulesMap=new Map)).set(ee.resolvedPath,q.exportedModulesMap.getValues(ee.resolvedPath)||!1);let _e=q.referencedMap?q.referencedMap.getValues(ee.resolvedPath):void 0;_e?q.exportedModulesMap.set(ee.resolvedPath,_e):q.exportedModulesMap.deleteKey(ee.resolvedPath)}return(q.oldSignatures||(q.oldSignatures=new Map)).set(ee.resolvedPath,Ae||!1),(q.hasCalledUpdateShapeSignature||(q.hasCalledUpdateShapeSignature=new Set)).add(ee.resolvedPath),pe.signature=Oe,Oe!==Ae}e.updateShapeSignature=C;function R(q,H,ee){if(!q.exportedModulesMap)return;(q.oldExportedModulesMap||(q.oldExportedModulesMap=new Map)).set(H.resolvedPath,q.exportedModulesMap.getValues(H.resolvedPath)||!1);let le=L(ee);le?q.exportedModulesMap.set(H.resolvedPath,le):q.exportedModulesMap.deleteKey(H.resolvedPath)}e.updateExportedModules=R;function L(q){let H;return q?.forEach(ee=>o(ee).forEach(le=>(H??(H=new Set)).add(le))),H}e.getExportedModules=L;function G(q,H,ee){let le=H.getCompilerOptions();if(ss(le)||!q.referencedMap||W(ee))return U(q,H);let Ee=new Set,ce=[ee.resolvedPath];for(;ce.length;){let Z=ce.pop();if(!Ee.has(Z)){Ee.add(Z);let pe=q.referencedMap.getValues(Z);if(pe)for(let Ae of pe.keys())ce.push(Ae)}}return bo(WD(Ee.keys(),Z=>{var pe;return((pe=H.getSourceFileByPath(Z))==null?void 0:pe.fileName)??Z}))}e.getAllDependencies=G;function U(q,H){if(!q.allFileNames){let ee=H.getSourceFiles();q.allFileNames=ee===je?je:ee.map(le=>le.fileName)}return q.allFileNames}function K(q,H){let ee=q.referencedMap.getKeys(H);return ee?bo(ee.keys()):[]}e.getReferencedByPaths=K;function F(q){for(let H of q.statements)if(!iW(H))return!1;return!0}function oe(q){return ct(q.moduleAugmentations,H=>qm(H.parent))}function W(q){return oe(q)||!sp(q)&&!yf(q)&&!F(q)}function $(q,H,ee){if(q.allFilesExcludingDefaultLibraryFile)return q.allFilesExcludingDefaultLibraryFile;let le;ee&&Ee(ee);for(let ce of H.getSourceFiles())ce!==ee&&Ee(ce);return q.allFilesExcludingDefaultLibraryFile=le||je,q.allFilesExcludingDefaultLibraryFile;function Ee(ce){H.isSourceFileDefaultLibrary(ce)||(le||(le=[])).push(ce)}}e.getAllFilesExcludingDefaultLibraryFile=$;function de(q,H,ee){let le=H.getCompilerOptions();return le&&ss(le)?[ee]:$(q,H,ee)}function fe(q,H,ee,le,Ee){if(W(ee))return $(q,H,ee);let ce=H.getCompilerOptions();if(ce&&(xf(ce)||ss(ce)))return[ee];let Z=new Map;Z.set(ee.resolvedPath,ee);let pe=K(q,ee.resolvedPath);for(;pe.length>0;){let Ae=pe.pop();if(!Z.has(Ae)){let Oe=H.getSourceFileByPath(Ae);Z.set(Ae,Oe),Oe&&C(q,H,Oe,le,Ee)&&pe.push(...K(q,Oe.resolvedPath))}}return bo(WD(Z.values(),Ae=>Ae))}})(Qf||(Qf={}))}});function vy(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),Xp(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function cR(e,t){let r=t&&(jg(t)?t:vy(t)),i=jg(e)?e:vy(e);if(r===i)return 0;if(!r||!i)return i;let o=r^i,s=0;return o&7&&(s=i&7),o&24&&(s=s|i&24),s}function O7e(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!k_(e,r=>!t.has(r))}function w7e(e,t){var r,i;let o=Qf.create(e,t,!1);o.program=e;let s=e.getCompilerOptions();o.compilerOptions=s;let l=ss(s);l?s.composite&&t?.outSignature&&l===ss(t?.compilerOptions)&&(o.outSignature=t.outSignature&&aTe(s,t.compilerOptions,t.outSignature)):o.semanticDiagnosticsPerFile=new Map,o.changedFilesSet=new Set,o.latestChangedDtsFile=s.composite?t?.latestChangedDtsFile:void 0;let d=Qf.canReuseOldState(o.referencedMap,t),p=d?t.compilerOptions:void 0,h=d&&t.semanticDiagnosticsPerFile&&!!o.semanticDiagnosticsPerFile&&!Yne(s,p),m=s.composite&&t?.emitSignatures&&!l&&!Qne(s,t.compilerOptions);d?((r=t.changedFilesSet)==null||r.forEach(C=>o.changedFilesSet.add(C)),!l&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(o.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),o.seenAffectedFiles=new Set),o.programEmitPending=t.programEmitPending):o.buildInfoEmitPending=!0;let v=o.referencedMap,E=d?t.referencedMap:void 0,S=h&&!s.skipLibCheck==!p.skipLibCheck,A=S&&!s.skipDefaultLibCheck==!p.skipDefaultLibCheck;if(o.fileInfos.forEach((C,R)=>{var L;let G,U;if(!d||!(G=t.fileInfos.get(R))||G.version!==C.version||G.impliedFormat!==C.impliedFormat||!O7e(U=v&&v.getValues(R),E&&E.getValues(R))||U&&k_(U,K=>!o.fileInfos.has(K)&&t.fileInfos.has(K)))oTe(o,R);else{let K=e.getSourceFileByPath(R),F=(L=t.emitDiagnosticsPerFile)==null?void 0:L.get(R);if(F&&(o.emitDiagnosticsPerFile??(o.emitDiagnosticsPerFile=new Map)).set(R,t.hasReusableDiagnostic?cTe(F,e):sTe(F,e)),h){if(K.isDeclarationFile&&!S||K.hasNoDefaultLib&&!A)return;let oe=t.semanticDiagnosticsPerFile.get(R);oe&&(o.semanticDiagnosticsPerFile.set(R,t.hasReusableDiagnostic?cTe(oe,e):sTe(oe,e)),(o.semanticDiagnosticsFromOldState??(o.semanticDiagnosticsFromOldState=new Set)).add(R))}}if(m){let K=t.emitSignatures.get(R);K&&(o.emitSignatures??(o.emitSignatures=new Map)).set(R,aTe(s,t.compilerOptions,K))}}),d&&hc(t.fileInfos,(C,R)=>o.fileInfos.has(R)?!1:l||C.affectsGlobalScope?!0:(o.buildInfoEmitPending=!0,!1)))Qf.getAllFilesExcludingDefaultLibraryFile(o,e,void 0).forEach(C=>oTe(o,C.resolvedPath));else if(p){let C=$ne(s,p)?vy(s):cR(s,p);C!==0&&(l?o.programEmitPending=o.programEmitPending?o.programEmitPending|C:C:(e.getSourceFiles().forEach(R=>{o.changedFilesSet.has(R.resolvedPath)||Bae(o,R.resolvedPath,C)}),x.assert(!o.seenAffectedFiles||!o.seenAffectedFiles.size),o.seenAffectedFiles=o.seenAffectedFiles||new Set,o.buildInfoEmitPending=!0))}return l&&!o.changedFilesSet.size&&(d&&(o.bundle=t.bundle),ct(e.getProjectReferences(),C=>!!C.prepend)&&(o.programEmitPending=vy(s))),o}function oTe(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function aTe(e,t,r){return!!e.declarationMap==!!t.declarationMap?r:fo(r)?[r]:r[0]}function sTe(e,t){return e.length?sc(e,r=>{if(fo(r.messageText))return r;let i=Oae(r.messageText,r.file,t,o=>{var s;return(s=o.repopulateInfo)==null?void 0:s.call(o)});return i===r.messageText?r:{...r,messageText:i}}):e}function Oae(e,t,r,i){let o=i(e);if(o)return{...Q8(t,r,o.moduleReference,o.mode,o.packageName||o.moduleReference),next:lTe(e.next,t,r,i)};let s=lTe(e.next,t,r,i);return s===e.next?e:{...e,next:s}}function lTe(e,t,r,i){return sc(e,o=>Oae(o,t,r,i))}function cTe(e,t){if(!e.length)return je;let r;return e.map(o=>{let s=dTe(o,t,i);s.reportsUnnecessary=o.reportsUnnecessary,s.reportsDeprecated=o.reportDeprecated,s.source=o.source,s.skippedOn=o.skippedOn;let{relatedInformation:l}=o;return s.relatedInformation=l?l.length?l.map(d=>dTe(d,t,i)):[]:void 0,s});function i(o){return r??(r=Ur(Qi(dv(t.getCompilerOptions()),t.getCurrentDirectory()))),ks(o,r,t.getCanonicalFileName)}}function dTe(e,t,r){let{file:i}=e,o=i?t.getSourceFileByPath(r(i)):void 0;return{...e,file:o,messageText:fo(e.messageText)?e.messageText:Oae(e.messageText,o,t,s=>s.info)}}function W7e(e){Qf.releaseCache(e),e.program=void 0}function F7e(e){let t=ss(e.compilerOptions);return x.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0,buildInfoEmitPending:e.buildInfoEmitPending,emitDiagnosticsPerFile:e.emitDiagnosticsPerFile&&new Map(e.emitDiagnosticsPerFile)}}function z7e(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,e.buildInfoEmitPending=t.buildInfoEmitPending,e.emitDiagnosticsPerFile=t.emitDiagnosticsPerFile,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function uTe(e,t){x.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function pTe(e,t,r){for(var i,o;;){let{affectedFiles:s}=e;if(s){let h=e.seenAffectedFiles,m=e.affectedFilesIndex;for(;m<s.length;){let v=s[m];if(!h.has(v.resolvedPath))return e.affectedFilesIndex=m,Bae(e,v.resolvedPath,vy(e.compilerOptions)),j7e(e,v,t,r),v;m++}e.changedFilesSet.delete(e.currentChangedFilePath),e.currentChangedFilePath=void 0,(i=e.oldSignatures)==null||i.clear(),(o=e.oldExportedModulesMap)==null||o.clear(),e.affectedFiles=void 0}let l=e.changedFilesSet.keys().next();if(l.done)return;let d=x.checkDefined(e.program),p=d.getCompilerOptions();if(ss(p))return x.assert(!e.semanticDiagnosticsPerFile),d;e.affectedFiles=Qf.getFilesAffectedByWithOldState(e,d,l.value,t,r),e.currentChangedFilePath=l.value,e.affectedFilesIndex=0,e.seenAffectedFiles||(e.seenAffectedFiles=new Set)}}function B7e(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size){if(!t)return e.affectedFilesPendingEmit=void 0;e.affectedFilesPendingEmit.forEach((i,o)=>{let s=i&7;s?e.affectedFilesPendingEmit.set(o,s):e.affectedFilesPendingEmit.delete(o)})}}function G7e(e,t){var r;if((r=e.affectedFilesPendingEmit)!=null&&r.size)return hc(e.affectedFilesPendingEmit,(i,o)=>{var s;let l=e.program.getSourceFileByPath(o);if(!l||!LS(l,e.program)){e.affectedFilesPendingEmit.delete(o);return}let d=(s=e.seenEmittedFiles)==null?void 0:s.get(l.resolvedPath),p=cR(i,d);if(t&&(p=p&24),p)return{affectedFile:l,emitKind:p}})}function V7e(e){var t;if((t=e.emitDiagnosticsPerFile)!=null&&t.size)return hc(e.emitDiagnosticsPerFile,(r,i)=>{var o;let s=e.program.getSourceFileByPath(i);if(!s||!LS(s,e.program)){e.emitDiagnosticsPerFile.delete(i);return}let l=((o=e.seenEmittedFiles)==null?void 0:o.get(s.resolvedPath))||0;if(!(l&24))return{affectedFile:s,diagnostics:r,seenKind:l}})}function fTe(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=x.checkDefined(e.program),r=t.getCompilerOptions();an(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!UC(i,r,t)&&wae(e,i.resolvedPath))}}function j7e(e,t,r,i){if(wae(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){fTe(e),Qf.updateShapeSignature(e,x.checkDefined(e.program),t,r,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||U7e(e,t,r,i)}function VH(e,t,r,i){if(wae(e,t),!e.changedFilesSet.has(t)){let o=x.checkDefined(e.program),s=o.getSourceFileByPath(t);s&&(Qf.updateShapeSignature(e,o,s,r,i,!0),Xp(e.compilerOptions)&&Bae(e,t,e.compilerOptions.declarationMap?24:8))}}function wae(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function mTe(e,t){let r=x.checkDefined(e.oldSignatures).get(t)||void 0;return x.checkDefined(e.fileInfos.get(t)).signature!==r}function Wae(e,t,r,i){var o;return(o=e.fileInfos.get(t))!=null&&o.affectsGlobalScope?(Qf.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(s=>VH(e,s.resolvedPath,r,i)),fTe(e),!0):!1}function U7e(e,t,r,i){var o;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!mTe(e,t.resolvedPath))return;if(xf(e.compilerOptions)){let l=new Map;l.set(t.resolvedPath,!0);let d=Qf.getReferencedByPaths(e,t.resolvedPath);for(;d.length>0;){let p=d.pop();if(!l.has(p)){if(l.set(p,!0),Wae(e,p,r,i))return;if(VH(e,p,r,i),mTe(e,p)){let h=x.checkDefined(e.program).getSourceFileByPath(p);d.push(...Qf.getReferencedByPaths(e,h.resolvedPath))}}}}let s=new Set;(o=e.exportedModulesMap.getKeys(t.resolvedPath))==null||o.forEach(l=>{if(Wae(e,l,r,i))return!0;let d=e.referencedMap.getKeys(l);return d&&k_(d,p=>_Te(e,p,s,r,i))})}function _Te(e,t,r,i,o){var s,l;if(db(r,t)){if(Wae(e,t,i,o))return!0;VH(e,t,i,o),(s=e.exportedModulesMap.getKeys(t))==null||s.forEach(d=>_Te(e,d,r,i,o)),(l=e.referencedMap.getKeys(t))==null||l.forEach(d=>!r.has(d)&&VH(e,d,i,o))}}function Fae(e,t,r){return ro(H7e(e,t,r),x.checkDefined(e.program).getProgramDiagnostics(t))}function H7e(e,t,r){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let s=e.semanticDiagnosticsPerFile.get(i);if(s)return W4(s,e.compilerOptions)}let o=x.checkDefined(e.program).getBindAndCheckDiagnostics(t,r);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,o),W4(o,e.compilerOptions)}function zae(e){return!!ss(e.options||{})}function q7e(e,t){var r,i,o;let s=x.checkDefined(e.program).getCurrentDirectory(),l=Ur(Qi(dv(e.compilerOptions),s)),d=e.latestChangedDtsFile?oe(e.latestChangedDtsFile):void 0,p=[],h=new Map,m=[];if(ss(e.compilerOptions)){let pe=bo(e.fileInfos.entries(),([De,ft])=>{let he=$(De);return fe(De,he),ft.impliedFormat?{version:ft.version,impliedFormat:ft.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:ft.version}),Ae={fileNames:p,fileInfos:pe,root:m,options:q(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:d,pendingEmit:e.programEmitPending?e.programEmitPending===vy(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:Oe,dts:_e,commonSourceDirectory:be,sourceFiles:Te}=t;return e.bundle=t={commonSourceDirectory:be,sourceFiles:Te,js:Oe||(e.compilerOptions.emitDeclarationOnly||(r=e.bundle)==null?void 0:r.js),dts:_e||(Xp(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},_k(Ae,t)}let v,E,S,A=bo(e.fileInfos.entries(),([pe,Ae])=>{var Oe,_e;let be=$(pe);fe(pe,be),x.assert(p[be-1]===W(pe));let Te=(Oe=e.oldSignatures)==null?void 0:Oe.get(pe),De=Te!==void 0?Te||void 0:Ae.signature;if(e.compilerOptions.composite){let ft=e.program.getSourceFileByPath(pe);if(!yf(ft)&&LS(ft,e.program)){let he=(_e=e.emitSignatures)==null?void 0:_e.get(pe);he!==De&&(S||(S=[])).push(he===void 0?be:[be,!fo(he)&&he[0]===De?je:he])}}return Ae.version===De?Ae.affectsGlobalScope||Ae.impliedFormat?{version:Ae.version,signature:void 0,affectsGlobalScope:Ae.affectsGlobalScope,impliedFormat:Ae.impliedFormat}:Ae.version:De!==void 0?Te===void 0?Ae:{version:Ae.version,signature:De,affectsGlobalScope:Ae.affectsGlobalScope,impliedFormat:Ae.impliedFormat}:{version:Ae.version,signature:!1,affectsGlobalScope:Ae.affectsGlobalScope,impliedFormat:Ae.impliedFormat}}),C;e.referencedMap&&(C=bo(e.referencedMap.keys()).sort(gd).map(pe=>[$(pe),de(e.referencedMap.getValues(pe))]));let R;e.exportedModulesMap&&(R=Fi(bo(e.exportedModulesMap.keys()).sort(gd),pe=>{var Ae;let Oe=(Ae=e.oldExportedModulesMap)==null?void 0:Ae.get(pe);if(Oe===void 0)return[$(pe),de(e.exportedModulesMap.getValues(pe))];if(Oe)return[$(pe),de(Oe)]}));let L=ee(e.semanticDiagnosticsPerFile),G;if((o=e.affectedFilesPendingEmit)!=null&&o.size){let pe=vy(e.compilerOptions),Ae=new Set;for(let Oe of bo(e.affectedFilesPendingEmit.keys()).sort(gd))if(db(Ae,Oe)){let _e=e.program.getSourceFileByPath(Oe);if(!_e||!LS(_e,e.program))continue;let be=$(Oe),Te=e.affectedFilesPendingEmit.get(Oe);(G||(G=[])).push(Te===pe?be:Te===8?[be]:[be,Te])}}let U;if(e.changedFilesSet.size)for(let pe of bo(e.changedFilesSet.keys()).sort(gd))(U||(U=[])).push($(pe));let K=ee(e.emitDiagnosticsPerFile),F={fileNames:p,fileInfos:A,root:m,options:q(e.compilerOptions),fileIdsList:v,referencedMap:C,exportedModulesMap:R,semanticDiagnosticsPerFile:L,emitDiagnosticsPerFile:K,affectedFilesPendingEmit:G,changeFileSet:U,emitSignatures:S,latestChangedDtsFile:d};return _k(F,t);function oe(pe){return W(Qi(pe,s))}function W(pe){return ME(Gf(l,pe,e.program.getCanonicalFileName))}function $(pe){let Ae=h.get(pe);return Ae===void 0&&(p.push(W(pe)),h.set(pe,Ae=p.length)),Ae}function de(pe){let Ae=bo(pe.keys(),$).sort(Ms),Oe=Ae.join(),_e=E?.get(Oe);return _e===void 0&&((v||(v=[])).push(Ae),(E||(E=new Map)).set(Oe,_e=v.length)),_e}function fe(pe,Ae){let Oe=e.program.getSourceFile(pe);if(!e.program.getFileIncludeReasons().get(Oe.path).some(De=>De.kind===0))return;if(!m.length)return m.push(Ae);let _e=m[m.length-1],be=oo(_e);if(be&&_e[1]===Ae-1)return _e[1]=Ae;if(be||m.length===1||_e!==Ae-1)return m.push(Ae);let Te=m[m.length-2];return!jg(Te)||Te!==_e-1?m.push(Ae):(m[m.length-2]=[Te,Ae],m.length=m.length-1)}function q(pe){let Ae,{optionsNameMap:Oe}=Xx();for(let _e of fh(pe).sort(gd)){let be=Oe.get(_e.toLowerCase());be?.affectsBuildInfo&&((Ae||(Ae={}))[_e]=H(be,pe[_e]))}return Ae}function H(pe,Ae){if(pe){if(x.assert(pe.type!=="listOrElement"),pe.type==="list"){let Oe=Ae;if(pe.element.isFilePath&&Oe.length)return Oe.map(oe)}else if(pe.isFilePath)return oe(Ae)}return Ae}function ee(pe){let Ae;if(pe)for(let Oe of bo(pe.keys()).sort(gd)){let _e=pe.get(Oe);(Ae||(Ae=[])).push(_e.length?[$(Oe),le(_e)]:$(Oe))}return Ae}function le(pe){return x.assert(!!pe.length),pe.map(Ae=>{let Oe=Ee(Ae);Oe.reportsUnnecessary=Ae.reportsUnnecessary,Oe.reportDeprecated=Ae.reportsDeprecated,Oe.source=Ae.source,Oe.skippedOn=Ae.skippedOn;let{relatedInformation:_e}=Ae;return Oe.relatedInformation=_e?_e.length?_e.map(be=>Ee(be)):[]:void 0,Oe})}function Ee(pe){let{file:Ae}=pe;return{...pe,file:Ae?W(Ae.resolvedPath):void 0,messageText:fo(pe.messageText)?pe.messageText:ce(pe.messageText)}}function ce(pe){if(pe.repopulateInfo)return{info:pe.repopulateInfo(),next:Z(pe.next)};let Ae=Z(pe.next);return Ae===pe.next?pe:{...pe,next:Ae}}function Z(pe){return pe&&(an(pe,(Ae,Oe)=>{let _e=ce(Ae);if(Ae===_e)return;let be=Oe>0?pe.slice(0,Oe-1):[];be.push(_e);for(let Te=Oe+1;Te<pe.length;Te++)be.push(ce(pe[Te]));return be})||pe)}}function V4(e,t,r,i,o,s){let l,d,p;return e===void 0?(x.assert(t===void 0),l=r,p=i,x.assert(!!p),d=p.getProgram()):oo(e)?(p=i,d=w4({rootNames:e,options:t,host:r,oldProgram:p&&p.getProgramOrUndefined(),configFileParsingDiagnostics:o,projectReferences:s}),l=r):(d=e,l=t,p=r,o=i),{host:l,newProgram:d,oldProgram:p,configFileParsingDiagnostics:o||je}}function hTe(e,t){return t?.sourceMapUrlPos!==void 0?e.substring(0,t.sourceMapUrlPos):e}function jH(e,t,r,i,o){var s;r=hTe(r,o);let l;return(s=o?.diagnostics)!=null&&s.length&&(r+=o.diagnostics.map(h=>`${p(h)}${bM[h.category]}${h.code}: ${d(h.messageText)}`).join(`
`)),(i.createHash??qD)(r);function d(h){return fo(h)?h:h===void 0?"":h.next?h.messageText+h.next.map(d).join(`
`):h.messageText}function p(h){return h.file.resolvedPath===t.resolvedPath?`(${h.start},${h.length})`:(l===void 0&&(l=Ur(t.resolvedPath)),`${ME(Gf(l,h.file.resolvedPath,e.getCanonicalFileName))}(${h.start},${h.length})`)}}function oT(e,t,r){return(t.createHash??qD)(hTe(e,r))}function UH(e,{newProgram:t,host:r,oldProgram:i,configFileParsingDiagnostics:o}){let s=i&&i.getState();if(s&&t===s.program&&o===t.getConfigFileParsingDiagnostics())return t=void 0,s=void 0,i;let l=w7e(t,s);t.getBuildInfo=C=>q7e(l,C),t=void 0,i=void 0,s=void 0;let d=()=>l,p=qH(d,o);return p.getState=d,p.saveEmitState=()=>F7e(l),p.restoreEmitState=C=>z7e(l,C),p.hasChangedEmitSignature=()=>!!l.hasChangedEmitSignature,p.getAllDependencies=C=>Qf.getAllDependencies(l,x.checkDefined(l.program),C),p.getSemanticDiagnostics=A,p.emit=E,p.releaseProgram=()=>W7e(l),e===0?p.getSemanticDiagnosticsOfNextAffectedFile=S:e===1?(p.getSemanticDiagnosticsOfNextAffectedFile=S,p.emitNextAffectedFile=m,p.emitBuildInfo=h):Ro(),p;function h(C,R){if(l.buildInfoEmitPending){let L=x.checkDefined(l.program).emitBuildInfo(C||Wo(r,r.writeFile),R);return l.buildInfoEmitPending=!1,L}return G4}function m(C,R,L,G){var U,K,F;let oe=pTe(l,R,r),W=vy(l.compilerOptions),$=L?W&24:W;if(!oe)if(ss(l.compilerOptions)){if(!l.programEmitPending||($=l.programEmitPending,L&&($=$&24),!$))return;oe=l.program}else{let q=G7e(l,L);if(!q){let H=V7e(l);if(H)return(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(H.affectedFile.resolvedPath,H.seenKind|24),{result:{emitSkipped:!0,diagnostics:H.diagnostics},affected:H.affectedFile};if(!l.buildInfoEmitPending)return;let ee=l.program,le=ee.emitBuildInfo(C||Wo(r,r.writeFile),R);return l.buildInfoEmitPending=!1,{result:le,affected:ee}}({affectedFile:oe,emitKind:$}=q)}let de;$&7&&(de=0),$&24&&(de=de===void 0?1:void 0),oe===l.program&&(l.programEmitPending=l.changedFilesSet.size?cR(W,$):l.programEmitPending?cR(l.programEmitPending,$):void 0);let fe=l.program.emit(oe===l.program?void 0:oe,v(C,G),R,de,G);if(oe!==l.program){let q=oe;l.seenAffectedFiles.add(q.resolvedPath),l.affectedFilesIndex!==void 0&&l.affectedFilesIndex++,l.buildInfoEmitPending=!0;let H=((U=l.seenEmittedFiles)==null?void 0:U.get(q.resolvedPath))||0;(l.seenEmittedFiles??(l.seenEmittedFiles=new Map)).set(q.resolvedPath,$|H);let ee=((K=l.affectedFilesPendingEmit)==null?void 0:K.get(q.resolvedPath))||W,le=cR(ee,$|H);le?(l.affectedFilesPendingEmit??(l.affectedFilesPendingEmit=new Map)).set(q.resolvedPath,le):(F=l.affectedFilesPendingEmit)==null||F.delete(q.resolvedPath),fe.diagnostics.length&&(l.emitDiagnosticsPerFile??(l.emitDiagnosticsPerFile=new Map)).set(q.resolvedPath,fe.diagnostics)}else l.changedFilesSet.clear();return{result:fe,affected:oe}}function v(C,R){return Xp(l.compilerOptions)?(L,G,U,K,F,oe)=>{var W,$,de,fe;if(Yc(L))if(ss(l.compilerOptions)){if(l.compilerOptions.composite){let H=q(l.outSignature,void 0);if(!H)return;l.outSignature=H}}else{x.assert(F?.length===1);let H;if(!R){let ee=F[0],le=l.fileInfos.get(ee.resolvedPath);if(le.signature===ee.version){let Ee=jH(l.program,ee,G,r,oe);(W=oe?.diagnostics)!=null&&W.length||(H=Ee),Ee!==ee.version&&(r.storeFilesChangingSignatureDuringEmit&&(l.filesChangingSignature??(l.filesChangingSignature=new Set)).add(ee.resolvedPath),l.exportedModulesMap&&Qf.updateExportedModules(l,ee,ee.exportedModulesFromDeclarationEmit),l.affectedFiles?((($=l.oldSignatures)==null?void 0:$.get(ee.resolvedPath))===void 0&&(l.oldSignatures??(l.oldSignatures=new Map)).set(ee.resolvedPath,le.signature||!1),le.signature=Ee):(le.signature=Ee,(de=l.oldExportedModulesMap)==null||de.clear()))}}if(l.compilerOptions.composite){let ee=F[0].resolvedPath;if(H=q((fe=l.emitSignatures)==null?void 0:fe.get(ee),H),!H)return;(l.emitSignatures??(l.emitSignatures=new Map)).set(ee,H)}}C?C(L,G,U,K,F,oe):r.writeFile?r.writeFile(L,G,U,K,F,oe):l.program.writeFile(L,G,U,K,F,oe);function q(H,ee){let le=!H||fo(H)?H:H[0];if(ee??(ee=oT(G,r,oe)),ee===le){if(H===le)return;oe?oe.differsOnlyInMap=!0:oe={differsOnlyInMap:!0}}else l.hasChangedEmitSignature=!0,l.latestChangedDtsFile=L;return ee}}:C||Wo(r,r.writeFile)}function E(C,R,L,G,U){e===1&&uTe(l,C);let K=wH(p,C,R,L);if(K)return K;if(!C)if(e===1){let F=[],oe=!1,W,$=[],de;for(;de=m(R,L,G,U);)oe=oe||de.result.emitSkipped,W=Pr(W,de.result.diagnostics),$=Pr($,de.result.emittedFiles),F=Pr(F,de.result.sourceMaps);return{emitSkipped:oe,diagnostics:W||je,emittedFiles:$,sourceMaps:F}}else B7e(l,G);return x.checkDefined(l.program).emit(C,v(R,U),L,G,U)}function S(C,R){for(;;){let L=pTe(l,C,r),G;if(L)if(L!==l.program){let U=L;if((!R||!R(U))&&(G=Fae(l,U,C)),l.seenAffectedFiles.add(U.resolvedPath),l.affectedFilesIndex++,l.buildInfoEmitPending=!0,!G)continue}else G=l.program.getSemanticDiagnostics(void 0,C),l.changedFilesSet.clear(),l.programEmitPending=vy(l.compilerOptions);else return;return{result:G,affected:L}}}function A(C,R){uTe(l,C);let L=x.checkDefined(l.program).getCompilerOptions();if(ss(L))return x.assert(!l.semanticDiagnosticsPerFile),x.checkDefined(l.program).getSemanticDiagnostics(C,R);if(C)return Fae(l,C,R);for(;S(R););let G;for(let U of x.checkDefined(l.program).getSourceFiles())G=Pr(G,Fae(l,U,R));return G||je}}function Bae(e,t,r){var i,o;let s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|r),(o=e.emitDiagnosticsPerFile)==null||o.delete(t)}function Gae(e){return fo(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:fo(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function Vae(e,t){return jg(e)?t:e[1]||8}function jae(e,t){return e||vy(t||{})}function Uae(e,t,r){var i,o,s,l;let d=e.program,p=Ur(Qi(t,r.getCurrentDirectory())),h=od(r.useCaseSensitiveFileNames()),m,v=(i=d.fileNames)==null?void 0:i.map(A),E,S=d.latestChangedDtsFile?C(d.latestChangedDtsFile):void 0;if(zae(d)){let K=new Map;d.fileInfos.forEach((F,oe)=>{let W=R(oe+1);K.set(W,fo(F)?{version:F,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:F)}),m={fileInfos:K,compilerOptions:d.options?sU(d.options,C):{},latestChangedDtsFile:S,outSignature:d.outSignature,programEmitPending:d.pendingEmit===void 0?void 0:jae(d.pendingEmit,d.options),bundle:e.bundle}}else{E=(o=d.fileIdsList)==null?void 0:o.map(W=>new Set(W.map(R)));let K=new Map,F=(s=d.options)!=null&&s.composite&&!ss(d.options)?new Map:void 0;d.fileInfos.forEach((W,$)=>{let de=R($+1),fe=Gae(W);K.set(de,fe),F&&fe.signature&&F.set(de,fe.signature)}),(l=d.emitSignatures)==null||l.forEach(W=>{if(jg(W))F.delete(R(W));else{let $=R(W[0]);F.set($,!fo(W[1])&&!W[1].length?[F.get($)]:W[1])}});let oe=d.affectedFilesPendingEmit?vy(d.options||{}):void 0;m={fileInfos:K,compilerOptions:d.options?sU(d.options,C):{},referencedMap:G(d.referencedMap),exportedModulesMap:G(d.exportedModulesMap),semanticDiagnosticsPerFile:U(d.semanticDiagnosticsPerFile),emitDiagnosticsPerFile:U(d.emitDiagnosticsPerFile),hasReusableDiagnostic:!0,affectedFilesPendingEmit:d.affectedFilesPendingEmit&&PE(d.affectedFilesPendingEmit,W=>R(jg(W)?W:W[0]),W=>Vae(W,oe)),changedFilesSet:new Set(nn(d.changeFileSet,R)),latestChangedDtsFile:S,emitSignatures:F?.size?F:void 0}}return{getState:()=>m,saveEmitState:Ca,restoreEmitState:Ca,getProgram:Ro,getProgramOrUndefined:ub,releaseProgram:Ca,getCompilerOptions:()=>m.compilerOptions,getSourceFile:Ro,getSourceFiles:Ro,getOptionsDiagnostics:Ro,getGlobalDiagnostics:Ro,getConfigFileParsingDiagnostics:Ro,getSyntacticDiagnostics:Ro,getDeclarationDiagnostics:Ro,getSemanticDiagnostics:Ro,emit:Ro,getAllDependencies:Ro,getCurrentDirectory:Ro,emitNextAffectedFile:Ro,getSemanticDiagnosticsOfNextAffectedFile:Ro,emitBuildInfo:Ro,close:Ca,hasChangedEmitSignature:_m};function A(K){return ks(K,p,h)}function C(K){return Qi(K,p)}function R(K){return v[K-1]}function L(K){return E[K-1]}function G(K){if(!K)return;let F=Qf.createManyToManyPathMap();return K.forEach(([oe,W])=>F.set(R(oe),L(W))),F}function U(K){return K&&PE(K,F=>R(jg(F)?F:F[0]),F=>jg(F)?je:F[1])}}function HH(e,t,r){let i=Ur(Qi(t,r.getCurrentDirectory())),o=od(r.useCaseSensitiveFileNames()),s=new Map,l=0,d=[];return e.fileInfos.forEach((p,h)=>{let m=ks(e.fileNames[h],i,o),v=fo(p)?p:p.version;if(s.set(m,v),l<e.root.length){let E=e.root[l],S=h+1;oo(E)?E[0]<=S&&S<=E[1]&&(d.push(m),E[1]===S&&l++):E===S&&(d.push(m),l++)}}),{fileInfos:s,roots:d}}function qH(e,t){return{getState:Ro,saveEmitState:Ca,restoreEmitState:Ca,getProgram:r,getProgramOrUndefined:()=>e().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>r().getSourceFile(i),getSourceFiles:()=>r().getSourceFiles(),getOptionsDiagnostics:i=>r().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>r().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,o)=>r().getSyntacticDiagnostics(i,o),getDeclarationDiagnostics:(i,o)=>r().getDeclarationDiagnostics(i,o),getSemanticDiagnostics:(i,o)=>r().getSemanticDiagnostics(i,o),emit:(i,o,s,l,d)=>r().emit(i,o,s,l,d),emitBuildInfo:(i,o)=>r().emitBuildInfo(i,o),getAllDependencies:Ro,getCurrentDirectory:()=>r().getCurrentDirectory(),close:Ca};function r(){return x.checkDefined(e().program)}}var JH,KH,J7e=pt({"src/compiler/builder.ts"(){"use strict";wo(),JH=(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))(JH||{}),KH=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(KH||{})}});function gTe(e,t,r,i,o,s){return UH(0,V4(e,t,r,i,o,s))}function XH(e,t,r,i,o,s){return UH(1,V4(e,t,r,i,o,s))}function vTe(e,t,r,i,o,s){let{newProgram:l,configFileParsingDiagnostics:d}=V4(e,t,r,i,o,s);return qH(()=>({program:l,compilerOptions:l.getCompilerOptions()}),d)}var K7e=pt({"src/compiler/builderPublic.ts"(){"use strict";wo()}});function j4(e){return Zs(e,"/node_modules/.staging")?C1(e,"/.staging"):ct(AM,t=>e.includes(t))?void 0:e}function Hae(e,t){if(t<=1)return 1;let r=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==Os&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;r=2,i=!0}return i&&!e[r].match(/^users$/i)?r:e[r].match(/^workspaces$/i)?r+1:r+2}function U4(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let r=Hae(e,t);return t>r+1}function qae(e){return bTe(Ur(e))}function yTe(e,t){if(t.length<t.length)return!1;for(let r=0;r<e.length;r++)if(t[r]!==e[r])return!1;return!0}function bTe(e){return U4(mc(e))}function Jae(e){return bTe(e)}function YH(e,t,r,i,o,s){let l=mc(t);e=Ou(e)?Yo(e):Qi(e,s());let d=mc(e),p=Hae(l,l.length);if(l.length<=p+1)return;let h=l.indexOf("node_modules");if(!(h!==-1&&h+1<=p+1))return yTe(o,l)?l.length>o.length+1?Kae(d,l,Math.max(o.length+1,p+1)):{dir:r,dirPath:i,nonRecursive:!0}:ETe(d,l,l.length-1,p,h,o)}function ETe(e,t,r,i,o,s){if(o!==-1)return Kae(e,t,o+1);let l=!0,d=r;for(let p=0;p<r;p++)if(t[p]!==s[p]){l=!1,d=Math.max(p+1,i+1);break}return Kae(e,t,d,l)}function Kae(e,t,r,i){return{dir:Vv(e,r),dirPath:Vv(t,r),nonRecursive:i}}function Xae(e,t,r,i,o,s){let l=mc(t);if(yTe(i,l))return r;e=Ou(e)?Yo(e):Qi(e,o());let d=ETe(mc(e),l,l.length,Hae(l,l.length),l.indexOf("node_modules"),i);return d&&s(d.dirPath)?d.dirPath:void 0}function Yae(e,t){let r=Qi(e,t());return xG(r)?r:fb(r)}function STe(e){return e.split(Os).length-(Jg(e)?1:0)}function H4(e){var t;return((t=e.getCompilerHost)==null?void 0:t.call(e))||e}function $ae(e,t,r,i,o){return{nameAndMode:z4,resolve:(s,l)=>X7e(i,o,s,e,r,t,l)}}function X7e(e,t,r,i,o,s,l){let d=H4(e),p=Zx(r,i,o,d,t,s,l);if(!e.getGlobalCache)return p;let h=e.getGlobalCache();if(h!==void 0&&!Ic(r)&&!(p.resolvedModule&&mF(p.resolvedModule.extension))){let{resolvedModule:m,failedLookupLocations:v,affectingLocations:E,resolutionDiagnostics:S}=poe(x.checkDefined(e.globalCacheResolutionModuleName)(r),e.projectName,o,d,h,t);if(m)return p.resolvedModule=m,p.failedLookupLocations=$x(p.failedLookupLocations,v),p.affectingLocations=$x(p.affectingLocations,E),p.resolutionDiagnostics=$x(p.resolutionDiagnostics,S),p}return p}function $H(e,t,r){let i,o,s,l=bp(),d=new Set,p=new Set,h=new Map,m=new Map,v=!1,E,S,A,C,R,L=!1,G=Kd(()=>e.getCurrentDirectory()),U=e.getCachedDirectoryStructureHost(),K=new Map,F=Qx(G(),e.getCanonicalFileName,e.getCompilationSettings()),oe=new Map,W=Q6(G(),e.getCanonicalFileName,e.getCompilationSettings(),F.getPackageJsonInfoCache(),F.optionsToRedirectsKey),$=new Map,de=Qx(G(),e.getCanonicalFileName,TU(e.getCompilationSettings()),F.getPackageJsonInfoCache()),fe=new Map,q=new Map,H=Yae(t,G),ee=e.toPath(H),le=mc(ee),Ee=new Map;return{rootDirForResolution:t,resolvedModuleNames:K,resolvedTypeReferenceDirectives:oe,resolvedLibraries:$,resolvedFileToResolution:h,resolutionsWithFailedLookups:d,resolutionsWithOnlyAffectingLocations:p,directoryWatchesOfFailedLookups:fe,fileWatchesOfAffectingLocations:q,watchFailedLookupLocationsOfExternalModuleResolutions:gn,getModuleResolutionCache:()=>F,startRecordingFilesWithChangedResolutions:Oe,finishRecordingFilesWithChangedResolutions:_e,startCachingPerDirectoryResolution:De,finishCachingPerDirectoryResolution:he,resolveModuleNameLiterals:Ge,resolveTypeReferenceDirectiveReferences:st,resolveLibrary:ot,resolveSingleModuleNameWithoutWatching:Vt,removeResolutionsFromProjectReferenceRedirects:Ue,removeResolutionsOfFile:Rt,hasChangedAutomaticTypeDirectiveNames:()=>v,invalidateResolutionOfFile:qr,invalidateResolutionsOfFailedLookupLocations:Jo,setFilesWithInvalidatedNonRelativeUnresolvedImports:ni,createHasInvalidatedResolutions:Te,isFileWithInvalidatedNonRelativeUnresolvedImports:be,updateTypeRootsWatch:tt,closeTypeRootsWatch:ke,clear:pe,onChangesAffectModuleResolution:Ae};function ce(re){return re.resolvedModule}function Z(re){return re.resolvedTypeReferenceDirective}function pe(){Au(fe,Qp),Au(q,Qp),l.clear(),ke(),K.clear(),oe.clear(),h.clear(),d.clear(),p.clear(),A=void 0,C=void 0,R=void 0,S=void 0,E=void 0,L=!1,F.clear(),W.clear(),F.update(e.getCompilationSettings()),W.update(e.getCompilationSettings()),de.clear(),m.clear(),$.clear(),v=!1}function Ae(){L=!0,F.clearAllExceptPackageJsonInfoCache(),W.clearAllExceptPackageJsonInfoCache(),F.update(e.getCompilationSettings()),W.update(e.getCompilationSettings())}function Oe(){i=[]}function _e(){let re=i;return i=void 0,re}function be(re){if(!s)return!1;let Ce=s.get(re);return!!Ce&&!!Ce.length}function Te(re,Ce){Jo();let et=o;return o=void 0,{hasInvalidatedResolutions:z=>re(z)||L||!!et?.has(z)||be(z),hasInvalidatedLibResolutions:z=>{var Je;return Ce(z)||!!((Je=$?.get(z))!=null&&Je.isInvalidated)}}}function De(){F.isReadonly=void 0,W.isReadonly=void 0,de.isReadonly=void 0,F.getPackageJsonInfoCache().isReadonly=void 0,F.clearAllExceptPackageJsonInfoCache(),W.clearAllExceptPackageJsonInfoCache(),de.clearAllExceptPackageJsonInfoCache(),l.forEach(Ki),l.clear()}function ft(re){$.forEach((Ce,et)=>{var z;(z=re?.resolvedLibReferences)!=null&&z.has(et)||(Gn(Ce,e.toPath(O4(e.getCompilationSettings(),G(),et)),ce),$.delete(et))})}function he(re,Ce){s=void 0,L=!1,l.forEach(Ki),l.clear(),re!==Ce&&(ft(re),re?.getSourceFiles().forEach(et=>{var z;let Je=sp(et)?((z=et.packageJsonLocations)==null?void 0:z.length)??0:0,_t=m.get(et.path)??je;for(let ze=_t.length;ze<Je;ze++)Wt(et.packageJsonLocations[ze],!1);if(_t.length>Je)for(let ze=Je;ze<_t.length;ze++)q.get(_t[ze]).files--;Je?m.set(et.path,et.packageJsonLocations):m.delete(et.path)}),m.forEach((et,z)=>{re?.getSourceFileByPath(z)||(et.forEach(Je=>q.get(Je).files--),m.delete(z))})),fe.forEach(Le),q.forEach(Ke),v=!1,F.isReadonly=!0,W.isReadonly=!0,de.isReadonly=!0,F.getPackageJsonInfoCache().isReadonly=!0}function Le(re,Ce){re.refCount===0&&(fe.delete(Ce),re.watcher.close())}function Ke(re,Ce){var et;re.files===0&&re.resolutions===0&&!((et=re.symlinks)!=null&&et.size)&&(q.delete(Ce),re.watcher.close())}function Dt({entries:re,containingFile:Ce,containingSourceFile:et,redirectedReference:z,options:Je,perFileCache:_t,reusedNames:ze,loader:it,getResolutionWithResolvedFileName:Ct,deferWatchingNonRelativeResolution:on,shouldRetryResolution:Qt,logChanges:Zt}){let V=e.toPath(Ce),Re=_t.get(V)||_t.set(V,bI()).get(V),St=[],M=Zt&&be(V),te=e.getCurrentProgram(),j=te&&te.getResolvedProjectReferenceToRedirect(Ce),se=j?!z||z.sourceFile.path!==j.sourceFile.path:!!z,Pe=bI();for(let gt of re){let bt=it.nameAndMode.getName(gt),Ot=it.nameAndMode.getMode(gt,et,z?.commandLine.options||Je),dn=Re.get(bt,Ot);if(!Pe.has(bt,Ot)&&(L||se||!dn||dn.isInvalidated||M&&!Ic(bt)&&Qt(dn))){let An=dn;dn=it.resolve(bt,Ot),e.onDiscoveredSymlink&&Y7e(dn)&&e.onDiscoveredSymlink(),Re.set(bt,Ot,dn),dn!==An&&(gn(bt,dn,V,Ct,on),An&&Gn(An,V,Ct)),Zt&&i&&!Ie(An,dn)&&(i.push(V),Zt=!1)}else{let An=H4(e);if(cg(Je,An)&&!Pe.has(bt,Ot)){let Cn=Ct(dn);to(An,_t===K?Cn?.resolvedFileName?Cn.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Cn?.resolvedFileName?Cn.packageId?f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,bt,Ce,Cn?.resolvedFileName,Cn?.packageId&&Qv(Cn.packageId))}}x.assert(dn!==void 0&&!dn.isInvalidated),Pe.set(bt,Ot,!0),St.push(dn)}return ze?.forEach(gt=>Pe.set(it.nameAndMode.getName(gt),it.nameAndMode.getMode(gt,et,z?.commandLine.options||Je),!0)),Re.size()!==Pe.size()&&Re.forEach((gt,bt,Ot)=>{Pe.has(bt,Ot)||(Gn(gt,V,Ct),Re.delete(bt,Ot))}),St;function Ie(gt,bt){if(gt===bt)return!0;if(!gt||!bt)return!1;let Ot=Ct(gt),dn=Ct(bt);return Ot===dn?!0:!Ot||!dn?!1:Ot.resolvedFileName===dn.resolvedFileName}}function st(re,Ce,et,z,Je,_t){return Dt({entries:re,containingFile:Ce,containingSourceFile:Je,redirectedReference:et,options:z,reusedNames:_t,perFileCache:oe,loader:L4(Ce,et,z,H4(e),W),getResolutionWithResolvedFileName:Z,shouldRetryResolution:ze=>ze.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Ge(re,Ce,et,z,Je,_t){return Dt({entries:re,containingFile:Ce,containingSourceFile:Je,redirectedReference:et,options:z,reusedNames:_t,perFileCache:K,loader:$ae(Ce,et,z,e,F),getResolutionWithResolvedFileName:ce,shouldRetryResolution:ze=>!ze.resolvedModule||!VC(ze.resolvedModule.extension),logChanges:r,deferWatchingNonRelativeResolution:!0})}function ot(re,Ce,et,z){let Je=H4(e),_t=$?.get(z);if(!_t||_t.isInvalidated){let ze=_t;_t=Z6(re,Ce,et,Je,de);let it=e.toPath(Ce);gn(re,_t,it,ce,!1),$.set(z,_t),ze&&Gn(ze,it,ce)}else if(cg(et,Je)){let ze=ce(_t);to(Je,ze?.resolvedFileName?ze.packageId?f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:f.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,re,Ce,ze?.resolvedFileName,ze?.packageId&&Qv(ze.packageId))}return _t}function Vt(re,Ce){var et,z;let Je=e.toPath(Ce),_t=K.get(Je),ze=_t?.get(re,void 0);if(ze&&!ze.isInvalidated)return ze;let it=(et=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:et.call(e,F),Ct=H4(e),on=Zx(re,Ce,e.getCompilationSettings(),Ct,F);return(z=e.afterResolveSingleModuleNameWithoutWatching)==null||z.call(e,F,re,Ce,on,it),on}function jt(re){return Zs(re,"/node_modules/@types")}function gn(re,Ce,et,z,Je){var _t;if(Ce.refCount)Ce.refCount++,x.assertIsDefined(Ce.files);else{Ce.refCount=1,x.assert(!((_t=Ce.files)!=null&&_t.size)),!Je||Ic(re)?en(Ce):l.add(re,Ce);let ze=z(Ce);if(ze&&ze.resolvedFileName){let it=e.toPath(ze.resolvedFileName),Ct=h.get(it);Ct||h.set(it,Ct=new Set),Ct.add(Ce)}}(Ce.files??(Ce.files=new Set)).add(et)}function On(re,Ce){let et=e.toPath(re),z=YH(re,et,H,ee,le,G);if(z){let{dir:Je,dirPath:_t,nonRecursive:ze}=z;_t===ee?(x.assert(ze),Ce=!0):gi(Je,_t,ze)}return Ce}function en(re){x.assert(!!re.refCount);let{failedLookupLocations:Ce,affectingLocations:et,alternateResult:z}=re;if(!Ce?.length&&!et?.length&&!z)return;(Ce?.length||z)&&d.add(re);let Je=!1;if(Ce)for(let _t of Ce)Je=On(_t,Je);z&&(Je=On(z,Je)),Je&&gi(H,ee,!0),zt(re,!Ce?.length&&!z)}function zt(re,Ce){x.assert(!!re.refCount);let{affectingLocations:et}=re;if(et?.length){Ce&&p.add(re);for(let z of et)Wt(z,!0)}}function Wt(re,Ce){let et=q.get(re);if(et){Ce?et.resolutions++:et.files++;return}let z=re,Je=!1,_t;e.realpath&&(z=e.realpath(re),re!==z&&(Je=!0,_t=q.get(z)));let ze=Ce?1:0,it=Ce?0:1;if(!Je||!_t){let Ct={watcher:Jae(e.toPath(z))?e.watchAffectingFileLocation(z,(on,Qt)=>{U?.addOrDeleteFile(on,e.toPath(z),Qt),ei(z,F.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):uR,resolutions:Je?0:ze,files:Je?0:it,symlinks:void 0};q.set(z,Ct),Je&&(_t=Ct)}if(Je){x.assert(!!_t);let Ct={watcher:{close:()=>{var on;let Qt=q.get(z);(on=Qt?.symlinks)!=null&&on.delete(re)&&!Qt.symlinks.size&&!Qt.resolutions&&!Qt.files&&(q.delete(z),Qt.watcher.close())}},resolutions:ze,files:it,symlinks:void 0};q.set(re,Ct),(_t.symlinks??(_t.symlinks=new Set)).add(re)}}function ei(re,Ce){var et;let z=q.get(re);z?.resolutions&&(S??(S=new Set)).add(re),z?.files&&(E??(E=new Set)).add(re),(et=z?.symlinks)==null||et.forEach(Je=>ei(Je,Ce)),Ce?.delete(e.toPath(re))}function Ki(re,Ce){let et=e.getCurrentProgram();!et||!et.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Ce)?re.forEach(en):re.forEach(z=>zt(z,!0))}function gi(re,Ce,et){let z=fe.get(Ce);z?(x.assert(!!et==!!z.nonRecursive),z.refCount++):fe.set(Ce,{watcher:cr(re,Ce,et),refCount:1,nonRecursive:et})}function io(re,Ce,et){let z=e.toPath(re),Je=YH(re,z,H,ee,le,G);if(Je){let{dirPath:_t}=Je;_t===ee?Ce=!0:Nr(_t,et)}return Ce}function Gn(re,Ce,et,z){if(x.checkDefined(re.files).delete(Ce),re.refCount--,re.refCount)return;let Je=et(re);if(Je&&Je.resolvedFileName){let Ct=e.toPath(Je.resolvedFileName),on=h.get(Ct);on?.delete(re)&&!on.size&&h.delete(Ct)}let{failedLookupLocations:_t,affectingLocations:ze,alternateResult:it}=re;if(d.delete(re)){let Ct=!1;if(_t)for(let on of _t)Ct=io(on,Ct,z);it&&(Ct=io(it,Ct,z)),Ct&&Nr(ee,z)}else ze?.length&&p.delete(re);if(ze)for(let Ct of ze){let on=q.get(Ct);on.resolutions--,z&&Ke(on,Ct)}}function Nr(re,Ce){let et=fe.get(re);et.refCount--,Ce&&Le(et,re)}function cr(re,Ce,et){return e.watchDirectoryOfFailedLookupLocation(re,z=>{let Je=e.toPath(z);U&&U.addOrDeleteFileOrDirectory(z,Je),ki(Je,Ce===Je)},et?0:1)}function Jt(re,Ce,et,z){let Je=re.get(Ce);Je&&(Je.forEach(_t=>Gn(_t,Ce,et,z)),re.delete(Ce))}function Ue(re){if(!el(re,".json"))return;let Ce=e.getCurrentProgram();if(!Ce)return;let et=Ce.getResolvedProjectReferenceByPath(re);et&&et.commandLine.fileNames.forEach(z=>Rt(e.toPath(z)))}function Rt(re,Ce){Jt(K,re,ce,Ce),Jt(oe,re,Z,Ce)}function mn(re,Ce){if(!re)return!1;let et=!1;return re.forEach(z=>{if(!(z.isInvalidated||!Ce(z))){z.isInvalidated=et=!0;for(let Je of x.checkDefined(z.files))(o??(o=new Set)).add(Je),v=v||Zs(Je,lR)}}),et}function qr(re){Rt(re);let Ce=v;mn(h.get(re),Ug)&&v&&!Ce&&e.onChangedAutomaticTypeDirectiveNames()}function ni(re){x.assert(s===re||s===void 0),s=re}function ki(re,Ce){if(Ce)(R||(R=new Set)).add(re);else{let et=j4(re);if(!et||(re=et,e.fileIsOpen(re)))return!1;let z=Ur(re);if(jt(re)||A8(re)||jt(z)||A8(z))(A||(A=new Set)).add(re),(C||(C=new Set)).add(re);else{if(Tae(e.getCurrentProgram(),re)||el(re,".map"))return!1;(A||(A=new Set)).add(re);let Je=tk(re,!0);Je&&(C||(C=new Set)).add(Je)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function so(){let re=F.getPackageJsonInfoCache().getInternalMap();re&&(A||C||R)&&re.forEach((Ce,et)=>ln(et)?re.delete(et):void 0)}function Jo(){var re;if(L)return E=void 0,so(),(A||C||R||S)&&mn($,ba),A=void 0,C=void 0,R=void 0,S=void 0,!0;let Ce=!1;return E&&((re=e.getCurrentProgram())==null||re.getSourceFiles().forEach(et=>{ct(et.packageJsonLocations,z=>E.has(z))&&((o??(o=new Set)).add(et.path),Ce=!0)}),E=void 0),!A&&!C&&!R&&!S||(Ce=mn(d,ba)||Ce,so(),A=void 0,C=void 0,R=void 0,Ce=mn(p,Tn)||Ce,S=void 0),Ce}function ba(re){var Ce;return Tn(re)?!0:!A&&!C&&!R?!1:((Ce=re.failedLookupLocations)==null?void 0:Ce.some(et=>ln(e.toPath(et))))||!!re.alternateResult&&ln(e.toPath(re.alternateResult))}function ln(re){return A?.has(re)||cM(C?.keys()||[],Ce=>Ui(re,Ce)?!0:void 0)||cM(R?.keys()||[],Ce=>re.length>Ce.length&&Ui(re,Ce)&&(xG(Ce)||re[Ce.length]===Os)?!0:void 0)}function Tn(re){var Ce;return!!S&&((Ce=re.affectingLocations)==null?void 0:Ce.some(et=>S.has(et)))}function ke(){Au(Ee,vm)}function nt(re){return yt(re)?e.watchTypeRootsDirectory(re,Ce=>{let et=e.toPath(Ce);U&&U.addOrDeleteFileOrDirectory(Ce,et),v=!0,e.onChangedAutomaticTypeDirectiveNames();let z=Xae(re,e.toPath(re),ee,le,G,Je=>fe.has(Je));z&&ki(et,z===et)},1):uR}function tt(){let re=e.getCompilationSettings();if(re.types){ke();return}let Ce=RN(re,{getCurrentDirectory:G});Ce?FC(Ee,new Set(Ce),{createNewValue:nt,onDeleteValue:vm}):ke()}function yt(re){return e.getCompilationSettings().typeRoots?!0:qae(e.toPath(re))}}function Y7e(e){var t,r;return!!((t=e.resolvedModule)!=null&&t.originalPath||(r=e.resolvedTypeReferenceDirective)!=null&&r.originalPath)}var $7e=pt({"src/compiler/resolutionCache.ts"(){"use strict";wo()}});function Ik(e,t){let r=e===Hc&&ise?ise:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:od(e.useCaseSensitiveFileNames)};if(!t)return o=>e.write(IH(o,r));let i=new Array(1);return o=>{i[0]=o,e.write(Rae(i,r)+r.getNewLine()),i[0]=void 0}}function TTe(e,t,r){return e.clearScreen&&!r.preserveWatchOutput&&!r.extendedDiagnostics&&!r.diagnostics&&To($4,t.code)?(e.clearScreen(),!0):!1}function Q7e(e,t){return To($4,e.code)?t+t:t}function xk(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function Qae(e,t){return t?(r,i,o)=>{TTe(e,r,o);let s=`[${b0(xk(e),"\x1B[90m")}] `;s+=`${o_(r.messageText,e.newLine)}${i+i}`,e.write(s)}:(r,i,o)=>{let s="";TTe(e,r,o)||(s+=i),s+=`${xk(e)} - `,s+=`${o_(r.messageText,e.newLine)}${Q7e(r,i)}`,e.write(s)}}function ATe(e,t,r,i,o,s){let l=o;l.onUnRecoverableConfigFileDiagnostic=p=>RTe(o,s,p);let d=V2(e,t,l,r,i);return l.onUnRecoverableConfigFileDiagnostic=void 0,d}function q4(e){return Wv(e,t=>t.category===1)}function J4(e){return Cr(e,r=>r.category===1).map(r=>{if(r.file!==void 0)return`${r.file.fileName}`}).map(r=>{if(r===void 0)return;let i=Dr(e,o=>o.file!==void 0&&o.file.fileName===r);if(i!==void 0){let{line:o}=$a(i.file,i.start);return{fileName:r,line:o+1}}})}function QH(e){return e===1?f.Found_1_error_Watching_for_file_changes:f.Found_0_errors_Watching_for_file_changes}function ITe(e,t){let r=b0(":"+e.line,"\x1B[90m");return JD(e.fileName)&&JD(t)?Gf(t,e.fileName,!1)+r:e.fileName+r}function Zae(e,t,r,i){if(e===0)return"";let o=t.filter(m=>m!==void 0),s=o.map(m=>`${m.fileName}:${m.line}`).filter((m,v,E)=>E.indexOf(m)===v),l=o[0]&&ITe(o[0],i.getCurrentDirectory()),d;e===1?d=t[0]!==void 0?[f.Found_1_error_in_0,l]:[f.Found_1_error]:d=s.length===0?[f.Found_0_errors,e]:s.length===1?[f.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,l]:[f.Found_0_errors_in_1_files,e,s.length];let p=bl(...d),h=s.length>1?Z7e(o,i):"";return`${r}${o_(p.messageText,r)}${r}${r}${h}`}function Z7e(e,t){let r=e.filter((v,E,S)=>E===S.findIndex(A=>A?.fileName===v?.fileName));if(r.length===0)return"";let i=v=>Math.log(v)*Math.LOG10E+1,o=r.map(v=>[v,Wv(e,E=>E.fileName===v.fileName)]),s=o.reduce((v,E)=>Math.max(v,E[1]||0),0),l=f.Errors_Files.message,d=l.split(" ")[0].length,p=Math.max(d,i(s)),h=Math.max(i(s)-d,0),m="";return m+=" ".repeat(h)+l+`
`,o.forEach(v=>{let[E,S]=v,A=Math.log(S)*Math.LOG10E+1|0,C=A<p?" ".repeat(p-A):"",R=ITe(E,t.getCurrentDirectory());m+=`${C}${S} ${R}
`}),m}function ese(e){return!!e.getState}function ZH(e,t){let r=e.getCompilerOptions();r.explainFiles?eq(ese(e)?e.getProgram():e,t):(r.listFiles||r.listFilesOnly)&&an(e.getSourceFiles(),i=>{t(i.fileName)})}function eq(e,t){var r,i;let o=e.getFileIncludeReasons(),s=l=>KD(l,e.getCurrentDirectory(),e.getCanonicalFileName);for(let l of e.getSourceFiles())t(`${dR(l,s)}`),(r=o.get(l.path))==null||r.forEach(d=>t(` ${iq(e,d,s).messageText}`)),(i=tq(l,s))==null||i.forEach(d=>t(` ${d.messageText}`))}function tq(e,t){var r;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(So(void 0,f.File_is_output_of_project_reference_source_0,dR(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(So(void 0,f.File_redirects_to_file_0,dR(e.redirectInfo.redirectTarget,t))),sp(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(So(void 0,f.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,dR(Da(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(So(void 0,e.packageJsonScope.contents.packageJsonContent.type?f.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:f.File_is_CommonJS_module_because_0_does_not_have_field_type,dR(Da(e.packageJsonLocations),t))):(r=e.packageJsonLocations)!=null&&r.length&&(i??(i=[])).push(So(void 0,f.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function nq(e,t){var r;let i=e.getCompilerOptions().configFile;if(!((r=i?.configFileSpecs)!=null&&r.validatedFilesSpec))return;let o=e.getCanonicalFileName(t),s=Ur(Qi(i.fileName,e.getCurrentDirectory()));return Dr(i.configFileSpecs.validatedFilesSpec,l=>e.getCanonicalFileName(Qi(l,s))===o)}function rq(e,t){var r,i;let o=e.getCompilerOptions().configFile;if(!((r=o?.configFileSpecs)!=null&&r.validatedIncludeSpecs))return;if(o.configFileSpecs.isDefaultIncludeSpec)return!0;let s=el(t,".json"),l=Ur(Qi(o.fileName,e.getCurrentDirectory())),d=e.useCaseSensitiveFileNames();return Dr((i=o?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,p=>{if(s&&!Zs(p,".json"))return!1;let h=Zne(p,l,"files");return!!h&&iy(`(${h})$`,d).test(t)})}function iq(e,t,r){var i,o;let s=e.getCompilerOptions();if(jb(t)){let l=jN(e,t),d=aR(l)?l.file.text.substring(l.pos,l.end):`"${l.text}"`,p;switch(x.assert(aR(l)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:aR(l)?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2:f.Imported_via_0_from_file_1:l.text===ay?p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:f.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:p=l.packageId?f.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:f.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:x.assert(!l.packageId),p=f.Referenced_via_0_from_file_1;break;case 5:p=l.packageId?f.Type_library_referenced_via_0_from_file_1_with_packageId_2:f.Type_library_referenced_via_0_from_file_1;break;case 7:x.assert(!l.packageId),p=f.Library_referenced_via_0_from_file_1;break;default:x.assertNever(t)}return So(void 0,p,d,dR(l.file,r),l.packageId&&Qv(l.packageId))}switch(t.kind){case 0:if(!((i=s.configFile)!=null&&i.configFileSpecs))return So(void 0,f.Root_file_specified_for_compilation);let l=Qi(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(nq(e,l))return So(void 0,f.Part_of_files_list_in_tsconfig_json);let p=rq(e,l);return fo(p)?So(void 0,f.Matched_by_include_pattern_0_in_1,p,dR(s.configFile,r)):So(void 0,p?f.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:f.Root_file_specified_for_compilation);case 1:case 2:let h=t.kind===2,m=x.checkDefined((o=e.getResolvedProjectReferences())==null?void 0:o[t.index]);return So(void 0,ss(s)?h?f.Output_from_referenced_project_0_included_because_1_specified:f.Source_from_referenced_project_0_included_because_1_specified:h?f.Output_from_referenced_project_0_included_because_module_is_specified_as_none:f.Source_from_referenced_project_0_included_because_module_is_specified_as_none,dR(m.sourceFile.fileName,r),s.outFile?"--outFile":"--out");case 8:{let v=s.types?t.packageId?[f.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Qv(t.packageId)]:[f.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[f.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Qv(t.packageId)]:[f.Entry_point_for_implicit_type_library_0,t.typeReference];return So(void 0,...v)}case 6:{if(t.index!==void 0)return So(void 0,f.Library_0_specified_in_compilerOptions,s.lib[t.index]);let v=hc(Y2.type,(S,A)=>S===Wa(s)?A:void 0),E=v?[f.Default_library_for_target_0,v]:[f.Default_library];return So(void 0,...E)}default:x.assertNever(t)}}function dR(e,t){let r=fo(e)?e:e.fileName;return t?t(r):r}function K4(e,t,r,i,o,s,l,d){let p=!!e.getCompilerOptions().listFilesOnly,h=e.getConfigFileParsingDiagnostics().slice(),m=h.length;Pr(h,e.getSyntacticDiagnostics(void 0,s)),h.length===m&&(Pr(h,e.getOptionsDiagnostics(s)),p||(Pr(h,e.getGlobalDiagnostics(s)),h.length===m&&Pr(h,e.getSemanticDiagnostics(void 0,s))));let v=p?{emitSkipped:!0,diagnostics:je}:e.emit(void 0,o,s,l,d),{emittedFiles:E,diagnostics:S}=v;Pr(h,S);let A=z1(h);if(A.forEach(t),r){let C=e.getCurrentDirectory();an(E,R=>{let L=Qi(R,C);r(`TSFILE: ${L}`)}),ZH(e,r)}return i&&i(q4(A),J4(A)),{emitResult:v,diagnostics:A}}function tse(e,t,r,i,o,s,l,d){let{emitResult:p,diagnostics:h}=K4(e,t,r,i,o,s,l,d);return p.emitSkipped&&h.length>0?1:h.length>0?2:0}function oq(e=Hc,t){return{onWatchStatusChange:t||Qae(e),watchFile:Wo(e,e.watchFile)||pR,watchDirectory:Wo(e,e.watchDirectory)||pR,setTimeout:Wo(e,e.setTimeout)||Ca,clearTimeout:Wo(e,e.clearTimeout)||Ca}}function aq(e,t){let r=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=r!==0?s=>e.trace(s):Ca,o=yH(e,r,i);return o.writeLog=i,o}function sq(e,t,r=e){let i=e.useCaseSensitiveFileNames(),o={getSourceFile:SH((s,l)=>l?e.readFile(s,l):o.readFile(s),t,void 0),getDefaultLibLocation:Wo(e,e.getDefaultLibLocation),getDefaultLibFileName:s=>e.getDefaultLibFileName(s),writeFile:TH((s,l,d)=>e.writeFile(s,l,d),s=>e.createDirectory(s),s=>e.directoryExists(s)),getCurrentDirectory:Kd(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:od(i),getNewLine:()=>rv(t()),fileExists:s=>e.fileExists(s),readFile:s=>e.readFile(s),trace:Wo(e,e.trace),directoryExists:Wo(r,r.directoryExists),getDirectories:Wo(r,r.getDirectories),realpath:Wo(e,e.realpath),getEnvironmentVariable:Wo(e,e.getEnvironmentVariable)||(()=>""),createHash:Wo(e,e.createHash),readDirectory:Wo(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return o}function X4(e,t){if(t.match(JU)){let r=t.length,i=r;for(let o=r-1;o>=0;o--){let s=t.charCodeAt(o);switch(s){case 10:o&&t.charCodeAt(o-1)===13&&o--;case 13:break;default:if(s<127||!vd(s)){i=o;continue}break}let l=t.substring(i,r);if(l.match(p4)){t=t.substring(0,i);break}else if(!l.match(f4))break;r=i}}return(e.createHash||qD)(t)}function Y4(e){let t=e.getSourceFile;e.getSourceFile=(...r)=>{let i=t.call(e,...r);return i&&(i.version=X4(e,i.text)),i}}function lq(e,t){let r=Kd(()=>Ur(Yo(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Kd(()=>e.getCurrentDirectory()),getDefaultLibLocation:r,getDefaultLibFileName:i=>wr(r(),OM(i)),fileExists:i=>e.fileExists(i),readFile:(i,o)=>e.readFile(i,o),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,o,s,l,d)=>e.readDirectory(i,o,s,l,d),realpath:Wo(e,e.realpath),getEnvironmentVariable:Wo(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,o,s)=>e.writeFile(i,o,s),createHash:Wo(e,e.createHash),createProgram:t||XH,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Wo(e,e.now)}}function xTe(e=Hc,t,r,i){let o=l=>e.write(l+e.newLine),s=lq(e,t);return sB(s,oq(e,i)),s.afterProgramCreate=l=>{let d=l.getCompilerOptions(),p=rv(d);K4(l,r,o,h=>s.onWatchStatusChange(bl(QH(h),h),p,d,h))},s}function RTe(e,t,r){t(r),e.exit(1)}function nse({configFileName:e,optionsToExtend:t,watchOptionsToExtend:r,extraFileExtensions:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=l||Ik(o),h=xTe(o,s,p,d);return h.onUnRecoverableConfigFileDiagnostic=m=>RTe(o,p,m),h.configFileName=e,h.optionsToExtend=t,h.watchOptionsToExtend=r,h.extraFileExtensions=i,h}function rse({rootFiles:e,options:t,watchOptions:r,projectReferences:i,system:o,createProgram:s,reportDiagnostic:l,reportWatchStatus:d}){let p=xTe(o,s,l||Ik(o),d);return p.rootFiles=e,p.options=t,p.watchOptions=r,p.projectReferences=i,p}function DTe(e){let t=e.system||Hc,r=e.host||(e.host=cq(e.options,t)),i=ose(e),o=tse(i,e.reportDiagnostic||Ik(t),s=>r.trace&&r.trace(s),e.reportErrorSummary||e.options.pretty?(s,l)=>t.write(Zae(s,l,t.newLine,r)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),o}var ise,$4,uR,pR,dc,e5e=pt({"src/compiler/watch.ts"(){"use strict";wo(),ise=Hc?{getCurrentDirectory:()=>Hc.getCurrentDirectory(),getNewLine:()=>Hc.newLine,getCanonicalFileName:od(Hc.useCaseSensitiveFileNames)}:void 0,$4=[f.Starting_compilation_in_watch_mode.code,f.File_change_detected_Starting_incremental_compilation.code],uR={close:Ca},pR=()=>uR,dc={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 Q4(e,t){let r=dv(e);if(!r)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(r,e.configFilePath);else{let o=t.readFile(r);if(!o)return;i=R4(r,o)}if(!(!i||i.version!==yp||!i.program))return Uae(i,r,t)}function cq(e,t=Hc){let r=AH(e,void 0,t);return r.createHash=Wo(t,t.createHash),r.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,Y4(r),bk(r,i=>ks(i,r.getCurrentDirectory(),r.getCanonicalFileName)),r}function ose({rootNames:e,options:t,configFileParsingDiagnostics:r,projectReferences:i,host:o,createProgram:s}){o=o||cq(t),s=s||XH;let l=Q4(t,o);return s(e,t,o,l,r,i)}function CTe(e,t,r,i,o,s,l,d){return oo(e)?rse({rootFiles:e,options:t,watchOptions:d,projectReferences:l,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s}):nse({configFileName:e,optionsToExtend:t,watchOptionsToExtend:l,extraFileExtensions:d,system:r,createProgram:i,reportDiagnostic:o,reportWatchStatus:s})}function NTe(e){let t,r,i,o,s,l,d,p,h=e.extendedConfigCache,m=!1,v=new Map,E,S=!1,A=e.useCaseSensitiveFileNames(),C=e.getCurrentDirectory(),{configFileName:R,optionsToExtend:L={},watchOptionsToExtend:G,extraFileExtensions:U,createProgram:K}=e,{rootFiles:F,options:oe,watchOptions:W,projectReferences:$}=e,de,fe,q=!1,H=!1,ee=R===void 0?void 0:C4(e,C,A),le=ee||e,Ee=F4(e,le),ce=gn();R&&e.configFileParsingResult&&(ba(e.configFileParsingResult),ce=gn()),Gn(f.Starting_compilation_in_watch_mode),R&&!e.configFileParsingResult&&(ce=rv(L),x.assert(!F),Jo(),ce=gn()),x.assert(oe),x.assert(F);let{watchFile:Z,watchDirectory:pe,writeLog:Ae}=aq(e,oe),Oe=od(A);Ae(`Current directory: ${C} CaseSensitiveFileNames: ${A}`);let _e;R&&(_e=Z(R,mn,2e3,W,dc.ConfigFile));let be=sq(e,()=>oe,le);Y4(be);let Te=be.getSourceFile;be.getSourceFile=(ze,...it)=>ei(ze,On(ze),...it),be.getSourceFileByPath=ei,be.getNewLine=()=>ce,be.fileExists=Wt,be.onReleaseOldSourceFile=io,be.onReleaseParsedCommandLine=ke,be.toPath=On,be.getCompilationSettings=()=>oe,be.useSourceOfProjectReferenceRedirect=Wo(e,e.useSourceOfProjectReferenceRedirect),be.watchDirectoryOfFailedLookupLocation=(ze,it,Ct)=>pe(ze,it,Ct,W,dc.FailedLookupLocations),be.watchAffectingFileLocation=(ze,it)=>Z(ze,it,2e3,W,dc.AffectingFileLocation),be.watchTypeRootsDirectory=(ze,it,Ct)=>pe(ze,it,Ct,W,dc.TypeRoots),be.getCachedDirectoryStructureHost=()=>ee,be.scheduleInvalidateResolutionsOfFailedLookupLocations=Jt,be.onInvalidatedResolution=Rt,be.onChangedAutomaticTypeDirectiveNames=Rt,be.fileIsOpen=_m,be.getCurrentProgram=Ge,be.writeLog=Ae,be.getParsedCommandLine=ln;let De=$H(be,R?Ur(Qi(R,C)):C,!1);be.resolveModuleNameLiterals=Wo(e,e.resolveModuleNameLiterals),be.resolveModuleNames=Wo(e,e.resolveModuleNames),!be.resolveModuleNameLiterals&&!be.resolveModuleNames&&(be.resolveModuleNameLiterals=De.resolveModuleNameLiterals.bind(De)),be.resolveTypeReferenceDirectiveReferences=Wo(e,e.resolveTypeReferenceDirectiveReferences),be.resolveTypeReferenceDirectives=Wo(e,e.resolveTypeReferenceDirectives),!be.resolveTypeReferenceDirectiveReferences&&!be.resolveTypeReferenceDirectives&&(be.resolveTypeReferenceDirectiveReferences=De.resolveTypeReferenceDirectiveReferences.bind(De)),be.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):De.resolveLibrary.bind(De),be.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Wo(e,e.getModuleResolutionCache):()=>De.getModuleResolutionCache();let he=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Wo(e,e.hasInvalidatedResolutions)||Ug:_m,Le=e.resolveLibrary?Wo(e,e.hasInvalidatedLibResolutions)||Ug:_m;return t=Q4(oe,be),ot(),et(),R&&Je(On(R),oe,W,dc.ExtendedConfigFile),R?{getCurrentProgram:st,getProgram:ni,close:Ke,getResolutionCache:Dt}:{getCurrentProgram:st,getProgram:ni,updateRootFileNames:jt,close:Ke,getResolutionCache:Dt};function Ke(){cr(),De.clear(),Au(v,ze=>{ze&&ze.fileWatcher&&(ze.fileWatcher.close(),ze.fileWatcher=void 0)}),_e&&(_e.close(),_e=void 0),h?.clear(),h=void 0,p&&(Au(p,Qp),p=void 0),o&&(Au(o,Qp),o=void 0),i&&(Au(i,vm),i=void 0),d&&(Au(d,ze=>{var it;(it=ze.watcher)==null||it.close(),ze.watcher=void 0,ze.watchedDirectories&&Au(ze.watchedDirectories,Qp),ze.watchedDirectories=void 0}),d=void 0)}function Dt(){return De}function st(){return t}function Ge(){return t&&t.getProgramOrUndefined()}function ot(){Ae("Synchronizing program"),x.assert(oe),x.assert(F),cr();let ze=st();S&&(ce=gn(),ze&&Y8(ze.getCompilerOptions(),oe)&&De.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:it,hasInvalidatedLibResolutions:Ct}=De.createHasInvalidatedResolutions(he,Le),{originalReadFile:on,originalFileExists:Qt,originalDirectoryExists:Zt,originalCreateDirectory:V,originalWriteFile:Re,readFileWithCache:St}=bk(be,On);return kH(Ge(),F,oe,M=>gi(M,St),M=>be.fileExists(M),it,Ct,Nr,ln,$)?H&&(m&&Gn(f.File_change_detected_Starting_incremental_compilation),t=K(void 0,void 0,be,t,fe,$),H=!1):(m&&Gn(f.File_change_detected_Starting_incremental_compilation),Vt(it,Ct)),m=!1,e.afterProgramCreate&&ze!==t&&e.afterProgramCreate(t),be.readFile=on,be.fileExists=Qt,be.directoryExists=Zt,be.createDirectory=V,be.writeFile=Re,t}function Vt(ze,it){Ae("CreatingProgramWith::"),Ae(` roots: ${JSON.stringify(F)}`),Ae(` options: ${JSON.stringify(oe)}`),$&&Ae(` projectReferences: ${JSON.stringify($)}`);let Ct=S||!Ge();S=!1,H=!1,De.startCachingPerDirectoryResolution(),be.hasInvalidatedResolutions=ze,be.hasInvalidatedLibResolutions=it,be.hasChangedAutomaticTypeDirectiveNames=Nr;let on=Ge();if(t=K(F,oe,be,t,fe,$),De.finishCachingPerDirectoryResolution(t.getProgram(),on),vH(t.getProgram(),i||(i=new Map),re),Ct&&De.updateTypeRootsWatch(),E){for(let Qt of E)i.has(Qt)||v.delete(Qt);E=void 0}}function jt(ze){x.assert(!R,"Cannot update root file names with config file watch mode"),F=ze,Rt()}function gn(){return rv(oe||L)}function On(ze){return ks(ze,C,Oe)}function en(ze){return typeof ze=="boolean"}function zt(ze){return typeof ze.version=="boolean"}function Wt(ze){let it=On(ze);return en(v.get(it))?!1:le.fileExists(ze)}function ei(ze,it,Ct,on,Qt){let Zt=v.get(it);if(en(Zt))return;let V=typeof Ct=="object"?Ct.impliedNodeFormat:void 0;if(Zt===void 0||Qt||zt(Zt)||Zt.sourceFile.impliedNodeFormat!==V){let Re=Te(ze,Ct,on);if(Zt)Re?(Zt.sourceFile=Re,Zt.version=Re.version,Zt.fileWatcher||(Zt.fileWatcher=nt(it,ze,tt,250,W,dc.SourceFile))):(Zt.fileWatcher&&Zt.fileWatcher.close(),v.set(it,!1));else if(Re){let St=nt(it,ze,tt,250,W,dc.SourceFile);v.set(it,{sourceFile:Re,version:Re.version,fileWatcher:St})}else v.set(it,!1);return Re}return Zt.sourceFile}function Ki(ze){let it=v.get(ze);it!==void 0&&(en(it)?v.set(ze,{version:!1}):it.version=!1)}function gi(ze,it){let Ct=v.get(ze);if(!Ct)return;if(Ct.version)return Ct.version;let on=it(ze);return on!==void 0?X4(be,on):void 0}function io(ze,it,Ct){let on=v.get(ze.resolvedPath);on!==void 0&&(en(on)?(E||(E=[])).push(ze.path):on.sourceFile===ze&&(on.fileWatcher&&on.fileWatcher.close(),v.delete(ze.resolvedPath),Ct||De.removeResolutionsOfFile(ze.path)))}function Gn(ze){e.onWatchStatusChange&&e.onWatchStatusChange(bl(ze),ce,oe||L)}function Nr(){return De.hasChangedAutomaticTypeDirectiveNames()}function cr(){return l?(e.clearTimeout(l),l=void 0,!0):!1}function Jt(){if(!e.setTimeout||!e.clearTimeout)return De.invalidateResolutionsOfFailedLookupLocations();let ze=cr();Ae(`Scheduling invalidateFailedLookup${ze?", Cancelled earlier one":""}`),l=e.setTimeout(Ue,250,"timerToInvalidateFailedLookupResolutions")}function Ue(){l=void 0,De.invalidateResolutionsOfFailedLookupLocations()&&Rt()}function Rt(){!e.setTimeout||!e.clearTimeout||(s&&e.clearTimeout(s),Ae("Scheduling update"),s=e.setTimeout(qr,250,"timerToUpdateProgram"))}function mn(){x.assert(!!R),r=2,Rt()}function qr(){s=void 0,m=!0,ni()}function ni(){var ze,it,Ct,on;switch(r){case 1:(ze=Pd)==null||ze.logStartUpdateProgram("PartialConfigReload"),ki();break;case 2:(it=Pd)==null||it.logStartUpdateProgram("FullConfigReload"),so();break;default:(Ct=Pd)==null||Ct.logStartUpdateProgram("SynchronizeProgram"),ot();break}return(on=Pd)==null||on.logStopUpdateProgram("Done"),st()}function ki(){Ae("Reloading new file names and options"),x.assert(oe),x.assert(R),r=0,F=AN(oe.configFile.configFileSpecs,Qi(Ur(R),C),oe,Ee,U),z6(F,Qi(R,C),oe.configFile.configFileSpecs,fe,q)&&(H=!0),ot()}function so(){x.assert(R),Ae(`Reloading config file: ${R}`),r=0,ee&&ee.clearCache(),Jo(),S=!0,ot(),et(),Je(On(R),oe,W,dc.ExtendedConfigFile)}function Jo(){x.assert(R),ba(V2(R,L,Ee,h||(h=new Map),G,U))}function ba(ze){F=ze.fileNames,oe=ze.options,W=ze.watchOptions,$=ze.projectReferences,de=ze.wildcardDirectories,fe=iT(ze).slice(),q=TN(ze.raw),H=!0}function ln(ze){let it=On(ze),Ct=d?.get(it);if(Ct){if(!Ct.updateLevel)return Ct.parsedCommandLine;if(Ct.parsedCommandLine&&Ct.updateLevel===1&&!e.getParsedCommandLine){Ae("Reloading new file names and options"),x.assert(oe);let Qt=AN(Ct.parsedCommandLine.options.configFile.configFileSpecs,Qi(Ur(ze),C),oe,Ee);return Ct.parsedCommandLine={...Ct.parsedCommandLine,fileNames:Qt},Ct.updateLevel=void 0,Ct.parsedCommandLine}}Ae(`Loading config file: ${ze}`);let on=e.getParsedCommandLine?e.getParsedCommandLine(ze):Tn(ze);return Ct?(Ct.parsedCommandLine=on,Ct.updateLevel=void 0):(d||(d=new Map)).set(it,Ct={parsedCommandLine:on}),_t(ze,it,Ct),on}function Tn(ze){let it=Ee.onUnRecoverableConfigFileDiagnostic;Ee.onUnRecoverableConfigFileDiagnostic=Ca;let Ct=V2(ze,void 0,Ee,h||(h=new Map),G);return Ee.onUnRecoverableConfigFileDiagnostic=it,Ct}function ke(ze){var it;let Ct=On(ze),on=d?.get(Ct);on&&(d.delete(Ct),on.watchedDirectories&&Au(on.watchedDirectories,Qp),(it=on.watcher)==null||it.close(),gH(Ct,p))}function nt(ze,it,Ct,on,Qt,Zt){return Z(it,(V,Re)=>Ct(V,Re,ze),on,Qt,Zt)}function tt(ze,it,Ct){yt(ze,Ct,it),it===2&&v.has(Ct)&&De.invalidateResolutionOfFile(Ct),Ki(Ct),Rt()}function yt(ze,it,Ct){ee&&ee.addOrDeleteFile(ze,it,Ct)}function re(ze,it){return d?.has(ze)?uR:nt(ze,it,Ce,500,W,dc.MissingFile)}function Ce(ze,it,Ct){yt(ze,Ct,it),it===0&&i.has(Ct)&&(i.get(Ct).close(),i.delete(Ct),Ki(Ct),Rt())}function et(){gk(o||(o=new Map),de,z)}function z(ze,it){return pe(ze,Ct=>{x.assert(R),x.assert(oe);let on=On(Ct);ee&&ee.addOrDeleteFileOrDirectory(Ct,on),Ki(on),!vk({watchedDirPath:On(ze),fileOrDirectory:Ct,fileOrDirectoryPath:on,configFileName:R,extraFileExtensions:U,options:oe,program:st()||F,currentDirectory:C,useCaseSensitiveFileNames:A,writeLog:Ae,toPath:On})&&r!==2&&(r=1,Rt())},it,W,dc.WildcardDirectory)}function Je(ze,it,Ct,on){N4(ze,it,p||(p=new Map),(Qt,Zt)=>Z(Qt,(V,Re)=>{var St;yt(Qt,Zt,Re),h&&P4(h,Zt,On);let M=(St=p.get(Zt))==null?void 0:St.projects;M?.size&&M.forEach(te=>{if(R&&On(R)===te)r=2;else{let j=d?.get(te);j&&(j.updateLevel=2),De.removeResolutionsFromProjectReferenceRedirects(te)}Rt()})},2e3,Ct,on),On)}function _t(ze,it,Ct){var on,Qt,Zt,V;Ct.watcher||(Ct.watcher=Z(ze,(Re,St)=>{yt(ze,it,St);let M=d?.get(it);M&&(M.updateLevel=2),De.removeResolutionsFromProjectReferenceRedirects(it),Rt()},2e3,((on=Ct.parsedCommandLine)==null?void 0:on.watchOptions)||W,dc.ConfigFileOfReferencedProject)),gk(Ct.watchedDirectories||(Ct.watchedDirectories=new Map),(Qt=Ct.parsedCommandLine)==null?void 0:Qt.wildcardDirectories,(Re,St)=>{var M;return pe(Re,te=>{let j=On(te);ee&&ee.addOrDeleteFileOrDirectory(te,j),Ki(j);let se=d?.get(it);se?.parsedCommandLine&&(vk({watchedDirPath:On(Re),fileOrDirectory:te,fileOrDirectoryPath:j,configFileName:ze,options:se.parsedCommandLine.options,program:se.parsedCommandLine.fileNames,currentDirectory:C,useCaseSensitiveFileNames:A,writeLog:Ae,toPath:On})||se.updateLevel!==2&&(se.updateLevel=1,Rt()))},St,((M=Ct.parsedCommandLine)==null?void 0:M.watchOptions)||W,dc.WildcardDirectoryOfReferencedProject)}),Je(it,(Zt=Ct.parsedCommandLine)==null?void 0:Zt.options,((V=Ct.parsedCommandLine)==null?void 0:V.watchOptions)||W,dc.ExtendedConfigOfReferencedProject)}}var t5e=pt({"src/compiler/watchPublic.ts"(){"use strict";wo()}});function dq(e){return el(e,".json")?e:wr(e,"tsconfig.json")}var uq,n5e=pt({"src/compiler/tsbuild.ts"(){"use strict";wo(),uq=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(uq||{})}});function r5e(e,t,r){let i=e.get(t),o;return i||(o=r(),e.set(t,o)),i||o}function ase(e,t){return r5e(e,t,()=>new Map)}function Rk(e){return e.now?e.now():new Date}function II(e){return!!e&&!!e.buildOrder}function Z4(e){return II(e)?e.buildOrder:e}function sse(e,t){return r=>{let i=t?`[${b0(xk(e),"\x1B[90m")}] `:`${xk(e)} - `;i+=`${o_(r.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function PTe(e,t,r,i){let o=lq(e,t);return o.getModifiedTime=e.getModifiedTime?s=>e.getModifiedTime(s):ub,o.setModifiedTime=e.setModifiedTime?(s,l)=>e.setModifiedTime(s,l):Ca,o.deleteFile=e.deleteFile?s=>e.deleteFile(s):Ca,o.reportDiagnostic=r||Ik(e),o.reportSolutionBuilderStatus=i||sse(e),o.now=Wo(e,e.now),o}function MTe(e=Hc,t,r,i,o){let s=PTe(e,t,r,i);return s.reportErrorSummary=o,s}function LTe(e=Hc,t,r,i,o){let s=PTe(e,t,r,i),l=oq(e,o);return sB(s,l),s}function i5e(e){let t={};return X2.forEach(r=>{rs(e,r.name)&&(t[r.name]=e[r.name])}),t}function kTe(e,t,r){return iAe(!1,e,t,r)}function OTe(e,t,r,i){return iAe(!0,e,t,r,i)}function o5e(e,t,r,i,o){let s=t,l=t,d=i5e(i),p=sq(s,()=>C.projectCompilerOptions);Y4(p),p.getParsedCommandLine=R=>xI(C,R,a_(C,R)),p.resolveModuleNameLiterals=Wo(s,s.resolveModuleNameLiterals),p.resolveTypeReferenceDirectiveReferences=Wo(s,s.resolveTypeReferenceDirectiveReferences),p.resolveLibrary=Wo(s,s.resolveLibrary),p.resolveModuleNames=Wo(s,s.resolveModuleNames),p.resolveTypeReferenceDirectives=Wo(s,s.resolveTypeReferenceDirectives),p.getModuleResolutionCache=Wo(s,s.getModuleResolutionCache);let h,m;!p.resolveModuleNameLiterals&&!p.resolveModuleNames&&(h=Qx(p.getCurrentDirectory(),p.getCanonicalFileName),p.resolveModuleNameLiterals=(R,L,G,U,K)=>Sk(R,L,G,U,K,s,h,NH),p.getModuleResolutionCache=()=>h),!p.resolveTypeReferenceDirectiveReferences&&!p.resolveTypeReferenceDirectives&&(m=Q6(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache(),h?.optionsToRedirectsKey),p.resolveTypeReferenceDirectiveReferences=(R,L,G,U,K)=>Sk(R,L,G,U,K,s,m,L4));let v;p.resolveLibrary||(v=Qx(p.getCurrentDirectory(),p.getCanonicalFileName,void 0,h?.getPackageJsonInfoCache()),p.resolveLibrary=(R,L,G)=>Z6(R,L,G,s,v)),p.getBuildInfo=(R,L)=>XTe(C,R,a_(C,L),void 0);let{watchFile:E,watchDirectory:S,writeLog:A}=aq(l,i),C={host:s,hostWithWatch:l,parseConfigFileHost:F4(s),write:Wo(s,s.trace),options:i,baseCompilerOptions:d,rootNames:r,baseWatchOptions:o,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:p,moduleResolutionCache:h,typeReferenceDirectiveResolutionCache:m,libraryResolutionCache:v,buildOrder:void 0,readFileWithCache:R=>s.readFile(R),projectCompilerOptions:d,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:E,watchDirectory:S,writeLog:A};return C}function Zp(e,t){return ks(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function a_(e,t){let{resolvedConfigFilePaths:r}=e,i=r.get(t);if(i!==void 0)return i;let o=Zp(e,t);return r.set(t,o),o}function wTe(e){return!!e.options}function a5e(e,t){let r=e.configFileCache.get(t);return r&&wTe(r)?r:void 0}function xI(e,t,r){let{configFileCache:i}=e,o=i.get(r);if(o)return wTe(o)?o:void 0;Ls("SolutionBuilder::beforeConfigFileParsing");let s,{parseConfigFileHost:l,baseCompilerOptions:d,baseWatchOptions:p,extendedConfigCache:h,host:m}=e,v;return m.getParsedCommandLine?(v=m.getParsedCommandLine(t),v||(s=bl(f.File_0_not_found,t))):(l.onUnRecoverableConfigFileDiagnostic=E=>s=E,v=V2(t,d,l,h,p),l.onUnRecoverableConfigFileDiagnostic=Ca),i.set(r,v||s),Ls("SolutionBuilder::afterConfigFileParsing"),Ep("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),v}function UN(e,t){return dq(jv(e.compilerHost.getCurrentDirectory(),t))}function WTe(e,t){let r=new Map,i=new Map,o=[],s,l;for(let p of t)d(p);return l?{buildOrder:s||je,circularDiagnostics:l}:s||je;function d(p,h){let m=a_(e,p);if(i.has(m))return;if(r.has(m)){h||(l||(l=[])).push(bl(f.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,o.join(`\r
`)));return}r.set(m,!0),o.push(p);let v=xI(e,p,m);if(v&&v.projectReferences)for(let E of v.projectReferences){let S=UN(e,E.path);d(S,h||E.circular)}o.pop(),i.set(m,!0),(s||(s=[])).push(p)}}function e3(e){return e.buildOrder||s5e(e)}function s5e(e){let t=WTe(e,e.rootNames.map(o=>UN(e,o)));e.resolvedConfigFilePaths.clear();let r=new Set(Z4(t).map(o=>a_(e,o))),i={onDeleteValue:Ca};return Ih(e.configFileCache,r,i),Ih(e.projectStatus,r,i),Ih(e.builderPrograms,r,i),Ih(e.diagnostics,r,i),Ih(e.projectPendingBuild,r,i),Ih(e.projectErrorsReported,r,i),Ih(e.buildInfoCache,r,i),Ih(e.outputTimeStamps,r,i),Ih(e.lastCachedPackageJsonLookups,r,i),e.watch&&(Ih(e.allWatchedConfigFiles,r,{onDeleteValue:vm}),e.allWatchedExtendedConfigFiles.forEach(o=>{o.projects.forEach(s=>{r.has(s)||o.projects.delete(s)}),o.close()}),Ih(e.allWatchedWildcardDirectories,r,{onDeleteValue:o=>o.forEach(Qp)}),Ih(e.allWatchedInputFiles,r,{onDeleteValue:o=>o.forEach(vm)}),Ih(e.allWatchedPackageJsonFiles,r,{onDeleteValue:o=>o.forEach(vm)})),e.buildOrder=t}function FTe(e,t,r){let i=t&&UN(e,t),o=e3(e);if(II(o))return o;if(i){let l=a_(e,i);if(Tl(o,p=>a_(e,p)===l)===-1)return}let s=i?WTe(e,[i]):o;return x.assert(!II(s)),x.assert(!r||i!==void 0),x.assert(!r||s[s.length-1]===i),r?s.slice(0,s.length-1):s}function zTe(e){e.cache&&lse(e);let{compilerHost:t,host:r}=e,i=e.readFileWithCache,o=t.getSourceFile,{originalReadFile:s,originalFileExists:l,originalDirectoryExists:d,originalCreateDirectory:p,originalWriteFile:h,getSourceFileWithCache:m,readFileWithCache:v}=bk(r,E=>Zp(e,E),(...E)=>o.call(t,...E));e.readFileWithCache=v,t.getSourceFile=m,e.cache={originalReadFile:s,originalFileExists:l,originalDirectoryExists:d,originalCreateDirectory:p,originalWriteFile:h,originalReadFileWithCache:i,originalGetSourceFile:o}}function lse(e){if(!e.cache)return;let{cache:t,host:r,compilerHost:i,extendedConfigCache:o,moduleResolutionCache:s,typeReferenceDirectiveResolutionCache:l,libraryResolutionCache:d}=e;r.readFile=t.originalReadFile,r.fileExists=t.originalFileExists,r.directoryExists=t.originalDirectoryExists,r.createDirectory=t.originalCreateDirectory,r.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,o.clear(),s?.clear(),l?.clear(),d?.clear(),e.cache=void 0}function BTe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function GTe({projectPendingBuild:e},t,r){let i=e.get(t);(i===void 0||i<r)&&e.set(t,r)}function VTe(e,t){if(!e.allProjectBuildPending)return;e.allProjectBuildPending=!1,e.options.watch&&bse(e,f.Starting_compilation_in_watch_mode),zTe(e),Z4(e3(e)).forEach(i=>e.projectPendingBuild.set(a_(e,i),0)),t&&t.throwIfCancellationRequested()}function jTe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function l5e(e,t,r,i,o){let s=!0;return{kind:2,project:t,projectPath:r,buildOrder:o,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{$Te(e,i,r),s=!1},done:()=>(s&&$Te(e,i,r),Ls("SolutionBuilder::Timestamps only updates"),jTe(e,r))}}function UTe(e,t,r,i,o,s,l){let d=e===0?0:4,p,h,m;return e===0?{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>E(Ps),getProgram:()=>E(W=>W.getProgramOrUndefined()),getSourceFile:W=>E($=>$.getSourceFile(W)),getSourceFiles:()=>S(W=>W.getSourceFiles()),getOptionsDiagnostics:W=>S($=>$.getOptionsDiagnostics(W)),getGlobalDiagnostics:W=>S($=>$.getGlobalDiagnostics(W)),getConfigFileParsingDiagnostics:()=>S(W=>W.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(W,$)=>S(de=>de.getSyntacticDiagnostics(W,$)),getAllDependencies:W=>S($=>$.getAllDependencies(W)),getSemanticDiagnostics:(W,$)=>S(de=>de.getSemanticDiagnostics(W,$)),getSemanticDiagnosticsOfNextAffectedFile:(W,$)=>E(de=>de.getSemanticDiagnosticsOfNextAffectedFile&&de.getSemanticDiagnosticsOfNextAffectedFile(W,$)),emit:(W,$,de,fe,q)=>{if(W||fe)return E(H=>{var ee,le;return H.emit(W,$,de,fe,q||((le=(ee=t.host).getCustomTransformers)==null?void 0:le.call(ee,r)))});if(oe(2,de),d===5)return U($,de);if(d===3)return G($,de,q)},done:v}:{kind:e,project:r,projectPath:i,buildOrder:l,getCompilerOptions:()=>s.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(W,$)=>d!==4?m:F(W,$),done:v};function v(W,$,de){return oe(8,W,$,de),Ls(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),jTe(t,i)}function E(W){return oe(0),p&&W(p)}function S(W){return E(W)||je}function A(){var W,$,de;if(x.assert(p===void 0),t.options.dry){Zd(t,f.A_non_dry_build_would_build_project_0,r),h=1,d=7;return}if(t.options.verbose&&Zd(t,f.Building_project_0,r),s.fileNames.length===0){HN(t,i,iT(s)),h=0,d=7;return}let{host:fe,compilerHost:q}=t;if(t.projectCompilerOptions=s.options,(W=t.moduleResolutionCache)==null||W.update(s.options),($=t.typeReferenceDirectiveResolutionCache)==null||$.update(s.options),p=fe.createProgram(s.fileNames,s.options,q,d5e(t,i,s),iT(s),s.projectReferences),t.watch){let H=(de=t.moduleResolutionCache)==null?void 0:de.getPackageJsonInfoCache().getInternalMap();t.lastCachedPackageJsonLookups.set(i,H&&new Set(bo(H.values(),ee=>t.host.realpath&&($6(ee)||ee.directoryExists)?t.host.realpath(wr(ee.packageDirectory,"package.json")):wr(ee.packageDirectory,"package.json")))),t.builderPrograms.set(i,p)}d++}function C(W,$,de){W.length?{buildResult:h,step:d}=use(t,i,p,s,W,$,de):d++}function R(W){x.assertIsDefined(p),C([...p.getConfigFileParsingDiagnostics(),...p.getOptionsDiagnostics(W),...p.getGlobalDiagnostics(W),...p.getSyntacticDiagnostics(void 0,W)],8,"Syntactic")}function L(W){C(x.checkDefined(p).getSemanticDiagnostics(void 0,W),16,"Semantic")}function G(W,$,de){var fe,q,H;x.assertIsDefined(p),x.assert(d===3);let ee=p.saveEmitState(),le,Ee=Le=>(le||(le=[])).push(Le),ce=[],{emitResult:Z}=K4(p,Ee,void 0,void 0,(Le,Ke,Dt,st,Ge,ot)=>ce.push({name:Le,text:Ke,writeByteOrderMark:Dt,data:ot}),$,!1,de||((q=(fe=t.host).getCustomTransformers)==null?void 0:q.call(fe,r)));if(le)return p.restoreEmitState(ee),{buildResult:h,step:d}=use(t,i,p,s,le,32,"Declaration file"),{emitSkipped:!0,diagnostics:Z.diagnostics};let{host:pe,compilerHost:Ae}=t,Oe=(H=p.hasChangedEmitSignature)!=null&&H.call(p)?0:2,_e=hx(),be=new Map,Te=p.getCompilerOptions(),De=tN(Te),ft,he;return ce.forEach(({name:Le,text:Ke,writeByteOrderMark:Dt,data:st})=>{let Ge=Zp(t,Le);be.set(Zp(t,Le),Le),st?.buildInfo&&fse(t,st.buildInfo,i,Te,Oe);let ot=st?.differsOnlyInMap?SA(t.host,Le):void 0;RC(W?{writeFile:W}:Ae,_e,Le,Ke,Dt),st?.differsOnlyInMap?t.host.setModifiedTime(Le,ot):!De&&t.watch&&(ft||(ft=pse(t,i))).set(Ge,he||(he=Rk(t.host)))}),K(_e,be,ce.length?ce[0].name:mH(s,!pe.useCaseSensitiveFileNames()),Oe),Z}function U(W,$){x.assertIsDefined(p),x.assert(d===5);let de=p.emitBuildInfo((fe,q,H,ee,le,Ee)=>{Ee?.buildInfo&&fse(t,Ee.buildInfo,i,p.getCompilerOptions(),2),W?W(fe,q,H,ee,le,Ee):t.compilerHost.writeFile(fe,q,H,ee,le,Ee)},$);return de.diagnostics.length&&(n3(t,de.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...de.diagnostics]),h=64&h),de.emittedFiles&&t.write&&de.emittedFiles.forEach(fe=>JTe(t,s,fe)),dse(t,p,s),d=7,de}function K(W,$,de,fe){let q=W.getDiagnostics();return q.length?({buildResult:h,step:d}=use(t,i,p,s,q,64,"Emit"),q):(t.write&&$.forEach(H=>JTe(t,s,H)),YTe(t,s,i,f.Updating_unchanged_output_timestamps_of_project_0,$),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:de}),dse(t,p,s),d=7,h=fe,q)}function F(W,$){var de,fe,q,H;if(x.assert(e===1),t.options.dry){Zd(t,f.A_non_dry_build_would_update_output_of_project_0,r),h=1,d=7;return}t.options.verbose&&Zd(t,f.Updating_output_of_project_0,r);let{compilerHost:ee}=t;t.projectCompilerOptions=s.options,(fe=(de=t.host).beforeEmitBundle)==null||fe.call(de,s);let le=Eae(s,ee,Oe=>{let _e=UN(t,Oe.path);return xI(t,_e,a_(t,_e))},$||((H=(q=t.host).getCustomTransformers)==null?void 0:H.call(q,r)));if(fo(le))return Zd(t,f.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,r,Wc(t,le)),d=6,m=UTe(0,t,r,i,o,s,l);x.assert(!!le.length);let Ee=hx(),ce=new Map,Z=2,pe=t.buildInfoCache.get(i).buildInfo||void 0;return le.forEach(({name:Oe,text:_e,writeByteOrderMark:be,data:Te})=>{var De,ft;ce.set(Zp(t,Oe),Oe),Te?.buildInfo&&(((De=Te.buildInfo.program)==null?void 0:De.outSignature)!==((ft=pe?.program)==null?void 0:ft.outSignature)&&(Z&=-3),fse(t,Te.buildInfo,i,s.options,Z)),RC(W?{writeFile:W}:ee,Ee,Oe,_e,be)}),{emitSkipped:!1,diagnostics:K(Ee,ce,le[0].name,Z)}}function oe(W,$,de,fe){for(;d<=W&&d<8;){let q=d;switch(d){case 0:A();break;case 1:R($);break;case 2:L($);break;case 3:G(de,$,fe);break;case 5:U(de,$);break;case 4:F(de,fe);break;case 6:x.checkDefined(m).done($,de,fe),d=8;break;case 7:m5e(t,r,i,o,s,l,x.checkDefined(h)),d++;break;case 8:default:}x.assert(d>q)}}}function c5e({options:e},t,r){return t.type!==3||e.force?!0:r.fileNames.length===0||!!iT(r).length||!tN(r.options)}function HTe(e,t,r){if(!e.projectPendingBuild.size||II(t))return;let{options:i,projectPendingBuild:o}=e;for(let s=0;s<t.length;s++){let l=t[s],d=a_(e,l),p=e.projectPendingBuild.get(d);if(p===void 0)continue;r&&(r=!1,sAe(e,t));let h=xI(e,l,d);if(!h){oAe(e,d),o.delete(d);continue}p===2?(tAe(e,l,d,h),nAe(e,d,h),rAe(e,l,d,h),vse(e,l,d,h),yse(e,l,d,h)):p===1&&(h.fileNames=AN(h.options.configFile.configFileSpecs,Ur(l),h.options,e.parseConfigFileHost),z6(h.fileNames,l,h.options.configFile.configFileSpecs,h.errors,TN(h.raw)),vse(e,l,d,h),yse(e,l,d,h));let m=hse(e,h,d);if(!i.force){if(m.type===1){mq(e,l,m),HN(e,d,iT(h)),o.delete(d),i.dry&&Zd(e,f.Project_0_is_up_to_date,l);continue}if(m.type===2||m.type===15)return HN(e,d,iT(h)),{kind:2,status:m,project:l,projectPath:d,projectIndex:s,config:h}}if(m.type===12){mq(e,l,m),HN(e,d,iT(h)),o.delete(d),i.verbose&&Zd(e,m.upstreamProjectBlocked?f.Skipping_build_of_project_0_because_its_dependency_1_was_not_built:f.Skipping_build_of_project_0_because_its_dependency_1_has_errors,l,m.upstreamProjectName);continue}if(m.type===16){mq(e,l,m),HN(e,d,iT(h)),o.delete(d);continue}return{kind:c5e(e,m,h)?0:1,status:m,project:l,projectPath:d,projectIndex:s,config:h}}}function qTe(e,t,r){return mq(e,t.project,t.status),t.kind!==2?UTe(t.kind,e,t.project,t.projectPath,t.projectIndex,t.config,r):l5e(e,t.project,t.projectPath,t.config,r)}function cse(e,t,r){let i=HTe(e,t,r);return i&&qTe(e,i,t)}function JTe({write:e},t,r){e&&t.options.listEmittedFiles&&e(`TSFILE: ${r}`)}function d5e({options:e,builderPrograms:t,compilerHost:r},i,o){if(e.force)return;let s=t.get(i);return s||Q4(o.options,r)}function dse(e,t,r){t?(e.write&&ZH(t,e.write),e.host.afterProgramEmitAndDiagnostics&&e.host.afterProgramEmitAndDiagnostics(t),t.releaseProgram()):e.host.afterEmitBundle&&e.host.afterEmitBundle(r),e.projectCompilerOptions=e.baseCompilerOptions}function use(e,t,r,i,o,s,l){let d=r&&!ss(r.getCompilerOptions());return HN(e,t,o),e.projectStatus.set(t,{type:0,reason:`${l} errors`}),d?{buildResult:s,step:5}:(dse(e,r,i),{buildResult:s,step:7})}function pq(e){return!!e.watcher}function KTe(e,t){let r=Zp(e,t),i=e.filesWatched.get(r);if(e.watch&&i){if(!pq(i))return i;if(i.modifiedTime)return i.modifiedTime}let o=SA(e.host,t);return e.watch&&(i?i.modifiedTime=o:e.filesWatched.set(r,o)),o}function fq(e,t,r,i,o,s,l){let d=Zp(e,t),p=e.filesWatched.get(d);if(p&&pq(p))p.callbacks.push(r);else{let h=e.watchFile(t,(m,v,E)=>{let S=x.checkDefined(e.filesWatched.get(d));x.assert(pq(S)),S.modifiedTime=E,S.callbacks.forEach(A=>A(m,v,E))},i,o,s,l);e.filesWatched.set(d,{callbacks:[r],watcher:h,modifiedTime:p})}return{close:()=>{let h=x.checkDefined(e.filesWatched.get(d));x.assert(pq(h)),h.callbacks.length===1?(e.filesWatched.delete(d),Qp(h)):bA(h.callbacks,r)}}}function pse(e,t){if(!e.watch)return;let r=e.outputTimeStamps.get(t);return r||e.outputTimeStamps.set(t,r=new Map),r}function fse(e,t,r,i,o){let s=dv(i),l=mse(e,s,r),d=Rk(e.host);l?(l.buildInfo=t,l.modifiedTime=d,o&2||(l.latestChangedDtsTime=d)):e.buildInfoCache.set(r,{path:Zp(e,s),buildInfo:t,modifiedTime:d,latestChangedDtsTime:o&2?void 0:d})}function mse(e,t,r){let i=Zp(e,t),o=e.buildInfoCache.get(r);return o?.path===i?o:void 0}function XTe(e,t,r,i){let o=Zp(e,t),s=e.buildInfoCache.get(r);if(s!==void 0&&s.path===o)return s.buildInfo||void 0;let l=e.readFileWithCache(t),d=l?R4(t,l):void 0;return e.buildInfoCache.set(r,{path:o,buildInfo:d||!1,modifiedTime:i||ip}),d}function _se(e,t,r,i){let o=KTe(e,t);if(r<o)return{type:6,outOfDateOutputFileName:i,newerInputFileName:t}}function u5e(e,t,r){var i,o,s;if(!t.fileNames.length&&!TN(t.raw))return{type:16};let l,d=!!e.options.force;if(t.projectReferences){e.projectStatus.set(r,{type:13});for(let q of t.projectReferences){let H=sR(q),ee=a_(e,H),le=xI(e,H,ee),Ee=hse(e,le,ee);if(!(Ee.type===13||Ee.type===16)){if(Ee.type===0||Ee.type===12)return{type:12,upstreamProjectName:q.path,upstreamProjectBlocked:Ee.type===12};if(Ee.type!==1)return{type:11,upstreamProjectName:q.path};d||(l||(l=[])).push({ref:q,refStatus:Ee,resolvedRefPath:ee,resolvedConfig:le})}}}if(d)return{type:17};let{host:p}=e,h=dv(t.options),m,v=cAe,E,S,A;if(h){let q=mse(e,h,r);if(E=q?.modifiedTime||SA(p,h),E===ip)return q||e.buildInfoCache.set(r,{path:Zp(e,h),buildInfo:!1,modifiedTime:E}),{type:4,missingOutputFileName:h};let H=XTe(e,h,r,E);if(!H)return{type:5,fileName:h};if((H.bundle||H.program)&&H.version!==yp)return{type:14,version:H.version};if(H.program){if((i=H.program.changeFileSet)!=null&&i.length||(t.options.noEmit?ct(H.program.semanticDiagnosticsPerFile,oo):(o=H.program.affectedFilesPendingEmit)!=null&&o.length||(s=H.program.emitDiagnosticsPerFile)!=null&&s.length))return{type:8,buildInfoFile:h};if(!t.options.noEmit&&cR(t.options,H.program.options||{}))return{type:9,buildInfoFile:h};S=H.program}v=E,m=h}let C,R=lAe,L=!1,G=new Set;for(let q of t.fileNames){let H=KTe(e,q);if(H===ip)return{type:0,reason:`${q} does not exist`};if(E&&E<H){let ee,le;if(S){A||(A=HH(S,h,p)),ee=A.fileInfos.get(Zp(e,q));let Ee=ee?e.readFileWithCache(q):void 0;le=Ee!==void 0?X4(p,Ee):void 0,ee&&ee===le&&(L=!0)}if(!ee||ee!==le)return{type:6,outOfDateOutputFileName:h,newerInputFileName:q}}H>R&&(C=q,R=H),S&&G.add(Zp(e,q))}if(S){A||(A=HH(S,h,p));for(let q of A.roots)if(!G.has(q))return{type:10,buildInfoFile:h,inputFile:q}}if(!h){let q=I4(t,!p.useCaseSensitiveFileNames()),H=pse(e,r);for(let ee of q){let le=Zp(e,ee),Ee=H?.get(le);if(Ee||(Ee=SA(e.host,ee),H?.set(le,Ee)),Ee===ip)return{type:4,missingOutputFileName:ee};if(Ee<R)return{type:6,outOfDateOutputFileName:ee,newerInputFileName:C};Ee<v&&(v=Ee,m=ee)}}let U=e.buildInfoCache.get(r),K=!1,F=!1,oe;if(l)for(let{ref:q,refStatus:H,resolvedConfig:ee,resolvedRefPath:le}of l){if(F=F||!!q.prepend,H.newestInputFileTime&&H.newestInputFileTime<=v)continue;if(U&&p5e(e,U,le))return{type:7,outOfDateOutputFileName:h,newerProjectName:q.path};let Ee=f5e(e,ee.options,le);if(Ee&&Ee<=v){K=!0,oe=q.path;continue}return x.assert(m!==void 0,"Should have an oldest output filename here"),{type:7,outOfDateOutputFileName:m,newerProjectName:q.path}}let W=_se(e,t.options.configFilePath,v,m);if(W)return W;let $=an(t.options.configFile.extendedSourceFiles||je,q=>_se(e,q,v,m));if($)return $;let de=e.lastCachedPackageJsonLookups.get(r),fe=de&&k_(de,q=>_se(e,q,v,m));return fe||(F&&K?{type:3,outOfDateOutputFileName:m,newerProjectName:oe}:{type:K?2:L?15:1,newestInputFileTime:R,newestInputFileName:C,oldestOutputFileName:m})}function p5e(e,t,r){return e.buildInfoCache.get(r).path===t.path}function hse(e,t,r){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(r);if(i!==void 0)return i;Ls("SolutionBuilder::beforeUpToDateCheck");let o=u5e(e,t,r);return Ls("SolutionBuilder::afterUpToDateCheck"),Ep("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(r,o),o}function YTe(e,t,r,i,o){if(t.options.noEmit)return;let s,l=dv(t.options);if(l){o?.has(Zp(e,l))||(e.options.verbose&&Zd(e,i,t.options.configFilePath),e.host.setModifiedTime(l,s=Rk(e.host)),mse(e,l,r).modifiedTime=s),e.outputTimeStamps.delete(r);return}let{host:d}=e,p=I4(t,!d.useCaseSensitiveFileNames()),h=pse(e,r),m=h?new Set:void 0;if(!o||p.length!==o.size){let v=!!e.options.verbose;for(let E of p){let S=Zp(e,E);o?.has(S)||(v&&(v=!1,Zd(e,i,t.options.configFilePath)),d.setModifiedTime(E,s||(s=Rk(e.host))),h&&(h.set(S,s),m.add(S)))}}h?.forEach((v,E)=>{!o?.has(E)&&!m.has(E)&&h.delete(E)})}function f5e(e,t,r){if(!t.composite)return;let i=x.checkDefined(e.buildInfoCache.get(r));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let o=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(Qi(i.buildInfo.program.latestChangedDtsFile,Ur(i.path))):void 0;return i.latestChangedDtsTime=o||!1,o}function $Te(e,t,r){if(e.options.dry)return Zd(e,f.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);YTe(e,t,r,f.Updating_output_timestamps_of_project_0),e.projectStatus.set(r,{type:1,oldestOutputFileName:mH(t,!e.host.useCaseSensitiveFileNames())})}function m5e(e,t,r,i,o,s,l){if(!(l&124)&&o.options.composite)for(let d=i+1;d<s.length;d++){let p=s[d],h=a_(e,p);if(e.projectPendingBuild.has(h))continue;let m=xI(e,p,h);if(!(!m||!m.projectReferences))for(let v of m.projectReferences){let E=UN(e,v.path);if(a_(e,E)!==r)continue;let S=e.projectStatus.get(h);if(S)switch(S.type){case 1:if(l&2){v.prepend?e.projectStatus.set(h,{type:3,outOfDateOutputFileName:S.oldestOutputFileName,newerProjectName:t}):S.type=2;break}case 15:case 2:case 3:l&2||e.projectStatus.set(h,{type:7,outOfDateOutputFileName:S.type===3?S.outOfDateOutputFileName:S.oldestOutputFileName,newerProjectName:t});break;case 12:a_(e,UN(e,S.upstreamProjectName))===r&&BTe(e,h);break}GTe(e,h,0);break}}}function QTe(e,t,r,i,o,s){Ls("SolutionBuilder::beforeBuild");let l=_5e(e,t,r,i,o,s);return Ls("SolutionBuilder::afterBuild"),Ep("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),l}function _5e(e,t,r,i,o,s){let l=FTe(e,t,s);if(!l)return 3;VTe(e,r);let d=!0,p=0;for(;;){let h=cse(e,l,d);if(!h)break;d=!1,h.done(r,i,o?.(h.project)),e.diagnostics.has(h.projectPath)||p++}return lse(e),aAe(e,l),y5e(e,l),II(l)?4:l.some(h=>e.diagnostics.has(a_(e,h)))?p?2:1:0}function ZTe(e,t,r){Ls("SolutionBuilder::beforeClean");let i=h5e(e,t,r);return Ls("SolutionBuilder::afterClean"),Ep("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function h5e(e,t,r){let i=FTe(e,t,r);if(!i)return 3;if(II(i))return n3(e,i.circularDiagnostics),4;let{options:o,host:s}=e,l=o.dry?[]:void 0;for(let d of i){let p=a_(e,d),h=xI(e,d,p);if(h===void 0){oAe(e,p);continue}let m=I4(h,!s.useCaseSensitiveFileNames());if(!m.length)continue;let v=new Set(h.fileNames.map(E=>Zp(e,E)));for(let E of m)v.has(Zp(e,E))||s.fileExists(E)&&(l?l.push(E):(s.deleteFile(E),gse(e,p,0)))}return l&&Zd(e,f.A_non_dry_build_would_delete_the_following_files_Colon_0,l.map(d=>`\r
* ${d}`).join("")),0}function gse(e,t,r){e.host.getParsedCommandLine&&r===1&&(r=2),r===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,BTe(e,t),GTe(e,t,r),zTe(e)}function t3(e,t,r){e.reportFileChangeDetected=!0,gse(e,t,r),eAe(e,250,!0)}function eAe(e,t,r){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(g5e,t,"timerToBuildInvalidatedProject",e,r))}function g5e(e,t,r){Ls("SolutionBuilder::beforeBuild");let i=v5e(t,r);Ls("SolutionBuilder::afterBuild"),Ep("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&aAe(t,i)}function v5e(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),bse(e,f.File_change_detected_Starting_incremental_compilation));let r=0,i=e3(e),o=cse(e,i,!1);if(o)for(o.done(),r++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let s=HTe(e,i,!1);if(!s)break;if(s.kind!==2&&(t||r===5)){eAe(e,100,!1);return}qTe(e,s,i).done(),s.kind!==2&&r++}return lse(e),i}function tAe(e,t,r,i){!e.watch||e.allWatchedConfigFiles.has(r)||e.allWatchedConfigFiles.set(r,fq(e,t,()=>t3(e,r,2),2e3,i?.watchOptions,dc.ConfigFile,t))}function nAe(e,t,r){N4(t,r?.options,e.allWatchedExtendedConfigFiles,(i,o)=>fq(e,i,()=>{var s;return(s=e.allWatchedExtendedConfigFiles.get(o))==null?void 0:s.projects.forEach(l=>t3(e,l,2))},2e3,r?.watchOptions,dc.ExtendedConfigFile),i=>Zp(e,i))}function rAe(e,t,r,i){e.watch&&gk(ase(e.allWatchedWildcardDirectories,r),i.wildcardDirectories,(o,s)=>e.watchDirectory(o,l=>{var d;vk({watchedDirPath:Zp(e,o),fileOrDirectory:l,fileOrDirectoryPath:Zp(e,l),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(r)||((d=a5e(e,r))==null?void 0:d.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:p=>e.writeLog(p),toPath:p=>Zp(e,p)})||t3(e,r,1)},s,i?.watchOptions,dc.WildcardDirectory,t))}function vse(e,t,r,i){e.watch&&FC(ase(e.allWatchedInputFiles,r),new Set(i.fileNames),{createNewValue:o=>fq(e,o,()=>t3(e,r,0),250,i?.watchOptions,dc.SourceFile,t),onDeleteValue:vm})}function yse(e,t,r,i){!e.watch||!e.lastCachedPackageJsonLookups||FC(ase(e.allWatchedPackageJsonFiles,r),e.lastCachedPackageJsonLookups.get(r),{createNewValue:o=>fq(e,o,()=>t3(e,r,0),2e3,i?.watchOptions,dc.PackageJson,t),onDeleteValue:vm})}function y5e(e,t){if(e.watchAllProjectsPending){Ls("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let r of Z4(t)){let i=a_(e,r),o=xI(e,r,i);tAe(e,r,i,o),nAe(e,i,o),o&&(rAe(e,r,i,o),vse(e,r,i,o),yse(e,r,i,o))}Ls("SolutionBuilder::afterWatcherCreation"),Ep("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function b5e(e){Au(e.allWatchedConfigFiles,vm),Au(e.allWatchedExtendedConfigFiles,Qp),Au(e.allWatchedWildcardDirectories,t=>Au(t,Qp)),Au(e.allWatchedInputFiles,t=>Au(t,vm)),Au(e.allWatchedPackageJsonFiles,t=>Au(t,vm))}function iAe(e,t,r,i,o){let s=o5e(e,t,r,i,o);return{build:(l,d,p,h)=>QTe(s,l,d,p,h),clean:l=>ZTe(s,l),buildReferences:(l,d,p,h)=>QTe(s,l,d,p,h,!0),cleanReferences:l=>ZTe(s,l,!0),getNextInvalidatedProject:l=>(VTe(s,l),cse(s,e3(s),!1)),getBuildOrder:()=>e3(s),getUpToDateStatusOfProject:l=>{let d=UN(s,l),p=a_(s,d);return hse(s,xI(s,d,p),p)},invalidateProject:(l,d)=>gse(s,l,d||0),close:()=>b5e(s)}}function Wc(e,t){return KD(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Zd(e,t,...r){e.host.reportSolutionBuilderStatus(bl(t,...r))}function bse(e,t,...r){var i,o;(o=(i=e.hostWithWatch).onWatchStatusChange)==null||o.call(i,bl(t,...r),e.host.getNewLine(),e.baseCompilerOptions)}function n3({host:e},t){t.forEach(r=>e.reportDiagnostic(r))}function HN(e,t,r){n3(e,r),e.projectErrorsReported.set(t,!0),r.length&&e.diagnostics.set(t,r)}function oAe(e,t){HN(e,t,[e.configFileCache.get(t)])}function aAe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let r=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,o=0,s=[];II(t)?(sAe(e,t.buildOrder),n3(e,t.circularDiagnostics),r&&(o+=q4(t.circularDiagnostics)),r&&(s=[...s,...J4(t.circularDiagnostics)])):(t.forEach(l=>{let d=a_(e,l);e.projectErrorsReported.has(d)||n3(e,i.get(d)||je)}),r&&i.forEach(l=>o+=q4(l)),r&&i.forEach(l=>[...s,...J4(l)])),e.watch?bse(e,QH(o),o):e.host.reportErrorSummary&&e.host.reportErrorSummary(o,s)}function sAe(e,t){e.options.verbose&&Zd(e,f.Projects_in_this_build_Colon_0,t.map(r=>`\r
* `+Wc(e,r)).join(""))}function E5e(e,t,r){switch(r.type){case 6:return Zd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Wc(e,t),Wc(e,r.outOfDateOutputFileName),Wc(e,r.newerInputFileName));case 7:return Zd(e,f.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,Wc(e,t),Wc(e,r.outOfDateOutputFileName),Wc(e,r.newerProjectName));case 4:return Zd(e,f.Project_0_is_out_of_date_because_output_file_1_does_not_exist,Wc(e,t),Wc(e,r.missingOutputFileName));case 5:return Zd(e,f.Project_0_is_out_of_date_because_there_was_error_reading_file_1,Wc(e,t),Wc(e,r.fileName));case 8:return Zd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,Wc(e,t),Wc(e,r.buildInfoFile));case 9:return Zd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,Wc(e,t),Wc(e,r.buildInfoFile));case 10:return Zd(e,f.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,Wc(e,t),Wc(e,r.buildInfoFile),Wc(e,r.inputFile));case 1:if(r.newestInputFileTime!==void 0)return Zd(e,f.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,Wc(e,t),Wc(e,r.newestInputFileName||""),Wc(e,r.oldestOutputFileName||""));break;case 3:return Zd(e,f.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,Wc(e,t),Wc(e,r.newerProjectName));case 2:return Zd(e,f.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,Wc(e,t));case 15:return Zd(e,f.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,Wc(e,t));case 11:return Zd(e,f.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,Wc(e,t),Wc(e,r.upstreamProjectName));case 12:return Zd(e,r.upstreamProjectBlocked?f.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:f.Project_0_can_t_be_built_because_its_dependency_1_has_errors,Wc(e,t),Wc(e,r.upstreamProjectName));case 0:return Zd(e,f.Failed_to_parse_file_0_Colon_1,Wc(e,t),r.reason);case 14:return Zd(e,f.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,Wc(e,t),r.version,yp);case 17:return Zd(e,f.Project_0_is_being_forcibly_rebuilt,Wc(e,t));case 16:case 13:break;default:}}function mq(e,t,r){e.options.verbose&&E5e(e,t,r)}var lAe,cAe,_q,S5e=pt({"src/compiler/tsbuildPublic.ts"(){"use strict";wo(),mS(),lAe=new Date(-864e13),cAe=new Date(864e13),_q=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(_q||{})}}),wo=pt({"src/compiler/_namespaces/ts.ts"(){"use strict";AWe(),LWe(),kWe(),UWe(),JWe(),KWe(),oFe(),Nve(),mFe(),yFe(),bFe(),IFe(),PFe(),C6e(),N6e(),P6e(),M6e(),z6e(),B6e(),G6e(),V6e(),_4e(),h4e(),x4e(),U4e(),h3e(),S3e(),T3e(),W3e(),j3e(),$3e(),ize(),gze(),vze(),Rze(),Dze(),Cze(),wze(),Wze(),Fze(),zze(),Bze(),Gze(),Vze(),jze(),Uze(),Jze(),Kze(),Xze(),Yze(),$ze(),Zze(),e7e(),t7e(),n7e(),r7e(),i7e(),d7e(),h7e(),x7e(),D7e(),M7e(),L7e(),k7e(),J7e(),K7e(),$7e(),e5e(),t5e(),n5e(),S5e(),Toe(),mS()}});function dAe(e){return Hc.args.includes(e)}function uAe(e){let t=Hc.args.indexOf(e);return t>=0&&t<Hc.args.length-1?Hc.args[t+1]:void 0}function pAe(){let 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")}`}function qN(e){return Ese+e.replace(/\n/g,Ese)}function Ub(e){return qN(JSON.stringify(e,void 0,2))}var Dk,Ck,Nk,r3,i3,o3,hq,JN,gq,Ese,T5e=pt({"src/jsTyping/shared.ts"(){"use strict";Pk(),Dk="action::set",Ck="action::invalidate",Nk="action::packageInstalled",r3="event::typesRegistry",i3="event::beginInstallTypes",o3="event::endInstallTypes",hq="event::initializationFailed",JN="action::watchTypingLocations",(e=>{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(gq||(gq={})),Ese=`
`}}),A5e=pt({"src/jsTyping/types.ts"(){"use strict"}}),a3=pt({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";T5e(),A5e()}});function fAe(e,t){return new zf(Jw(t,`ts${uh}`)||Jw(t,"latest")).compareTo(e.version)<=0}function mAe(e){return xse.has(e)?"node":e}function I5e(e,t){let r=j2(t,i=>e.readFile(i));return new Map(Object.entries(r.config))}function x5e(e,t){var r;let i=j2(t,o=>e.readFile(o));if((r=i.config)!=null&&r.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function R5e(e,t,r,i,o,s,l,d,p,h){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let m=new Map;r=Fi(r,K=>{let F=Yo(K);if(QE(F))return F});let v=[];l.include&&L(l.include,"Explicitly included types");let E=l.exclude||[];if(!h.types){let K=new Set(r.map(Ur));K.add(i),K.forEach(F=>{G(F,"bower.json","bower_components",v),G(F,"package.json","node_modules",v)})}if(l.disableFilenameBasedTypeAcquisition||U(r),d){let K=NE(d.map(mAe),pS,gd);L(K,"Inferred typings from unresolved imports")}for(let K of E)m.delete(K)&&t&&t(`Typing for ${K} is in exclude list, will be ignored.`);s.forEach((K,F)=>{let oe=p.get(F);m.get(F)===!1&&oe!==void 0&&fAe(K,oe)&&m.set(F,K.typingLocation)});let S=[],A=[];m.forEach((K,F)=>{K?A.push(K):S.push(F)});let C={cachedTypingPaths:A,newTypingNames:S,filesToWatch:v};return t&&t(`Finished typings discovery:${Ub(C)}`),C;function R(K){m.has(K)||m.set(K,!1)}function L(K,F){t&&t(`${F}: ${JSON.stringify(K)}`),an(K,R)}function G(K,F,oe,W){let $=wr(K,F),de,fe;e.fileExists($)&&(W.push($),de=j2($,le=>e.readFile(le)).config,fe=ta([de.dependencies,de.devDependencies,de.optionalDependencies,de.peerDependencies],fh),L(fe,`Typing names in '${$}' dependencies`));let q=wr(K,oe);if(W.push(q),!e.directoryExists(q))return;let H=[],ee=fe?fe.map(le=>wr(q,le,F)):e.readDirectory(q,[".json"],void 0,void 0,3).filter(le=>{if(Ll(le)!==F)return!1;let Ee=mc(Yo(le)),ce=Ee[Ee.length-3][0]==="@";return ce&&D_(Ee[Ee.length-4])===oe||!ce&&D_(Ee[Ee.length-3])===oe});t&&t(`Searching for typing names in ${q}; all files: ${JSON.stringify(ee)}`);for(let le of ee){let Ee=Yo(le),Z=j2(Ee,Ae=>e.readFile(Ae)).config;if(!Z.name)continue;let pe=Z.types||Z.typings;if(pe){let Ae=Qi(pe,Ur(Ee));e.fileExists(Ae)?(t&&t(` Package '${Z.name}' provides its own types.`),m.set(Z.name,Ae)):t&&t(` Package '${Z.name}' provides its own types but they are missing.`)}else H.push(Z.name)}L(H," Found package names")}function U(K){let F=Fi(K,W=>{if(!QE(W))return;let $=Yd(D_(Ll(W))),de=dB($);return o.get(de)});F.length&&L(F,"Inferred typings from file names"),ct(K,W=>el(W,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),R("react"))}}function D5e(e){return Sse(e,!0)}function Sse(e,t){if(!e)return 1;if(e.length>Dse)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let r=/^@([^/]+)\/([^/]+)$/.exec(e);if(r){let i=Sse(r[1],!1);if(i!==0)return{name:r[1],isScopeName:!0,result:i};let o=Sse(r[2],!1);return o!==0?{name:r[2],isScopeName:!1,result:o}:0}}return encodeURIComponent(e)!==e?5:0}function C5e(e,t){return typeof e=="object"?_Ae(t,e.result,e.name,e.isScopeName):_Ae(t,e,t,!1)}function _Ae(e,t,r,i){let o=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${o} name '${r}' cannot be empty`;case 2:return`'${e}':: ${o} name '${r}' should be less than ${Dse} characters`;case 3:return`'${e}':: ${o} name '${r}' cannot start with '.'`;case 4:return`'${e}':: ${o} name '${r}' cannot start with '_'`;case 5:return`'${e}':: ${o} name '${r}' contains non URI safe characters`;case 0:return x.fail();default:x.assertNever(t)}}var Tse,Ase,Ise,xse,Rse,Dse,N5e=pt({"src/jsTyping/jsTyping.ts"(){"use strict";Pk(),a3(),Tse=["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"],Ase=Tse.map(e=>`node:${e}`),Ise=[...Tse,...Ase],xse=new Set(Ise),Rse=(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))(Rse||{}),Dse=214}}),s_={};Ra(s_,{NameValidationResult:()=>Rse,discoverTypings:()=>R5e,isTypingUpToDate:()=>fAe,loadSafeList:()=>I5e,loadTypesMap:()=>x5e,nodeCoreModuleList:()=>Ise,nodeCoreModules:()=>xse,nonRelativeModuleNameForTypingCache:()=>mAe,prefixedNodeCoreModuleList:()=>Ase,renderPackageNameValidationFailure:()=>C5e,validatePackageName:()=>D5e});var P5e=pt({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";N5e()}}),Pk=pt({"src/jsTyping/_namespaces/ts.ts"(){"use strict";wo(),P5e(),a3()}});function s3(e){return{indentSize:4,tabSize:4,newLineCharacter:e||`
`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var l3,vq,yq,bq,ef,Eq,Sq,Tq,Aq,Iq,xq,Rq,Cse,Mk,Dq,Cq,Nq,Pq,Mq,Lq,kq,Oq,wq,M5e=pt({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(o){this.text=o}getText(o,s){return o===0&&s===this.text.length?this.text:this.text.substring(o,s)}getLength(){return this.text.length}getChangeRange(){}}function r(i){return new t(i)}e.fromString=r})(l3||(l3={})),vq=(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))(vq||{}),yq=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(yq||{}),bq=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(bq||{}),ef={},Eq=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(Eq||{}),Sq=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Sq||{}),Tq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Tq||{}),Aq=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(Aq||{}),Iq=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(Iq||{}),xq=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(xq||{}),Rq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Rq||{}),Cse=s3(`
`),Mk=(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))(Mk||{}),Dq=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(Dq||{}),Cq=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(Cq||{}),Nq=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(Nq||{}),Pq=(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))(Pq||{}),Mq=(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))(Mq||{}),Lq=(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))(Lq||{}),kq=(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))(kq||{}),Oq=(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))(Oq||{}),wq=(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))(wq||{})}});function Lk(e){switch(e.kind){case 260:return Jn(e)&&BG(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return sd(e)||dg(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function aT(e){e=Xq(e);let t=e.parent;return e.kind===312?1:dl(t)||Ed(t)||j_(t)||Iu(t)||G_(t)||Nc(t)&&e===t.name?7:c3(e)?L5e(e):ng(e)?Lk(t):Su(e)&&Rn(e,hm(hN,PA,Ob))?7:W5e(e)?2:k5e(e)?4:qs(t)?(x.assert(Df(t.parent)),2):uy(t)?3:1}function L5e(e){let t=e.kind===166?e:$d(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function c3(e){for(;e.parent.kind===166;)e=e.parent;return ox(e.parent)&&e.parent.moduleReference===e}function k5e(e){return O5e(e)||w5e(e)}function O5e(e){let t=e,r=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;r=t.right===e}return t.parent.kind===183&&!r}function w5e(e){let t=e,r=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;r=t.name===e}if(!r&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function W5e(e){switch(LC(e)&&(e=e.parent),e.kind){case 110:return!bh(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return yh(e.parent)}return!1}function Wq(e,t=!1,r=!1){return kk(e,Bo,zq,t,r)}function KN(e,t=!1,r=!1){return kk(e,o0,zq,t,r)}function Fq(e,t=!1,r=!1){return kk(e,Um,zq,t,r)}function Nse(e,t=!1,r=!1){return kk(e,a0,F5e,t,r)}function Pse(e,t=!1,r=!1){return kk(e,Xc,zq,t,r)}function Mse(e,t=!1,r=!1){return kk(e,Od,z5e,t,r)}function zq(e){return e.expression}function F5e(e){return e.tag}function z5e(e){return e.tagName}function kk(e,t,r,i,o){let s=i?Lse(e):d3(e);return o&&(s=Rl(s)),!!s&&!!s.parent&&t(s.parent)&&r(s.parent)===s}function d3(e){return fR(e)?e.parent:e}function Lse(e){return fR(e)||jq(e)?e.parent:e}function u3(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function Ok(e,t){return Er(e.expression)?e.expression.name.text===t:!1}function wk(e){var t;return Me(e)&&((t=Vr(e.parent,rC))==null?void 0:t.label)===e}function Bq(e){var t;return Me(e)&&((t=Vr(e.parent,s0))==null?void 0:t.label)===e}function Gq(e){return Bq(e)||wk(e)}function Vq(e){var t;return((t=Vr(e.parent,J1))==null?void 0:t.tagName)===e}function kse(e){var t;return((t=Vr(e.parent,$d))==null?void 0:t.right)===e}function fR(e){var t;return((t=Vr(e.parent,Er))==null?void 0:t.name)===e}function jq(e){var t;return((t=Vr(e.parent,Rs))==null?void 0:t.argumentExpression)===e}function Uq(e){var t;return((t=Vr(e.parent,Il))==null?void 0:t.name)===e}function Hq(e){var t;return Me(e)&&((t=Vr(e.parent,Lo))==null?void 0:t.name)===e}function p3(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return mo(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function Ose(e){return Ab(e.parent.parent)&&gC(e.parent.parent)===e}function sT(e){for(bf(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function E0(e){switch(e.kind){case 312:return wl(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Xm(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:r}=e;return Lo(r)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Wr(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=hl(e),{right:o}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let l=E0(o);return l===""?"const":l;case 3:return us(o)?"method":"property";case 4:return"property";case 5:return us(o)?"method":"property";case 6:return"local class";default:return""}case 80:return G_(e.parent)?"alias":"";case 277:let s=E0(e.expression);return s===""?"const":s;default:return""}function t(r){return Z1(r)?"const":lW(r)?"let":"var"}}function mR(e){switch(e.kind){case 110:return!0;case 80:return aV(e)&&e.parent.kind===169;default:return!1}}function Cf(e,t){let r=Yh(t),i=t.getLineAndCharacterOfPosition(e).line;return r[i]}function Cp(e,t){return qq(e.pos,e.end,t)}function wse(e,t){return Fk(e,t.pos)&&Fk(e,t.end)}function Wk(e,t){return e.pos<=t&&t<=e.end}function Fk(e,t){return e.pos<t&&t<e.end}function qq(e,t,r){return e<=r.pos&&t>=r.end}function zk(e,t,r){return e.pos<=t&&e.end>=r}function XN(e,t,r){return m3(e.pos,e.end,t,r)}function f3(e,t,r,i){return m3(e.getStart(t),e.end,r,i)}function m3(e,t,r,i){let o=Math.max(e,r),s=Math.min(t,i);return o<s}function Jq(e,t,r){return x.assert(e.pos<=t),t<e.end||!Am(e,r)}function Am(e,t){if(e===void 0||_l(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 Kq(e,20,t);case 299:return Am(e.block,t);case 214:if(!e.arguments)return!0;case 213:case 217:case 196:return Kq(e,22,t);case 184:case 185:return Am(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?Am(e.body,t):e.type?Am(e.type,t):Bk(e,22,t);case 267:return!!e.body&&Am(e.body,t);case 245:return e.elseStatement?Am(e.elseStatement,t):Am(e.thenStatement,t);case 244:return Am(e.expression,t)||Bk(e,27,t);case 209:case 207:case 212:case 167:case 189:return Kq(e,24,t);case 181:return e.type?Am(e.type,t):Bk(e,24,t);case 296:case 297:return!1;case 248:case 249:case 250:case 247:return Am(e.statement,t);case 246:return Bk(e,117,t)?Kq(e,22,t):Am(e.statement,t);case 186:return Am(e.exprName,t);case 221:case 220:case 222:case 229:case 230:return Am(e.expression,t);case 215:return Am(e.template,t);case 228:let i=Ns(e.templateSpans);return Am(i,t);case 239:return gf(e.literal);case 278:case 272:return gf(e.moduleSpecifier);case 224:return Am(e.operand,t);case 226:return Am(e.right,t);case 227:return Am(e.whenFalse,t);default:return!0}}function Kq(e,t,r){let i=e.getChildren(r);if(i.length){let o=Da(i);if(o.kind===t)return!0;if(o.kind===27&&i.length!==1)return i[i.length-2].kind===t}return!1}function Wse(e){let t=_3(e);if(!t)return;let r=t.getChildren();return{listItemIndex:Y1(r,e),list:t}}function Bk(e,t,r){return!!Ya(e,t,r)}function Ya(e,t,r){return Dr(e.getChildren(r),i=>i.kind===t)}function _3(e){let t=Dr(e.parent.getChildren(),r=>jx(r)&&Cp(r,e));return x.assert(!t||To(t.getChildren(),e)),t}function hAe(e){return e.kind===90}function B5e(e){return e.kind===86}function G5e(e){return e.kind===100}function V5e(e){if(Ld(e))return e.name;if(Zl(e)){let t=e.modifiers&&Dr(e.modifiers,hAe);if(t)return t}if(Dc(e)){let t=Dr(e.getChildren(),B5e);if(t)return t}}function j5e(e){if(Ld(e))return e.name;if(Ql(e)){let t=Dr(e.modifiers,hAe);if(t)return t}if(us(e)){let t=Dr(e.getChildren(),G5e);if(t)return t}}function U5e(e){let t;return Rn(e,r=>(xi(r)&&(t=r),!$d(r.parent)&&!xi(r.parent)&&!bS(r.parent))),t}function h3(e,t){if(e.flags&16777216)return;let r=O3(e,t);if(r)return r;let i=U5e(e);return i&&t.getTypeAtLocation(i)}function H5e(e,t){if(!t)switch(e.kind){case 263:case 231:return V5e(e);case 262:case 218:return j5e(e);case 176:return e}if(Ld(e))return e.name}function gAe(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(sg(e.importClause.namedBindings)){let r=x_(e.importClause.namedBindings.elements);return r?r.name:void 0}else if(my(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function vAe(e,t){if(e.exportClause){if($p(e.exportClause))return x_(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(V_(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function q5e(e){if(e.types.length===1)return e.types[0].expression}function yAe(e,t){let{parent:r}=e;if(ia(e)&&(t||e.kind!==90)?Yf(r)&&To(r.modifiers,e):e.kind===86?Zl(r)||Dc(e):e.kind===100?Ql(r)||us(e):e.kind===120?Gd(r):e.kind===94?kb(r):e.kind===156?Xf(r):e.kind===145||e.kind===144?Il(r):e.kind===102?Nc(r):e.kind===139?Ap(r):e.kind===153&&Vu(r)){let i=H5e(r,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&yc(r)&&r.declarations.length===1){let i=r.declarations[0];if(Me(i.name))return i.name}if(e.kind===156){if(G_(r)&&r.isTypeOnly){let i=gAe(r.parent,t);if(i)return i}if(xl(r)&&r.isTypeOnly){let i=vAe(r,t);if(i)return i}}if(e.kind===130){if(Iu(r)&&r.propertyName||Ed(r)&&r.propertyName||my(r)||V_(r))return r.name;if(xl(r)&&r.exportClause&&V_(r.exportClause))return r.exportClause.name}if(e.kind===102&&cc(r)){let i=gAe(r,t);if(i)return i}if(e.kind===95){if(xl(r)){let i=vAe(r,t);if(i)return i}if(dl(r))return Rl(r.expression)}if(e.kind===149&&j_(r))return r.expression;if(e.kind===161&&(cc(r)||xl(r))&&r.moduleSpecifier)return r.moduleSpecifier;if((e.kind===96||e.kind===119)&&Ip(r)&&r.token===e.kind){let i=q5e(r);if(i)return i}if(e.kind===96){if(qs(r)&&r.constraint&&Yp(r.constraint))return r.constraint.typeName;if(lI(r)&&Yp(r.extendsType))return r.extendsType.typeName}if(e.kind===140&&GS(r))return r.typeParameter.name;if(e.kind===103&&qs(r)&&wx(r.parent))return r.name;if(e.kind===143&&jS(r)&&r.operator===143&&Yp(r.type))return r.type.typeName;if(e.kind===148&&jS(r)&&r.operator===148&&A2(r.type)&&Yp(r.type.elementType))return r.type.elementType.typeName;if(!t){if((e.kind===105&&o0(r)||e.kind===116&&cI(r)||e.kind===114&&Wx(r)||e.kind===135&&py(r)||e.kind===127&&g6(r)||e.kind===91&&Yre(r))&&r.expression)return Rl(r.expression);if((e.kind===103||e.kind===104)&&Zn(r)&&r.operatorToken===e)return Rl(r.right);if(e.kind===130&&x2(r)&&Yp(r.type))return r.type.typeName;if(e.kind===103&&y6(r)||e.kind===165&&R2(r))return Rl(r.expression)}return e}function Xq(e){return yAe(e,!1)}function g3(e){return yAe(e,!0)}function pu(e,t){return _R(e,t,r=>Km(r)||du(r.kind)||Ci(r))}function _R(e,t,r){return bAe(e,t,!1,r,!1)}function Hi(e,t){return bAe(e,t,!0,void 0,!1)}function bAe(e,t,r,i,o){let s=e,l;e:for(;;){let p=s.getChildren(e),h=gA(p,t,(m,v)=>v,(m,v)=>{let E=p[m].getEnd();if(E<t)return-1;let S=r?p[m].getFullStart():p[m].getStart(e,!0);return S>t?1:d(p[m],S,E)?p[m-1]&&d(p[m-1])?1:0:i&&S===t&&p[m-1]&&p[m-1].getEnd()===t&&d(p[m-1])?1:-1});if(l)return l;if(h>=0&&p[h]){s=p[h];continue e}return s}function d(p,h,m){if(m??(m=p.getEnd()),m<t||(h??(h=r?p.getFullStart():p.getStart(e,!0)),h>t))return!1;if(t<m||t===m&&(p.kind===1||o))return!0;if(i&&m===t){let v=ec(t,e,p);if(v&&i(v))return l=v,!0}return!1}}function Fse(e,t){let r=Hi(e,t);for(;y3(r);){let i=S0(r,r.parent,e);if(!i)return;r=i}return r}function v3(e,t){let r=Hi(e,t);return xA(r)&&t>r.getStart(e)&&t<r.getEnd()?r:ec(t,e)}function S0(e,t,r){return i(t);function i(o){return xA(o)&&o.pos===e.end?o:ml(o.getChildren(r),s=>(s.pos<=e.pos&&s.end>e.end||s.pos===e.end)&&Hse(s,r)?i(s):void 0)}}function ec(e,t,r,i){let o=s(r||t);return x.assert(!(o&&y3(o))),o;function s(l){if(EAe(l)&&l.kind!==1)return l;let d=l.getChildren(t),p=gA(d,e,(m,v)=>v,(m,v)=>e<d[m].end?!d[m-1]||e>=d[m-1].end?0:1:-1);if(p>=0&&d[p]){let m=d[p];if(e<m.end)if(m.getStart(t,!i)>=e||!Hse(m,t)||y3(m)){let S=Bse(d,p,t,l.kind);return S?!i&&J8(S)&&S.getChildren(t).length?s(S):zse(S,t):void 0}else return s(m)}x.assert(r!==void 0||l.kind===312||l.kind===1||J8(l));let h=Bse(d,d.length,t,l.kind);return h&&zse(h,t)}}function EAe(e){return xA(e)&&!y3(e)}function zse(e,t){if(EAe(e))return e;let r=e.getChildren(t);if(r.length===0)return e;let i=Bse(r,r.length,t,e.kind);return i&&zse(i,t)}function Bse(e,t,r,i){for(let o=t-1;o>=0;o--){let s=e[o];if(y3(s))o===0&&(i===12||i===285)&&x.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(Hse(e[o],r))return e[o]}}function RI(e,t,r=ec(t,e)){if(r&&KG(r)){let i=r.getStart(e),o=r.getEnd();if(i<t&&t<o)return!0;if(t===o)return!!r.isUnterminated}return!1}function Gse(e,t){let r=Hi(e,t);return r?!!(r.kind===12||r.kind===30&&r.parent.kind===12||r.kind===30&&r.parent.kind===294||r&&r.kind===20&&r.parent.kind===294||r.kind===30&&r.parent.kind===287):!1}function y3(e){return ZA(e)&&e.containsOnlyTriviaWhiteSpaces}function Yq(e,t){let r=Hi(e,t);return Jv(r.kind)&&t>r.getStart(e)}function Vse(e,t){let r=Hi(e,t);return!!(ZA(r)||r.kind===19&&mN(r.parent)&&Ch(r.parent.parent)||r.kind===30&&Od(r.parent)&&Ch(r.parent.parent))}function b3(e,t){function r(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return r(Hi(e,t))}function E3(e,t,r){let i=qo(e.kind),o=qo(t),s=e.getFullStart(),l=r.text.lastIndexOf(o,s);if(l===-1)return;if(r.text.lastIndexOf(i,s-1)<l){let h=ec(l+1,r);if(h&&h.kind===t)return h}let d=e.kind,p=0;for(;;){let h=ec(e.getFullStart(),r);if(!h)return;if(e=h,e.kind===t){if(p===0)return e;p--}else e.kind===d&&p++}}function jse(e,t,r){return t?e.getNonNullableType():r?e.getNonOptionalType():e}function Gk(e,t,r){let i=Qq(e,t);return i!==void 0&&(yh(i.called)||$q(i.called,i.nTypeArguments,r).length!==0||Gk(i.called,t,r))}function $q(e,t,r){let i=r.getTypeAtLocation(e);return yd(e.parent)&&(i=jse(i,tC(e.parent),!0)),(o0(e.parent)?i.getConstructSignatures():i.getCallSignatures()).filter(s=>!!s.typeParameters&&s.typeParameters.length>=t)}function Qq(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let r=e,i=0,o=0;for(;r;){switch(r.kind){case 30:if(r=ec(r.getFullStart(),t),r&&r.kind===29&&(r=ec(r.getFullStart(),t)),!r||!Me(r))return;if(!i)return ng(r)?void 0:{called:r,nTypeArguments:o};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(r=E3(r,19,t),!r)return;break;case 22:if(r=E3(r,21,t),!r)return;break;case 24:if(r=E3(r,23,t),!r)return;break;case 28:o++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(xi(r))break;return}r=ec(r.getFullStart(),t)}}function uv(e,t,r){return uc.getRangeOfEnclosingComment(e,t,void 0,r)}function Use(e,t){let r=Hi(e,t);return!!Rn(r,Sm)}function Hse(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function YN(e,t=0){let r=[],i=bd(e)?wG(e)&~t:0;return i&2&&r.push("private"),i&4&&r.push("protected"),i&1&&r.push("public"),(i&256||nl(e))&&r.push("static"),i&64&&r.push("abstract"),i&32&&r.push("export"),i&65536&&r.push("deprecated"),e.flags&33554432&&r.push("declare"),e.kind===277&&r.push("export"),r.length>0?r.join(","):""}function qse(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(Lo(e)||e.kind===263||e.kind===264)return e.typeParameters}function S3(e){return e===2||e===3}function Zq(e){return!!(e===11||e===14||Jv(e))}function SAe(e,t,r){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(r)}function Jse(e){if(!e.isIntersection())return!1;let{types:t,checker:r}=e;return t.length===2&&(SAe(r,t[0],t[1])||SAe(r,t[1],t[0]))}function Vk(e,t,r){return Jv(e.kind)&&e.getStart(r)<t&&t<e.end||!!e.isUnterminated&&t===e.end}function eJ(e){switch(e){case 125:case 123:case 124:return!0}return!1}function tJ(e){let t=aB(e);return lU(t,e&&e.configFile),t}function pv(e){return!!((e.kind===209||e.kind===210)&&(e.parent.kind===226&&e.parent.left===e&&e.parent.operatorToken.kind===64||e.parent.kind===250&&e.parent.initializer===e||pv(e.parent.kind===303?e.parent.parent:e.parent)))}function Kse(e,t){return TAe(e,t,!0)}function Xse(e,t){return TAe(e,t,!1)}function TAe(e,t,r){let i=uv(e,t,void 0);return!!i&&r===PAe.test(e.text.substring(i.pos,i.end))}function nJ(e){if(e)switch(e.kind){case 11:case 15:return rJ(e);default:return eu(e)}}function eu(e,t,r){return Gl(e.getStart(t),(r||e).getEnd())}function rJ(e){if(!e.isUnterminated)return Gl(e.getStart()+1,e.getEnd()-1)}function iJ(e,t){return qp(e.getStart(t),e.end)}function yy(e){return Gl(e.pos,e.end)}function T3(e){return qp(e.start,e.start+e.length)}function A3(e,t,r){return jk(qc(e,t),r)}function jk(e,t){return{span:e,newText:t}}function $N(e){return To(X3,e)}function oJ(e){return e.kind===156}function I3(e){return oJ(e)||Me(e)&&e.text==="type"}function Uk(e){return!!(e.flags&1536)&&e.name.charCodeAt(0)===34}function DI(){let e=[];return t=>{let r=Fa(t);return!e[r]&&(e[r]=!0)}}function hR(e){return e.getText(0,e.getLength())}function Hk(e,t){let r="";for(let i=0;i<t;i++)r+=e;return r}function aJ(e){return e.isTypeParameter()&&e.getConstraint()||e}function qk(e){return e.kind===167?Tp(e.expression)?e.expression.text:void 0:Ci(e)?ar(e):Ef(e)}function Yse(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function $se(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function sJ(e){return!!e.module||Wa(e)>=2||!!e.noEmit}function lT(e,t){return{fileExists:r=>e.fileExists(r),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Wo(t,t.readFile),useCaseSensitiveFileNames:Wo(t,t.useCaseSensitiveFileNames),getSymlinkCache:Wo(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Wo(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var r;return(r=e.getModuleResolutionCache())==null?void 0:r.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Wo(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:r=>e.getProjectReferenceRedirect(r),isSourceOfProjectReferenceRedirect:r=>e.isSourceOfProjectReferenceRedirect(r),getNearestAncestorDirectoryWithPackageJson:Wo(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons(),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function lJ(e,t){return{...lT(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function x3(e){return e===2||e>=3&&e<=99||e===100}function Qse(e,t,r,i){return e||t&&t.length?fv(e,t,r,i):void 0}function fv(e,t,r,i,o){return P.createImportDeclaration(void 0,e||t?P.createImportClause(!!o,e,t&&t.length?P.createNamedImports(t):void 0):void 0,typeof r=="string"?CI(r,i):r,void 0)}function CI(e,t){return P.createStringLiteral(e,t===0)}function cJ(e,t){return IW(e,t)?1:0}function Np(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let r=e.imports&&Dr(e.imports,i=>ca(i)&&!xs(i.parent));return r?cJ(r,e):1}}function dJ(e){switch(e){case 0:return"'";case 1:return'"';default:return x.assertNever(e)}}function R3(e){let t=D3(e);return t===void 0?void 0:Ii(t)}function D3(e){return e.escapedName!=="default"?e.escapedName:ml(e.declarations,t=>{let r=mo(t);return r&&r.kind===80?r.escapedText:void 0})}function C3(e){return Ga(e)&&(j_(e.parent)||cc(e.parent)||Xd(e.parent,!1)&&e.parent.arguments[0]===e||lp(e.parent)&&e.parent.arguments[0]===e)}function Jk(e){return Na(e)&&Rf(e.parent)&&Me(e.name)&&!e.propertyName}function N3(e,t){let r=e.getTypeAtLocation(t.parent);return r&&e.getPropertyOfType(r,t.name.text)}function Kk(e,t,r){if(e)for(;e.parent;){if(Li(e.parent)||!J5e(r,e.parent,t))return e;e=e.parent}}function J5e(e,t,r){return OG(e,t.getStart(r))&&t.getEnd()<=Al(e)}function gR(e,t){return Yf(e)?Dr(e.modifiers,r=>r.kind===t):void 0}function QN(e,t,r,i,o){let l=(oo(r)?r[0]:r).kind===243?M9:AS,d=Cr(t.statements,l),p=oo(r)?Zf.detectImportDeclarationSorting(r,o):3,h=Zf.getOrganizeImportsComparer(o,p===2),m=oo(r)?Gg(r,(v,E)=>Zf.compareImportsOrRequireStatements(v,E,h)):[r];if(!d.length)e.insertNodesAtTopOfFile(t,m,i);else if(d&&(p=Zf.detectImportDeclarationSorting(d,o))){let v=Zf.getOrganizeImportsComparer(o,p===2);for(let E of m){let S=Zf.getImportDeclarationInsertionIndex(d,E,v);if(S===0){let A=d[0]===t.statements[0]?{leadingTriviaOption:er.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,d[0],E,!1,A)}else{let A=d[S-1];e.insertNodeAfter(t,A,E)}}}else{let v=Ns(d);v?e.insertNodesAfter(t,v,m):e.insertNodesAtTopOfFile(t,m,i)}}function uJ(e,t){return x.assert(e.isTypeOnly),Fo(e.getChildAt(0,t),oJ)}function vR(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function pJ(e,t,r){return(r?pS:pb)(e.fileName,t.fileName)&&vR(e.textSpan,t.textSpan)}function fJ(e){return(t,r)=>pJ(t,r,e)}function mJ(e,t){if(e){for(let r=0;r<e.length;r++)if(e.indexOf(e[r])===r){let i=t(e[r],r);if(i)return i}}}function Zse(e,t,r){for(let i=t;i<r;i++)if(!$h(e.charCodeAt(i)))return!1;return!0}function ZN(e,t,r){let i=t.tryGetSourcePosition(e);return i&&(!r||r(Yo(i.fileName))?i:void 0)}function P3(e,t,r){let{fileName:i,textSpan:o}=e,s=ZN({fileName:i,pos:o.start},t,r);if(!s)return;let l=ZN({fileName:i,pos:o.start+o.length},t,r),d=l?l.pos-s.pos:o.length;return{fileName:s.fileName,textSpan:{start:s.pos,length:d},originalFileName:e.fileName,originalTextSpan:e.textSpan,contextSpan:_J(e,t,r),originalContextSpan:e.contextSpan}}function _J(e,t,r){let i=e.contextSpan&&ZN({fileName:e.fileName,pos:e.contextSpan.start},t,r),o=e.contextSpan&&ZN({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,r);return i&&o?{start:i.pos,length:o.pos-i.pos}:void 0}function hJ(e){let t=e.declarations?Ac(e.declarations):void 0;return!!Rn(t,r=>ao(r)?!0:Na(r)||Rf(r)||i0(r)?!1:"quit")}function K5e(){let e=i2*10,t,r,i,o;m();let s=v=>d(v,17);return{displayParts:()=>{let v=t.length&&t[t.length-1].text;return o>e&&v&&v!=="..."&&($h(v.charCodeAt(v.length-1))||t.push(Ru(" ",16)),t.push(Ru("...",15))),t},writeKeyword:v=>d(v,5),writeOperator:v=>d(v,12),writePunctuation:v=>d(v,15),writeTrailingSemicolon:v=>d(v,15),writeSpace:v=>d(v,16),writeStringLiteral:v=>d(v,8),writeParameter:v=>d(v,13),writeProperty:v=>d(v,14),writeLiteral:v=>d(v,8),writeSymbol:p,writeLine:h,write:s,writeComment:s,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ro,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:m};function l(){if(!(o>e)&&r){let v=OW(i);v&&(o+=v.length,t.push(Ru(v,16))),r=!1}}function d(v,E){o>e||(l(),o+=v.length,t.push(Ru(v,E)))}function p(v,E){o>e||(l(),o+=v.length,t.push(ele(v,E)))}function h(){o>e||(o+=1,t.push(yR()),r=!0)}function m(){t=[],r=!0,i=0,o=0}}function ele(e,t){return Ru(e,r(t));function r(i){let o=i.flags;return o&3?hJ(i)?13:9:o&4||o&32768||o&65536?14:o&8?19:o&16?20:o&32?1:o&64?4:o&384?2:o&1536?11:o&8192?10:o&262144?18:o&524288||o&2097152?0:17}}function Ru(e,t){return{text:e,kind:Mk[t]}}function ul(){return Ru(" ",16)}function Hu(e){return Ru(qo(e),5)}function Ad(e){return Ru(qo(e),15)}function eP(e){return Ru(qo(e),12)}function tle(e){return Ru(e,13)}function nle(e){return Ru(e,14)}function gJ(e){let t=LE(e);return t===void 0?Pp(e):Hu(t)}function Pp(e){return Ru(e,17)}function rle(e){return Ru(e,0)}function ile(e){return Ru(e,18)}function M3(e){return Ru(e,24)}function ole(e,t){return{text:e,kind:Mk[23],target:{fileName:Nn(t).fileName,textSpan:eu(t)}}}function vJ(e){return Ru(e,22)}function ale(e,t){var r;let i=rie(e)?"link":iie(e)?"linkcode":"linkplain",o=[vJ(`{@${i} `)];if(!e.name)e.text&&o.push(M3(e.text));else{let s=t?.getSymbolAtLocation(e.name),l=s&&t?EJ(s,t):void 0,d=Y5e(e.text),p=Vl(e.name)+e.text.slice(0,d),h=X5e(e.text.slice(d)),m=l?.valueDeclaration||((r=l?.declarations)==null?void 0:r[0]);if(m)o.push(ole(p,m)),h&&o.push(M3(h));else{let v=d===0||e.text.charCodeAt(d)===124&&p.charCodeAt(p.length-1)!==32?" ":"";o.push(M3(p+v+h))}}return o.push(vJ("}")),o}function X5e(e){let t=0;if(e.charCodeAt(t++)===124){for(;t<e.length&&e.charCodeAt(t)===32;)t++;return e.slice(t)}return e}function Y5e(e){let t=e.indexOf("://");if(t===0){for(;t<e.length&&e.charCodeAt(t)!==124;)t++;return t}if(e.indexOf("()")===0)return 2;if(e.charAt(0)==="<"){let r=0,i=0;for(;i<e.length;)if(e[i]==="<"&&r++,e[i]===">"&&r--,i++,!r)return i}return 0}function mv(e,t){var r;return t?.newLineCharacter||((r=e.getNewLine)==null?void 0:r.call(e))||MAe}function yR(){return Ru(`
`,6)}function by(e){try{return e(FJ),FJ.displayParts()}finally{FJ.clear()}}function Xk(e,t,r,i=0){return by(o=>{e.writeType(t,r,i|1024|16384,o)})}function tP(e,t,r,i,o=0){return by(s=>{e.writeSymbol(t,r,i,o|8,s)})}function yJ(e,t,r,i=0){return i|=25632,by(o=>{e.writeSignature(t,r,i,void 0,o)})}function AAe(e,t){let r=t.getSourceFile();return by(i=>{hk().writeNode(4,e,r,i)})}function sle(e){return!!e.parent&&RA(e.parent)&&e.parent.propertyName===e}function bJ(e,t){return uF(e,t.getScriptKind&&t.getScriptKind(e))}function EJ(e,t){let r=e;for(;$5e(r)||L_(r)&&r.links.target;)L_(r)&&r.links.target?r=r.links.target:r=Kc(r,t);return r}function $5e(e){return(e.flags&2097152)!==0}function lle(e,t){return na(Kc(e,t))}function cle(e,t){for(;$h(e.charCodeAt(t));)t+=1;return t}function L3(e,t){for(;t>-1&&jm(e.charCodeAt(t));)t-=1;return t+1}function Fs(e,t=!0){let r=e&&IAe(e);return r&&!t&&qu(r),r}function Yk(e,t,r){let i=r(e);return i?mr(i,e):i=IAe(e,r),i&&!t&&qu(i),i}function IAe(e,t){let r=t?s=>Yk(s,!0,t):Fs,o=un(e,r,void 0,t?s=>s&&SJ(s,!0,t):s=>s&&T0(s),r);if(o===e){let s=ca(e)?mr(P.createStringLiteralFromNode(e),e):Bu(e)?mr(P.createNumericLiteral(e.text,e.numericLiteralFlags),e):P.cloneNode(e);return Ze(s,e)}return o.parent=void 0,o}function T0(e,t=!0){if(e){let r=P.createNodeArray(e.map(i=>Fs(i,t)),e.hasTrailingComma);return Ze(r,e),r}return e}function SJ(e,t,r){return P.createNodeArray(e.map(i=>Yk(i,t,r)),e.hasTrailingComma)}function qu(e){TJ(e),dle(e)}function TJ(e){ule(e,1024,Z5e)}function dle(e){ule(e,2048,yV)}function cT(e,t){let r=e.getSourceFile(),i=r.text;Q5e(e,i)?bR(e,t,r):Qk(e,t,r),nP(e,t,r)}function Q5e(e,t){let r=e.getFullStart(),i=e.getStart();for(let o=r;o<i;o++)if(t.charCodeAt(o)===10)return!0;return!1}function ule(e,t,r){Zm(e,t);let i=r(e);i&&ule(i,t,r)}function Z5e(e){return e.forEachChild(t=>t)}function dT(e,t){let r=e;for(let i=1;!tW(t,r);i++)r=`${e}_${i}`;return r}function $k(e,t,r,i){let o=0,s=-1;for(let{fileName:l,textChanges:d}of e){x.assert(l===t);for(let p of d){let{span:h,newText:m}=p,v=eBe(m,Th(r));if(v!==-1&&(s=h.start+o+v,!i))return s;o+=m.length-h.length}}return x.assert(i),x.assert(s>=0),s}function bR(e,t,r,i,o){MM(r.text,e.pos,ple(t,r,i,o,iN))}function nP(e,t,r,i,o){LM(r.text,e.end,ple(t,r,i,o,kF))}function Qk(e,t,r,i,o){LM(r.text,e.pos,ple(t,r,i,o,iN))}function ple(e,t,r,i,o){return(s,l,d,p)=>{d===3?(s+=2,l-=2):s+=2,o(e,r||d,t.text.slice(s,l),i!==void 0?i:p)}}function eBe(e,t){if(Ui(e,t))return 0;let r=e.indexOf(" "+t);return r===-1&&(r=e.indexOf("."+t)),r===-1&&(r=e.indexOf('"'+t)),r===-1?-1:r+1}function k3(e){return Zn(e)&&e.operatorToken.kind===28||fa(e)||(x2(e)||Sj(e))&&fa(e.expression)}function O3(e,t,r){let i=Zg(e.parent);switch(i.kind){case 214:return t.getContextualType(i,r);case 226:{let{left:o,operatorToken:s,right:l}=i;return w3(s.kind)?t.getTypeAtLocation(e===l?o:l):t.getContextualType(e,r)}case 296:return IJ(i,t);default:return t.getContextualType(e,r)}}function rP(e,t,r){let i=Np(e,t),o=JSON.stringify(r);return i===0?`'${Sf(o).replace(/'/g,()=>"\\'").replace(/\\"/g,'"')}'`:o}function w3(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function fle(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function AJ(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function IJ(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function iP(e,t,r,i){let o=r.getTypeChecker(),s=!0,l=()=>s=!1,d=o.typeToTypeNode(e,t,1,{trackSymbol:(p,h,m)=>(s=s&&o.isSymbolAccessible(p,h,m,!1).accessibility===0,!s),reportInaccessibleThisError:l,reportPrivateInBaseOfClassExpression:l,reportInaccessibleUniqueSymbolError:l,moduleResolverHost:lJ(r,i)});return s?d:void 0}function mle(e){return e===179||e===180||e===181||e===171||e===173}function xAe(e){return e===262||e===176||e===174||e===177||e===178}function RAe(e){return e===267}function W3(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function tBe(e,t){let r=e.getLastToken(t);if(r&&r.kind===27)return!1;if(mle(e.kind)){if(r&&r.kind===28)return!1}else if(RAe(e.kind)){let d=Da(e.getChildren(t));if(d&&t_(d))return!1}else if(xAe(e.kind)){let d=Da(e.getChildren(t));if(d&&VE(d))return!1}else if(!W3(e.kind))return!1;if(e.kind===246)return!0;let i=Rn(e,d=>!d.parent),o=S0(e,i,t);if(!o||o.kind===20)return!0;let s=t.getLineAndCharacterOfPosition(e.getEnd()).line,l=t.getLineAndCharacterOfPosition(o.getStart(t)).line;return s!==l}function F3(e,t,r){let i=Rn(t,o=>o.end!==e?"quit":zJ(o.kind));return!!i&&tBe(i,r)}function Zk(e){let t=0,r=0,i=5;return Ao(e,function o(s){if(W3(s.kind)){let l=s.getLastToken(e);l?.kind===27?t++:r++}else if(mle(s.kind)){let l=s.getLastToken(e);if(l?.kind===27)t++;else if(l&&l.kind!==28){let d=$a(e,l.getStart(e)).line,p=$a(e,w_(e,l.end).start).line;d!==p&&r++}}return t+r>=i?!0:Ao(s,o)}),t===0&&r<=1?!0:t/r>1/i}function z3(e,t){return V3(e,e.getDirectories,t)||[]}function xJ(e,t,r,i,o){return V3(e,e.readDirectory,t,r,i,o)||je}function eO(e,t){return V3(e,e.fileExists,t)}function B3(e,t){return G3(()=>gm(t,e))||!1}function G3(e){try{return e()}catch{return}}function V3(e,t,...r){return G3(()=>t&&t.apply(e,r))}function RJ(e,t,r){let i=[];return Vf(e,o=>{if(o===r)return!0;let s=wr(o,"package.json");eO(t,s)&&i.push(s)}),i}function _le(e,t){let r;return Vf(e,i=>{if(i==="node_modules"||(r=Aae(i,o=>eO(t,o),"package.json"),r))return!0}),r}function hle(e,t){if(!t.fileExists)return[];let r=[];return Vf(Ur(e),i=>{let o=wr(i,"package.json");if(t.fileExists(o)){let s=DJ(o,t);s&&r.push(s)}}),r}function DJ(e,t){if(!t.readFile)return;let r=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",o=KW(i),s={};if(o)for(let p of r){let h=o[p];if(!h)continue;let m=new Map;for(let v in h)m.set(v,h[v]);s[p]=m}let l=[[1,s.dependencies],[2,s.devDependencies],[8,s.optionalDependencies],[4,s.peerDependencies]];return{...s,parseable:!!o,fileName:e,get:d,has(p,h){return!!d(p,h)}};function d(p,h=15){for(let[m,v]of l)if(v&&h&m){let E=v.get(p);if(E!==void 0)return E}}}function oP(e,t,r){let i=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(e.fileName)||hle(e.fileName,r)).filter(A=>A.parseable),o,s,l;return{allowsImportingAmbientModule:p,allowsImportingSourceFile:h,allowsImportingSpecifier:m};function d(A){let C=S(A);for(let R of i)if(R.has(C)||R.has(n4(C)))return!0;return!1}function p(A,C){if(!i.length||!A.valueDeclaration)return!0;if(!s)s=new Map;else{let K=s.get(A);if(K!==void 0)return K}let R=Sf(A.getName());if(v(R))return s.set(A,!0),!0;let L=A.valueDeclaration.getSourceFile(),G=E(L.fileName,C);if(typeof G>"u")return s.set(A,!0),!0;let U=d(G)||d(R);return s.set(A,U),U}function h(A,C){if(!i.length)return!0;if(!l)l=new Map;else{let G=l.get(A);if(G!==void 0)return G}let R=E(A.fileName,C);if(!R)return l.set(A,!0),!0;let L=d(R);return l.set(A,L),L}function m(A){return!i.length||v(A)||op(A)||Ou(A)?!0:d(A)}function v(A){return!!(wd(e)&&s_.nodeCoreModules.has(A)&&(o===void 0&&(o=j3(e)),o))}function E(A,C){if(!A.includes("node_modules"))return;let R=h0.getNodeModulesPackageName(r.getCompilationSettings(),e,A,C,t);if(R&&!op(R)&&!Ou(R))return S(R)}function S(A){let C=mc(CN(A)).slice(1);return Ui(C[0],"@")?`${C[0]}/${C[1]}`:C[0]}}function j3(e){return ct(e.imports,({text:t})=>s_.nodeCoreModules.has(t))}function tO(e){return To(mc(e),"node_modules")}function CJ(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function gle(e,t){let r=eu(e),i=gA(t,r,Ps,Yw);if(i>=0){let o=t[i];return x.assertEqual(o.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Fo(o,CJ)}}function vle(e,t){var r;let i=gA(t,e.start,l=>l.start,Ms);for(i<0&&(i=~i);((r=t[i-1])==null?void 0:r.start)===e.start;)i--;let o=[],s=Al(e);for(;;){let l=Vr(t[i],CJ);if(!l||l.start>s)break;Eee(e,l)&&o.push(l),i++}return o}function NI({startPosition:e,endPosition:t}){return Gl(e,t===void 0?e:t)}function NJ(e,t){let r=Hi(e,t.start);return Rn(r,o=>o.getStart(e)<t.start||o.getEnd()>Al(t)?"quit":lt(o)&&vR(t,eu(o,e)))}function PJ(e,t,r=Ps){return e?oo(e)?r(nn(e,t)):t(e,0):void 0}function MJ(e){return oo(e)?Sa(e):e}function yle(e,t){if(DAe(e)){let r=CAe(e);if(r)return r;let i=ud.moduleSymbolToValidIdentifier(ble(e),t,!1),o=ud.moduleSymbolToValidIdentifier(ble(e),t,!0);return i===o?i:[i,o]}return e.name}function U3(e,t,r){return DAe(e)?CAe(e)||ud.moduleSymbolToValidIdentifier(ble(e),t,!!r):e.name}function DAe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function CAe(e){return ml(e.declarations,t=>{var r,i,o;return dl(t)?(r=Vr(Rl(t.expression),Me))==null?void 0:r.text:Ed(t)&&t.symbol.flags===2097152?(i=Vr(t.propertyName,Me))==null?void 0:i.text:(o=Vr(mo(t),Me))==null?void 0:o.text})}function ble(e){var t;return x.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${x.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(r=>{let i=x.formatSyntaxKind(r.kind),o=Jn(r),{expression:s}=r;return(o?"[JS]":"")+i+(s?` (expression: ${x.formatSyntaxKind(s.kind)})`:"")}).join(", ")}.`)}function Ele(e,t,r){let i=t.length;if(i+r>e.length)return!1;for(let o=0;o<i;o++)if(t.charCodeAt(o)!==e.charCodeAt(o+r))return!1;return!0}function LJ(e){return e.charCodeAt(0)===95}function NAe(e){return!Sle(e)}function Sle(e){let t=e.getSourceFile();return!t.externalModuleIndicator&&!t.commonJsModuleIndicator?!1:Jn(e)||!Rn(e,r=>Il(r)&&qm(r))}function H3(e){return!!(wG(e)&65536)}function q3(e,t){return ml(e.imports,i=>{if(s_.nodeCoreModules.has(i.text))return Ui(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function nO(e){return e===`
`?1:0}function uT(e){return oo(e)?xh(vo(e[0]),e.slice(1)):vo(e)}function J3({options:e},t){let r=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||r&&!Zk(t);return{...e,semicolons:i?"remove":"ignore"}}function kJ(e){return e===2||e===3}function ER(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function K3(e,t){let r=new Set,i=new Set,o=new Set;for(let d of t)if(!_N(d)){let p=Ka(d.expression);if(wE(p))switch(p.kind){case 15:case 11:r.add(p.text);break;case 9:i.add(parseInt(p.text));break;case 10:let h=are(Zs(p.text,"n")?p.text.slice(0,-1):p.text);h&&o.add(ZE(h));break}else{let h=e.getSymbolAtLocation(d.expression);if(h&&h.valueDeclaration&&p0(h.valueDeclaration)){let m=e.getConstantValue(h.valueDeclaration);m!==void 0&&s(m)}}}return{addValue:s,hasValue:l};function s(d){switch(typeof d){case"string":r.add(d);break;case"number":i.add(d)}}function l(d){switch(typeof d){case"string":return r.has(d);case"number":return i.has(d);case"object":return o.has(ZE(d))}}}function OJ(e,t,r,i){var o;let s=typeof e=="string"?e:e.fileName;if(!QE(s))return!1;let l=t.getCompilerOptions(),d=ld(l),p=typeof e=="string"?Tk(ks(e,r.getCurrentDirectory(),ev(r)),(o=t.getPackageJsonInfoCache)==null?void 0:o.call(t),r,l):e.impliedNodeFormat;if(p===99)return!1;if(p===1||l.verbatimModuleSyntax&&d===1)return!0;if(l.verbatimModuleSyntax&&nF(d))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var Id,wJ,PAe,X3,WJ,FJ,MAe,Y3,zJ,nBe=pt({"src/services/utilities.ts"(){"use strict";Hr(),Id=Kg(99,!0),wJ=(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))(wJ||{}),PAe=/^\/\/\/\s*</,X3=[133,131,163,136,97,140,143,146,106,150,151,148,154,155,114,112,116,157,158,159],WJ=(e=>(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(WJ||{}),FJ=K5e(),MAe=`
`,Y3="anonymous function",zJ=hm(mle,xAe,RAe,W3)}});function BJ(e){let t=1,r=bp(),i=new Map,o=new Map,s,l={isUsableByFile:S=>S===s,isEmpty:()=>!r.size,clear:()=>{r.clear(),i.clear(),s=void 0},add:(S,A,C,R,L,G,U,K)=>{S!==s&&(l.clear(),s=S);let F;if(L){let ce=yF(L.fileName);if(ce){let{topLevelNodeModulesIndex:Z,topLevelPackageNameIndex:pe,packageRootIndex:Ae}=ce;if(F=ak(CN(L.fileName.substring(pe+1,Ae))),Ui(S,L.path.substring(0,Z))){let Oe=o.get(F),_e=L.fileName.substring(0,pe+1);if(Oe){let be=Oe.indexOf(H_);Z>be&&o.set(F,_e)}else o.set(F,_e)}}}let W=G===1&&Ex(A)||A,$=G===0||Uk(W)?Ii(C):yle(W,void 0),de=typeof $=="string"?$:$[0],fe=typeof $=="string"?void 0:$[1],q=Sf(R.name),H=t++,ee=Kc(A,K),le=A.flags&33554432?void 0:A,Ee=R.flags&33554432?void 0:R;(!le||!Ee)&&i.set(H,[A,R]),r.add(p(de,A,Ic(q)?void 0:q,K),{id:H,symbolTableKey:C,symbolName:de,capitalizedSymbolName:fe,moduleName:q,moduleFile:L,moduleFileName:L?.fileName,packageName:F,exportKind:G,targetFlags:ee.flags,isFromPackageJson:U,symbol:le,moduleSymbol:Ee})},get:(S,A)=>{if(S!==s)return;let C=r.get(A);return C?.map(d)},search:(S,A,C,R)=>{if(S===s)return hc(r,(L,G)=>{let{symbolName:U,ambientModuleName:K}=h(G),F=A&&L[0].capitalizedSymbolName||U;if(C(F,L[0].targetFlags)){let W=L.map(d).filter(($,de)=>E($,L[de].packageName));if(W.length){let $=R(W,F,!!K,G);if($!==void 0)return $}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(S,A,C)=>m(S)&&m(A)?!1:s&&s!==A.path||C&&j3(S)!==j3(A)||!mm(S.moduleAugmentations,A.moduleAugmentations)||!v(S,A)?(l.clear(),!0):(s=A.path,!1)};return x.isDebugging&&Object.defineProperty(l,"__cache",{value:r}),l;function d(S){if(S.symbol&&S.moduleSymbol)return S;let{id:A,exportKind:C,targetFlags:R,isFromPackageJson:L,moduleFileName:G}=S,[U,K]=i.get(A)||je;if(U&&K)return{symbol:U,moduleSymbol:K,moduleFileName:G,exportKind:C,targetFlags:R,isFromPackageJson:L};let F=(L?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),oe=S.moduleSymbol||K||x.checkDefined(S.moduleFile?F.getMergedSymbol(S.moduleFile.symbol):F.tryFindAmbientModule(S.moduleName)),W=S.symbol||U||x.checkDefined(C===2?F.resolveExternalModuleSymbol(oe):F.tryGetMemberInModuleExportsAndProperties(Ii(S.symbolTableKey),oe),`Could not find symbol '${S.symbolName}' by key '${S.symbolTableKey}' in module ${oe.name}`);return i.set(A,[W,oe]),{symbol:W,moduleSymbol:oe,moduleFileName:G,exportKind:C,targetFlags:R,isFromPackageJson:L}}function p(S,A,C,R){let L=C||"";return`${S.length} ${na(Kc(A,R))} ${S} ${L}`}function h(S){let A=S.indexOf(" "),C=S.indexOf(" ",A+1),R=parseInt(S.substring(0,A),10),L=S.substring(C+1),G=L.substring(0,R),U=L.substring(R+1);return{symbolName:G,ambientModuleName:U===""?void 0:U}}function m(S){return!S.commonJsModuleIndicator&&!S.externalModuleIndicator&&!S.moduleAugmentations&&!S.ambientModuleNames}function v(S,A){if(!mm(S.ambientModuleNames,A.ambientModuleNames))return!1;let C=-1,R=-1;for(let L of A.ambientModuleNames){let G=U=>m9(U)&&U.name.text===L;if(C=Tl(S.statements,G,C+1),R=Tl(A.statements,G,R+1),S.statements[C]!==A.statements[R])return!1}return!0}function E(S,A){if(!A||!S.moduleFileName)return!0;let C=e.getGlobalTypingsCacheLocation();if(C&&Ui(S.moduleFileName,C))return!0;let R=o.get(A);return!R||Ui(S.moduleFileName,R)}}function GJ(e,t,r,i,o,s,l){var d;if(t===r)return!1;let p=l?.get(t.path,r.path,i,{});if(p?.isBlockedByPackageJsonDependencies!==void 0)return!p.isBlockedByPackageJsonDependencies;let h=ev(s),m=(d=s.getGlobalTypingsCacheLocation)==null?void 0:d.call(s),v=!!h0.forEachFileNameOfModule(t.fileName,r.fileName,s,!1,E=>{let S=e.getSourceFile(E);return(S===r||!S)&&rBe(t.fileName,E,h,m)});if(o){let E=v&&o.allowsImportingSourceFile(r,s);return l?.setBlockedByPackageJsonDependencies(t.path,r.path,i,{},!E),E}return v}function rBe(e,t,r,i){let o=Vf(t,l=>Ll(l)==="node_modules"?l:void 0),s=o&&Ur(r(o));return s===void 0||Ui(r(e),s)||!!i&&Ui(r(i),s)}function VJ(e,t,r,i,o){var s,l;let d=yx(t),p=r.autoImportFileExcludePatterns&&Fi(r.autoImportFileExcludePatterns,m=>{let v=cF(m,"","exclude");return v?iy(v,d):void 0});LAe(e.getTypeChecker(),e.getSourceFiles(),p,t,(m,v)=>o(m,v,e,!1));let h=i&&((s=t.getPackageJsonAutoImportProvider)==null?void 0:s.call(t));if(h){let m=Is(),v=e.getTypeChecker();LAe(h.getTypeChecker(),h.getSourceFiles(),p,t,(E,S)=>{(S&&!e.getSourceFile(S.fileName)||!S&&!v.resolveName(E.name,void 0,1536,!1))&&o(E,S,h,!0)}),(l=t.log)==null||l.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${Is()-m}`)}}function LAe(e,t,r,i,o){var s,l;let d=(s=i.getSymlinkCache)==null?void 0:s.call(i).getSymlinkedDirectoriesByRealpath(),p=r&&(({fileName:h,path:m})=>{if(r.some(v=>v.test(h)))return!0;if(d?.size&&Gb(h)){let v=Ur(h);return Vf(Ur(m),E=>{let S=d.get(_c(E));if(S)return S.some(A=>r.some(C=>C.test(h.replace(v,A))));v=Ur(v)})??!1}return!1});for(let h of e.getAmbientModules())!h.name.includes("*")&&!(r&&((l=h.declarations)!=null&&l.every(m=>p(m.getSourceFile()))))&&o(h,void 0);for(let h of t)sp(h)&&!p?.(h)&&o(e.getMergedSymbol(h.symbol),h)}function rO(e,t,r,i,o){var s,l,d,p,h;let m=Is();(s=t.getPackageJsonAutoImportProvider)==null||s.call(t);let v=((l=t.getCachedExportInfoMap)==null?void 0:l.call(t))||BJ({getCurrentProgram:()=>r,getPackageJsonAutoImportProvider:()=>{var A;return(A=t.getPackageJsonAutoImportProvider)==null?void 0:A.call(t)},getGlobalTypingsCacheLocation:()=>{var A;return(A=t.getGlobalTypingsCacheLocation)==null?void 0:A.call(t)}});if(v.isUsableByFile(e.path))return(d=t.log)==null||d.call(t,"getExportInfoMap: cache hit"),v;(p=t.log)==null||p.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let E=r.getCompilerOptions(),S=0;try{VJ(r,t,i,!0,(A,C,R,L)=>{++S%100===0&&o?.throwIfCancellationRequested();let G=new Map,U=R.getTypeChecker(),K=$3(A,U,E);K&&kAe(K.symbol,U)&&v.add(e.path,K.symbol,K.exportKind===1?"default":"export=",A,C,K.exportKind,L,U),U.forEachExportAndPropertyOfModule(A,(F,oe)=>{F!==K?.symbol&&kAe(F,U)&&Jf(G,oe)&&v.add(e.path,F,oe,A,C,0,L,U)})})}catch(A){throw v.clear(),A}return(h=t.log)==null||h.call(t,`getExportInfoMap: done in ${Is()-m} ms`),v}function $3(e,t,r){let i=iBe(e,t);if(!i)return;let{symbol:o,exportKind:s}=i,l=Q3(o,t,r);return l&&{symbol:o,exportKind:s,...l}}function kAe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!WL(e)&&!one(e)}function iBe(e,t){let r=t.resolveExternalModuleSymbol(e);if(r!==e)return{symbol:r,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function Q3(e,t,r){let i=Ex(e);if(i)return{resolvedSymbol:i,name:i.name};let o=oBe(e);if(o!==void 0)return{resolvedSymbol:e,name:o};if(e.flags&2097152){let s=t.getImmediateAliasedSymbol(e);if(s&&s.parent)return Q3(s,t,r)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:U3(e,r.target)}}function oBe(e){return e.declarations&&ml(e.declarations,t=>{var r;if(dl(t))return(r=Vr(Rl(t.expression),Me))==null?void 0:r.text;if(Ed(t))return x.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var jJ,UJ,aBe=pt({"src/services/exportInfoMap.ts"(){"use strict";Hr(),jJ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(jJ||{}),UJ=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(UJ||{})}});function OAe(){let e=Kg(99,!1);function t(i,o,s){return cBe(r(i,o,s),i)}function r(i,o,s){let l=0,d=0,p=[],{prefix:h,pushTemplate:m}=pBe(o);i=h+i;let v=h.length;m&&p.push(16),e.setText(i);let E=0,S=[],A=0;do{l=e.scan(),mx(l)||(C(),d=l);let R=e.getTokenEnd();if(lBe(e.getTokenStart(),R,v,_Be(l),S),R>=i.length){let L=sBe(e,l,Ns(p));L!==void 0&&(E=L)}}while(l!==1);function C(){switch(l){case 44:case 69:!zAe[d]&&e.reScanSlashToken()===14&&(l=14);break;case 30:d===80&&A++;break;case 32:A>0&&A--;break;case 133:case 154:case 150:case 136:case 155:A>0&&!s&&(l=80);break;case 16:p.push(l);break;case 19:p.length>0&&p.push(l);break;case 20:if(p.length>0){let R=Ns(p);R===16?(l=e.reScanTemplateToken(!1),l===18?p.pop():x.assertEqual(l,17,"Should have been a template middle.")):(x.assertEqual(R,19,"Should have been an open brace"),p.pop())}break;default:if(!du(l))break;(d===25||du(d)&&du(l)&&!uBe(d,l))&&(l=80)}}return{endOfLineState:E,spans:S}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:r}}function sBe(e,t,r){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),o=i.length-1,s=0;for(;i.charCodeAt(o-s)===92;)s++;return s&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(Jv(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return x.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return r===16?6:void 0}}function lBe(e,t,r,i,o){if(i===8)return;e===0&&r>0&&(e+=r);let s=t-e;s>0&&o.push(e-r,s,i)}function cBe(e,t){let r=[],i=e.spans,o=0;for(let l=0;l<i.length;l+=3){let d=i[l],p=i[l+1],h=i[l+2];if(o>=0){let m=d-o;m>0&&r.push({length:m,classification:4})}r.push({length:p,classification:dBe(h)}),o=d+p}let s=t.length-o;return s>0&&r.push({length:s,classification:4}),{entries:r,finalLexState:e.endOfLineState}}function dBe(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 uBe(e,t){if(!eJ(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function pBe(e){switch(e){case 3:return{prefix:`"\\
`};case 2:return{prefix:`'\\
`};case 1:return{prefix:`/*
`};case 4:return{prefix:"`\n"};case 5:return{prefix:`}
`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return x.assertNever(e)}}function fBe(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function mBe(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function _Be(e){if(du(e))return 3;if(fBe(e)||mBe(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Jv(e)?6:2}}function Tle(e,t,r,i,o){return FAe(HJ(e,t,r,i,o))}function wAe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function HJ(e,t,r,i,o){let s=[];return r.forEachChild(function d(p){if(!(!p||!P8(o,p.pos,p.getFullWidth()))){if(wAe(t,p.kind),Me(p)&&!_l(p)&&i.has(p.escapedText)){let h=e.getSymbolAtLocation(p),m=h&&WAe(h,aT(p),e);m&&l(p.getStart(r),p.getEnd(),m)}p.forEachChild(d)}}),{spans:s,endOfLineState:0};function l(d,p,h){let m=p-d;x.assert(m>0,`Classification had non-positive length of ${m}`),s.push(d),s.push(m),s.push(h)}}function WAe(e,t,r){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&hBe(e)?14:void 0:i&2097152?WAe(r.getAliasedSymbol(e),t,r):t&2?i&64?13:i&262144?15:void 0:void 0}function hBe(e){return ct(e.declarations,t=>Il(t)&&dg(t)===1)}function gBe(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 FAe(e){x.assert(e.spans.length%3===0);let t=e.spans,r=[];for(let i=0;i<t.length;i+=3)r.push({textSpan:qc(t[i],t[i+1]),classificationType:gBe(t[i+2])});return r}function Ale(e,t,r){return FAe(qJ(e,t,r))}function qJ(e,t,r){let i=r.start,o=r.length,s=Kg(99,!1,t.languageVariant,t.text),l=Kg(99,!1,t.languageVariant,t.text),d=[];return K(t),{spans:d,endOfLineState:0};function p(F,oe,W){d.push(F),d.push(oe),d.push(W)}function h(F){for(s.resetTokenState(F.pos);;){let oe=s.getTokenEnd();if(!hee(t.text,oe))return oe;let W=s.scan(),$=s.getTokenEnd(),de=$-oe;if(!mx(W))return oe;switch(W){case 4:case 5:continue;case 2:case 3:m(F,W,oe,de),s.resetTokenState($);continue;case 7:let fe=t.text,q=fe.charCodeAt(oe);if(q===60||q===62){p(oe,de,1);continue}x.assert(q===124||q===61),C(fe,oe,$);break;case 6:break;default:x.assertNever(W)}}}function m(F,oe,W,$){if(oe===3){let de=Pie(t.text,W,$);if(de&&de.jsDoc){Ta(de.jsDoc,F),E(de.jsDoc);return}}else if(oe===2&&S(W,$))return;v(W,$)}function v(F,oe){p(F,oe,1)}function E(F){var oe,W,$,de,fe,q,H,ee;let le=F.pos;if(F.tags)for(let ce of F.tags){ce.pos!==le&&v(le,ce.pos-le),p(ce.pos,1,10),p(ce.tagName.pos,ce.tagName.end-ce.tagName.pos,18),le=ce.tagName.end;let Z=ce.tagName.end;switch(ce.kind){case 348:let pe=ce;Ee(pe),Z=pe.isNameFirst&&((oe=pe.typeExpression)==null?void 0:oe.end)||pe.name.end;break;case 355:let Ae=ce;Z=Ae.isNameFirst&&((W=Ae.typeExpression)==null?void 0:W.end)||Ae.name.end;break;case 352:A(ce),le=ce.end,Z=ce.typeParameters.end;break;case 353:let Oe=ce;Z=(($=Oe.typeExpression)==null?void 0:$.kind)===316&&((de=Oe.fullName)==null?void 0:de.end)||((fe=Oe.typeExpression)==null?void 0:fe.end)||Z;break;case 345:Z=ce.typeExpression.end;break;case 351:K(ce.typeExpression),le=ce.end,Z=ce.typeExpression.end;break;case 350:case 347:Z=ce.typeExpression.end;break;case 349:K(ce.typeExpression),le=ce.end,Z=((q=ce.typeExpression)==null?void 0:q.end)||Z;break;case 354:Z=((H=ce.name)==null?void 0:H.end)||Z;break;case 335:case 336:Z=ce.class.end;break;case 356:K(ce.typeExpression),le=ce.end,Z=((ee=ce.typeExpression)==null?void 0:ee.end)||Z;break}typeof ce.comment=="object"?v(ce.comment.pos,ce.comment.end-ce.comment.pos):typeof ce.comment=="string"&&v(Z,ce.end-Z)}le!==F.end&&v(le,F.end-le);return;function Ee(ce){ce.isNameFirst&&(v(le,ce.name.pos-le),p(ce.name.pos,ce.name.end-ce.name.pos,17),le=ce.name.end),ce.typeExpression&&(v(le,ce.typeExpression.pos-le),K(ce.typeExpression),le=ce.typeExpression.end),ce.isNameFirst||(v(le,ce.name.pos-le),p(ce.name.pos,ce.name.end-ce.name.pos,17),le=ce.name.end)}}function S(F,oe){let W=/^(\/\/\/\s*)(<)(?:(\S+)((?:[^/]|\/[^>])*)(\/>)?)?/im,$=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,de=t.text.substr(F,oe),fe=W.exec(de);if(!fe||!fe[3]||!(fe[3]in EM))return!1;let q=F;v(q,fe[1].length),q+=fe[1].length,p(q,fe[2].length,10),q+=fe[2].length,p(q,fe[3].length,21),q+=fe[3].length;let H=fe[4],ee=q;for(;;){let Ee=$.exec(H);if(!Ee)break;let ce=q+Ee.index+Ee[1].length;ce>ee&&(v(ee,ce-ee),ee=ce),p(ee,Ee[2].length,22),ee+=Ee[2].length,Ee[3].length&&(v(ee,Ee[3].length),ee+=Ee[3].length),p(ee,Ee[4].length,5),ee+=Ee[4].length,Ee[5].length&&(v(ee,Ee[5].length),ee+=Ee[5].length),p(ee,Ee[6].length,24),ee+=Ee[6].length}q+=fe[4].length,q>ee&&v(ee,q-ee),fe[5]&&(p(q,fe[5].length,10),q+=fe[5].length);let le=F+oe;return q<le&&v(q,le-q),!0}function A(F){for(let oe of F.getChildren())K(oe)}function C(F,oe,W){let $;for($=oe;$<W&&!vd(F.charCodeAt($));$++);for(p(oe,$-oe,1),l.resetTokenState($);l.getTokenEnd()<W;)R()}function R(){let F=l.getTokenEnd(),oe=l.scan(),W=l.getTokenEnd(),$=U(oe);$&&p(F,W-F,$)}function L(F){if(Sm(F)||_l(F))return!0;let oe=G(F);if(!xA(F)&&F.kind!==12&&oe===void 0)return!1;let W=F.kind===12?F.pos:h(F),$=F.end-W;if(x.assert($>=0),$>0){let de=oe||U(F.kind,F);de&&p(W,$,de)}return!0}function G(F){switch(F.parent&&F.parent.kind){case 286:if(F.parent.tagName===F)return 19;break;case 287:if(F.parent.tagName===F)return 20;break;case 285:if(F.parent.tagName===F)return 21;break;case 291:if(F.parent.name===F)return 22;break}}function U(F,oe){if(du(F))return 3;if((F===30||F===32)&&oe&&qse(oe.parent))return 10;if(U9(F)){if(oe){let W=oe.parent;if(F===64&&(W.kind===260||W.kind===172||W.kind===169||W.kind===291)||W.kind===226||W.kind===224||W.kind===225||W.kind===227)return 5}return 10}else{if(F===9)return 4;if(F===10)return 25;if(F===11)return oe&&oe.parent.kind===291?24:6;if(F===14)return 6;if(Jv(F))return 6;if(F===12)return 23;if(F===80){if(oe){switch(oe.parent.kind){case 263:return oe.parent.name===oe?11:void 0;case 168:return oe.parent.name===oe?15:void 0;case 264:return oe.parent.name===oe?13:void 0;case 266:return oe.parent.name===oe?12:void 0;case 267:return oe.parent.name===oe?14:void 0;case 169:return oe.parent.name===oe?YE(oe)?3:17:void 0}if(Qh(oe.parent))return 3}return 2}}}function K(F){if(F&&WM(i,o,F.pos,F.getFullWidth())){wAe(e,F.kind);for(let oe of F.getChildren(t))L(oe)||K(oe)}}}var zAe,BAe=pt({"src/services/classifier.ts"(){"use strict";Hr(),zAe=WZ([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),Z3,vBe=pt({"src/services/documentHighlights.ts"(){"use strict";Hr(),(e=>{function t(q,H,ee,le,Ee){let ce=pu(ee,le);if(ce.parent&&(n_(ce.parent)&&ce.parent.tagName===ce||l0(ce.parent))){let{openingElement:Z,closingElement:pe}=ce.parent.parent,Ae=[Z,pe].map(({tagName:Oe})=>r(Oe,ee));return[{fileName:ee.fileName,highlightSpans:Ae}]}return i(le,ce,q,H,Ee)||o(ce,ee)}e.getDocumentHighlights=t;function r(q,H){return{fileName:H.fileName,textSpan:eu(q,H),kind:"none"}}function i(q,H,ee,le,Ee){let ce=new Set(Ee.map(Oe=>Oe.fileName)),Z=ps.getReferenceEntriesForNode(q,H,ee,Ee,le,void 0,ce);if(!Z)return;let pe=fM(Z.map(ps.toHighlightSpan),Oe=>Oe.fileName,Oe=>Oe.span),Ae=od(ee.useCaseSensitiveFileNames());return bo(WD(pe.entries(),([Oe,_e])=>{if(!ce.has(Oe)){if(!ee.redirectTargetsMap.has(ks(Oe,ee.getCurrentDirectory(),Ae)))return;let be=ee.getSourceFile(Oe);Oe=Dr(Ee,De=>!!De.redirectInfo&&De.redirectInfo.redirectTarget===be).fileName,x.assert(ce.has(Oe))}return{fileName:Oe,highlightSpans:_e}}))}function o(q,H){let ee=s(q,H);return ee&&[{fileName:H.fileName,highlightSpans:ee}]}function s(q,H){switch(q.kind){case 101:case 93:return HS(q.parent)?$(q.parent,H):void 0;case 107:return le(q.parent,Kf,K);case 111:return le(q.parent,Aj,U);case 113:case 85:case 98:let ce=q.kind===85?q.parent.parent:q.parent;return le(ce,JS,G);case 109:return le(q.parent,pN,L);case 84:case 90:return _N(q.parent)||zx(q.parent)?le(q.parent.parent.parent,pN,L):void 0;case 83:case 88:return le(q.parent,rC,R);case 99:case 117:case 92:return le(q.parent,Z=>Xv(Z,!0),C);case 137:return ee(ll,[137]);case 139:case 153:return ee(Kv,[139,153]);case 135:return le(q.parent,py,F);case 134:return Ee(F(q));case 127:return Ee(oe(q));case 103:case 147:return;default:return Yg(q.kind)&&(bd(q.parent)||cl(q.parent))?Ee(E(q.kind,q.parent)):void 0}function ee(ce,Z){return le(q.parent,ce,pe=>{var Ae;return Fi((Ae=Vr(pe,Hm))==null?void 0:Ae.symbol.declarations,Oe=>ce(Oe)?Dr(Oe.getChildren(H),_e=>To(Z,_e.kind)):void 0)})}function le(ce,Z,pe){return Z(ce)?Ee(pe(ce,H)):void 0}function Ee(ce){return ce&&ce.map(Z=>r(Z,H))}}function l(q){return Aj(q)?[q]:JS(q)?ro(q.catchClause?l(q.catchClause):q.tryBlock&&l(q.tryBlock),q.finallyBlock&&l(q.finallyBlock)):Lo(q)?void 0:h(q,l)}function d(q){let H=q;for(;H.parent;){let ee=H.parent;if(VE(ee)||ee.kind===312)return ee;if(JS(ee)&&ee.tryBlock===H&&ee.catchClause)return H;H=ee}}function p(q){return rC(q)?[q]:Lo(q)?void 0:h(q,p)}function h(q,H){let ee=[];return q.forEachChild(le=>{let Ee=H(le);Ee!==void 0&&ee.push(...yA(Ee))}),ee}function m(q,H){let ee=v(H);return!!ee&&ee===q}function v(q){return Rn(q,H=>{switch(H.kind){case 255:if(q.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!q.label||fe(H,q.label.escapedText);default:return Lo(H)&&"quit"}})}function E(q,H){return Fi(S(H,GA(q)),ee=>gR(ee,q))}function S(q,H){let ee=q.parent;switch(ee.kind){case 268:case 312:case 241:case 296:case 297:return H&64&&Zl(q)?[...q.members,q]:ee.statements;case 176:case 174:case 262:return[...ee.parameters,...Kr(ee.parent)?ee.parent.members:[]];case 263:case 231:case 264:case 187:let le=ee.members;if(H&15){let Ee=Dr(ee.members,ll);if(Ee)return[...le,...Ee.parameters]}else if(H&64)return[...le,ee];return le;case 210:return;default:x.assertNever(ee,"Invalid container kind.")}}function A(q,H,...ee){return H&&To(ee,H.kind)?(q.push(H),!0):!1}function C(q){let H=[];if(A(H,q.getFirstToken(),99,117,92)&&q.kind===246){let ee=q.getChildren();for(let le=ee.length-1;le>=0&&!A(H,ee[le],117);le--);}return an(p(q.statement),ee=>{m(q,ee)&&A(H,ee.getFirstToken(),83,88)}),H}function R(q){let H=v(q);if(H)switch(H.kind){case 248:case 249:case 250:case 246:case 247:return C(H);case 255:return L(H)}}function L(q){let H=[];return A(H,q.getFirstToken(),109),an(q.caseBlock.clauses,ee=>{A(H,ee.getFirstToken(),84,90),an(p(ee),le=>{m(q,le)&&A(H,le.getFirstToken(),83)})}),H}function G(q,H){let ee=[];if(A(ee,q.getFirstToken(),113),q.catchClause&&A(ee,q.catchClause.getFirstToken(),85),q.finallyBlock){let le=Ya(q,98,H);A(ee,le,98)}return ee}function U(q,H){let ee=d(q);if(!ee)return;let le=[];return an(l(ee),Ee=>{le.push(Ya(Ee,111,H))}),VE(ee)&&GE(ee,Ee=>{le.push(Ya(Ee,107,H))}),le}function K(q,H){let ee=cp(q);if(!ee)return;let le=[];return GE(Fo(ee.body,Do),Ee=>{le.push(Ya(Ee,107,H))}),an(l(ee.body),Ee=>{le.push(Ya(Ee,111,H))}),le}function F(q){let H=cp(q);if(!H)return;let ee=[];return H.modifiers&&H.modifiers.forEach(le=>{A(ee,le,134)}),Ao(H,le=>{W(le,Ee=>{py(Ee)&&A(ee,Ee.getFirstToken(),135)})}),ee}function oe(q){let H=cp(q);if(!H)return;let ee=[];return Ao(H,le=>{W(le,Ee=>{g6(Ee)&&A(ee,Ee.getFirstToken(),127)})}),ee}function W(q,H){H(q),!Lo(q)&&!Kr(q)&&!Gd(q)&&!Il(q)&&!Xf(q)&&!xi(q)&&Ao(q,ee=>W(ee,H))}function $(q,H){let ee=de(q,H),le=[];for(let Ee=0;Ee<ee.length;Ee++){if(ee[Ee].kind===93&&Ee<ee.length-1){let ce=ee[Ee],Z=ee[Ee+1],pe=!0;for(let Ae=Z.getStart(H)-1;Ae>=ce.end;Ae--)if(!jm(H.text.charCodeAt(Ae))){pe=!1;break}if(pe){le.push({fileName:H.fileName,textSpan:Gl(ce.getStart(),Z.end),kind:"reference"}),Ee++;continue}}le.push(r(ee[Ee],H))}return le}function de(q,H){let ee=[];for(;HS(q.parent)&&q.parent.elseStatement===q;)q=q.parent;for(;;){let le=q.getChildren(H);A(ee,le[0],101);for(let Ee=le.length-1;Ee>=0&&!A(ee,le[Ee],93);Ee--);if(!q.elseStatement||!HS(q.elseStatement))break;q=q.elseStatement}return ee}function fe(q,H){return!!Rn(q.parent,ee=>s0(ee)?ee.label.escapedText===H:"quit")}})(Z3||(Z3={}))}});function iO(e){return!!e.sourceFile}function Ile(e,t,r){return JJ(e,t,r)}function JJ(e,t="",r,i){let o=new Map,s=od(!!e);function l(){let R=bo(o.keys()).filter(L=>L&&L.charAt(0)==="_").map(L=>{let G=o.get(L),U=[];return G.forEach((K,F)=>{iO(K)?U.push({name:F,scriptKind:K.sourceFile.scriptKind,refCount:K.languageServiceRefCount}):K.forEach((oe,W)=>U.push({name:F,scriptKind:W,refCount:oe.languageServiceRefCount}))}),U.sort((K,F)=>F.refCount-K.refCount),{bucket:L,sourceFiles:U}});return JSON.stringify(R,void 0,2)}function d(R){return typeof R.getCompilationSettings=="function"?R.getCompilationSettings():R}function p(R,L,G,U,K,F){let oe=ks(R,t,s),W=KJ(d(L));return h(R,oe,L,W,G,U,K,F)}function h(R,L,G,U,K,F,oe,W){return S(R,L,G,U,K,F,!0,oe,W)}function m(R,L,G,U,K,F){let oe=ks(R,t,s),W=KJ(d(L));return v(R,oe,L,W,G,U,K,F)}function v(R,L,G,U,K,F,oe,W){return S(R,L,d(G),U,K,F,!1,oe,W)}function E(R,L){let G=iO(R)?R:R.get(x.checkDefined(L,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return x.assert(L===void 0||!G||G.sourceFile.scriptKind===L,`Script kind should match provided ScriptKind:${L} and sourceFile.scriptKind: ${G?.sourceFile.scriptKind}, !entry: ${!G}`),G}function S(R,L,G,U,K,F,oe,W,$){var de,fe,q,H;W=uF(R,W);let ee=d(G),le=G===ee?void 0:G,Ee=W===6?100:Wa(ee),ce=typeof $=="object"?$:{languageVersion:Ee,impliedNodeFormat:le&&Tk(L,(H=(q=(fe=(de=le.getCompilerHost)==null?void 0:de.call(le))==null?void 0:fe.getModuleResolutionCache)==null?void 0:q.call(fe))==null?void 0:H.getPackageJsonInfoCache(),le,ee),setExternalModuleIndicator:XL(ee),jsDocParsingMode:r};ce.languageVersion=Ee,x.assertEqual(r,ce.jsDocParsingMode);let Z=o.size,pe=xle(U,ce.impliedNodeFormat),Ae=FD(o,pe,()=>new Map);if(qn){o.size>Z&&qn.instant(qn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:ee.configFilePath,key:pe});let Te=!Yc(L)&&hc(o,(De,ft)=>ft!==pe&&De.has(L)&&ft);Te&&qn.instant(qn.Phase.Session,"documentRegistryBucketOverlap",{path:L,key1:Te,key2:pe})}let Oe=Ae.get(L),_e=Oe&&E(Oe,W);if(!_e&&i){let Te=i.getDocument(pe,L);Te&&(x.assert(oe),_e={sourceFile:Te,languageServiceRefCount:0},be())}if(_e)_e.sourceFile.version!==F&&(_e.sourceFile=wK(_e.sourceFile,K,F,K.getChangeRange(_e.sourceFile.scriptSnapshot)),i&&i.setDocument(pe,L,_e.sourceFile)),oe&&_e.languageServiceRefCount++;else{let Te=Az(R,K,ce,F,!1,W);i&&i.setDocument(pe,L,Te),_e={sourceFile:Te,languageServiceRefCount:1},be()}return x.assert(_e.languageServiceRefCount!==0),_e.sourceFile;function be(){if(!Oe)Ae.set(L,_e);else if(iO(Oe)){let Te=new Map;Te.set(Oe.sourceFile.scriptKind,Oe),Te.set(W,_e),Ae.set(L,Te)}else Oe.set(W,_e)}}function A(R,L,G,U){let K=ks(R,t,s),F=KJ(L);return C(K,F,G,U)}function C(R,L,G,U){let K=x.checkDefined(o.get(xle(L,U))),F=K.get(R),oe=E(F,G);oe.languageServiceRefCount--,x.assert(oe.languageServiceRefCount>=0),oe.languageServiceRefCount===0&&(iO(F)?K.delete(R):(F.delete(G),F.size===1&&K.set(R,cM(F.values(),Ps))))}return{acquireDocument:p,acquireDocumentWithKey:h,updateDocument:m,updateDocumentWithKey:v,releaseDocument:A,releaseDocumentWithKey:C,getKeyForCompilationSettings:KJ,getDocumentRegistryBucketKeyWithMode:xle,reportStats:l,getBuckets:()=>o}}function KJ(e){return EU(e,j6)}function xle(e,t){return t?`${e}|${t}`:e}var yBe=pt({"src/services/documentRegistry.ts"(){"use strict";Hr()}});function Rle(e,t,r,i,o,s,l){let d=yx(i),p=od(d),h=XJ(t,r,p,l),m=XJ(r,t,p,l);return er.ChangeTracker.with({host:i,formatContext:o,preferences:s},v=>{EBe(e,v,h,t,r,i.getCurrentDirectory(),d),SBe(e,v,h,m,i,p)})}function XJ(e,t,r,i){let o=r(e);return l=>{let d=i&&i.tryGetSourcePosition({fileName:l,pos:0}),p=s(d?d.fileName:l);return d?p===void 0?void 0:bBe(d.fileName,p,l,r):p};function s(l){if(r(l)===o)return t;let d=xV(l,o,r);return d===void 0?void 0:t+"/"+d}}function bBe(e,t,r,i){let o=RM(e,t,i);return Dle(Ur(r),o)}function EBe(e,t,r,i,o,s,l){let{configFile:d}=e.getCompilerOptions();if(!d)return;let p=Ur(d.fileName),h=_C(d);if(!h)return;Cle(h,(S,A)=>{switch(A){case"files":case"include":case"exclude":{if(m(S)||A!=="include"||!Bd(S.initializer))return;let R=Fi(S.initializer.elements,G=>ca(G)?G.text:void 0);if(R.length===0)return;let L=dF(p,[],R,l,s);iy(x.checkDefined(L.includeFilePattern),l).test(i)&&!iy(x.checkDefined(L.includeFilePattern),l).test(o)&&t.insertNodeAfter(d,Da(S.initializer.elements),P.createStringLiteral(E(o)));return}case"compilerOptions":Cle(S.initializer,(C,R)=>{let L=nU(R);x.assert(L?.type!=="listOrElement"),L&&(L.isFilePath||L.type==="list"&&L.element.isFilePath)?m(C):R==="paths"&&Cle(C.initializer,G=>{if(Bd(G.initializer))for(let U of G.initializer.elements)v(U)})});return}});function m(S){let A=Bd(S.initializer)?S.initializer.elements:[S.initializer],C=!1;for(let R of A)C=v(R)||C;return C}function v(S){if(!ca(S))return!1;let A=Dle(p,S.text),C=r(A);return C!==void 0?(t.replaceRangeWithText(d,VAe(S,d),E(C)),!0):!1}function E(S){return Gf(p,S,!l)}}function SBe(e,t,r,i,o,s){let l=e.getSourceFiles();for(let d of l){let p=r(d.fileName),h=p??d.fileName,m=Ur(h),v=i(d.fileName),E=v||d.fileName,S=Ur(E),A=p!==void 0||v!==void 0;IBe(d,t,C=>{if(!op(C))return;let R=Dle(S,C),L=r(R);return L===void 0?void 0:ME(Gf(m,L,s))},C=>{let R=e.getTypeChecker().getSymbolAtLocation(C);if(R?.declarations&&R.declarations.some(G=>sd(G)))return;let L=v!==void 0?GAe(C,Zx(C.text,E,e.getCompilerOptions(),o),r,l):ABe(R,C,d,e,o,r);return L!==void 0&&(L.updated||A&&op(C.text))?h0.updateModuleSpecifier(e.getCompilerOptions(),d,h,L.newFileName,lT(e,o),C.text):void 0})}}function TBe(e,t){return Yo(wr(e,t))}function Dle(e,t){return ME(TBe(e,t))}function ABe(e,t,r,i,o,s){if(e){let l=Dr(e.declarations,Li).fileName,d=s(l);return d===void 0?{newFileName:l,updated:!1}:{newFileName:d,updated:!0}}else{let l=i.getModeForUsageLocation(r,t),d=o.resolveModuleNameLiterals||!o.resolveModuleNames?i.getResolvedModuleFromModuleSpecifier(t):o.getResolvedModuleWithFailedLookupLocationsFromCache&&o.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,r.fileName,l);return GAe(t,d,s,i.getSourceFiles())}}function GAe(e,t,r,i){if(!t)return;if(t.resolvedModule){let p=d(t.resolvedModule.resolvedFileName);if(p)return p}let o=an(t.failedLookupLocations,s)||op(e.text)&&an(t.failedLookupLocations,l);if(o)return o;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function s(p){let h=r(p);return h&&Dr(i,m=>m.fileName===h)?l(p):void 0}function l(p){return Zs(p,"/package.json")?void 0:d(p)}function d(p){let h=r(p);return h&&{newFileName:h,updated:!0}}}function IBe(e,t,r,i){for(let o of e.referencedFiles||je){let s=r(o.fileName);s!==void 0&&s!==e.text.slice(o.pos,o.end)&&t.replaceRangeWithText(e,o,s)}for(let o of e.imports){let s=i(o);s!==void 0&&s!==o.text&&t.replaceRangeWithText(e,VAe(o,e),s)}}function VAe(e,t){return qp(e.getStart(t)+1,e.end-1)}function Cle(e,t){if(fa(e))for(let r of e.properties)Hl(r)&&ca(r.name)&&t(r,r.name.text)}var xBe=pt({"src/services/getEditsForFileRename.ts"(){"use strict";Hr()}});function aP(e,t){return{kind:e,isCaseSensitive:t}}function Nle(e){let t=new Map,r=e.trim().split(".").map(i=>NBe(i.trim()));if(r.length===1&&r[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>aP(2,!0),getFullMatch:()=>aP(2,!0),patternContainsDots:!1};if(!r.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,o)=>RBe(i,o,r,t),getMatchForLastSegmentOfPattern:i=>Ple(i,Da(r),t),patternContainsDots:r.length>1}}function RBe(e,t,r,i){if(!Ple(t,Da(r),i)||r.length-1>e.length)return;let s;for(let l=r.length-2,d=e.length-1;l>=0;l-=1,d-=1)s=HAe(s,Ple(e[d],r[l],i));return s}function jAe(e,t){let r=t.get(e);return r||t.set(e,r=Wle(e)),r}function UAe(e,t,r){let i=PBe(e,t.textLowerCase);if(i===0)return aP(t.text.length===e.length?0:1,Ui(e,t.text));if(t.isLowerCase){if(i===-1)return;let o=jAe(e,r);for(let s of o)if(Mle(e,s,t.text,!0))return aP(2,Mle(e,s,t.text,!1));if(t.text.length<e.length&&SR(e.charCodeAt(i)))return aP(2,!1)}else{if(e.indexOf(t.text)>0)return aP(2,!0);if(t.characterSpans.length>0){let o=jAe(e,r),s=qAe(e,o,t,!1)?!0:qAe(e,o,t,!0)?!1:void 0;if(s!==void 0)return aP(3,s)}}}function Ple(e,t,r){if(YJ(t.totalTextChunk.text,s=>s!==32&&s!==42)){let s=UAe(e,t.totalTextChunk,r);if(s)return s}let i=t.subWordTextChunks,o;for(let s of i)o=HAe(o,UAe(e,s,r));return o}function HAe(e,t){return cB([e,t],DBe)}function DBe(e,t){return e===void 0?1:t===void 0?-1:Ms(e.kind,t.kind)||zv(!e.isCaseSensitive,!t.isCaseSensitive)}function Mle(e,t,r,i,o={start:0,length:r.length}){return o.length<=t.length&&YAe(0,o.length,s=>CBe(r.charCodeAt(o.start+s),e.charCodeAt(t.start+s),i))}function CBe(e,t,r){return r?Lle(e)===Lle(t):e===t}function qAe(e,t,r,i){let o=r.characterSpans,s=0,l=0,d,p;for(;;){if(l===o.length)return!0;if(s===t.length)return!1;let h=t[s],m=!1;for(;l<o.length;l++){let v=o[l];if(m&&(!SR(r.text.charCodeAt(o[l-1].start))||!SR(r.text.charCodeAt(o[l].start)))||!Mle(e,h,r.text,i,v))break;m=!0,d=d===void 0?s:d,p=p===void 0?!0:p,h=qc(h.start+v.length,h.length-v.length)}!m&&p!==void 0&&(p=!1),s++}}function NBe(e){return{totalTextChunk:Ole(e),subWordTextChunks:LBe(e)}}function SR(e){if(e>=65&&e<=90)return!0;if(e<127||!x8(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function JAe(e){if(e>=97&&e<=122)return!0;if(e<127||!x8(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function PBe(e,t){let r=e.length-t.length;for(let i=0;i<=r;i++)if(YJ(t,(o,s)=>Lle(e.charCodeAt(s+i))===o))return i;return-1}function Lle(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function kle(e){return e>=48&&e<=57}function MBe(e){return SR(e)||JAe(e)||kle(e)||e===95||e===36}function LBe(e){let t=[],r=0,i=0;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);MBe(s)?(i===0&&(r=o),i++):i>0&&(t.push(Ole(e.substr(r,i))),i=0)}return i>0&&t.push(Ole(e.substr(r,i))),t}function Ole(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:wle(e)}}function wle(e){return KAe(e,!1)}function Wle(e){return KAe(e,!0)}function KAe(e,t){let r=[],i=0;for(let o=1;o<e.length;o++){let s=kle(e.charCodeAt(o-1)),l=kle(e.charCodeAt(o)),d=OBe(e,t,o),p=t&&kBe(e,o,i);(Fle(e.charCodeAt(o-1))||Fle(e.charCodeAt(o))||s!==l||d||p)&&(XAe(e,i,o)||r.push(qc(i,o-i)),i=o)}return XAe(e,i,e.length)||r.push(qc(i,e.length-i)),r}function Fle(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 XAe(e,t,r){return YJ(e,i=>Fle(i)&&i!==95,t,r)}function kBe(e,t,r){return t!==r&&t+1<e.length&&SR(e.charCodeAt(t))&&JAe(e.charCodeAt(t+1))&&YJ(e,SR,r,t)}function OBe(e,t,r){let i=SR(e.charCodeAt(r-1));return SR(e.charCodeAt(r))&&(!t||!i)}function YAe(e,t,r){for(let i=e;i<t;i++)if(!r(i))return!1;return!0}function YJ(e,t,r=0,i=e.length){return YAe(r,i,o=>t(e.charCodeAt(o),o))}var ez,wBe=pt({"src/services/patternMatcher.ts"(){"use strict";Hr(),ez=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(ez||{})}});function $Ae(e,t=!0,r=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},o=[],s,l,d,p=0,h=!1;function m(){return l=d,d=Id.scan(),d===19?p++:d===20&&p--,d}function v(){let F=Id.getTokenValue(),oe=Id.getTokenStart();return{fileName:F,pos:oe,end:oe+F.length}}function E(){s||(s=[]),s.push({ref:v(),depth:p})}function S(){o.push(v()),A()}function A(){p===0&&(h=!0)}function C(){let F=Id.getToken();return F===138?(F=m(),F===144&&(F=m(),F===11&&E()),!0):!1}function R(){if(l===25)return!1;let F=Id.getToken();if(F===102){if(F=m(),F===21){if(F=m(),F===11||F===15)return S(),!0}else{if(F===11)return S(),!0;if(F===156&&Id.lookAhead(()=>{let W=Id.scan();return W!==161&&(W===42||W===19||W===80||du(W))})&&(F=m()),F===80||du(F))if(F=m(),F===161){if(F=m(),F===11)return S(),!0}else if(F===64){if(G(!0))return!0}else if(F===28)F=m();else return!0;if(F===19){for(F=m();F!==20&&F!==1;)F=m();F===20&&(F=m(),F===161&&(F=m(),F===11&&S()))}else F===42&&(F=m(),F===130&&(F=m(),(F===80||du(F))&&(F=m(),F===161&&(F=m(),F===11&&S()))))}return!0}return!1}function L(){let F=Id.getToken();if(F===95){if(A(),F=m(),F===156&&Id.lookAhead(()=>{let W=Id.scan();return W===42||W===19})&&(F=m()),F===19){for(F=m();F!==20&&F!==1;)F=m();F===20&&(F=m(),F===161&&(F=m(),F===11&&S()))}else if(F===42)F=m(),F===161&&(F=m(),F===11&&S());else if(F===102&&(F=m(),F===156&&Id.lookAhead(()=>{let W=Id.scan();return W===80||du(W)})&&(F=m()),(F===80||du(F))&&(F=m(),F===64&&G(!0))))return!0;return!0}return!1}function G(F,oe=!1){let W=F?m():Id.getToken();return W===149?(W=m(),W===21&&(W=m(),(W===11||oe&&W===15)&&S()),!0):!1}function U(){let F=Id.getToken();if(F===80&&Id.getTokenValue()==="define"){if(F=m(),F!==21)return!0;if(F=m(),F===11||F===15)if(F=m(),F===28)F=m();else return!0;if(F!==23)return!0;for(F=m();F!==24&&F!==1;)(F===11||F===15)&&S(),F=m();return!0}return!1}function K(){for(Id.setText(e),m();Id.getToken()!==1;){if(Id.getToken()===16){let F=[Id.getToken()];e:for(;yn(F);){let oe=Id.scan();switch(oe){case 1:break e;case 102:R();break;case 16:F.push(oe);break;case 19:yn(F)&&F.push(oe);break;case 20:yn(F)&&(Ns(F)===16?Id.reScanTemplateToken(!1)===18&&F.pop():F.pop());break}}m()}C()||R()||L()||r&&(G(!1,!0)||U())||m()}Id.setText(void 0)}if(t&&K(),Yj(i,e),$j(i,Ca),h){if(s)for(let F of s)o.push(F.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let F;if(s)for(let oe of s)oe.depth===0?(F||(F=[]),F.push(oe.ref.fileName)):o.push(oe.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:o,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:F}}}var WBe=pt({"src/services/preProcess.ts"(){"use strict";Hr()}});function zle(e){let t=od(e.useCaseSensitiveFileNames()),r=e.getCurrentDirectory(),i=new Map,o=new Map;return{tryGetSourcePosition:d,tryGetGeneratedPosition:p,toLineColumnOffset:E,clearCache:S};function s(A){return ks(A,r,t)}function l(A,C){let R=s(A),L=o.get(R);if(L)return L;let G;if(e.getDocumentPositionMapper)G=e.getDocumentPositionMapper(A,C);else if(e.readFile){let U=v(A);G=U&&$J({getSourceFileLike:v,getCanonicalFileName:t,log:K=>e.log(K)},A,UU(U.text,Yh(U)),K=>!e.fileExists||e.fileExists(K)?e.readFile(K):void 0)}return o.set(R,G||m4),G||m4}function d(A){if(!Yc(A.fileName)||!h(A.fileName))return;let R=l(A.fileName).getSourcePosition(A);return!R||R===A?void 0:d(R)||R}function p(A){if(Yc(A.fileName))return;let C=h(A.fileName);if(!C)return;let R=e.getProgram();if(R.isSourceOfProjectReferenceRedirect(C.fileName))return;let L=R.getCompilerOptions(),G=ss(L),U=G?Yd(G)+".d.ts":WW(A.fileName,R.getCompilerOptions(),r,R.getCommonSourceDirectory(),t);if(U===void 0)return;let K=l(U,A.fileName).getGeneratedPosition(A);return K===A?void 0:K}function h(A){let C=e.getProgram();if(!C)return;let R=s(A),L=C.getSourceFileByPath(R);return L&&L.resolvedPath===R?L:void 0}function m(A){let C=s(A),R=i.get(C);if(R!==void 0)return R||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(A)){i.set(C,!1);return}let L=e.readFile(A),G=L?FBe(L):!1;return i.set(C,G),G||void 0}function v(A){return e.getSourceFileLike?e.getSourceFileLike(A):h(A)||m(A)}function E(A,C){return v(A).getLineAndCharacterOfPosition(C)}function S(){i.clear(),o.clear()}}function $J(e,t,r,i){let o=Poe(r);if(o){let d=ZAe.exec(o);if(d){if(d[1]){let p=d[1];return QAe(e,Pne(Hc,p),t)}o=void 0}}let s=[];o&&s.push(o),s.push(t+".map");let l=o&&Qi(o,Ur(t));for(let d of s){let p=Qi(d,Ur(t)),h=i(p,l);if(fo(h))return QAe(e,h,p);if(h!==void 0)return h||void 0}}function QAe(e,t,r){let i=HU(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(fo)))return koe(e,i,r)}function FBe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(r){return W1(Yh(this),r)}}}var ZAe,zBe=pt({"src/services/sourcemaps.ts"(){"use strict";Hr(),ZAe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function QJ(e,t,r){var i;t.getSemanticDiagnostics(e,r);let o=[],s=t.getTypeChecker();!(e.impliedNodeFormat===1||$l(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&($se(t)||sJ(t.getCompilerOptions()))&&BBe(e)&&o.push(vr(UBe(e.commonJsModuleIndicator),f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let d=wd(e);if(nK.clear(),p(e),zS(t.getCompilerOptions()))for(let h of e.imports){let m=yC(h),v=GBe(m);if(!v)continue;let E=(i=t.getResolvedModuleFromModuleSpecifier(h))==null?void 0:i.resolvedModule,S=E&&t.getSourceFile(E.resolvedFileName);S&&S.externalModuleIndicator&&S.externalModuleIndicator!==!0&&dl(S.externalModuleIndicator)&&S.externalModuleIndicator.isExportEquals&&o.push(vr(v,f.Import_may_be_converted_to_a_default_import))}return Pr(o,e.bindSuggestionDiagnostics),Pr(o,t.getSuggestionDiagnostics(e,r)),o.sort((h,m)=>h.start-m.start);function p(h){if(d)qBe(h,s)&&o.push(vr(yi(h.parent)?h.parent.name:h,f.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(cl(h)&&h.parent===e&&h.declarationList.flags&2&&h.declarationList.declarations.length===1){let v=h.declarationList.declarations[0].initializer;v&&Xd(v,!0)&&o.push(vr(v,f.require_call_may_be_converted_to_an_import))}let m=ud.getJSDocTypedefNodes(h);for(let v of m)o.push(vr(v,f.JSDoc_typedef_may_be_converted_to_TypeScript_type));ud.parameterShouldGetTypeFromJSDoc(h)&&o.push(vr(h.name||h,f.JSDoc_types_may_be_moved_to_TypeScript_types))}tK(h)&&VBe(h,s,o),h.forEachChild(p)}}function BBe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(r=>!!r.initializer&&Xd(eIe(r.initializer),!0));case 244:{let{expression:r}=t;if(!Zn(r))return Xd(r,!0);let i=hl(r);return i===1||i===2}default:return!1}})}function eIe(e){return Er(e)?eIe(e.expression):e}function GBe(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:r}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&ca(r)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function VBe(e,t,r){jBe(e,t)&&!nK.has(iIe(e))&&r.push(vr(!e.name&&yi(e.parent)&&Me(e.parent.name)?e.parent.name:e,f.This_may_be_converted_to_an_async_function))}function jBe(e,t){return!TC(e)&&e.body&&Do(e.body)&&HBe(e.body,t)&&ZJ(e,t)}function ZJ(e,t){let r=t.getSignatureFromDeclaration(e),i=r?t.getReturnTypeOfSignature(r):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function UBe(e){return Zn(e)?e.left:e}function HBe(e,t){return!!GE(e,r=>tz(r,t))}function tz(e,t){return Kf(e)&&!!e.expression&&eK(e.expression,t)}function eK(e,t){if(!tIe(e)||!nIe(e)||!e.arguments.every(i=>rIe(i,t)))return!1;let r=e.expression.expression;for(;tIe(r)||Er(r);)if(Bo(r)){if(!nIe(r)||!r.arguments.every(i=>rIe(i,t)))return!1;r=r.expression.expression}else r=r.expression;return!0}function tIe(e){return Bo(e)&&(Ok(e,"then")||Ok(e,"catch")||Ok(e,"finally"))}function nIe(e){let t=e.expression.name.text,r=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>r?!1:e.arguments.length<r?!0:r===1||ct(e.arguments,i=>i.kind===106||Me(i)&&i.text==="undefined")}function rIe(e,t){switch(e.kind){case 262:case 218:if(gc(e)&1)return!1;case 219:nK.set(iIe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||ct(Kc(i,t).declarations,o=>Lo(o)||$v(o)&&!!o.initializer&&Lo(o.initializer)):!1}default:return!1}}function iIe(e){return`${e.pos.toString()}:${e.end.toString()}`}function qBe(e,t){var r,i,o,s;if(us(e)){if(yi(e.parent)&&((r=e.symbol.members)!=null&&r.size))return!0;let l=t.getSymbolOfExpando(e,!1);return!!(l&&((i=l.exports)!=null&&i.size||(o=l.members)!=null&&o.size))}return Ql(e)?!!((s=e.symbol.members)!=null&&s.size):!1}function tK(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var nK,JBe=pt({"src/services/suggestionDiagnostics.ts"(){"use strict";Hr(),nK=new Map}});function Ble(e,t){let r=[],i=t.compilerOptions?rK(t.compilerOptions,r):{},o=Tz();for(let E in o)rs(o,E)&&i[E]===void 0&&(i[E]=o[E]);for(let E of hU)i.verbatimModuleSyntax&&aIe.has(E.name)||(i[E.name]=E.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let s=rv(i),l={getSourceFile:E=>E===Yo(d)?p:void 0,writeFile:(E,S)=>{el(E,".map")?(x.assertEqual(m,void 0,"Unexpected multiple source map outputs, file:",E),m=S):(x.assertEqual(h,void 0,"Unexpected multiple outputs, file:",E),h=S)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:E=>E,getCurrentDirectory:()=>"",getNewLine:()=>s,fileExists:E=>E===d,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},d=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),p=B2(d,e,{languageVersion:Wa(i),impliedNodeFormat:Tk(ks(d,"",l.getCanonicalFileName),void 0,l,i),setExternalModuleIndicator:XL(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(p.moduleName=t.moduleName),t.renamedDependencies&&(p.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let h,m,v=w4([d],i,l);return t.reportDiagnostics&&(Pr(r,v.getSyntacticDiagnostics(p)),Pr(r,v.getOptionsDiagnostics())),v.emit(void 0,void 0,void 0,void 0,t.transformers),h===void 0?x.fail("Output generation failed"):{outputText:h,diagnostics:r,sourceMapText:m}}function oIe(e,t,r,i,o){let s=Ble(e,{compilerOptions:t,fileName:r,reportDiagnostics:!!i,moduleName:o});return Pr(i,s.diagnostics),s.outputText}function rK(e,t){Gle=Gle||Cr(Nh,r=>typeof r.type=="object"&&!hc(r.type,i=>typeof i!="number")),e=tJ(e);for(let r of Gle){if(!rs(e,r.name))continue;let i=e[r.name];fo(i)?e[r.name]=w6(r,i,t):hc(r.type,o=>o===i)||t.push(Mie(r))}return e}var aIe,Gle,KBe=pt({"src/services/transpile.ts"(){"use strict";Hr(),aIe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function sIe(e,t,r,i,o,s,l){let d=Nle(i);if(!d)return je;let p=[],h=e.length===1?e[0]:void 0;for(let m of e)r.throwIfCancellationRequested(),!(s&&m.isDeclarationFile)&&(lIe(m,!!l,h)||m.getNamedDeclarations().forEach((v,E)=>{XBe(d,E,v,t,m.fileName,!!l,h,p)}));return p.sort(ZBe),(o===void 0?p:p.slice(0,o)).map(eGe)}function lIe(e,t,r){return e!==r&&t&&(tO(e.path)||e.hasNoDefaultLib)}function XBe(e,t,r,i,o,s,l,d){let p=e.getMatchForLastSegmentOfPattern(t);if(p){for(let h of r)if(YBe(h,i,s,l))if(e.patternContainsDots){let m=e.getFullMatch(QBe(h),t);m&&d.push({name:t,fileName:o,matchKind:m.kind,isCaseSensitive:m.isCaseSensitive,declaration:h})}else d.push({name:t,fileName:o,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:h})}}function YBe(e,t,r,i){var o;switch(e.kind){case 273:case 276:case 271:let s=t.getSymbolAtLocation(e.name),l=t.getAliasedSymbol(s);return s.escapedName!==l.escapedName&&!((o=l.declarations)!=null&&o.every(d=>lIe(d.getSourceFile(),r,i)));default:return!0}}function $Be(e,t){let r=mo(e);return!!r&&(cIe(r,t)||r.kind===167&&Vle(r.expression,t))}function Vle(e,t){return cIe(e,t)||Er(e)&&(t.push(e.name.text),!0)&&Vle(e.expression,t)}function cIe(e,t){return Km(e)&&(t.push(Ef(e)),!0)}function QBe(e){let t=[],r=mo(e);if(r&&r.kind===167&&!Vle(r.expression,t))return je;t.shift();let i=sT(e);for(;i;){if(!$Be(i,t))return je;i=sT(i)}return t.reverse()}function ZBe(e,t){return Ms(e.matchKind,t.matchKind)||_M(e.name,t.name)}function eGe(e){let t=e.declaration,r=sT(t),i=r&&mo(r);return{name:e.name,kind:E0(t),kindModifiers:YN(t),matchKind:ez[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:eu(t),containerName:i?i.text:"",containerKind:i?E0(r):""}}var tGe=pt({"src/services/navigateTo.ts"(){"use strict";Hr()}}),jle={};Ra(jle,{getNavigateToItems:()=>sIe});var dIe=pt({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";tGe()}});function uIe(e,t){sK=t,oO=e;try{return nn(aGe(_Ie(e)),sGe)}finally{fIe()}}function pIe(e,t){sK=t,oO=e;try{return AIe(_Ie(e))}finally{fIe()}}function fIe(){oO=void 0,sK=void 0,aO=[],_v=void 0,lK=[]}function nz(e){return sP(e.getText(oO))}function iK(e){return e.node.kind}function mIe(e,t){e.children?e.children.push(t):e.children=[t]}function _Ie(e){x.assert(!aO.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};_v=t;for(let r of e.statements)PI(r);return Hb(),x.assert(!_v&&!aO.length),t}function A0(e,t){mIe(_v,Ule(e,t))}function Ule(e,t){return{node:e,name:t||(bd(e)||lt(e)?mo(e):void 0),additionalNodes:void 0,parent:_v,children:void 0,indent:_v.indent+1}}function hIe(e){TR||(TR=new Map),TR.set(e,!0)}function gIe(e){for(let t=0;t<e;t++)Hb()}function vIe(e,t){let r=[];for(;!Km(t);){let i=SL(t),o=tg(t);t=t.expression,!(o==="prototype"||Ci(i))&&r.push(i)}r.push(t);for(let i=r.length-1;i>0;i--){let o=r[i];I0(e,o)}return[r.length-1,r[0]]}function I0(e,t){let r=Ule(e,t);mIe(_v,r),aO.push(_v),Qle.push(TR),TR=void 0,_v=r}function Hb(){_v.children&&(oK(_v.children,_v),Jle(_v.children)),_v=aO.pop(),TR=Qle.pop()}function qb(e,t,r){I0(e,r),PI(t),Hb()}function yIe(e){e.initializer&&cGe(e.initializer)?(I0(e),Ao(e.initializer,PI),Hb()):qb(e,e.initializer)}function Hle(e){let t=mo(e);if(t===void 0)return!1;if(Pa(t)){let r=t.expression;return gl(r)||Bu(r)||Tp(r)}return!!t}function PI(e){if(sK.throwIfCancellationRequested(),!(!e||xA(e)))switch(e.kind){case 176:let t=e;qb(t,t.body);for(let l of t.parameters)wu(l,t)&&A0(l);break;case 174:case 177:case 178:case 173:Hle(e)&&qb(e,e.body);break;case 172:Hle(e)&&yIe(e);break;case 171:Hle(e)&&A0(e);break;case 273:let r=e;r.name&&A0(r.name);let{namedBindings:i}=r;if(i)if(i.kind===274)A0(i);else for(let l of i.elements)A0(l);break;case 304:qb(e,e.name);break;case 305:let{expression:o}=e;Me(o)?A0(e,o):A0(e);break;case 208:case 303:case 260:{let l=e;ko(l.name)?PI(l.name):yIe(l);break}case 262:let s=e.name;s&&Me(s)&&hIe(s.text),qb(e,e.body);break;case 219:case 218:qb(e,e.body);break;case 266:I0(e);for(let l of e.members)lGe(l)||A0(l);Hb();break;case 263:case 231:case 264:I0(e);for(let l of e.members)PI(l);Hb();break;case 267:qb(e,xIe(e).body);break;case 277:{let l=e.expression,d=fa(l)||Bo(l)?l:hs(l)||us(l)?l.body:void 0;d?(I0(e),PI(d),Hb()):A0(e);break}case 281:case 271:case 181:case 179:case 180:case 265:A0(e);break;case 213:case 226:{let l=hl(e);switch(l){case 1:case 2:qb(e,e.right);return;case 6:case 3:{let d=e,p=d.left,h=l===3?p.expression:p,m=0,v;Me(h.expression)?(hIe(h.expression.text),v=h.expression):[m,v]=vIe(d,h.expression),l===6?fa(d.right)&&d.right.properties.length>0&&(I0(d,v),Ao(d.right,PI),Hb()):us(d.right)||hs(d.right)?qb(e,d.right,v):(I0(d,v),qb(e,d.right,p.name),Hb()),gIe(m);return}case 7:case 9:{let d=e,p=l===7?d.arguments[0]:d.arguments[0].expression,h=d.arguments[1],[m,v]=vIe(e,p);I0(e,v),I0(e,Ze(P.createIdentifier(h.text),h)),PI(e.arguments[2]),Hb(),Hb(),gIe(m);return}case 5:{let d=e,p=d.left,h=p.expression;if(Me(h)&&tg(p)!=="prototype"&&TR&&TR.has(h.text)){us(d.right)||hs(d.right)?qb(e,d.right,h):UE(p)&&(I0(d,h),qb(d.left,d.right,SL(p)),Hb());return}break}case 4:case 0:case 8:break;default:x.assertNever(l)}}default:ap(e)&&an(e.jsDoc,l=>{an(l.tags,d=>{bf(d)&&A0(d)})}),Ao(e,PI)}}function oK(e,t){let r=new Map;X5(e,(i,o)=>{let s=i.name||mo(i.node),l=s&&nz(s);if(!l)return!0;let d=r.get(l);if(!d)return r.set(l,i),!0;if(d instanceof Array){for(let p of d)if(bIe(p,i,o,t))return!1;return d.push(i),!0}else{let p=d;return bIe(p,i,o,t)?!1:(r.set(l,[p,i]),!0)}})}function nGe(e,t,r,i){function o(d){return us(d)||Ql(d)||yi(d)}let s=Zn(t.node)||Bo(t.node)?hl(t.node):0,l=Zn(e.node)||Bo(e.node)?hl(e.node):0;if(lP[s]&&lP[l]||o(e.node)&&lP[s]||o(t.node)&&lP[l]||Zl(e.node)&&qle(e.node)&&lP[s]||Zl(t.node)&&lP[l]||Zl(e.node)&&qle(e.node)&&o(t.node)||Zl(t.node)&&o(e.node)&&qle(e.node)){let d=e.additionalNodes&&Ns(e.additionalNodes)||e.node;if(!Zl(e.node)&&!Zl(t.node)||o(e.node)||o(t.node)){let h=o(e.node)?e.node:o(t.node)?t.node:void 0;if(h!==void 0){let m=Ze(P.createConstructorDeclaration(void 0,[],void 0),h),v=Ule(m);v.indent=e.indent+1,v.children=e.node===h?e.children:t.children,e.children=e.node===h?ro([v],t.children||[t]):ro(e.children||[{...e}],[v])}else(e.children||t.children)&&(e.children=ro(e.children||[{...e}],t.children||[t]),e.children&&(oK(e.children,e),Jle(e.children)));d=e.node=Ze(P.createClassDeclaration(void 0,e.name||P.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=ro(e.children,t.children),e.children&&oK(e.children,e);let p=t.node;return i.children[r-1].node.end===d.end?Ze(d,{pos:d.pos,end:p.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(Ze(P.createClassDeclaration(void 0,e.name||P.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return s!==0}function bIe(e,t,r,i){return nGe(e,t,r,i)?!0:rGe(e.node,t.node,i)?(iGe(e,t),!0):!1}function rGe(e,t,r){if(e.kind!==t.kind||e.parent!==t.parent&&!(EIe(e,r)&&EIe(t,r)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return zo(e)===zo(t);case 267:return SIe(e,t)&&Yle(e)===Yle(t);default:return!0}}function qle(e){return!!(e.flags&16)}function EIe(e,t){let r=t_(e.parent)?e.parent.parent:e.parent;return r===t.node||To(t.additionalNodes,r)}function SIe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||SIe(e.body,t.body))}function iGe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=ro(e.children,t.children),e.children&&(oK(e.children,e),Jle(e.children))}function Jle(e){e.sort(oGe)}function oGe(e,t){return _M(TIe(e.node),TIe(t.node))||Ms(iK(e),iK(t))}function TIe(e){if(e.kind===267)return IIe(e);let t=mo(e);if(t&&kl(t)){let r=MS(t);return r&&Ii(r)}switch(e.kind){case 218:case 219:case 231:return DIe(e);default:return}}function Kle(e,t){if(e.kind===267)return sP(IIe(e));if(t){let r=Me(t)?t.text:Rs(t)?`[${nz(t.argumentExpression)}]`:nz(t);if(r.length>0)return sP(r)}switch(e.kind){case 312:let r=e;return wl(r)?`"${Th(Ll(Yd(Yo(r.fileName))))}"`:"<global>";case 277:return dl(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return ny(e)&2048?"default":DIe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return"<unknown>"}}function aGe(e){let t=[];function r(o){if(i(o)&&(t.push(o),o.children))for(let s of o.children)r(s)}return r(e),t;function i(o){if(o.children)return!0;switch(iK(o)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return s(o);default:return!1}function s(l){if(!l.node.body)return!1;switch(iK(l.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function AIe(e){return{text:Kle(e.node,e.name),kind:E0(e.node),kindModifiers:RIe(e.node),spans:Xle(e),nameSpan:e.name&&$le(e.name),childItems:nn(e.children,AIe)}}function sGe(e){return{text:Kle(e.node,e.name),kind:E0(e.node),kindModifiers:RIe(e.node),spans:Xle(e),childItems:nn(e.children,t)||lK,indent:e.indent,bolded:!1,grayed:!1};function t(r){return{text:Kle(r.node,r.name),kind:E0(r.node),kindModifiers:YN(r.node),spans:Xle(r),childItems:lK,indent:0,bolded:!1,grayed:!1}}}function Xle(e){let t=[$le(e.node)];if(e.additionalNodes)for(let r of e.additionalNodes)t.push($le(r));return t}function IIe(e){return sd(e)?Vl(e.name):Yle(e)}function Yle(e){let t=[Ef(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(Ef(e.name));return t.join(".")}function xIe(e){return e.body&&Il(e.body)?xIe(e.body):e}function lGe(e){return!e.name||e.name.kind===167}function $le(e){return e.kind===312?yy(e):eu(e,oO)}function RIe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),YN(e)}function DIe(e){let{parent:t}=e;if(e.name&&tL(e.name)>0)return sP(is(e.name));if(yi(t))return sP(is(t.name));if(Zn(t)&&t.operatorToken.kind===64)return nz(t.left).replace(NIe,"");if(Hl(t))return nz(t.name);if(ny(e)&2048)return"default";if(Kr(e))return"<class>";if(Bo(t)){let r=CIe(t.expression);if(r!==void 0){if(r=sP(r),r.length>aK)return`${r} callback`;let i=sP(Fi(t.arguments,o=>Ga(o)||NA(o)?o.getText(oO):void 0).join(", "));return`${r}(${i}) callback`}}return"<function>"}function CIe(e){if(Me(e))return e.text;if(Er(e)){let t=CIe(e.expression),r=e.name.text;return t===void 0?r:`${t}.${r}`}else return}function cGe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function sP(e){return e=e.length>aK?e.substring(0,aK)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var NIe,aK,sK,oO,aO,_v,Qle,TR,lK,lP,dGe=pt({"src/services/navigationBar.ts"(){"use strict";Hr(),NIe=/\s+/g,aK=150,aO=[],Qle=[],lK=[],lP={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),Zle={};Ra(Zle,{getNavigationBarItems:()=>uIe,getNavigationTree:()=>pIe});var PIe=pt({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";dGe()}});function Ph(e,t){cK.set(e,t)}function uGe(e,t){return bo(Y5(cK.values(),r=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=r.kinds)!=null&&i.some(o=>Jb(o,e.kind)))?void 0:r.getAvailableActions(e,t)}))}function pGe(e,t,r,i){let o=cK.get(t);return o&&o.getEditsForAction(e,r,i)}var cK,MIe=pt({"src/services/refactorProvider.ts"(){"use strict";Hr(),q_(),cK=new Map}});function LIe(e,t=!0){let{file:r,program:i}=e,o=NI(e),s=Hi(r,o.start),l=s.parent&&ny(s.parent)&32&&t?s.parent:Kk(s,r,o);if(!l||!Li(l.parent)&&!(t_(l.parent)&&sd(l.parent.parent)))return{error:vo(f.Could_not_find_export_statement)};let d=i.getTypeChecker(),p=vGe(l.parent,d),h=ny(l)||(dl(l)&&!l.isExportEquals?2080:0),m=!!(h&2048);if(!(h&32)||!m&&p.exports.has("default"))return{error:vo(f.This_file_already_has_a_default_export)};let v=E=>Me(E)&&d.getSymbolAtLocation(E)?void 0:{error:vo(f.Can_only_convert_named_export)};switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let E=l;return E.name?v(E.name)||{exportNode:E,exportName:E.name,wasDefault:m,exportingModuleSymbol:p}:void 0}case 243:{let E=l;if(!(E.declarationList.flags&2)||E.declarationList.declarations.length!==1)return;let S=Sa(E.declarationList.declarations);return S.initializer?(x.assert(!m,"Can't have a default flag here"),v(S.name)||{exportNode:E,exportName:S.name,wasDefault:m,exportingModuleSymbol:p}):void 0}case 277:{let E=l;return E.isExportEquals?void 0:v(E.expression)||{exportNode:E,exportName:E.expression,wasDefault:m,exportingModuleSymbol:p}}default:return}}function fGe(e,t,r,i,o){mGe(e,r,i,t.getTypeChecker()),_Ge(t,r,i,o)}function mGe(e,{wasDefault:t,exportNode:r,exportName:i},o,s){if(t)if(dl(r)&&!r.isExportEquals){let l=r.expression,d=kIe(l.text,l.text);o.replaceNode(e,r,P.createExportDeclaration(void 0,!1,P.createNamedExports([d])))}else o.delete(e,x.checkDefined(gR(r,90),"Should find a default keyword in modifier list"));else{let l=x.checkDefined(gR(r,95),"Should find an export keyword in modifier list");switch(r.kind){case 262:case 263:case 264:o.insertNodeAfter(e,l,P.createToken(90));break;case 243:let d=Sa(r.declarationList.declarations);if(!ps.Core.isSymbolReferencedInFile(i,s,e)&&!d.type){o.replaceNode(e,r,P.createExportDefault(x.checkDefined(d.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:o.deleteModifier(e,l),o.insertNodeAfter(e,r,P.createExportDefault(P.createIdentifier(i.text)));break;default:x.fail(`Unexpected exportNode kind ${r.kind}`)}}}function _Ge(e,{wasDefault:t,exportName:r,exportingModuleSymbol:i},o,s){let l=e.getTypeChecker(),d=x.checkDefined(l.getSymbolAtLocation(r),"Export name should resolve to a symbol");ps.Core.eachExportReference(e.getSourceFiles(),l,s,d,i,r.text,t,p=>{if(r===p)return;let h=p.getSourceFile();t?hGe(h,p,o,r.text):gGe(h,p,o)})}function hGe(e,t,r,i){let{parent:o}=t;switch(o.kind){case 211:r.replaceNode(e,t,P.createIdentifier(i));break;case 276:case 281:{let l=o;r.replaceNode(e,l,ece(i,l.name.text));break}case 273:{let l=o;x.assert(l.name===t,"Import clause name should match provided ref");let d=ece(i,t.text),{namedBindings:p}=l;if(!p)r.replaceNode(e,t,P.createNamedImports([d]));else if(p.kind===274){r.deleteRange(e,{pos:t.getStart(e),end:p.getStart(e)});let h=ca(l.parent.moduleSpecifier)?cJ(l.parent.moduleSpecifier,e):1,m=fv(void 0,[ece(i,t.text)],l.parent.moduleSpecifier,h);r.insertNodeAfter(e,l.parent,m)}else r.delete(e,t),r.insertNodeAtEndOfList(e,p.elements,d);break}case 205:let s=o;r.replaceNode(e,o,P.createImportTypeNode(s.argument,s.attributes,P.createIdentifier(i),s.typeArguments,s.isTypeOf));break;default:x.failBadSyntaxKind(o)}}function gGe(e,t,r){let i=t.parent;switch(i.kind){case 211:r.replaceNode(e,t,P.createIdentifier("default"));break;case 276:{let o=P.createIdentifier(i.name.text);i.parent.elements.length===1?r.replaceNode(e,i.parent,o):(r.delete(e,i),r.insertNodeBefore(e,i.parent,o));break}case 281:{r.replaceNode(e,i,kIe("default",i.name.text));break}default:x.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function ece(e,t){return P.createImportSpecifier(!1,e===t?void 0:P.createIdentifier(e),P.createIdentifier(t))}function kIe(e,t){return P.createExportSpecifier(!1,e===t?void 0:P.createIdentifier(e),P.createIdentifier(t))}function vGe(e,t){if(Li(e))return e.symbol;let r=e.parent.symbol;return r.valueDeclaration&&zE(r.valueDeclaration)?t.getMergedSymbol(r):r}var dK,rz,iz,yGe=pt({"src/services/refactors/convertExport.ts"(){"use strict";Hr(),q_(),dK="Convert export",rz={name:"Convert default export to named export",description:vo(f.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},iz={name:"Convert named export to default export",description:vo(f.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},Ph(dK,{kinds:[rz.kind,iz.kind],getAvailableActions:function(t){let r=LIe(t,t.triggerReason==="invoked");if(!r)return je;if(!ug(r)){let i=r.wasDefault?rz:iz;return[{name:dK,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:dK,description:vo(f.Convert_default_export_to_named_export),actions:[{...rz,notApplicableReason:r.error},{...iz,notApplicableReason:r.error}]}]:je},getEditsForAction:function(t,r){x.assert(r===rz.name||r===iz.name,"Unexpected action name");let i=LIe(t);return x.assert(i&&!ug(i),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(t,s=>fGe(t.file,t.program,i,s,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function OIe(e,t=!0){let{file:r}=e,i=NI(e),o=Hi(r,i.start),s=t?Rn(o,cc):Kk(o,r,i);if(!s||!cc(s))return{error:"Selection is not an import declaration."};let l=i.start+i.length,d=S0(s,s.parent,r);if(d&&l>d.getStart())return;let{importClause:p}=s;return p?p.namedBindings?p.namedBindings.kind===274?{convertTo:0,import:p.namedBindings}:wIe(e.program,p)?{convertTo:1,import:p.namedBindings}:{convertTo:2,import:p.namedBindings}:{error:vo(f.Could_not_find_namespace_import_or_named_imports)}:{error:vo(f.Could_not_find_import_clause)}}function wIe(e,t){return zS(e.getCompilerOptions())&&TGe(t.parent.moduleSpecifier,e.getTypeChecker())}function bGe(e,t,r,i){let o=t.getTypeChecker();i.convertTo===0?EGe(e,o,r,i.import,zS(t.getCompilerOptions())):FIe(e,t,r,i.import,i.convertTo===1)}function EGe(e,t,r,i,o){let s=!1,l=[],d=new Map;ps.Core.eachSymbolReferenceInFile(i.name,t,e,v=>{if(!Qee(v.parent))s=!0;else{let E=WIe(v.parent).text;t.resolveName(E,v,-1,!0)&&d.set(E,!0),x.assert(SGe(v.parent)===v,"Parent expression should match id"),l.push(v.parent)}});let p=new Map;for(let v of l){let E=WIe(v).text,S=p.get(E);S===void 0&&p.set(E,S=d.has(E)?dT(E,e):E),r.replaceNode(e,v,P.createIdentifier(S))}let h=[];p.forEach((v,E)=>{h.push(P.createImportSpecifier(!1,v===E?void 0:P.createIdentifier(E),P.createIdentifier(v)))});let m=i.parent.parent;s&&!o?r.insertNodeAfter(e,m,tce(m,void 0,h)):r.replaceNode(e,m,tce(m,s?P.createIdentifier(i.name.text):void 0,h))}function WIe(e){return Er(e)?e.name:e.right}function SGe(e){return Er(e)?e.expression:e.left}function FIe(e,t,r,i,o=wIe(t,i.parent)){let s=t.getTypeChecker(),l=i.parent.parent,{moduleSpecifier:d}=l,p=new Set;i.elements.forEach(A=>{let C=s.getSymbolAtLocation(A.name);C&&p.add(C)});let h=d&&ca(d)?ud.moduleSpecifierToValidIdentifier(d.text,99):"module";function m(A){return!!ps.Core.eachSymbolReferenceInFile(A.name,s,e,C=>{let R=s.resolveName(h,C,-1,!0);return R?p.has(R)?Ed(C.parent):!0:!1})}let E=i.elements.some(m)?dT(h,e):h,S=new Set;for(let A of i.elements){let C=(A.propertyName||A.name).text;ps.Core.eachSymbolReferenceInFile(A.name,s,e,R=>{let L=P.createPropertyAccessExpression(P.createIdentifier(E),C);xu(R.parent)?r.replaceNode(e,R.parent,P.createPropertyAssignment(R.text,L)):Ed(R.parent)?S.add(A):r.replaceNode(e,R,L)})}if(r.replaceNode(e,i,o?P.createIdentifier(E):P.createNamespaceImport(P.createIdentifier(E))),S.size){let A=bo(S.values(),C=>P.createImportSpecifier(C.isTypeOnly,C.propertyName&&P.createIdentifier(C.propertyName.text),P.createIdentifier(C.name.text)));r.insertNodeAfter(e,i.parent.parent,tce(l,void 0,A))}}function TGe(e,t){let r=t.resolveExternalModuleName(e);if(!r)return!1;let i=t.resolveExternalModuleSymbol(r);return r!==i}function tce(e,t,r){return P.createImportDeclaration(void 0,P.createImportClause(!1,t,r&&r.length?P.createNamedImports(r):void 0),e.moduleSpecifier,void 0)}var uK,oz,AGe=pt({"src/services/refactors/convertImport.ts"(){"use strict";Hr(),q_(),uK="Convert import",oz={0:{name:"Convert namespace import to named imports",description:vo(f.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:vo(f.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:vo(f.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},Ph(uK,{kinds:vA(oz).map(e=>e.kind),getAvailableActions:function(t){let r=OIe(t,t.triggerReason==="invoked");if(!r)return je;if(!ug(r)){let i=oz[r.convertTo];return[{name:uK,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?vA(oz).map(i=>({name:uK,description:i.description,actions:[{...i,notApplicableReason:r.error}]})):je},getEditsForAction:function(t,r){x.assert(ct(vA(oz),s=>s.name===r),"Unexpected action name");let i=OIe(t);return x.assert(i&&!ug(i),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(t,s=>bGe(t.file,t.program,s,i)),renameFilename:void 0,renameLocation:void 0}}})}});function zIe(e,t=!0){let{file:r,startPosition:i}=e,o=wd(r),s=T3(NI(e)),l=s.pos===s.end&&t,d=IGe(r,i,s,l);if(!d||!xi(d))return{error:vo(f.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),h=NGe(d,o);if(h===void 0)return{error:vo(f.No_type_could_be_extracted_from_this_type_node)};let m=PGe(d,h);if(!xi(m))return{error:vo(f.Selection_is_not_a_valid_type_node)};let v=[];(dy(m.parent)||sI(m.parent))&&s.end>d.end&&Pr(v,m.parent.types.filter(C=>f3(C,r,s.pos,s.end)));let E=v.length>1?v:m,S=xGe(p,E,h,r);if(!S)return{error:vo(f.No_type_could_be_extracted_from_this_type_node)};let A=pK(p,E);return{isJS:o,selection:E,enclosingNode:h,typeParameters:S,typeElements:A}}function IGe(e,t,r,i){let o=[()=>Hi(e,t),()=>_R(e,t,()=>!0)];for(let s of o){let l=s(),d=f3(l,e,r.pos,r.end),p=Rn(l,h=>h.parent&&xi(h)&&!x0(r,h.parent,e)&&(i||d));if(p)return p}}function pK(e,t){if(t){if(oo(t)){let r=[];for(let i of t){let o=pK(e,i);if(!o)return;Pr(r,o)}return r}if(sI(t)){let r=[],i=new Map;for(let o of t.types){let s=pK(e,o);if(!s||!s.every(l=>l.name&&Jf(i,qk(l.name))))return;Pr(r,s)}return r}else{if(VS(t))return pK(e,t.type);if(ju(t))return t.members}}}function x0(e,t,r){return zk(e,ua(r.text,t.pos),t.end)}function xGe(e,t,r,i){let o=[],s=yA(t),l={pos:s[0].pos,end:s[s.length-1].end};for(let p of s)if(d(p))return;return o;function d(p){if(Yp(p)){if(Me(p.typeName)){let h=p.typeName,m=e.resolveName(h.text,h,262144,!0);for(let v of m?.declarations||je)if(qs(v)&&v.getSourceFile()===i){if(v.name.escapedText===h.escapedText&&x0(v,l,i))return!0;if(x0(r,v,i)&&!x0(l,v,i)){jp(o,v);break}}}}else if(GS(p)){let h=Rn(p,m=>lI(m)&&x0(m.extendsType,p,i));if(!h||!x0(l,h,i))return!0}else if(T2(p)||I2(p)){let h=Rn(p.parent,Lo);if(h&&h.type&&x0(h.type,p,i)&&!x0(l,h,i))return!0}else if(oI(p)){if(Me(p.exprName)){let h=e.resolveName(p.exprName.text,p.exprName,111551,!1);if(h?.valueDeclaration&&x0(r,h.valueDeclaration,i)&&!x0(l,h.valueDeclaration,i))return!0}else if(YE(p.exprName.left)&&!x0(l,p.parent,i))return!0}return i&&aI(p)&&$a(i,p.pos).line===$a(i,p.end).line&&$n(p,1),Ao(p,d)}}function RGe(e,t,r,i){let{enclosingNode:o,typeParameters:s}=i,{firstTypeNode:l,lastTypeNode:d,newTypeNode:p}=nce(i),h=P.createTypeAliasDeclaration(void 0,r,s.map(m=>P.updateTypeParameterDeclaration(m,m.modifiers,m.name,m.constraint,void 0)),p);e.insertNodeBefore(t,o,uj(h),!0),e.replaceNodeRange(t,l,d,P.createTypeReferenceNode(r,s.map(m=>P.createTypeReferenceNode(m.name,void 0))),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.ExcludeWhitespace})}function DGe(e,t,r,i){var o;let{enclosingNode:s,typeParameters:l,typeElements:d}=i,p=P.createInterfaceDeclaration(void 0,r,l,void 0,d);Ze(p,(o=d[0])==null?void 0:o.parent),e.insertNodeBefore(t,s,uj(p),!0);let{firstTypeNode:h,lastTypeNode:m}=nce(i);e.replaceNodeRange(t,h,m,P.createTypeReferenceNode(r,l.map(v=>P.createTypeReferenceNode(v.name,void 0))),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.ExcludeWhitespace})}function CGe(e,t,r,i,o){var s;yA(o.selection).forEach(A=>{$n(A,7168)});let{enclosingNode:l,typeParameters:d}=o,{firstTypeNode:p,lastTypeNode:h,newTypeNode:m}=nce(o),v=P.createJSDocTypedefTag(P.createIdentifier("typedef"),P.createJSDocTypeExpression(m),P.createIdentifier(i)),E=[];an(d,A=>{let C=V1(A),R=P.createTypeParameterDeclaration(void 0,A.name),L=P.createJSDocTemplateTag(P.createIdentifier("template"),C&&Fo(C,f0),[R]);E.push(L)});let S=P.createJSDocComment(void 0,P.createNodeArray(ro(E,[v])));if(Sm(l)){let A=l.getStart(r),C=mv(t.host,(s=t.formatContext)==null?void 0:s.options);e.insertNodeAt(r,l.getStart(r),S,{suffix:C+C+r.text.slice(L3(r.text,A-1),A)})}else e.insertNodeBefore(r,l,S,!0);e.replaceNodeRange(r,p,h,P.createTypeReferenceNode(i,d.map(A=>P.createTypeReferenceNode(A.name,void 0))))}function nce(e){return oo(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:dy(e.selection[0].parent)?P.createUnionTypeNode(e.selection):P.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function NGe(e,t){return Rn(e,Di)||(t?Rn(e,Sm):void 0)}function PGe(e,t){return Rn(e,r=>r===t?"quit":!!(dy(r.parent)||sI(r.parent)))??e}var fK,az,sz,lz,MGe=pt({"src/services/refactors/extractType.ts"(){"use strict";Hr(),q_(),fK="Extract type",az={name:"Extract to type alias",description:vo(f.Extract_to_type_alias),kind:"refactor.extract.type"},sz={name:"Extract to interface",description:vo(f.Extract_to_interface),kind:"refactor.extract.interface"},lz={name:"Extract to typedef",description:vo(f.Extract_to_typedef),kind:"refactor.extract.typedef"},Ph(fK,{kinds:[az.kind,sz.kind,lz.kind],getAvailableActions:function(t){let r=zIe(t,t.triggerReason==="invoked");return r?ug(r)?t.preferences.provideRefactorNotApplicableReason?[{name:fK,description:vo(f.Extract_type),actions:[{...lz,notApplicableReason:r.error},{...az,notApplicableReason:r.error},{...sz,notApplicableReason:r.error}]}]:je:[{name:fK,description:vo(f.Extract_type),actions:r.isJS?[lz]:pn([az],r.typeElements&&sz)}]:je},getEditsForAction:function(t,r){let{file:i}=t,o=zIe(t);x.assert(o&&!ug(o),"Expected to find a range to extract");let s=dT("NewType",i),l=er.ChangeTracker.with(t,h=>{switch(r){case az.name:return x.assert(!o.isJS,"Invalid actionName/JS combo"),RGe(h,i,s,o);case lz.name:return x.assert(o.isJS,"Invalid actionName/JS combo"),CGe(h,t,i,s,o);case sz.name:return x.assert(!o.isJS&&!!o.typeElements,"Invalid actionName/JS combo"),DGe(h,i,s,o);default:x.fail("Unexpected action name")}}),d=i.fileName,p=$k(l,d,s,!1);return{edits:l,renameFilename:d,renameLocation:p}}})}});function ug(e){return e.error!==void 0}function Jb(e,t){return t?e.substr(0,t.length)===t:!0}var LGe=pt({"src/services/refactors/helpers.ts"(){"use strict"}});function BIe(e,t,r,i){var o,s;let l=i.getTypeChecker(),d=pu(e,t),p=d.parent;if(Me(d)){if(JL(p)&&mC(p)&&Me(p.name)){if(((o=l.getMergedSymbol(p.symbol).declarations)==null?void 0:o.length)!==1)return{error:vo(f.Variables_with_multiple_declarations_cannot_be_inlined)};if(GIe(p))return;let h=VIe(p,l,e);return h&&{references:h,declaration:p,replacement:p.initializer}}if(r){let h=l.resolveName(d.text,d,111551,!1);if(h=h&&l.getMergedSymbol(h),((s=h?.declarations)==null?void 0:s.length)!==1)return{error:vo(f.Variables_with_multiple_declarations_cannot_be_inlined)};let m=h.declarations[0];if(!JL(m)||!mC(m)||!Me(m.name)||GIe(m))return;let v=VIe(m,l,e);return v&&{references:v,declaration:m,replacement:m.initializer}}return{error:vo(f.Could_not_find_variable_to_inline)}}}function GIe(e){let t=Fo(e.parent.parent,cl);return ct(t.modifiers,nI)}function VIe(e,t,r){let i=[],o=ps.Core.eachSymbolReferenceInFile(e.name,t,r,s=>{if(ps.isWriteAccessForReference(s)&&!xu(s.parent)||Ed(s.parent)||dl(s.parent)||oI(s.parent)||wM(e,s.pos))return!0;i.push(s)});return i.length===0||o?void 0:i}function kGe(e,t){t=Fs(t);let{parent:r}=e;return lt(r)&&(xC(t)<xC(r)||k3(r))||Lo(t)&&(WE(r)||Er(r))||Er(r)&&(Bu(t)||fa(t))?P.createParenthesizedExpression(t):Me(e)&&xu(r)?P.createPropertyAssignment(e,t):t}var sO,mK,_K,OGe=pt({"src/services/refactors/inlineVariable.ts"(){"use strict";Hr(),q_(),sO="Inline variable",mK=vo(f.Inline_variable),_K={name:sO,description:mK,kind:"refactor.inline.variable"},Ph(sO,{kinds:[_K.kind],getAvailableActions(e){let{file:t,program:r,preferences:i,startPosition:o,triggerReason:s}=e,l=BIe(t,o,s==="invoked",r);return l?MI.isRefactorErrorInfo(l)?i.provideRefactorNotApplicableReason?[{name:sO,description:mK,actions:[{..._K,notApplicableReason:l.error}]}]:je:[{name:sO,description:mK,actions:[_K]}]:je},getEditsForAction(e,t){x.assert(t===sO,"Unexpected refactor invoked");let{file:r,program:i,startPosition:o}=e,s=BIe(r,o,!0,i);if(!s||MI.isRefactorErrorInfo(s))return;let{references:l,declaration:d,replacement:p}=s;return{edits:er.ChangeTracker.with(e,m=>{for(let v of l)m.replaceNode(r,v,kGe(v,p));m.delete(r,d)})}}})}});function wGe(e,t,r,i,o,s){let l=t.getTypeChecker(),d=uz(e,r.all,l),p=fce(e,t,o,r);i.createNewFile(e,p,WGe(e,d,i,r,t,o,p,s)),rce(t,i,e.fileName,p,ev(o))}function WGe(e,t,r,i,o,s,l,d){let p=o.getTypeChecker(),h=n8(e.statements,Hf);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return cz(e,i.ranges,r),[...h,...i.all];let m=!OJ(l,o,s,!!e.commonJsModuleIndicator),v=Np(e,d),E=sce(e,t.oldFileImportsFromTargetFile,l,o,s,m,v);E&&QN(r,e,E,!0,d),ice(e,i.all,r,t.unusedImportsFromOldFile,p),cz(e,i.ranges,r),oce(r,o,s,e,t.movedSymbols,l,v);let S=FGe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,r,p,o,s,m,v),A=lce(e,i.all,t.oldFileImportsFromTargetFile,m);return S.length&&A.length?[...h,...S,4,...A]:[...h,...S,...A]}function FGe(e,t,r,i,o,s,l,d,p){let h=[];for(let S of e.statements)dO(S,A=>{pn(h,uO(A,cO(A),C=>t.has(o.getSymbolAtLocation(C))))});let m,v=[],E=DI();return r.forEach(S=>{if(S.declarations)for(let A of S.declarations){if(!pz(A))continue;let C=uce(A);if(!C)continue;let R=vK(A);E(R)&&pce(e,R,C,i,d),Wr(A,2048)?m=C:v.push(C.text)}}),pn(h,dz(e,m,v,Ll(e.fileName),s,l,d,p)),h}var lO,hK,gK,zGe=pt({"src/services/refactors/moveToNewFile.ts"(){"use strict";Hr(),q_(),lO="Move to a new file",hK=vo(f.Move_to_a_new_file),gK={name:lO,description:hK,kind:"refactor.move.newFile"},Ph(lO,{kinds:[gK.kind],getAvailableActions:function(t){let r=pO(t);return t.preferences.allowTextChangesInNewFiles&&r?[{name:lO,description:hK,actions:[gK]}]:t.preferences.provideRefactorNotApplicableReason?[{name:lO,description:hK,actions:[{...gK,notApplicableReason:vo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:je},getEditsForAction:function(t,r){x.assert(r===lO,"Wrong refactor invoked");let i=x.checkDefined(pO(t));return{edits:er.ChangeTracker.with(t,s=>wGe(t.file,t.program,i,s,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}}})}});function jIe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function BGe(e,t,r,i,o,s,l,d){let p=i.getTypeChecker();if(!l.fileExists(r))s.createNewFile(t,r,UIe(t,r,uz(t,o.all,p),s,o,i,l,d)),rce(i,s,t.fileName,r,ev(l));else{let h=x.checkDefined(i.getSourceFile(r)),m=ud.createImportAdder(h,e.program,e.preferences,e.host);UIe(t,h,uz(t,o.all,p,o9e(h,o.all,p)),s,o,i,l,d,m)}}function UIe(e,t,r,i,o,s,l,d,p){let h=s.getTypeChecker(),m=n8(e.statements,Hf);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&r.oldImportsNeededByTargetFile.size===0&&r.targetFileImportsFromOldFile.size===0&&typeof t=="string")return cz(e,o.ranges,i),[...m,...o.all];let v=typeof t=="string"?t:t.fileName,E=!OJ(v,s,l,!!e.commonJsModuleIndicator),S=Np(e,d),A=sce(e,r.oldFileImportsFromTargetFile,v,s,l,E,S);A&&QN(i,e,A,!0,d),ice(e,o.all,i,r.unusedImportsFromOldFile,h),cz(e,o.ranges,i),oce(i,s,l,e,r.movedSymbols,v,S);let C=GGe(e,v,r.oldImportsNeededByTargetFile,r.targetFileImportsFromOldFile,i,h,s,l,E,S,p),R=lce(e,o.all,r.oldFileImportsFromTargetFile,E);return typeof t!="string"&&(t.statements.length>0?i9e(i,s,R,t,o):i.insertNodesAtEndOfFile(t,R,!1),C.length>0&&QN(i,t,C,!0,d)),p&&p.writeFixes(i,S),C.length&&R.length?[...m,...C,4,...R]:[...m,...C,...R]}function GGe(e,t,r,i,o,s,l,d,p,h,m){let v=[];if(m)r.forEach((R,L)=>{try{m.addImportFromExportedSymbol(Kc(L,s),R)}catch{for(let G of e.statements)dO(G,U=>{pn(v,uO(U,P.createStringLiteral(cO(U).text),K=>r.has(s.getSymbolAtLocation(K))))})}});else{let R=l.getSourceFile(t);for(let L of e.statements)dO(L,G=>{var U;let K=cO(G),F=l.getCompilerOptions(),oe=l.getResolvedModuleFromModuleSpecifier(K),W=(U=oe?.resolvedModule)==null?void 0:U.resolvedFileName;if(W&&R){let $=i4(F,R,R.fileName,W,lT(l,d));pn(v,uO(G,CI($,h),de=>r.has(s.getSymbolAtLocation(de))))}else pn(v,uO(G,P.createStringLiteral(cO(G).text),$=>r.has(s.getSymbolAtLocation($))))})}let E=l.getSourceFile(t),S,A=[],C=DI();return i.forEach(R=>{if(R.declarations)for(let L of R.declarations){if(!pz(L))continue;let G=uce(L);if(!G)continue;let U=vK(L);C(U)&&pce(e,U,G,o,p),m&&s.isUnknownSymbol(R)?m.addImportFromExportedSymbol(Kc(R,s)):Wr(L,2048)?S=G:A.push(G.text)}}),E?pn(v,dz(E,S,A,e.fileName,l,d,p,h)):pn(v,dz(e,S,A,e.fileName,l,d,p,h))}function rce(e,t,r,i,o){let s=e.getCompilerOptions().configFile;if(!s)return;let l=Yo(wr(r,"..",i)),d=RM(s.fileName,l,o),p=s.statements[0]&&Vr(s.statements[0].expression,fa),h=p&&Dr(p.properties,m=>Hl(m)&&ca(m.name)&&m.name.text==="files");h&&Bd(h.initializer)&&t.insertNodeInListAfter(s,Da(h.initializer.elements),P.createStringLiteral(d),h.initializer.elements)}function cz(e,t,r){for(let{first:i,afterLast:o}of t)r.deleteNodeRangeExcludingEnd(e,i,o)}function ice(e,t,r,i,o){for(let s of e.statements)To(t,s)||dO(s,l=>cce(e,l,r,d=>i.has(o.getSymbolAtLocation(d))))}function oce(e,t,r,i,o,s,l){let d=t.getTypeChecker();for(let p of t.getSourceFiles())if(p!==i)for(let h of p.statements)dO(h,m=>{if(d.getSymbolAtLocation(cO(m))!==i.symbol)return;let v=R=>{let L=Na(R.parent)?N3(d,R.parent):Kc(d.getSymbolAtLocation(R),d);return!!L&&o.has(L)};cce(p,m,e,v);let E=jv(Ur(i.path),s),S=i4(t.getCompilerOptions(),p,p.fileName,E,lT(t,r)),A=uO(m,CI(S,l),v);A&&e.insertNodeAfter(p,h,A);let C=VGe(m);C&&jGe(e,p,d,o,S,C,m,l)})}function VGe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return Vr(e.name,Me);default:return x.assertNever(e,`Unexpected node kind ${e.kind}`)}}function jGe(e,t,r,i,o,s,l,d){let p=ud.moduleSpecifierToValidIdentifier(o,99),h=!1,m=[];if(ps.Core.eachSymbolReferenceInFile(s,r,t,v=>{Er(v.parent)&&(h=h||!!r.resolveName(p,v,-1,!0),i.has(r.getSymbolAtLocation(v.parent.name))&&m.push(v))}),m.length){let v=h?dT(p,t):p;for(let E of m)e.replaceNode(t,E,P.createIdentifier(v));e.insertNodeAfter(t,l,UGe(l,p,o,d))}}function UGe(e,t,r,i){let o=P.createIdentifier(t),s=CI(r,i);switch(e.kind){case 272:return P.createImportDeclaration(void 0,P.createImportClause(!1,void 0,P.createNamespaceImport(o)),s,void 0);case 271:return P.createImportEqualsDeclaration(void 0,!1,o,P.createExternalModuleReference(s));case 260:return P.createVariableDeclaration(o,void 0,void 0,ace(s));default:return x.assertNever(e,`Unexpected node kind ${e.kind}`)}}function ace(e){return P.createCallExpression(P.createIdentifier("require"),void 0,[e])}function cO(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function dO(e,t){if(cc(e))ca(e.moduleSpecifier)&&t(e);else if(Nc(e))j_(e.moduleReference)&&Ga(e.moduleReference.expression)&&t(e);else if(cl(e))for(let r of e.declarationList.declarations)r.initializer&&Xd(r.initializer,!0)&&t(r)}function sce(e,t,r,i,o,s,l){let d,p=[];return t.forEach(h=>{h.escapedName==="default"?d=P.createIdentifier(R3(h)):p.push(h.name)}),dz(e,d,p,r,i,o,s,l)}function dz(e,t,r,i,o,s,l,d){let p=jv(Ur(e.path),i),h=i4(o.getCompilerOptions(),e,e.fileName,p,lT(o,s));if(l){let m=r.map(v=>P.createImportSpecifier(!1,void 0,P.createIdentifier(v)));return Qse(t,m,h,d)}else{x.assert(!t,"No default import should exist");let m=r.map(v=>P.createBindingElement(void 0,void 0,v));return m.length?HIe(P.createObjectBindingPattern(m),void 0,ace(CI(h,d))):void 0}}function HIe(e,t,r,i=2){return P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(e,void 0,t,r)],i))}function lce(e,t,r,i){return ta(t,o=>{if(JIe(o)&&!qIe(e,o,i)&&hce(o,s=>{var l;return r.has(x.checkDefined((l=Vr(s,Hm))==null?void 0:l.symbol))})){let s=JGe(Fs(o),i);if(s)return s}return Fs(o)})}function qIe(e,t,r,i){var o;return r?!Cc(t)&&Wr(t,32)||!!(i&&e.symbol&&((o=e.symbol.exports)!=null&&o.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&dce(t).some(s=>e.symbol.exports.has(Hs(s)))}function cce(e,t,r,i){switch(t.kind){case 272:HGe(e,t,r,i);break;case 271:i(t.name)&&r.delete(e,t);break;case 260:qGe(e,t,r,i);break;default:x.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function HGe(e,t,r,i){if(!t.importClause)return;let{name:o,namedBindings:s}=t.importClause,l=!o||i(o),d=!s||(s.kind===274?i(s.name):s.elements.length!==0&&s.elements.every(p=>i(p.name)));if(l&&d)r.delete(e,t);else if(o&&l&&r.delete(e,o),s){if(d)r.replaceNode(e,t.importClause,P.updateImportClause(t.importClause,t.importClause.isTypeOnly,o,void 0));else if(s.kind===275)for(let p of s.elements)i(p.name)&&r.delete(e,p)}}function qGe(e,t,r,i){let{name:o}=t;switch(o.kind){case 80:i(o)&&(t.initializer&&Xd(t.initializer,!0)?r.delete(e,yc(t.parent)&&yn(t.parent.declarations)===1?t.parent.parent:t):r.delete(e,o));break;case 207:break;case 206:if(o.elements.every(s=>Me(s.name)&&i(s.name)))r.delete(e,yc(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(let s of o.elements)Me(s.name)&&i(s.name)&&r.delete(e,s.name);break}}function JIe(e){return x.assert(Li(e.parent),"Node parent should be a SourceFile"),QIe(e)||cl(e)}function JGe(e,t){return t?[KGe(e)]:XGe(e)}function KGe(e){let t=Yf(e)?ro([P.createModifier(95)],kE(e)):void 0;switch(e.kind){case 262:return P.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let r=ZS(e)?Hv(e):void 0;return P.updateClassDeclaration(e,ro(r,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return P.updateVariableStatement(e,t,e.declarationList);case 267:return P.updateModuleDeclaration(e,t,e.name,e.body);case 266:return P.updateEnumDeclaration(e,t,e.name,e.members);case 265:return P.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return P.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return P.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return x.fail();default:return x.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function XGe(e){return[e,...dce(e).map(KIe)]}function KIe(e){return P.createExpressionStatement(P.createBinaryExpression(P.createPropertyAccessExpression(P.createIdentifier("exports"),P.createIdentifier(e)),64,P.createIdentifier(e)))}function dce(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Fi(e.declarationList.declarations,t=>Me(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return je;case 244:return x.fail("Can't export an ExpressionStatement");default:return x.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function uO(e,t,r){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let o=i.name&&r(i.name)?i.name:void 0,s=i.namedBindings&&YGe(i.namedBindings,r);return o||s?P.createImportDeclaration(void 0,P.createImportClause(i.isTypeOnly,o,s),Fs(t),void 0):void 0}case 271:return r(e.name)?e:void 0;case 260:{let i=$Ge(e.name,r);return i?HIe(i,e.type,ace(t),e.parent.flags):void 0}default:return x.assertNever(e,`Unexpected import kind ${e.kind}`)}}function YGe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let r=e.elements.filter(i=>t(i.name));return r.length?P.createNamedImports(r):void 0}}function $Ge(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let r=e.elements.filter(i=>i.propertyName||!Me(i.name)||t(i.name));return r.length?P.createObjectBindingPattern(r):void 0}}}function uce(e){return Cc(e)?Vr(e.expression.left.name,Me):Vr(e.name,Me)}function vK(e){switch(e.kind){case 260:return e.parent.parent;case 208:return vK(Fo(e.parent.parent,t=>yi(t)||Na(t)));default:return e}}function pce(e,t,r,i,o){if(!qIe(e,t,o,r))if(o)Cc(t)||i.insertExportModifier(e,t);else{let s=dce(t);s.length!==0&&i.insertNodesAfter(e,t,s.map(KIe))}}function fce(e,t,r,i){let o=t.getTypeChecker();if(i){let s=uz(e,i.all,o),l=Ur(e.fileName),d=jC(e.fileName);return wr(l,t9e(n9e(s.oldFileImportsFromTargetFile,s.movedSymbols),d,l,r))+d}return""}function QGe(e){let{file:t}=e,r=T3(NI(e)),{statements:i}=t,o=Tl(i,h=>h.end>r.pos);if(o===-1)return;let s=i[o],l=ZIe(t,s);l&&(o=l.start);let d=Tl(i,h=>h.end>=r.end,o);d!==-1&&r.end<=i[d].getStart()&&d--;let p=ZIe(t,i[d]);return p&&(d=p.end),{toMove:i.slice(o,d===-1?i.length:d+1),afterLast:d===-1?void 0:i[d+1]}}function pO(e){let t=QGe(e);if(t===void 0)return;let r=[],i=[],{toMove:o,afterLast:s}=t;return Z5(o,ZGe,(l,d)=>{for(let p=l;p<d;p++)r.push(o[p]);i.push({first:o[l],afterLast:s})}),r.length===0?void 0:{all:r,ranges:i}}function mce(e){return Dr(e,t=>!!(t.transformFlags&2))}function ZGe(e){return!e9e(e)&&!Hf(e)}function e9e(e){switch(e.kind){case 272:return!0;case 271:return!Wr(e,32);case 243:return e.declarationList.declarations.every(t=>!!t.initializer&&Xd(t.initializer,!0));default:return!1}}function uz(e,t,r,i=new Set){let o=new Set,s=new Map,l=new Set,d=m(mce(t));d&&s.set(d,!1);for(let v of t)hce(v,E=>{o.add(x.checkDefined(Cc(E)?r.getSymbolAtLocation(E.expression.left):E.symbol,"Need a symbol here"))});let p=new Set;for(let v of t)_ce(v,r,(E,S)=>{if(E.declarations){if(i.has(Kc(E,r))){p.add(E);return}for(let A of E.declarations)if(XIe(A)){let C=s.get(E);s.set(E,(C===void 0||C)&&S)}else pz(A)&&r9e(A)===e&&!o.has(E)&&l.add(E)}});for(let v of s.keys())p.add(v);let h=new Set;for(let v of e.statements)To(t,v)||(d&&v.transformFlags&2&&p.delete(d),_ce(v,r,E=>{o.has(E)&&h.add(E),p.delete(E)}));return{movedSymbols:o,targetFileImportsFromOldFile:l,oldFileImportsFromTargetFile:h,oldImportsNeededByTargetFile:s,unusedImportsFromOldFile:p};function m(v){if(v===void 0)return;let E=r.getJsxNamespace(v),S=r.resolveName(E,v,1920,!0);return S&&ct(S.declarations,XIe)?S:void 0}}function t9e(e,t,r,i){let o=e;for(let s=1;;s++){let l=wr(r,o+t);if(!i.fileExists(l))return o;o=`${e}.${s}`}}function n9e(e,t){return k_(e,R3)||k_(t,R3)||"newFile"}function _ce(e,t,r){e.forEachChild(function i(o){if(Me(o)&&!ng(o)){let s=t.getSymbolAtLocation(o);s&&r(s,Pb(o))}else o.forEachChild(i)})}function hce(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 ml(e.declarationList.declarations,r=>$Ie(r.name,t));case 244:{let{expression:r}=e;return Zn(r)&&hl(r)===1?t(e):void 0}}}function XIe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return YIe(e);case 208:return yi(e.parent.parent)&&YIe(e.parent.parent);default:return!1}}function YIe(e){return Li(e.parent.parent.parent)&&!!e.initializer&&Xd(e.initializer,!0)}function pz(e){return QIe(e)&&Li(e.parent)||yi(e)&&Li(e.parent.parent.parent)}function r9e(e){return yi(e)?e.parent.parent.parent:e.parent}function $Ie(e,t){switch(e.kind){case 80:return t(Fo(e.parent,r=>yi(r)||Na(r)));case 207:case 206:return ml(e.elements,r=>vc(r)?void 0:$Ie(r.name,t));default:return x.assertNever(e,`Unexpected name kind ${e.kind}`)}}function QIe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function i9e(e,t,r,i,o){var s;let l=new Set,d=(s=i.symbol)==null?void 0:s.exports;if(d){let h=t.getTypeChecker(),m=new Map;for(let v of o.all)JIe(v)&&Wr(v,32)&&hce(v,E=>{var S;let A=Hm(E)?(S=d.get(E.symbol.escapedName))==null?void 0:S.declarations:void 0,C=ml(A,R=>xl(R)?R:Ed(R)?Vr(R.parent.parent,xl):void 0);C&&C.moduleSpecifier&&m.set(C,(m.get(C)||new Set).add(E))});for(let[v,E]of bo(m))if(v.exportClause&&$p(v.exportClause)&&yn(v.exportClause.elements)){let S=v.exportClause.elements,A=Cr(S,C=>Dr(Kc(C.symbol,h).declarations,R=>pz(R)&&E.has(R))===void 0);if(yn(A)===0){e.deleteNode(i,v),l.add(v);continue}yn(A)<yn(S)&&e.replaceNode(i,v,P.updateExportDeclaration(v,v.modifiers,v.isTypeOnly,P.updateNamedExports(v.exportClause,P.createNodeArray(A,S.hasTrailingComma)),v.moduleSpecifier,v.attributes))}}let p=hA(i.statements,h=>xl(h)&&!!h.moduleSpecifier&&!l.has(h));p?e.insertNodesBefore(i,p,r,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],r)}function ZIe(e,t){if(_s(t)){let r=t.symbol.declarations;if(r===void 0||yn(r)<=1||!To(r,t))return;let i=r[0],o=r[yn(r)-1],s=Fi(r,p=>Nn(p)===e&&Di(p)?p:void 0),l=Tl(e.statements,p=>p.end>=o.end),d=Tl(e.statements,p=>p.end>=i.end);return{toMove:s,start:d,end:l}}}function o9e(e,t,r){let i=new Set;for(let o of e.imports){let s=yC(o);if(cc(s)&&s.importClause&&s.importClause.namedBindings&&sg(s.importClause.namedBindings))for(let l of s.importClause.namedBindings.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(Kc(d,r))}if(AW(s.parent)&&Rf(s.parent.name))for(let l of s.parent.name.elements){let d=r.getSymbolAtLocation(l.propertyName||l.name);d&&i.add(Kc(d,r))}}for(let o of t)_ce(o,r,s=>{let l=Kc(s,r);l.valueDeclaration&&Nn(l.valueDeclaration)===e&&i.add(l)});return i}var fz,yK,bK,a9e=pt({"src/services/refactors/moveToFile.ts"(){"use strict";Soe(),Hr(),MIe(),fz="Move to file",yK=vo(f.Move_to_file),bK={name:"Move to file",description:yK,kind:"refactor.move.file"},Ph(fz,{kinds:[bK.kind],getAvailableActions:function(t,r){let i=pO(t);return r?t.preferences.allowTextChangesInNewFiles&&i?[{name:fz,description:yK,actions:[bK]}]:t.preferences.provideRefactorNotApplicableReason?[{name:fz,description:yK,actions:[{...bK,notApplicableReason:vo(f.Selection_is_not_a_valid_statement_or_statements)}]}]:je:je},getEditsForAction:function(t,r,i){x.assert(r===fz,"Wrong refactor invoked");let o=x.checkDefined(pO(t)),{host:s,program:l}=t;x.assert(i,"No interactive refactor arguments available");let d=i.targetFile;return QE(d)||qA(d)?s.fileExists(d)&&l.getSourceFile(d)===void 0?jIe(vo(f.Cannot_move_statements_to_the_selected_file)):{edits:er.ChangeTracker.with(t,h=>BGe(t,t.file,i.targetFile,t.program,o,h,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:jIe(vo(f.Cannot_move_to_file_selected_file_is_invalid))}})}});function s9e(e){let{file:t,startPosition:r,program:i}=e;return t1e(t,r,i)?[{name:EK,description:gce,actions:[vce]}]:je}function l9e(e){let{file:t,startPosition:r,program:i}=e,o=t1e(t,r,i);if(!o)return;let s=i.getTypeChecker(),l=o[o.length-1],d=l;switch(l.kind){case 173:{d=P.updateMethodSignature(l,l.modifiers,l.name,l.questionToken,l.typeParameters,h(o),l.type);break}case 174:{d=P.updateMethodDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.questionToken,l.typeParameters,h(o),l.type,l.body);break}case 179:{d=P.updateCallSignature(l,l.typeParameters,h(o),l.type);break}case 176:{d=P.updateConstructorDeclaration(l,l.modifiers,h(o),l.body);break}case 180:{d=P.updateConstructSignature(l,l.typeParameters,h(o),l.type);break}case 262:{d=P.updateFunctionDeclaration(l,l.modifiers,l.asteriskToken,l.name,l.typeParameters,h(o),l.type,l.body);break}default:return x.failBadSyntaxKind(l,"Unhandled signature kind in overload list conversion refactoring")}if(d===l)return;return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,E=>{E.replaceNodeRange(t,o[0],o[o.length-1],d)})};function h(E){let S=E[E.length-1];return _s(S)&&S.body&&(E=E.slice(0,E.length-1)),P.createNodeArray([P.createParameterDeclaration(void 0,P.createToken(26),"args",void 0,P.createUnionTypeNode(nn(E,m)))])}function m(E){let S=nn(E.parameters,v);return $n(P.createTupleTypeNode(S),ct(S,A=>!!yn(Mx(A)))?0:1)}function v(E){x.assert(Me(E.name));let S=Ze(P.createNamedTupleMember(E.dotDotDotToken,E.name,E.questionToken,E.type||P.createKeywordTypeNode(133)),E),A=E.symbol&&E.symbol.getDocumentationComment(s);if(A){let C=yO(A);C.length&&Lb(S,[{text:`*
${C.split(`
`).map(R=>` * ${R}`).join(`
`)}
`,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return S}}function e1e(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function t1e(e,t,r){let i=Hi(e,t),o=Rn(i,e1e);if(!o||_s(o)&&o.body&&Wk(o.body,t))return;let s=r.getTypeChecker(),l=o.symbol;if(!l)return;let d=l.declarations;if(yn(d)<=1||!ji(d,E=>Nn(E)===e)||!e1e(d[0]))return;let p=d[0].kind;if(!ji(d,E=>E.kind===p))return;let h=d;if(ct(h,E=>!!E.typeParameters||ct(E.parameters,S=>!!S.modifiers||!Me(S.name))))return;let m=Fi(h,E=>s.getSignatureFromDeclaration(E));if(yn(m)!==yn(d))return;let v=s.getReturnTypeOfSignature(m[0]);if(ji(m,E=>s.getReturnTypeOfSignature(E)===v))return h}var EK,gce,vce,c9e=pt({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";Hr(),q_(),EK="Convert overload list to single signature",gce=vo(f.Convert_overload_list_to_single_signature),vce={name:EK,description:gce,kind:"refactor.rewrite.function.overloadList"},Ph(EK,{kinds:[vce.kind],getEditsForAction:l9e,getAvailableActions:s9e})}});function d9e(e){let{file:t,startPosition:r,triggerReason:i}=e,o=n1e(t,r,i==="invoked");return o?ug(o)?e.preferences.provideRefactorNotApplicableReason?[{name:SK,description:yce,actions:[{...mz,notApplicableReason:o.error},{...fO,notApplicableReason:o.error}]}]:je:[{name:SK,description:yce,actions:[o.addBraces?mz:fO]}]:je}function u9e(e,t){let{file:r,startPosition:i}=e,o=n1e(r,i);x.assert(o&&!ug(o),"Expected applicable refactor info");let{expression:s,returnStatement:l,func:d}=o,p;if(t===mz.name){let m=P.createReturnStatement(s);p=P.createBlock([m],!0),bR(s,m,r,3,!0)}else if(t===fO.name&&l){let m=s||P.createVoidZero();p=k3(m)?P.createParenthesizedExpression(m):m,Qk(l,p,r,3,!1),bR(l,p,r,3,!1),nP(l,p,r,3,!1)}else x.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,m=>{m.replaceNode(r,d.body,p)})}}function n1e(e,t,r=!0,i){let o=Hi(e,t),s=cp(o);if(!s)return{error:vo(f.Could_not_find_a_containing_arrow_function)};if(!hs(s))return{error:vo(f.Containing_function_is_not_an_arrow_function)};if(!(!Cp(s,o)||Cp(s.body,o)&&!r)){if(Jb(mz.kind,i)&<(s.body))return{func:s,addBraces:!0,expression:s.body};if(Jb(fO.kind,i)&&Do(s.body)&&s.body.statements.length===1){let l=Sa(s.body.statements);if(Kf(l)){let d=l.expression&&fa(Ax(l.expression,!1))?P.createParenthesizedExpression(l.expression):l.expression;return{func:s,addBraces:!1,expression:d,returnStatement:l}}}}}var SK,yce,mz,fO,p9e=pt({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";Hr(),q_(),SK="Add or remove braces in an arrow function",yce=vo(f.Add_or_remove_braces_in_an_arrow_function),mz={name:"Add braces to arrow function",description:vo(f.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},fO={name:"Remove braces from arrow function",description:vo(f.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},Ph(SK,{kinds:[fO.kind],getEditsForAction:u9e,getAvailableActions:d9e})}}),f9e={},m9e=pt({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";c9e(),p9e()}});function _9e(e){let{file:t,startPosition:r,program:i,kind:o}=e,s=i1e(t,r,i);if(!s)return je;let{selectedVariableDeclaration:l,func:d}=s,p=[],h=[];if(Jb(_O.kind,o)){let m=l||hs(d)&&yi(d.parent)?void 0:vo(f.Could_not_convert_to_named_function);m?h.push({..._O,notApplicableReason:m}):p.push(_O)}if(Jb(mO.kind,o)){let m=!l&&hs(d)?void 0:vo(f.Could_not_convert_to_anonymous_function);m?h.push({...mO,notApplicableReason:m}):p.push(mO)}if(Jb(hO.kind,o)){let m=us(d)?void 0:vo(f.Could_not_convert_to_arrow_function);m?h.push({...hO,notApplicableReason:m}):p.push(hO)}return[{name:bce,description:s1e,actions:p.length===0&&e.preferences.provideRefactorNotApplicableReason?h:p}]}function h9e(e,t){let{file:r,startPosition:i,program:o}=e,s=i1e(r,i,o);if(!s)return;let{func:l}=s,d=[];switch(t){case mO.name:d.push(...b9e(e,l));break;case _O.name:let p=y9e(l);if(!p)return;d.push(...E9e(e,l,p));break;case hO.name:if(!us(l))return;d.push(...S9e(e,l));break;default:return x.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:d}}function r1e(e){let t=!1;return e.forEachChild(function r(i){if(mR(i)){t=!0;return}!Kr(i)&&!Ql(i)&&!us(i)&&Ao(i,r)}),t}function i1e(e,t,r){let i=Hi(e,t),o=r.getTypeChecker(),s=v9e(e,o,i.parent);if(s&&!r1e(s.body)&&!o.containsArgumentsReference(s))return{selectedVariableDeclaration:!0,func:s};let l=cp(i);if(l&&(us(l)||hs(l))&&!Cp(l.body,i)&&!r1e(l.body)&&!o.containsArgumentsReference(l))return us(l)&&a1e(e,o,l)?void 0:{selectedVariableDeclaration:!1,func:l}}function g9e(e){return yi(e)||yc(e)&&e.declarations.length===1}function v9e(e,t,r){if(!g9e(r))return;let o=(yi(r)?r:Sa(r.declarations)).initializer;if(o&&(hs(o)||us(o)&&!a1e(e,t,o)))return o}function o1e(e){if(lt(e)){let t=P.createReturnStatement(e),r=e.getSourceFile();return Ze(t,e),qu(t),Qk(e,t,r,void 0,!0),P.createBlock([t],!0)}else return e}function y9e(e){let t=e.parent;if(!yi(t)||!mC(t))return;let r=t.parent,i=r.parent;if(!(!yc(r)||!cl(i)||!Me(t.name)))return{variableDeclaration:t,variableDeclarationList:r,statement:i,name:t.name}}function b9e(e,t){let{file:r}=e,i=o1e(t.body),o=P.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return er.ChangeTracker.with(e,s=>s.replaceNode(r,t,o))}function E9e(e,t,r){let{file:i}=e,o=o1e(t.body),{variableDeclaration:s,variableDeclarationList:l,statement:d,name:p}=r;TJ(d);let h=gb(s)&32|Wd(t),m=P.createModifiersFromModifierFlags(h),v=P.createFunctionDeclaration(yn(m)?m:void 0,t.asteriskToken,p,t.typeParameters,t.parameters,t.type,o);return l.declarations.length===1?er.ChangeTracker.with(e,E=>E.replaceNode(i,d,v)):er.ChangeTracker.with(e,E=>{E.delete(i,s),E.insertNodeAfter(i,d,v)})}function S9e(e,t){let{file:r}=e,o=t.body.statements[0],s;T9e(t.body,o)?(s=o.expression,qu(s),cT(o,s)):s=t.body;let l=P.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,P.createToken(39),s);return er.ChangeTracker.with(e,d=>d.replaceNode(r,t,l))}function T9e(e,t){return e.statements.length===1&&Kf(t)&&!!t.expression}function a1e(e,t,r){return!!r.name&&ps.Core.isSymbolReferencedInFile(r.name,t,e)}var bce,s1e,mO,_O,hO,A9e=pt({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";Hr(),q_(),bce="Convert arrow function or function expression",s1e=vo(f.Convert_arrow_function_or_function_expression),mO={name:"Convert to anonymous function",description:vo(f.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},_O={name:"Convert to named function",description:vo(f.Convert_to_named_function),kind:"refactor.rewrite.function.named"},hO={name:"Convert to arrow function",description:vo(f.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Ph(bce,{kinds:[mO.kind,_O.kind,hO.kind],getEditsForAction:h9e,getAvailableActions:_9e})}}),I9e={},x9e=pt({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";A9e()}});function R9e(e){let{file:t,startPosition:r}=e;return wd(t)||!d1e(t,r,e.program.getTypeChecker())?je:[{name:hz,description:Ace,actions:[Ice]}]}function D9e(e,t){x.assert(t===hz,"Unexpected action name");let{file:r,startPosition:i,program:o,cancellationToken:s,host:l}=e,d=d1e(r,i,o.getTypeChecker());if(!d||!s)return;let p=N9e(d,o,s);return p.valid?{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,m=>C9e(r,o,l,m,d,p))}:{edits:[]}}function C9e(e,t,r,i,o,s){let l=s.signature,d=nn(m1e(o,t,r),m=>Fs(m));if(l){let m=nn(m1e(l,t,r),v=>Fs(v));h(l,m)}h(o,d);let p=zD(s.functionCalls,(m,v)=>Ms(m.pos,v.pos));for(let m of p)if(m.arguments&&m.arguments.length){let v=Fs(B9e(o,m.arguments),!0);i.replaceNodeRange(Nn(m),Sa(m.arguments),Da(m.arguments),v,{leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Include})}function h(m,v){i.replaceNodeRangeWithNodes(e,Sa(m.parameters),Da(m.parameters),v,{joiner:", ",indentation:0,leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Include})}}function N9e(e,t,r){let i=V9e(e),o=ll(e)?G9e(e):[],s=NE([...i,...o],Hg),l=t.getTypeChecker(),d=ta(s,v=>ps.getReferenceEntriesForNode(-1,v,t,t.getSourceFiles(),r)),p=h(d);return ji(p.declarations,v=>To(s,v))||(p.valid=!1),p;function h(v){let E={accessExpressions:[],typeUsages:[]},S={functionCalls:[],declarations:[],classReferences:E,valid:!0},A=nn(i,m),C=nn(o,m),R=ll(e),L=nn(i,G=>Ece(G,l));for(let G of v){if(G.kind===ps.EntryKind.Span){S.valid=!1;continue}if(To(L,m(G.node))){if(k9e(G.node.parent)){S.signature=G.node.parent;continue}let K=c1e(G);if(K){S.functionCalls.push(K);continue}}let U=Ece(G.node,l);if(U&&To(L,U)){let K=Sce(G);if(K){S.declarations.push(K);continue}}if(To(A,m(G.node))||KN(G.node)){if(l1e(G))continue;let F=Sce(G);if(F){S.declarations.push(F);continue}let oe=c1e(G);if(oe){S.functionCalls.push(oe);continue}}if(R&&To(C,m(G.node))){if(l1e(G))continue;let F=Sce(G);if(F){S.declarations.push(F);continue}let oe=P9e(G);if(oe){E.accessExpressions.push(oe);continue}if(Zl(e.parent)){let W=M9e(G);if(W){E.typeUsages.push(W);continue}}}S.valid=!1}return S}function m(v){let E=l.getSymbolAtLocation(v);return E&&EJ(E,l)}}function Ece(e,t){let r=bO(e);if(r){let i=t.getContextualTypeForObjectLiteralElement(r),o=i?.getSymbol();if(o&&!(tl(o)&6))return o}}function l1e(e){let t=e.node;if(Iu(t.parent)||G_(t.parent)||Nc(t.parent)||my(t.parent)||Ed(t.parent)||dl(t.parent))return t}function Sce(e){if(bd(e.node.parent))return e.node}function c1e(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 213:case 214:let i=Vr(r,Um);if(i&&i.expression===t)return i;break;case 211:let o=Vr(r,Er);if(o&&o.parent&&o.name===t){let l=Vr(o.parent,Um);if(l&&l.expression===o)return l}break;case 212:let s=Vr(r,Rs);if(s&&s.parent&&s.argumentExpression===t){let l=Vr(s.parent,Um);if(l&&l.expression===s)return l}break}}}function P9e(e){if(e.node.parent){let t=e.node,r=t.parent;switch(r.kind){case 211:let i=Vr(r,Er);if(i&&i.expression===t)return i;break;case 212:let o=Vr(r,Rs);if(o&&o.expression===t)return o;break}}}function M9e(e){let t=e.node;if(aT(t)===2||HW(t.parent))return t}function d1e(e,t,r){let i=_R(e,t),o=Vte(i);if(!L9e(i)&&o&&O9e(o,r)&&Cp(o,i)&&!(o.body&&Cp(o.body,i)))return o}function L9e(e){let t=Rn(e,q1);if(t){let r=Rn(t,i=>!q1(i));return!!r&&_s(r)}return!1}function k9e(e){return z_(e)&&(Gd(e.parent)||ju(e.parent))}function O9e(e,t){var r;if(!w9e(e.parameters,t))return!1;switch(e.kind){case 262:return u1e(e)&&_z(e,t);case 174:if(fa(e.parent)){let i=Ece(e.name,t);return((r=i?.declarations)==null?void 0:r.length)===1&&_z(e,t)}return _z(e,t);case 176:return Zl(e.parent)?u1e(e.parent)&&_z(e,t):p1e(e.parent.parent)&&_z(e,t);case 218:case 219:return p1e(e.parent)}return!1}function _z(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function u1e(e){return e.name?!0:!!gR(e,90)}function w9e(e,t){return F9e(e)>=_1e&&ji(e,r=>W9e(r,t))}function W9e(e,t){if(gh(e)){let r=t.getTypeAtLocation(e);if(!t.isArrayType(r)&&!t.isTupleType(r))return!1}return!e.modifiers&&Me(e.name)}function p1e(e){return yi(e)&&Z1(e)&&Me(e.name)&&!e.type}function Tce(e){return e.length>0&&mR(e[0].name)}function F9e(e){return Tce(e)?e.length-1:e.length}function f1e(e){return Tce(e)&&(e=P.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function z9e(e,t){return Me(t)&&Ef(t)===e?P.createShorthandPropertyAssignment(e):P.createPropertyAssignment(e,t)}function B9e(e,t){let r=f1e(e.parameters),i=gh(Da(r)),o=i?t.slice(0,r.length-1):t,s=nn(o,(d,p)=>{let h=TK(r[p]),m=z9e(h,d);return qu(m.name),Hl(m)&&qu(m.initializer),cT(d,m),m});if(i&&t.length>=r.length){let d=t.slice(r.length-1),p=P.createPropertyAssignment(TK(Da(r)),P.createArrayLiteralExpression(d));s.push(p)}return P.createObjectLiteralExpression(s,!1)}function m1e(e,t,r){let i=t.getTypeChecker(),o=f1e(e.parameters),s=nn(o,m),l=P.createObjectBindingPattern(s),d=v(o),p;ji(o,A)&&(p=P.createObjectLiteralExpression());let h=P.createParameterDeclaration(void 0,void 0,l,void 0,d,p);if(Tce(e.parameters)){let C=e.parameters[0],R=P.createParameterDeclaration(void 0,void 0,C.name,void 0,C.type);return qu(R.name),cT(C.name,R.name),C.type&&(qu(R.type),cT(C.type,R.type)),P.createNodeArray([R,h])}return P.createNodeArray([h]);function m(C){let R=P.createBindingElement(void 0,void 0,TK(C),gh(C)&&A(C)?P.createArrayLiteralExpression():C.initializer);return qu(R),C.initializer&&R.initializer&&cT(C.initializer,R.initializer),R}function v(C){let R=nn(C,E);return Zm(P.createTypeLiteralNode(R),1)}function E(C){let R=C.type;!R&&(C.initializer||gh(C))&&(R=S(C));let L=P.createPropertySignature(void 0,TK(C),A(C)?P.createToken(58):C.questionToken,R);return qu(L),cT(C.name,L.name),C.type&&L.type&&cT(C.type,L.type),L}function S(C){let R=i.getTypeAtLocation(C);return iP(R,C,t,r)}function A(C){if(gh(C)){let R=i.getTypeAtLocation(C);return!i.isTupleType(R)}return i.isOptionalParameter(C)}}function TK(e){return Ef(e.name)}function G9e(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[x.checkDefined(gR(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,o=e.parent.parent,s=i.name;return s?[s,o.name]:[o.name]}}function V9e(e){switch(e.kind){case 262:return e.name?[e.name]:[x.checkDefined(gR(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let r=x.checkDefined(Ya(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,r]:[r];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return x.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var hz,_1e,Ace,Ice,j9e=pt({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";Hr(),q_(),hz="Convert parameters to destructured object",_1e=1,Ace=vo(f.Convert_parameters_to_destructured_object),Ice={name:hz,description:Ace,kind:"refactor.rewrite.parameters.toDestructured"},Ph(hz,{kinds:[Ice.kind],getEditsForAction:D9e,getAvailableActions:R9e})}}),U9e={},H9e=pt({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";j9e()}});function q9e(e){let{file:t,startPosition:r}=e,i=h1e(t,r),o=xce(i),s=ca(o),l={name:AK,description:IK,actions:[]};return s&&e.triggerReason!=="invoked"?je:bh(o)&&(s||Zn(o)&&Rce(o).isValidConcatenation)?(l.actions.push(xK),[l]):e.preferences.provideRefactorNotApplicableReason?(l.actions.push({...xK,notApplicableReason:vo(f.Can_only_convert_string_concatenations_and_string_literals)}),[l]):je}function h1e(e,t){let r=Hi(e,t),i=xce(r);return!Rce(i).isValidConcatenation&&uu(i.parent)&&Zn(i.parent.parent)?i.parent.parent:r}function J9e(e,t){let{file:r,startPosition:i}=e,o=h1e(r,i);switch(t){case IK:return{edits:K9e(e,o)};default:return x.fail("invalid action")}}function K9e(e,t){let r=xce(t),i=e.file,o=$9e(Rce(r),i),s=mb(i.text,r.end);if(s){let l=s[s.length-1],d={pos:s[0].pos,end:l.end};return er.ChangeTracker.with(e,p=>{p.deleteRange(i,d),p.replaceNode(i,r,o)})}else return er.ChangeTracker.with(e,l=>l.replaceNode(i,r,o))}function X9e(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function xce(e){return Rn(e.parent,r=>{switch(r.kind){case 211:case 212:return!1;case 228:case 226:return!(Zn(r.parent)&&X9e(r.parent));default:return"quit"}})||e}function Rce(e){let t=l=>{if(!Zn(l))return{nodes:[l],operators:[],validOperators:!0,hasString:ca(l)||eI(l)};let{nodes:d,operators:p,hasString:h,validOperators:m}=t(l.left);if(!(h||ca(l.right)||h6(l.right)))return{nodes:[l],operators:[],hasString:!1,validOperators:!0};let v=l.operatorToken.kind===40,E=m&&v;return d.push(l.right),p.push(l.operatorToken),{nodes:d,operators:p,hasString:!0,validOperators:E}},{nodes:r,operators:i,validOperators:o,hasString:s}=t(e);return{nodes:r,operators:i,isValidConcatenation:o&&s}}function Y9e(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function g1e(e){let t=tI(e)||hj(e)?-2:-1;return Vl(e).slice(1,t)}function v1e(e,t){let r=[],i="",o="";for(;e<t.length;){let s=t[e];if(Ga(s))i+=s.text,o+=Y9e(Vl(s).slice(1,-1)),r.push(e),e++;else if(h6(s)){i+=s.head.text,o+=g1e(s.head);break}else break}return[e,i,o,r]}function $9e({nodes:e,operators:t},r){let i=b1e(t,r),o=E1e(e,r,i),[s,l,d,p]=v1e(0,e);if(s===e.length){let v=P.createNoSubstitutionTemplateLiteral(l,d);return o(p,v),v}let h=[],m=P.createTemplateHead(l,d);o(p,m);for(let v=s;v<e.length;v++){let E=Q9e(e[v]);i(v,E);let[S,A,C,R]=v1e(v+1,e);v=S-1;let L=v===e.length-1;if(h6(E)){let G=nn(E.templateSpans,(U,K)=>{y1e(U);let F=K===E.templateSpans.length-1,oe=U.literal.text+(F?A:""),W=g1e(U.literal)+(F?C:"");return P.createTemplateSpan(U.expression,L&&F?P.createTemplateTail(oe,W):P.createTemplateMiddle(oe,W))});h.push(...G)}else{let G=L?P.createTemplateTail(A,C):P.createTemplateMiddle(A,C);o(R,G),h.push(P.createTemplateSpan(E,G))}}return P.createTemplateExpression(m,h)}function y1e(e){let t=e.getSourceFile();nP(e,e.expression,t,3,!1),Qk(e.expression,e.expression,t,3,!1)}function Q9e(e){return uu(e)&&(y1e(e),e=e.expression),e}var AK,IK,xK,b1e,E1e,Z9e=pt({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";Hr(),q_(),AK="Convert to template string",IK=vo(f.Convert_to_template_string),xK={name:AK,description:IK,kind:"refactor.rewrite.string"},Ph(AK,{kinds:[xK.kind],getEditsForAction:J9e,getAvailableActions:q9e}),b1e=(e,t)=>(r,i)=>{r<e.length&&nP(e[r],i,t,3,!1)},E1e=(e,t,r)=>(i,o)=>{for(;i.length>0;){let s=i.shift();nP(e[s],o,t,3,!1),r(s,o)}}}}),eVe={},tVe=pt({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";Z9e()}});function nVe(e){let t=S1e(e,e.triggerReason==="invoked");return t?ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:gz,description:CK,actions:[{...NK,notApplicableReason:t.error}]}]:je:[{name:gz,description:CK,actions:[NK]}]:je}function rVe(e,t){let r=S1e(e);return x.assert(r&&!ug(r),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(e,o=>uVe(e.file,e.program.getTypeChecker(),o,r,t)),renameFilename:void 0,renameLocation:void 0}}function RK(e){return Zn(e)||Fx(e)}function iVe(e){return Cc(e)||Kf(e)||cl(e)}function DK(e){return RK(e)||iVe(e)}function S1e(e,t=!0){let{file:r,program:i}=e,o=NI(e),s=o.length===0;if(s&&!t)return;let l=Hi(r,o.start),d=v3(r,o.start+o.length),p=Gl(l.pos,d&&d.end>=l.pos?d.getEnd():l.getEnd()),h=s?cVe(l):lVe(l,p),m=h&&DK(h)?dVe(h):void 0;if(!m)return{error:vo(f.Could_not_find_convertible_access_expression)};let v=i.getTypeChecker();return Fx(m)?oVe(m,v):aVe(m)}function oVe(e,t){let r=e.condition,i=Cce(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:vo(f.Could_not_find_convertible_access_expression)};if((Er(r)||Me(r))&&Dce(r,i.expression))return{finalExpression:i,occurrences:[r],expression:e};if(Zn(r)){let o=T1e(i.expression,r);return o?{finalExpression:i,occurrences:o,expression:e}:{error:vo(f.Could_not_find_matching_access_expressions)}}}function aVe(e){if(e.operatorToken.kind!==56)return{error:vo(f.Can_only_convert_logical_AND_access_chains)};let t=Cce(e.right);if(!t)return{error:vo(f.Could_not_find_convertible_access_expression)};let r=T1e(t.expression,e.left);return r?{finalExpression:t,occurrences:r,expression:e}:{error:vo(f.Could_not_find_matching_access_expressions)}}function T1e(e,t){let r=[];for(;Zn(t)&&t.operatorToken.kind===56;){let o=Dce(Ka(e),Ka(t.right));if(!o)break;r.push(o),e=o,t=t.left}let i=Dce(e,t);return i&&r.push(i),r.length>0?r:void 0}function Dce(e,t){if(!(!Me(t)&&!Er(t)&&!Rs(t)))return sVe(e,t)?t:void 0}function sVe(e,t){for(;(Bo(e)||Er(e)||Rs(e))&&gO(e)!==gO(t);)e=e.expression;for(;Er(e)&&Er(t)||Rs(e)&&Rs(t);){if(gO(e)!==gO(t))return!1;e=e.expression,t=t.expression}return Me(e)&&Me(t)&&e.getText()===t.getText()}function gO(e){if(Me(e)||Tp(e))return e.getText();if(Er(e))return gO(e.name);if(Rs(e))return gO(e.argumentExpression)}function lVe(e,t){for(;e.parent;){if(DK(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function cVe(e){for(;e.parent;){if(DK(e)&&!DK(e.parent))return e;e=e.parent}}function dVe(e){if(RK(e))return e;if(cl(e)){let t=wA(e),r=t?.initializer;return r&&RK(r)?r:void 0}return e.expression&&RK(e.expression)?e.expression:void 0}function Cce(e){if(e=Ka(e),Zn(e))return Cce(e.left);if((Er(e)||Rs(e)||Bo(e))&&!yd(e))return e}function A1e(e,t,r){if(Er(t)||Rs(t)||Bo(t)){let i=A1e(e,t.expression,r),o=r.length>0?r[r.length-1]:void 0,s=o?.getText()===t.expression.getText();if(s&&r.pop(),Bo(t))return s?P.createCallChain(i,P.createToken(29),t.typeArguments,t.arguments):P.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Er(t))return s?P.createPropertyAccessChain(i,P.createToken(29),t.name):P.createPropertyAccessChain(i,t.questionDotToken,t.name);if(Rs(t))return s?P.createElementAccessChain(i,P.createToken(29),t.argumentExpression):P.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function uVe(e,t,r,i,o){let{finalExpression:s,occurrences:l,expression:d}=i,p=l[l.length-1],h=A1e(t,s,l);h&&(Er(h)||Rs(h)||Bo(h))&&(Zn(d)?r.replaceNodeRange(e,p,s,h):Fx(d)&&r.replaceNode(e,d,P.createBinaryExpression(h,P.createToken(61),d.whenFalse)))}var gz,CK,NK,pVe=pt({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";Hr(),q_(),gz="Convert to optional chain expression",CK=vo(f.Convert_to_optional_chain_expression),NK={name:gz,description:CK,kind:"refactor.rewrite.expression.optionalChain"},Ph(gz,{kinds:[NK.kind],getEditsForAction:rVe,getAvailableActions:nVe})}}),fVe={},mVe=pt({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";pVe()}});function I1e(e){let t=e.kind,r=Nce(e.file,NI(e),e.triggerReason==="invoked"),i=r.targetRange;if(i===void 0){if(!r.errors||r.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return je;let A=[];return Jb(xR.kind,t)&&A.push({name:AR,description:xR.description,actions:[{...xR,notApplicableReason:S(r.errors)}]}),Jb(IR.kind,t)&&A.push({name:AR,description:IR.description,actions:[{...IR,notApplicableReason:S(r.errors)}]}),A}let o=bVe(i,e);if(o===void 0)return je;let s=[],l=new Map,d,p=[],h=new Map,m,v=0;for(let{functionExtraction:A,constantExtraction:C}of o){if(Jb(xR.kind,t)){let R=A.description;A.errors.length===0?l.has(R)||(l.set(R,!0),s.push({description:R,name:`function_scope_${v}`,kind:xR.kind})):d||(d={description:R,name:`function_scope_${v}`,notApplicableReason:S(A.errors),kind:xR.kind})}if(Jb(IR.kind,t)){let R=C.description;C.errors.length===0?h.has(R)||(h.set(R,!0),p.push({description:R,name:`constant_scope_${v}`,kind:IR.kind})):m||(m={description:R,name:`constant_scope_${v}`,notApplicableReason:S(C.errors),kind:IR.kind})}v++}let E=[];return s.length?E.push({name:AR,description:vo(f.Extract_function),actions:s}):e.preferences.provideRefactorNotApplicableReason&&d&&E.push({name:AR,description:vo(f.Extract_function),actions:[d]}),p.length?E.push({name:AR,description:vo(f.Extract_constant),actions:p}):e.preferences.provideRefactorNotApplicableReason&&m&&E.push({name:AR,description:vo(f.Extract_constant),actions:[m]}),E.length?E:je;function S(A){let C=A[0].messageText;return typeof C!="string"&&(C=C.messageText),C}}function x1e(e,t){let i=Nce(e.file,NI(e)).targetRange,o=/^function_scope_(\d+)$/.exec(t);if(o){let l=+o[1];return x.assert(isFinite(l),"Expected to parse a finite number from the function scope index"),vVe(i,e,l)}let s=/^constant_scope_(\d+)$/.exec(t);if(s){let l=+s[1];return x.assert(isFinite(l),"Expected to parse a finite number from the constant scope index"),yVe(i,e,l)}x.fail("Unrecognized action name")}function Nce(e,t,r=!0){let{length:i}=t;if(i===0&&!r)return{errors:[Rc(e,t.start,i,$c.cannotExtractEmpty)]};let o=i===0&&r,s=Fse(e,t.start),l=v3(e,Al(t)),d=s&&l&&r?_Ve(s,l,e):t,p=o?BVe(s):Kk(s,e,d),h=o?p:Kk(l,e,d),m=0,v;if(!p||!h)return{errors:[Rc(e,t.start,i,$c.cannotExtractRange)]};if(p.flags&16777216)return{errors:[Rc(e,t.start,i,$c.cannotExtractJSDoc)]};if(p.parent!==h.parent)return{errors:[Rc(e,t.start,i,$c.cannotExtractRange)]};if(p!==h){if(!D1e(p.parent))return{errors:[Rc(e,t.start,i,$c.cannotExtractRange)]};let G=[];for(let U of p.parent.statements){if(U===p||G.length){let K=L(U);if(K)return{errors:K};G.push(U)}if(U===h)break}return G.length?{targetRange:{range:G,facts:m,thisNode:v}}:{errors:[Rc(e,t.start,i,$c.cannotExtractRange)]}}if(Kf(p)&&!p.expression)return{errors:[Rc(e,t.start,i,$c.cannotExtractRange)]};let E=A(p),S=C(E)||L(E);if(S)return{errors:S};return{targetRange:{range:hVe(E),facts:m,thisNode:v}};function A(G){if(Kf(G)){if(G.expression)return G.expression}else if(cl(G)||yc(G)){let U=cl(G)?G.declarationList.declarations:G.declarations,K=0,F;for(let oe of U)oe.initializer&&(K++,F=oe.initializer);if(K===1)return F}else if(yi(G)&&G.initializer)return G.initializer;return G}function C(G){if(Me(Cc(G)?G.expression:G))return[vr(G,$c.cannotExtractIdentifier)]}function R(G,U){let K=G;for(;K!==U;){if(K.kind===172){zo(K)&&(m|=32);break}else if(K.kind===169){cp(K).kind===176&&(m|=32);break}else K.kind===174&&zo(K)&&(m|=32);K=K.parent}}function L(G){let U;if((de=>{de[de.None=0]="None",de[de.Break=1]="Break",de[de.Continue=2]="Continue",de[de.Return=4]="Return"})(U||(U={})),x.assert(G.pos<=G.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),x.assert(!ym(G.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Di(G)&&!(bh(G)&&R1e(G))&&!Oce(G))return[vr(G,$c.statementOrExpressionExpected)];if(G.flags&33554432)return[vr(G,$c.cannotExtractAmbientBlock)];let K=Oc(G);K&&R(G,K);let F,oe=4,W;if($(G),m&8){let de=lu(G,!1,!1);(de.kind===262||de.kind===174&&de.parent.kind===210||de.kind===218)&&(m|=16)}return F;function $(de){if(F)return!0;if(bd(de)){let q=de.kind===260?de.parent.parent:de;if(Wr(q,32))return(F||(F=[])).push(vr(de,$c.cannotExtractExportedEntity)),!0}switch(de.kind){case 272:return(F||(F=[])).push(vr(de,$c.cannotExtractImport)),!0;case 277:return(F||(F=[])).push(vr(de,$c.cannotExtractExportedEntity)),!0;case 108:if(de.parent.kind===213){let q=Oc(de);if(q===void 0||q.pos<t.start||q.end>=t.start+t.length)return(F||(F=[])).push(vr(de,$c.cannotExtractSuper)),!0}else m|=8,v=de;break;case 219:Ao(de,function q(H){if(mR(H))m|=8,v=de;else{if(Kr(H)||Lo(H)&&!hs(H))return!1;Ao(H,q)}});case 263:case 262:Li(de.parent)&&de.parent.externalModuleIndicator===void 0&&(F||(F=[])).push(vr(de,$c.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let fe=oe;switch(de.kind){case 245:oe&=-5;break;case 258:oe=0;break;case 241:de.parent&&de.parent.kind===258&&de.parent.finallyBlock===de&&(oe=4);break;case 297:case 296:oe|=1;break;default:Xv(de,!1)&&(oe|=3);break}switch(de.kind){case 197:case 110:m|=8,v=de;break;case 256:{let q=de.label;(W||(W=[])).push(q.escapedText),Ao(de,$),W.pop();break}case 252:case 251:{let q=de.label;q?To(W,q.escapedText)||(F||(F=[])).push(vr(de,$c.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):oe&(de.kind===252?1:2)||(F||(F=[])).push(vr(de,$c.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:m|=4;break;case 229:m|=2;break;case 253:oe&4?m|=1:(F||(F=[])).push(vr(de,$c.cannotExtractRangeContainingConditionalReturnStatement));break;default:Ao(de,$);break}oe=fe}}}function _Ve(e,t,r){let i=e.getStart(r),o=t.getEnd();return r.text.charCodeAt(o)===59&&o++,{start:i,length:o-i}}function hVe(e){if(Di(e))return[e];if(bh(e))return Cc(e.parent)?[e.parent]:e;if(Oce(e))return e}function Pce(e){return hs(e)?t9(e.body):_s(e)||Li(e)||t_(e)||Kr(e)}function gVe(e){let t=hv(e.range)?Sa(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=Oc(t);if(i){let o=Rn(t,_s);return o?[o,i]:[i]}}let r=[];for(;;)if(t=t.parent,t.kind===169&&(t=Rn(t,i=>_s(i)).parent),Pce(t)&&(r.push(t),t.kind===312))return r}function vVe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,functionErrorsPerScope:l,exposedVariableDeclarations:d}}=Mce(e,t);return x.assert(!l[r].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),xVe(o,i[r],s[r],d,e,t)}function yVe(e,t,r){let{scopes:i,readsAndWrites:{target:o,usagesPerScope:s,constantErrorsPerScope:l,exposedVariableDeclarations:d}}=Mce(e,t);x.assert(!l[r].length,"The extraction went missing? How?"),x.assert(d.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let p=lt(o)?o:o.statements[0].expression;return RVe(p,i[r],s[r],e.facts,t)}function bVe(e,t){let{scopes:r,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:o}}=Mce(e,t);return r.map((l,d)=>{let p=EVe(l),h=SVe(l),m=_s(l)?TVe(l):Kr(l)?AVe(l):IVe(l),v,E;return m===1?(v=xh(vo(f.Extract_to_0_in_1_scope),[p,"global"]),E=xh(vo(f.Extract_to_0_in_1_scope),[h,"global"])):m===0?(v=xh(vo(f.Extract_to_0_in_1_scope),[p,"module"]),E=xh(vo(f.Extract_to_0_in_1_scope),[h,"module"])):(v=xh(vo(f.Extract_to_0_in_1),[p,m]),E=xh(vo(f.Extract_to_0_in_1),[h,m])),d===0&&!Kr(l)&&(E=xh(vo(f.Extract_to_0_in_enclosing_scope),[h])),{functionExtraction:{description:v,errors:i[d]},constantExtraction:{description:E,errors:o[d]}}})}function Mce(e,t){let{file:r}=t,i=gVe(e),o=FVe(e,r),s=zVe(e,i,o,r,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:s}}function EVe(e){return _s(e)?"inner function":Kr(e)?"method":"function"}function SVe(e){return Kr(e)?"readonly field":"constant"}function TVe(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:Y3;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:x.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function AVe(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function IVe(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function xVe(e,t,{usages:r,typeParameterUsages:i,substitutions:o},s,l,d){let p=d.program.getTypeChecker(),h=Wa(d.program.getCompilerOptions()),m=ud.createImportAdder(d.file,d.program,d.preferences,d.host),v=t.getSourceFile(),E=dT(Kr(t)?"newMethod":"newFunction",v),S=Jn(t),A=P.createIdentifier(E),C,R=[],L=[],G;r.forEach((be,Te)=>{let De;if(!S){let he=p.getTypeOfSymbolAtLocation(be.symbol,be.node);he=p.getBaseTypeOfLiteralType(he),De=ud.typeToAutoImportableTypeNode(p,m,he,t,h,1)}let ft=P.createParameterDeclaration(void 0,void 0,Te,void 0,De);R.push(ft),be.usage===2&&(G||(G=[])).push(be),L.push(P.createIdentifier(Te))});let K=bo(i.values(),be=>({type:be,declaration:CVe(be,d.startPosition)})).sort(NVe),F=K.length===0?void 0:Fi(K,({declaration:be})=>be),oe=F!==void 0?F.map(be=>P.createTypeReferenceNode(be.name,void 0)):void 0;if(lt(e)&&!S){let be=p.getContextualType(e);C=p.typeToTypeNode(be,t,1)}let{body:W,returnValueProperty:$}=MVe(e,s,G,o,!!(l.facts&1));qu(W);let de,fe=!!(l.facts&16);if(Kr(t)){let be=S?[]:[P.createModifier(123)];l.facts&32&&be.push(P.createModifier(126)),l.facts&4&&be.push(P.createModifier(134)),de=P.createMethodDeclaration(be.length?be:void 0,l.facts&2?P.createToken(42):void 0,A,void 0,F,R,C,W)}else fe&&R.unshift(P.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(p.getTypeAtLocation(l.thisNode),t,1),void 0)),de=P.createFunctionDeclaration(l.facts&4?[P.createToken(134)]:void 0,l.facts&2?P.createToken(42):void 0,A,F,R,C,W);let q=er.ChangeTracker.fromContext(d),H=(hv(l.range)?Da(l.range):l.range).end,ee=OVe(H,t);ee?q.insertNodeBefore(d.file,ee,de,!0):q.insertNodeAtEndOfScope(d.file,t,de),m.writeFixes(q);let le=[],Ee=PVe(t,l,E);fe&&L.unshift(P.createIdentifier("this"));let ce=P.createCallExpression(fe?P.createPropertyAccessExpression(Ee,"call"):Ee,oe,L);if(l.facts&2&&(ce=P.createYieldExpression(P.createToken(42),ce)),l.facts&4&&(ce=P.createAwaitExpression(ce)),kce(e)&&(ce=P.createJsxExpression(void 0,ce)),s.length&&!G)if(x.assert(!$,"Expected no returnValueProperty"),x.assert(!(l.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),s.length===1){let be=s[0];le.push(P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(Fs(be.name),void 0,Fs(be.type),ce)],be.parent.flags)))}else{let be=[],Te=[],De=s[0].parent.flags,ft=!1;for(let Le of s){be.push(P.createBindingElement(void 0,void 0,Fs(Le.name)));let Ke=p.typeToTypeNode(p.getBaseTypeOfLiteralType(p.getTypeAtLocation(Le)),t,1);Te.push(P.createPropertySignature(void 0,Le.symbol.name,void 0,Ke)),ft=ft||Le.type!==void 0,De=De&Le.parent.flags}let he=ft?P.createTypeLiteralNode(Te):void 0;he&&$n(he,1),le.push(P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(P.createObjectBindingPattern(be),void 0,he,ce)],De)))}else if(s.length||G){if(s.length)for(let Te of s){let De=Te.parent.flags;De&2&&(De=De&-3|1),le.push(P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(Te.symbol.name,void 0,_e(Te.type))],De)))}$&&le.push(P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration($,void 0,_e(C))],1)));let be=Lce(s,G);$&&be.unshift(P.createShorthandPropertyAssignment($)),be.length===1?(x.assert(!$,"Shouldn't have returnValueProperty here"),le.push(P.createExpressionStatement(P.createAssignment(be[0].name,ce))),l.facts&1&&le.push(P.createReturnStatement())):(le.push(P.createExpressionStatement(P.createAssignment(P.createObjectLiteralExpression(be),ce))),$&&le.push(P.createReturnStatement(P.createIdentifier($))))}else l.facts&1?le.push(P.createReturnStatement(ce)):hv(l.range)?le.push(P.createExpressionStatement(ce)):le.push(ce);hv(l.range)?q.replaceNodeRangeWithNodes(d.file,Sa(l.range),Da(l.range),le):q.replaceNodeWithNodes(d.file,l.range,le);let Z=q.getChanges(),Ae=(hv(l.range)?Sa(l.range):l.range).getSourceFile().fileName,Oe=$k(Z,Ae,E,!1);return{renameFilename:Ae,renameLocation:Oe,edits:Z};function _e(be){if(be===void 0)return;let Te=Fs(be),De=Te;for(;VS(De);)De=De.type;return dy(De)&&Dr(De.types,ft=>ft.kind===157)?Te:P.createUnionTypeNode([Te,P.createKeywordTypeNode(157)])}}function RVe(e,t,{substitutions:r},i,o){let s=o.program.getTypeChecker(),l=t.getSourceFile(),d=Er(e)&&!Kr(t)&&!s.resolveName(e.name.text,e,111551,!1)&&!Ci(e.name)&&!vb(e.name)?e.name.text:dT(Kr(t)?"newProperty":"newLocal",l),p=Jn(t),h=p||!s.isContextSensitive(e)?void 0:s.typeToTypeNode(s.getContextualType(e),t,1),m=LVe(Ka(e),r);({variableType:h,initializer:m}=C(h,m)),qu(m);let v=er.ChangeTracker.fromContext(o);if(Kr(t)){x.assert(!p,"Cannot extract to a JS class");let R=[];R.push(P.createModifier(123)),i&32&&R.push(P.createModifier(126)),R.push(P.createModifier(148));let L=P.createPropertyDeclaration(R,d,void 0,h,m),G=P.createPropertyAccessExpression(i&32?P.createIdentifier(t.name.getText()):P.createThis(),P.createIdentifier(d));kce(e)&&(G=P.createJsxExpression(void 0,G));let U=e.pos,K=wVe(U,t);v.insertNodeBefore(o.file,K,L,!0),v.replaceNode(o.file,e,G)}else{let R=P.createVariableDeclaration(d,void 0,h,m),L=DVe(e,t);if(L){v.insertNodeBefore(o.file,L,R);let G=P.createIdentifier(d);v.replaceNode(o.file,e,G)}else if(e.parent.kind===244&&t===Rn(e,Pce)){let G=P.createVariableStatement(void 0,P.createVariableDeclarationList([R],2));v.replaceNode(o.file,e.parent,G)}else{let G=P.createVariableStatement(void 0,P.createVariableDeclarationList([R],2)),U=WVe(e,t);if(U.pos===0?v.insertNodeAtTopOfFile(o.file,G,!1):v.insertNodeBefore(o.file,U,G,!1),e.parent.kind===244)v.delete(o.file,e.parent);else{let K=P.createIdentifier(d);kce(e)&&(K=P.createJsxExpression(void 0,K)),v.replaceNode(o.file,e,K)}}}let E=v.getChanges(),S=e.getSourceFile().fileName,A=$k(E,S,d,!0);return{renameFilename:S,renameLocation:A,edits:E};function C(R,L){if(R===void 0)return{variableType:R,initializer:L};if(!us(L)&&!hs(L)||L.typeParameters)return{variableType:R,initializer:L};let G=s.getTypeAtLocation(e),U=x_(s.getSignaturesOfType(G,0));if(!U)return{variableType:R,initializer:L};if(U.getTypeParameters())return{variableType:R,initializer:L};let K=[],F=!1;for(let oe of L.parameters)if(oe.type)K.push(oe);else{let W=s.getTypeAtLocation(oe);W===s.getAnyType()&&(F=!0),K.push(P.updateParameterDeclaration(oe,oe.modifiers,oe.dotDotDotToken,oe.name,oe.questionToken,oe.type||s.typeToTypeNode(W,t,1),oe.initializer))}if(F)return{variableType:R,initializer:L};if(R=void 0,hs(L))L=P.updateArrowFunction(L,Yf(e)?kE(e):void 0,L.typeParameters,K,L.type||s.typeToTypeNode(U.getReturnType(),t,1),L.equalsGreaterThanToken,L.body);else{if(U&&U.thisParameter){let oe=Ac(K);if(!oe||Me(oe.name)&&oe.name.escapedText!=="this"){let W=s.getTypeOfSymbolAtLocation(U.thisParameter,e);K.splice(0,0,P.createParameterDeclaration(void 0,void 0,"this",void 0,s.typeToTypeNode(W,t,1)))}}L=P.updateFunctionExpression(L,Yf(e)?kE(e):void 0,L.asteriskToken,L.name,L.typeParameters,K,L.type||s.typeToTypeNode(U.getReturnType(),t,1),L.body)}return{variableType:R,initializer:L}}}function DVe(e,t){let r;for(;e!==void 0&&e!==t;){if(yi(e)&&e.initializer===r&&yc(e.parent)&&e.parent.declarations.length>1)return e;r=e,e=e.parent}}function CVe(e,t){let r,i=e.symbol;if(i&&i.declarations)for(let o of i.declarations)(r===void 0||o.pos<r.pos)&&o.pos<t&&(r=o);return r}function NVe({type:e,declaration:t},{type:r,declaration:i}){return jZ(t,i,"pos",Ms)||gd(e.symbol?e.symbol.getName():"",r.symbol?r.symbol.getName():"")||Ms(e.id,r.id)}function PVe(e,t,r){let i=P.createIdentifier(r);if(Kr(e)){let o=t.facts&32?P.createIdentifier(e.name.text):P.createThis();return P.createPropertyAccessExpression(o,i)}else return i}function MVe(e,t,r,i,o){let s=r!==void 0||t.length>0;if(Do(e)&&!s&&i.size===0)return{body:P.createBlock(e.statements,!0),returnValueProperty:void 0};let l,d=!1,p=P.createNodeArray(Do(e)?e.statements.slice(0):[Di(e)?e:P.createReturnStatement(Ka(e))]);if(s||i.size){let m=Dn(p,h,Di).slice();if(s&&!o&&Di(e)){let v=Lce(t,r);v.length===1?m.push(P.createReturnStatement(v[0].name)):m.push(P.createReturnStatement(P.createObjectLiteralExpression(v)))}return{body:P.createBlock(m,!0),returnValueProperty:l}}else return{body:P.createBlock(p,!0),returnValueProperty:void 0};function h(m){if(!d&&Kf(m)&&s){let v=Lce(t,r);return m.expression&&(l||(l="__return"),v.unshift(P.createPropertyAssignment(l,He(m.expression,h,lt)))),v.length===1?P.createReturnStatement(v[0].name):P.createReturnStatement(P.createObjectLiteralExpression(v))}else{let v=d;d=d||_s(m)||Kr(m);let E=i.get(Fa(m).toString()),S=E?Fs(E):un(m,h,void 0);return d=v,S}}}function LVe(e,t){return t.size?r(e):e;function r(i){let o=t.get(Fa(i).toString());return o?Fs(o):un(i,r,void 0)}}function kVe(e){if(_s(e)){let t=e.body;if(Do(t))return t.statements}else{if(t_(e)||Li(e))return e.statements;if(Kr(e))return e.members;}return je}function OVe(e,t){return Dr(kVe(t),r=>r.pos>=e&&_s(r)&&!ll(r))}function wVe(e,t){let r=t.members;x.assert(r.length>0,"Found no members");let i,o=!0;for(let s of r){if(s.pos>e)return i||r[0];if(o&&!xo(s)){if(i!==void 0)return s;o=!1}i=s}return i===void 0?x.fail():i}function WVe(e,t){x.assert(!Kr(t));let r;for(let i=e;i!==t;i=i.parent)Pce(i)&&(r=i);for(let i=(r||e).parent;;i=i.parent){if(D1e(i)){let o;for(let s of i.statements){if(s.pos>e.pos)break;o=s}return!o&&zx(i)?(x.assert(pN(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):x.checkDefined(o,"prevStatement failed to get set")}x.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function Lce(e,t){let r=nn(e,o=>P.createShorthandPropertyAssignment(o.symbol.name)),i=nn(t,o=>P.createShorthandPropertyAssignment(o.symbol.name));return r===void 0?i:i===void 0?r:r.concat(i)}function hv(e){return oo(e)}function FVe(e,t){return hv(e.range)?{pos:Sa(e.range).getStart(t),end:Da(e.range).getEnd()}:e.range}function zVe(e,t,r,i,o,s){let l=new Map,d=[],p=[],h=[],m=[],v=[],E=new Map,S=[],A,C=hv(e.range)?e.range.length===1&&Cc(e.range[0])?e.range[0].expression:void 0:e.range,R;if(C===void 0){let ee=e.range,le=Sa(ee).getStart(),Ee=Da(ee).end;R=Rc(i,le,Ee-le,$c.expressionExpected)}else o.getTypeAtLocation(C).flags&147456&&(R=vr(C,$c.uselessConstantType));for(let ee of t){d.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),p.push(new Map),h.push([]);let le=[];R&&le.push(R),Kr(ee)&&Jn(ee)&&le.push(vr(ee,$c.cannotExtractToJSClass)),hs(ee)&&!Do(ee.body)&&le.push(vr(ee,$c.cannotExtractToExpressionArrowFunction)),m.push(le)}let L=new Map,G=hv(e.range)?P.createBlock(e.range):e.range,U=hv(e.range)?Sa(e.range):e.range,K=F(U);if(W(G),K&&!hv(e.range)&&!r_(e.range)){let ee=o.getContextualType(e.range);oe(ee)}if(l.size>0){let ee=new Map,le=0;for(let Ee=U;Ee!==void 0&&le<t.length;Ee=Ee.parent)if(Ee===t[le]&&(ee.forEach((ce,Z)=>{d[le].typeParameterUsages.set(Z,ce)}),le++),b9(Ee))for(let ce of qv(Ee)){let Z=o.getTypeAtLocation(ce);l.has(Z.id.toString())&&ee.set(Z.id.toString(),Z)}x.assert(le===t.length,"Should have iterated all scopes")}if(v.length){let ee=y9(t[0],t[0].parent)?t[0]:O_(t[0]);Ao(ee,fe)}for(let ee=0;ee<t.length;ee++){let le=d[ee];if(ee>0&&(le.usages.size>0||le.typeParameterUsages.size>0)){let Z=hv(e.range)?e.range[0]:e.range;m[ee].push(vr(Z,$c.cannotAccessVariablesFromNestedScopes))}e.facts&16&&Kr(t[ee])&&h[ee].push(vr(e.thisNode,$c.cannotExtractFunctionsContainingThisToMethod));let Ee=!1,ce;if(d[ee].usages.forEach(Z=>{Z.usage===2&&(Ee=!0,Z.symbol.flags&106500&&Z.symbol.valueDeclaration&&zu(Z.symbol.valueDeclaration,8)&&(ce=Z.symbol.valueDeclaration))}),x.assert(hv(e.range)||S.length===0,"No variable declarations expected if something was extracted"),Ee&&!hv(e.range)){let Z=vr(e.range,$c.cannotWriteInExpression);h[ee].push(Z),m[ee].push(Z)}else if(ce&&ee>0){let Z=vr(ce,$c.cannotExtractReadonlyPropertyInitializerOutsideConstructor);h[ee].push(Z),m[ee].push(Z)}else if(A){let Z=vr(A,$c.cannotExtractExportedEntity);h[ee].push(Z),m[ee].push(Z)}}return{target:G,usagesPerScope:d,functionErrorsPerScope:h,constantErrorsPerScope:m,exposedVariableDeclarations:S};function F(ee){return!!Rn(ee,le=>b9(le)&&qv(le).length!==0)}function oe(ee){let le=o.getSymbolWalker(()=>(s.throwIfCancellationRequested(),!0)),{visitedTypes:Ee}=le.walkType(ee);for(let ce of Ee)ce.isTypeParameter()&&l.set(ce.id.toString(),ce)}function W(ee,le=1){if(K){let Ee=o.getTypeAtLocation(ee);oe(Ee)}if(bd(ee)&&ee.symbol&&v.push(ee),lc(ee))W(ee.left,2),W(ee.right);else if(Zee(ee))W(ee.operand,2);else if(Er(ee)||Rs(ee))Ao(ee,W);else if(Me(ee)){if(!ee.parent||$d(ee.parent)&&ee!==ee.parent.left||Er(ee.parent)&&ee!==ee.parent.expression)return;$(ee,le,yh(ee))}else Ao(ee,W)}function $(ee,le,Ee){let ce=de(ee,le,Ee);if(ce)for(let Z=0;Z<t.length;Z++){let pe=p[Z].get(ce);pe&&d[Z].substitutions.set(Fa(ee).toString(),pe)}}function de(ee,le,Ee){let ce=q(ee);if(!ce)return;let Z=na(ce).toString(),pe=L.get(Z);if(pe&&pe>=le)return Z;if(L.set(Z,le),pe){for(let _e of d)_e.usages.get(ee.text)&&_e.usages.set(ee.text,{usage:le,symbol:ce,node:ee});return Z}let Ae=ce.getDeclarations(),Oe=Ae&&Dr(Ae,_e=>_e.getSourceFile()===i);if(Oe&&!zk(r,Oe.getStart(),Oe.end)){if(e.facts&2&&le===2){let _e=vr(ee,$c.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let be of h)be.push(_e);for(let be of m)be.push(_e)}for(let _e=0;_e<t.length;_e++){let be=t[_e];if(o.resolveName(ce.name,be,ce.flags,!1)!==ce&&!p[_e].has(Z)){let De=H(ce.exportSymbol||ce,be,Ee);if(De)p[_e].set(Z,De);else if(Ee){if(!(ce.flags&262144)){let ft=vr(ee,$c.typeWillNotBeVisibleInTheNewScope);h[_e].push(ft),m[_e].push(ft)}}else d[_e].usages.set(ee.text,{usage:le,symbol:ce,node:ee})}}return Z}}function fe(ee){if(ee===e.range||hv(e.range)&&e.range.includes(ee))return;let le=Me(ee)?q(ee):o.getSymbolAtLocation(ee);if(le){let Ee=Dr(v,ce=>ce.symbol===le);if(Ee)if(yi(Ee)){let ce=Ee.symbol.id.toString();E.has(ce)||(S.push(Ee),E.set(ce,!0))}else A=A||Ee}Ao(ee,fe)}function q(ee){return ee.parent&&xu(ee.parent)&&ee.parent.name===ee?o.getShorthandAssignmentValueSymbol(ee.parent):o.getSymbolAtLocation(ee)}function H(ee,le,Ee){if(!ee)return;let ce=ee.getDeclarations();if(ce&&ce.some(pe=>pe.parent===le))return P.createIdentifier(ee.name);let Z=H(ee.parent,le,Ee);if(Z!==void 0)return Ee?P.createQualifiedName(Z,P.createIdentifier(ee.name)):P.createPropertyAccessExpression(Z,ee.name)}}function BVe(e){return Rn(e,t=>t.parent&&R1e(t)&&!Zn(t.parent))}function R1e(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function D1e(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function kce(e){return Oce(e)||(Ch(e)||KS(e)||c0(e))&&(Ch(e.parent)||c0(e.parent))}function Oce(e){return ca(e)&&e.parent&&r_(e.parent)}var AR,IR,xR,$c,wce,GVe=pt({"src/services/refactors/extractSymbol.ts"(){"use strict";Hr(),q_(),AR="Extract Symbol",IR={name:"Extract Constant",description:vo(f.Extract_constant),kind:"refactor.extract.constant"},xR={name:"Extract Function",description:vo(f.Extract_function),kind:"refactor.extract.function"},Ph(AR,{kinds:[IR.kind,xR.kind],getEditsForAction:x1e,getAvailableActions:I1e}),(e=>{function t(r){return{message:r,code:0,category:3,key:r}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})($c||($c={})),wce=(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))(wce||{})}}),C1e={};Ra(C1e,{Messages:()=>$c,RangeFacts:()=>wce,getRangeToExtract:()=>Nce,getRefactorActionsToExtractSymbol:()=>I1e,getRefactorEditsToExtractSymbol:()=>x1e});var VVe=pt({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";GVe()}}),vz,PK,MK,jVe=pt({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";Hr(),q_(),vz="Generate 'get' and 'set' accessors",PK=vo(f.Generate_get_and_set_accessors),MK={name:vz,description:PK,kind:"refactor.rewrite.property.generateAccessors"},Ph(vz,{kinds:[MK.kind],getEditsForAction:function(t,r){if(!t.endPosition)return;let i=ud.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);x.assert(i&&!ug(i),"Expected applicable refactor info");let o=ud.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,r);if(!o)return;let s=t.file.fileName,l=i.renameAccessor?i.accessorName:i.fieldName,p=(Me(l)?0:-1)+$k(o,s,l.text,ao(i.declaration));return{renameFilename:s,renameLocation:p,edits:o}},getAvailableActions(e){if(!e.endPosition)return je;let t=ud.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:vz,description:PK,actions:[{...MK,notApplicableReason:t.error}]}]:je:[{name:vz,description:PK,actions:[MK]}]:je}})}}),UVe={},HVe=pt({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";jVe()}});function qVe(e){let t=N1e(e);if(t&&!ug(t))return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,i=>KVe(e.file,i,t.declaration,t.returnTypeNode))}}function JVe(e){let t=N1e(e);return t?ug(t)?e.preferences.provideRefactorNotApplicableReason?[{name:yz,description:LK,actions:[{...bz,notApplicableReason:t.error}]}]:je:[{name:yz,description:LK,actions:[bz]}]:je}function KVe(e,t,r,i){let o=Ya(r,22,e),s=hs(r)&&o===void 0,l=s?Sa(r.parameters):o;l&&(s&&(t.insertNodeBefore(e,l,P.createToken(21)),t.insertNodeAfter(e,l,P.createToken(22))),t.insertNodeAt(e,l.end,i,{prefix:": "}))}function N1e(e){if(Jn(e.file)||!Jb(bz.kind,e.kind))return;let t=pu(e.file,e.startPosition),r=Rn(t,l=>Do(l)||l.parent&&hs(l.parent)&&(l.kind===39||l.parent.body===l)?"quit":XVe(l));if(!r||!r.body||r.type)return{error:vo(f.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),o=YVe(i,r);if(!o)return{error:vo(f.Could_not_determine_function_return_type)};let s=i.typeToTypeNode(o,r,1);if(s)return{declaration:r,returnTypeNode:s}}function XVe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function YVe(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Fi(i,o=>o.getReturnType()))}let r=e.getSignatureFromDeclaration(t);if(r)return e.getReturnTypeOfSignature(r)}var yz,LK,bz,$Ve=pt({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";Hr(),q_(),yz="Infer function return type",LK=vo(f.Infer_function_return_type),bz={name:yz,description:LK,kind:"refactor.rewrite.function.returnType"},Ph(yz,{kinds:[bz.kind],getEditsForAction:qVe,getAvailableActions:JVe})}}),QVe={},ZVe=pt({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";$Ve()}}),MI={};Ra(MI,{addExportToChanges:()=>pce,addExports:()=>lce,addNewFileToTsconfig:()=>rce,addOrRemoveBracesToArrowFunction:()=>f9e,containsJsx:()=>mce,convertArrowFunctionOrFunctionExpression:()=>I9e,convertParamsToDestructuredObject:()=>U9e,convertStringOrTemplateLiteral:()=>eVe,convertToOptionalChainExpression:()=>fVe,createNewFileName:()=>fce,createOldFileImportsFromTargetFile:()=>sce,deleteMovedStatements:()=>cz,deleteUnusedImports:()=>cce,deleteUnusedOldImports:()=>ice,doChangeNamedToNamespaceOrDefault:()=>FIe,extractSymbol:()=>C1e,filterImport:()=>uO,forEachImportInStatement:()=>dO,generateGetAccessorAndSetAccessor:()=>UVe,getApplicableRefactors:()=>uGe,getEditsForRefactor:()=>pGe,getStatementsToMove:()=>pO,getTopLevelDeclarationStatement:()=>vK,getUsageInfo:()=>uz,inferFunctionReturnType:()=>QVe,isRefactorErrorInfo:()=>ug,isTopLevelDeclaration:()=>pz,makeImportOrRequire:()=>dz,moduleSpecifierFromImport:()=>cO,nameOfTopLevelDeclaration:()=>uce,refactorKindBeginsWith:()=>Jb,registerRefactor:()=>Ph,updateImportsInOtherFiles:()=>oce});var q_=pt({"src/services/_namespaces/ts.refactor.ts"(){"use strict";MIe(),yGe(),AGe(),MGe(),LGe(),OGe(),zGe(),a9e(),m9e(),x9e(),H9e(),tVe(),mVe(),VVe(),HVe(),ZVe()}});function P1e(e,t,r,i){let o=Wce(e,t,r,i);x.assert(o.spans.length%3===0);let s=o.spans,l=[];for(let d=0;d<s.length;d+=3)l.push({textSpan:qc(s[d],s[d+1]),classificationType:s[d+2]});return l}function Wce(e,t,r,i){return{spans:eje(e,r,i,t),endOfLineState:0}}function eje(e,t,r,i){let o=[];return e&&t&&tje(e,t,r,(l,d,p)=>{o.push(l.getStart(t),l.getWidth(t),(d+1<<8)+p)},i),o}function tje(e,t,r,i,o){let s=e.getTypeChecker(),l=!1;function d(p){switch(p.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:o.throwIfCancellationRequested()}if(!p||!P8(r,p.pos,p.getFullWidth())||p.getFullWidth()===0)return;let h=l;if((Ch(p)||KS(p))&&(l=!0),mN(p)&&(l=!1),Me(p)&&!l&&!oje(p)&&!XC(p.escapedText)){let m=s.getSymbolAtLocation(p);if(m){m.flags&2097152&&(m=s.getAliasedSymbol(m));let v=nje(m,aT(p));if(v!==void 0){let E=0;p.parent&&(Na(p.parent)||Gce.get(p.parent.kind)===v)&&p.parent.name===p&&(E=1),v===6&&L1e(p)&&(v=9),v=rje(s,p,v);let S=m.valueDeclaration;if(S){let A=gb(S),C=Xg(S);A&256&&(E|=2),A&1024&&(E|=4),v!==0&&v!==2&&(A&8||C&2||m.getFlags()&8)&&(E|=8),(v===7||v===10)&&ije(S,t)&&(E|=32),e.isSourceFileDefaultLibrary(S.getSourceFile())&&(E|=16)}else m.declarations&&m.declarations.some(A=>e.isSourceFileDefaultLibrary(A.getSourceFile()))&&(E|=16);i(p,v,E)}}}Ao(p,d),l=h}d(t)}function nje(e,t){let r=e.getFlags();if(r&32)return 0;if(r&384)return 1;if(r&524288)return 5;if(r&64){if(t&2)return 2}else if(r&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Na(i)&&(i=M1e(i)),i&&Gce.get(i.kind)}function rje(e,t,r){if(r===7||r===9||r===6){let i=e.getTypeAtLocation(t);if(i){let o=s=>s(i)||i.isUnion()&&i.types.some(s);if(r!==6&&o(s=>s.getConstructSignatures().length>0))return 0;if(o(s=>s.getCallSignatures().length>0)&&!o(s=>s.getProperties().length>0)||aje(t))return r===9?11:10}}return r}function ije(e,t){return Na(e)&&(e=M1e(e)),yi(e)?(!Li(e.parent.parent.parent)||u0(e.parent))&&e.getSourceFile()===t:Ql(e)?!Li(e.parent)&&e.getSourceFile()===t:!1}function M1e(e){for(;;)if(Na(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function oje(e){let t=e.parent;return t&&(G_(t)||Iu(t)||my(t))}function aje(e){for(;L1e(e);)e=e.parent;return Bo(e.parent)&&e.parent.expression===e}function L1e(e){return $d(e.parent)&&e.parent.right===e||Er(e.parent)&&e.parent.name===e}var Fce,zce,Bce,Gce,k1e=pt({"src/services/classifier2020.ts"(){"use strict";Hr(),Fce=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(Fce||{}),zce=(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))(zce||{}),Bce=(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))(Bce||{}),Gce=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function O1e(e,t,r,i){let o=jM(e)?new FK(e,t,r):e===80?new BK(80,t,r):e===81?new GK(81,t,r):new Hce(e,t,r);return o.parent=i,o.flags=i.flags&101441536,o}function sje(e,t){if(!jM(e.kind))return je;let r=[];if(J8(e))return e.forEachChild(l=>{r.push(l)}),r;Id.setText((t||e.getSourceFile()).text);let i=e.pos,o=l=>{Ez(r,i,l.pos,e),r.push(l),i=l.end},s=l=>{Ez(r,i,l.pos,e),r.push(lje(l,e)),i=l.end};return an(e.jsDoc,o),i=e.pos,e.forEachChild(o,s),Ez(r,i,e.end,e),Id.setText(void 0),r}function Ez(e,t,r,i){for(Id.resetTokenState(t);t<r;){let o=Id.scan(),s=Id.getTokenEnd();if(s<=r){if(o===80){if(fre(i))continue;x.fail(`Did not expect ${x.formatSyntaxKind(i.kind)} to have an Identifier in its trivia`)}e.push(O1e(o,t,s,i))}if(t=s,o===1)break}}function lje(e,t){let r=O1e(358,e.pos,e.end,t);r._children=[];let i=e.pos;for(let o of e)Ez(r._children,i,o.pos,t),r._children.push(o),i=o.end;return Ez(r._children,i,e.end,t),r}function w1e(e){return Eb(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function kK(e,t){if(!e)return je;let r=Xb.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(w1e))){let i=new Set;for(let o of e){let s=W1e(t,o,l=>{var d;if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualJsDocTags(o,t):((d=l.declarations)==null?void 0:d.length)===1?l.getJsDocTags():void 0});s&&(r=[...s,...r])}}return r}function Sz(e,t){if(!e)return je;let r=Xb.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(w1e))){let i=new Set;for(let o of e){let s=W1e(t,o,l=>{if(!i.has(l))return i.add(l),o.kind===177||o.kind===178?l.getContextualDocumentationComment(o,t):l.getDocumentationComment(t)});s&&(r=r.length===0?s.slice():s.concat(yR(),r))}}return r}function W1e(e,t,r){var i;let o=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!o)return;let s=jl(t);return ml(EC(o),l=>{let d=e.getTypeAtLocation(l),p=s&&d.symbol?e.getTypeOfSymbol(d.symbol):d,h=e.getPropertyOfType(p,t.symbol.name);return h?r(h):void 0})}function cje(){return{getNodeConstructor:()=>FK,getTokenConstructor:()=>Hce,getIdentifierConstructor:()=>BK,getPrivateIdentifierConstructor:()=>GK,getSourceFileConstructor:()=>j1e,getSymbolConstructor:()=>B1e,getTypeConstructor:()=>G1e,getSignatureConstructor:()=>V1e,getSourceMapSourceConstructor:()=>U1e}}function vO(e){let t=!0;for(let i in e)if(rs(e,i)&&!F1e(i)){t=!1;break}if(t)return e;let r={};for(let i in e)if(rs(e,i)){let o=F1e(i)?i:i.charAt(0).toLowerCase()+i.substr(1);r[o]=e[i]}return r}function F1e(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function yO(e){return e?nn(e,t=>t.text).join(""):""}function Tz(){return{target:1,jsx:1}}function OK(){return ud.getSupportedErrorCodes()}function z1e(e,t,r){e.version=r,e.scriptSnapshot=t}function Az(e,t,r,i,o,s){let l=B2(e,hR(t),r,o,s);return z1e(l,t,i),l}function wK(e,t,r,i,o){if(i&&r!==e.version){let l,d=i.span.start!==0?e.text.substr(0,i.span.start):"",p=Al(i.span)!==e.text.length?e.text.substr(Al(i.span)):"";if(i.newLength===0)l=d&&p?d+p:d||p;else{let m=t.getText(i.span.start,i.span.start+i.newLength);l=d&&p?d+m+p:d?d+m:m+p}let h=Kj(e,l,i,o);return z1e(h,t,r),h.nameTable=void 0,e!==h&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),h}let s={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return Az(e.fileName,t,s,r,!0,e.scriptKind)}function Vce(e,t=Ile(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),r){var i;let o;r===void 0?o=0:typeof r=="boolean"?o=r?2:0:o=r;let s=new H1e(e),l,d,p=0,h=e.getCancellationToken?new J1e(e.getCancellationToken()):q1e,m=e.getCurrentDirectory();Hne((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function v(M){e.log&&e.log(M)}let E=yx(e),S=od(E),A=zle({useCaseSensitiveFileNames:()=>E,getCurrentDirectory:()=>m,getProgram:G,fileExists:Wo(e,e.fileExists),readFile:Wo(e,e.readFile),getDocumentPositionMapper:Wo(e,e.getDocumentPositionMapper),getSourceFileLike:Wo(e,e.getSourceFileLike),log:v});function C(M){let te=l.getSourceFile(M);if(!te){let j=new Error(`Could not find source file: '${M}'.`);throw j.ProgramFiles=l.getSourceFiles().map(se=>se.fileName),j}return te}function R(){e.updateFromProject&&!e.updateFromProjectInProgress?e.updateFromProject():L()}function L(){var M,te,j;if(x.assert(o!==2),e.getProjectVersion){let _o=e.getProjectVersion();if(_o){if(d===_o&&!((M=e.hasChangedAutomaticTypeDirectiveNames)!=null&&M.call(e)))return;d=_o}}let se=e.getTypeRootsVersion?e.getTypeRootsVersion():0;p!==se&&(v("TypeRoots version has changed; provide new program"),l=void 0,p=se);let Pe=e.getScriptFileNames().slice(),Ie=e.getCompilationSettings()||Tz(),gt=e.hasInvalidatedResolutions||_m,bt=Wo(e,e.hasInvalidatedLibResolutions)||_m,Ot=Wo(e,e.hasChangedAutomaticTypeDirectiveNames),dn=(te=e.getProjectReferences)==null?void 0:te.call(e),An,Cn={getSourceFile:fs,getSourceFileByPath:Dl,getCancellationToken:()=>h,getCanonicalFileName:S,useCaseSensitiveFileNames:()=>E,getNewLine:()=>rv(Ie),getDefaultLibFileName:_o=>e.getDefaultLibFileName(_o),writeFile:Ca,getCurrentDirectory:()=>m,fileExists:_o=>e.fileExists(_o),readFile:_o=>e.readFile&&e.readFile(_o),getSymlinkCache:Wo(e,e.getSymlinkCache),realpath:Wo(e,e.realpath),directoryExists:_o=>gm(_o,e),getDirectories:_o=>e.getDirectories?e.getDirectories(_o):[],readDirectory:(_o,Va,gs,Js,Fc)=>(x.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(_o,Va,gs,Js,Fc)),onReleaseOldSourceFile:_n,onReleaseParsedCommandLine:lo,hasInvalidatedResolutions:gt,hasInvalidatedLibResolutions:bt,hasChangedAutomaticTypeDirectiveNames:Ot,trace:Wo(e,e.trace),resolveModuleNames:Wo(e,e.resolveModuleNames),getModuleResolutionCache:Wo(e,e.getModuleResolutionCache),createHash:Wo(e,e.createHash),resolveTypeReferenceDirectives:Wo(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Wo(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Wo(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Wo(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Wo(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:ui,jsDocParsingMode:e.jsDocParsingMode},ti=Cn.getSourceFile,{getSourceFileWithCache:di}=bk(Cn,_o=>ks(_o,m,S),(..._o)=>ti.call(Cn,..._o));Cn.getSourceFile=di,(j=e.setCompilerHost)==null||j.call(e,Cn);let jn={useCaseSensitiveFileNames:E,fileExists:_o=>Cn.fileExists(_o),readFile:_o=>Cn.readFile(_o),directoryExists:_o=>Cn.directoryExists(_o),getDirectories:_o=>Cn.getDirectories(_o),realpath:Cn.realpath,readDirectory:(..._o)=>Cn.readDirectory(..._o),trace:Cn.trace,getCurrentDirectory:Cn.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ca},Ar=t.getKeyForCompilationSettings(Ie),Zi=new Set;if(kH(l,Pe,Ie,(_o,Va)=>e.getScriptVersion(Va),_o=>Cn.fileExists(_o),gt,bt,Ot,ui,dn)){Cn=void 0,An=void 0,Zi=void 0;return}l=w4({rootNames:Pe,options:Ie,host:Cn,oldProgram:l,projectReferences:dn}),Cn=void 0,An=void 0,Zi=void 0,A.clearCache(),l.getTypeChecker();return;function ui(_o){let Va=ks(_o,m,S),gs=An?.get(Va);if(gs!==void 0)return gs||void 0;let Js=e.getParsedCommandLine?e.getParsedCommandLine(_o):Mr(_o);return(An||(An=new Map)).set(Va,Js||!1),Js}function Mr(_o){let Va=fs(_o,100);if(Va)return Va.path=ks(_o,m,S),Va.resolvedPath=Va.path,Va.originalFileName=Va.fileName,H2(Va,jn,Qi(Ur(_o),m),void 0,Qi(_o,m))}function lo(_o,Va,gs){var Js;e.getParsedCommandLine?(Js=e.onReleaseParsedCommandLine)==null||Js.call(e,_o,Va,gs):Va&&_n(Va.sourceFile,gs)}function _n(_o,Va){let gs=t.getKeyForCompilationSettings(Va);t.releaseDocumentWithKey(_o.resolvedPath,gs,_o.scriptKind,_o.impliedNodeFormat)}function fs(_o,Va,gs,Js){return Dl(_o,ks(_o,m,S),Va,gs,Js)}function Dl(_o,Va,gs,Js,Fc){x.assert(Cn,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let $i=e.getScriptSnapshot(_o);if(!$i)return;let Uo=bJ(_o,e),zc=e.getScriptVersion(_o);if(!Fc){let ts=l&&l.getSourceFileByPath(Va);if(ts){if(Uo===ts.scriptKind||Zi.has(ts.resolvedPath))return t.updateDocumentWithKey(_o,Va,e,Ar,$i,zc,Uo,gs);t.releaseDocumentWithKey(ts.resolvedPath,t.getKeyForCompilationSettings(l.getCompilerOptions()),ts.scriptKind,ts.impliedNodeFormat),Zi.add(ts.resolvedPath)}}return t.acquireDocumentWithKey(_o,Va,e,Ar,$i,zc,Uo,gs)}}function G(){if(o===2){x.assert(l===void 0);return}return R(),l}function U(){var M;return(M=e.getPackageJsonAutoImportProvider)==null?void 0:M.call(e)}function K(M,te){let j=l.getTypeChecker(),se=Pe();if(!se)return!1;for(let gt of M)for(let bt of gt.references){let Ot=Ie(bt);if(x.assertIsDefined(Ot),te.has(bt)||ps.isDeclarationOfSymbol(Ot,se)){te.add(bt),bt.isDefinition=!0;let dn=P3(bt,A,Wo(e,e.fileExists));dn&&te.add(dn)}else bt.isDefinition=!1}return!0;function Pe(){for(let gt of M)for(let bt of gt.references){if(te.has(bt)){let dn=Ie(bt);return x.assertIsDefined(dn),j.getSymbolAtLocation(dn)}let Ot=P3(bt,A,Wo(e,e.fileExists));if(Ot&&te.has(Ot)){let dn=Ie(Ot);if(dn)return j.getSymbolAtLocation(dn)}}}function Ie(gt){let bt=l.getSourceFile(gt.fileName);if(!bt)return;let Ot=pu(bt,gt.textSpan.start);return ps.Core.getAdjustedNode(Ot,{use:ps.FindReferencesUse.References})}}function F(){if(l){let M=t.getKeyForCompilationSettings(l.getCompilerOptions());an(l.getSourceFiles(),te=>t.releaseDocumentWithKey(te.resolvedPath,M,te.scriptKind,te.impliedNodeFormat)),l=void 0}}function oe(){F(),e=void 0}function W(M){return R(),l.getSyntacticDiagnostics(C(M),h).slice()}function $(M){R();let te=C(M),j=l.getSemanticDiagnostics(te,h);if(!Xp(l.getCompilerOptions()))return j.slice();let se=l.getDeclarationDiagnostics(te,h);return[...j,...se]}function de(M){return R(),QJ(C(M),l,h)}function fe(){return R(),[...l.getOptionsDiagnostics(h),...l.getGlobalDiagnostics(h)]}function q(M,te,j=ef,se){let Pe={...j,includeCompletionsForModuleExports:j.includeCompletionsForModuleExports||j.includeExternalModuleExports,includeCompletionsWithInsertText:j.includeCompletionsWithInsertText||j.includeInsertTextCompletions};return R(),FI.getCompletionsAtPosition(e,l,v,C(M),te,Pe,j.triggerCharacter,j.triggerKind,h,se&&uc.getFormatContext(se,e),j.includeSymbol)}function H(M,te,j,se,Pe,Ie=ef,gt){return R(),FI.getCompletionEntryDetails(l,v,C(M),te,{name:j,source:Pe,data:gt},e,se&&uc.getFormatContext(se,e),Ie,h)}function ee(M,te,j,se,Pe=ef){return R(),FI.getCompletionEntrySymbol(l,v,C(M),te,{name:j,source:se},e,Pe)}function le(M,te){R();let j=C(M),se=pu(j,te);if(se===j)return;let Pe=l.getTypeChecker(),Ie=Ee(se),gt=fje(Ie,Pe);if(!gt||Pe.isUnknownSymbol(gt)){let Cn=ce(j,Ie,te)?Pe.getTypeAtLocation(Ie):void 0;return Cn&&{kind:"",kindModifiers:"",textSpan:eu(Ie,j),displayParts:Pe.runWithCancellationToken(h,ti=>Xk(ti,Cn,sT(Ie))),documentation:Cn.symbol?Cn.symbol.getDocumentationComment(Pe):void 0,tags:Cn.symbol?Cn.symbol.getJsDocTags(Pe):void 0}}let{symbolKind:bt,displayParts:Ot,documentation:dn,tags:An}=Pe.runWithCancellationToken(h,Cn=>gv.getSymbolDisplayPartsDocumentationAndSymbolKind(Cn,gt,j,sT(Ie),Ie));return{kind:bt,kindModifiers:gv.getSymbolModifiers(Pe,gt),textSpan:eu(Ie,j),displayParts:Ot,documentation:dn,tags:An}}function Ee(M){return o0(M.parent)&&M.pos===M.parent.pos?M.parent.expression:Ox(M.parent)&&M.pos===M.parent.pos||ex(M.parent)&&M.parent.name===M||Em(M.parent)?M.parent:M}function ce(M,te,j){switch(te.kind){case 80:return!Gq(te)&&!Vq(te)&&!Qh(te.parent);case 211:case 166:return!uv(M,j);case 110:case 197:case 108:case 202:return!0;case 236:return ex(te);default:return!1}}function Z(M,te,j,se){return R(),LR.getDefinitionAtPosition(l,C(M),te,j,se)}function pe(M,te){return R(),LR.getDefinitionAndBoundSpan(l,C(M),te)}function Ae(M,te){return R(),LR.getTypeDefinitionAtPosition(l.getTypeChecker(),C(M),te)}function Oe(M,te){return R(),ps.getImplementationsAtPosition(l,h,l.getSourceFiles(),C(M),te)}function _e(M,te,j){let se=Yo(M);x.assert(j.some(gt=>Yo(gt)===se)),R();let Pe=Fi(j,gt=>l.getSourceFile(gt)),Ie=C(M);return Z3.getDocumentHighlights(l,h,Ie,te,Pe)}function be(M,te,j,se,Pe){R();let Ie=C(M),gt=g3(pu(Ie,te));if($z.nodeIsEligibleForRename(gt))if(Me(gt)&&(n_(gt.parent)||l0(gt.parent))&&gx(gt.escapedText)){let{openingElement:bt,closingElement:Ot}=gt.parent.parent;return[bt,Ot].map(dn=>{let An=eu(dn.tagName,Ie);return{fileName:Ie.fileName,textSpan:An,...ps.toContextSpan(An,Ie,dn.parent)}})}else{let bt=Np(Ie,Pe??ef),Ot=typeof Pe=="boolean"?Pe:Pe?.providePrefixAndSuffixTextForRename;return De(gt,te,{findInStrings:j,findInComments:se,providePrefixAndSuffixTextForRename:Ot,use:ps.FindReferencesUse.Rename},(dn,An,Cn)=>ps.toRenameLocation(dn,An,Cn,Ot||!1,bt))}}function Te(M,te){return R(),De(pu(C(M),te),te,{use:ps.FindReferencesUse.References},ps.toReferenceEntry)}function De(M,te,j,se){R();let Pe=j&&j.use===ps.FindReferencesUse.Rename?l.getSourceFiles().filter(Ie=>!l.isSourceFileDefaultLibrary(Ie)):l.getSourceFiles();return ps.findReferenceOrRenameEntries(l,h,Pe,M,te,j,se)}function ft(M,te){return R(),ps.findReferencedSymbols(l,h,l.getSourceFiles(),C(M),te)}function he(M){return R(),ps.Core.getReferencesForFileName(M,l,l.getSourceFiles()).map(ps.toReferenceEntry)}function Le(M,te,j,se=!1,Pe=!1){R();let Ie=j?[C(j)]:l.getSourceFiles();return sIe(Ie,l.getTypeChecker(),h,M,te,se,Pe)}function Ke(M,te,j){R();let se=C(M),Pe=e.getCustomTransformers&&e.getCustomTransformers();return kae(l,se,!!te,h,Pe,j)}function Dt(M,te,{triggerReason:j}=ef){R();let se=C(M);return OO.getSignatureHelpItems(l,se,te,j,h)}function st(M){return s.getCurrentSourceFile(M)}function Ge(M,te,j){let se=s.getCurrentSourceFile(M),Pe=pu(se,te);if(Pe===se)return;switch(Pe.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 Ie=Pe;for(;;)if(fR(Ie)||kse(Ie))Ie=Ie.parent;else if(Uq(Ie))if(Ie.parent.parent.kind===267&&Ie.parent.parent.body===Ie.parent)Ie=Ie.parent.parent.name;else break;else break;return Gl(Ie.getStart(),Pe.getEnd())}function ot(M,te){let j=s.getCurrentSourceFile(M);return jK.spanInSourceFileAtLocation(j,te)}function Vt(M){return uIe(s.getCurrentSourceFile(M),h)}function jt(M){return pIe(s.getCurrentSourceFile(M),h)}function gn(M,te,j){return R(),(j||"original")==="2020"?P1e(l,h,C(M),te):Tle(l.getTypeChecker(),h,C(M),l.getClassifiableNames(),te)}function On(M,te,j){return R(),(j||"original")==="original"?HJ(l.getTypeChecker(),h,C(M),l.getClassifiableNames(),te):Wce(l,h,C(M),te)}function en(M,te){return Ale(h,s.getCurrentSourceFile(M),te)}function zt(M,te){return qJ(h,s.getCurrentSourceFile(M),te)}function Wt(M){let te=s.getCurrentSourceFile(M);return zY.collectElements(te,h)}let ei=new Map(Object.entries({19:20,21:22,23:24,32:30}));ei.forEach((M,te)=>ei.set(M.toString(),Number(te)));function Ki(M,te){let j=s.getCurrentSourceFile(M),se=_R(j,te),Pe=se.getStart(j)===te?ei.get(se.kind.toString()):void 0,Ie=Pe&&Ya(se.parent,Pe,j);return Ie?[eu(se,j),eu(Ie,j)].sort((gt,bt)=>gt.start-bt.start):je}function gi(M,te,j){let se=Is(),Pe=vO(j),Ie=s.getCurrentSourceFile(M);v("getIndentationAtPosition: getCurrentSourceFile: "+(Is()-se)),se=Is();let gt=uc.SmartIndenter.getIndentation(te,Ie,Pe);return v("getIndentationAtPosition: computeIndentation : "+(Is()-se)),gt}function io(M,te,j,se){let Pe=s.getCurrentSourceFile(M);return uc.formatSelection(te,j,Pe,uc.getFormatContext(vO(se),e))}function Gn(M,te){return uc.formatDocument(s.getCurrentSourceFile(M),uc.getFormatContext(vO(te),e))}function Nr(M,te,j,se){let Pe=s.getCurrentSourceFile(M),Ie=uc.getFormatContext(vO(se),e);if(!uv(Pe,te))switch(j){case"{":return uc.formatOnOpeningCurly(te,Pe,Ie);case"}":return uc.formatOnClosingCurly(te,Pe,Ie);case";":return uc.formatOnSemicolon(te,Pe,Ie);case`
`:return uc.formatOnEnter(te,Pe,Ie)}return[]}function cr(M,te,j,se,Pe,Ie=ef){R();let gt=C(M),bt=Gl(te,j),Ot=uc.getFormatContext(Pe,e);return ta(NE(se,Hg,Ms),dn=>(h.throwIfCancellationRequested(),ud.getFixes({errorCode:dn,sourceFile:gt,span:bt,program:l,host:e,cancellationToken:h,formatContext:Ot,preferences:Ie})))}function Jt(M,te,j,se=ef){R(),x.assert(M.type==="file");let Pe=C(M.fileName),Ie=uc.getFormatContext(j,e);return ud.getAllFixes({fixId:te,sourceFile:Pe,program:l,host:e,cancellationToken:h,formatContext:Ie,preferences:se})}function Ue(M,te,j=ef){R(),x.assert(M.type==="file");let se=C(M.fileName),Pe=uc.getFormatContext(te,e),Ie=M.mode??(M.skipDestructiveCodeActions?"SortAndCombine":"All");return Zf.organizeImports(se,Pe,e,l,j,Ie)}function Rt(M,te,j,se=ef){return Rle(G(),M,te,e,uc.getFormatContext(j,e),se,A)}function mn(M,te){let j=typeof M=="string"?te:M;return oo(j)?Promise.all(j.map(se=>qr(se))):qr(j)}function qr(M){let te=j=>ks(j,m,S);return x.assertEqual(M.type,"install package"),e.installPackage?e.installPackage({fileName:te(M.file),packageName:M.packageName}):Promise.reject("Host does not implement `installPackage`")}function ni(M,te,j,se){let Pe=se?uc.getFormatContext(se,e).options:void 0;return Xb.getDocCommentTemplateAtPosition(mv(e,Pe),s.getCurrentSourceFile(M),te,j)}function ki(M,te,j){if(j===60)return!1;let se=s.getCurrentSourceFile(M);if(RI(se,te))return!1;if(Gse(se,te))return j===123;if(Yq(se,te))return!1;switch(j){case 39:case 34:case 96:return!uv(se,te)}return!0}function so(M,te){let j=s.getCurrentSourceFile(M),se=ec(te,j);if(!se)return;let Pe=se.kind===32&&n_(se.parent)?se.parent.parent:ZA(se)&&Ch(se.parent)?se.parent:void 0;if(Pe&&tt(Pe))return{newText:`</${Pe.openingElement.tagName.getText(j)}>`};let Ie=se.kind===32&&fI(se.parent)?se.parent.parent:ZA(se)&&c0(se.parent)?se.parent:void 0;if(Ie&&yt(Ie))return{newText:"</>"}}function Jo(M,te){let j=s.getCurrentSourceFile(M),se=ec(te,j);if(!se||se.parent.kind===312)return;let Pe="[a-zA-Z0-9:\\-\\._$]*";if(c0(se.parent.parent)){let Ie=se.parent.parent.openingFragment,gt=se.parent.parent.closingFragment;if(X1(Ie)||X1(gt))return;let bt=Ie.getStart(j)+1,Ot=gt.getStart(j)+2;return te!==bt&&te!==Ot?void 0:{ranges:[{start:bt,length:0},{start:Ot,length:0}],wordPattern:Pe}}else{let Ie=Rn(se.parent,di=>!!(n_(di)||l0(di)));if(!Ie)return;x.assert(n_(Ie)||l0(Ie),"tag should be opening or closing element");let gt=Ie.parent.openingElement,bt=Ie.parent.closingElement,Ot=gt.tagName.getStart(j),dn=gt.tagName.end,An=bt.tagName.getStart(j),Cn=bt.tagName.end;return Ot===gt.getStart(j)||An===bt.getStart(j)||dn===gt.getEnd()||Cn===bt.getEnd()||!(Ot<=te&&te<=dn||An<=te&&te<=Cn)||gt.tagName.getText(j)!==bt.tagName.getText(j)?void 0:{ranges:[{start:Ot,length:dn-Ot},{start:An,length:Cn-An}],wordPattern:Pe}}}function ba(M,te){return{lineStarts:M.getLineStarts(),firstLine:M.getLineAndCharacterOfPosition(te.pos).line,lastLine:M.getLineAndCharacterOfPosition(te.end).line}}function ln(M,te,j){let se=s.getCurrentSourceFile(M),Pe=[],{lineStarts:Ie,firstLine:gt,lastLine:bt}=ba(se,te),Ot=j||!1,dn=Number.MAX_VALUE,An=new Map,Cn=new RegExp(/\S/),ti=b3(se,Ie[gt]),di=ti?"{/*":"//";for(let jn=gt;jn<=bt;jn++){let Ar=se.text.substring(Ie[jn],se.getLineEndOfPosition(Ie[jn])),Zi=Cn.exec(Ar);Zi&&(dn=Math.min(dn,Zi.index),An.set(jn.toString(),Zi.index),Ar.substr(Zi.index,di.length)!==di&&(Ot=j===void 0||j))}for(let jn=gt;jn<=bt;jn++){if(gt!==bt&&Ie[jn]===te.end)continue;let Ar=An.get(jn.toString());Ar!==void 0&&(ti?Pe.push(...Tn(M,{pos:Ie[jn]+dn,end:se.getLineEndOfPosition(Ie[jn])},Ot,ti)):Ot?Pe.push({newText:di,span:{length:0,start:Ie[jn]+dn}}):se.text.substr(Ie[jn]+Ar,di.length)===di&&Pe.push({newText:"",span:{length:di.length,start:Ie[jn]+Ar}}))}return Pe}function Tn(M,te,j,se){var Pe;let Ie=s.getCurrentSourceFile(M),gt=[],{text:bt}=Ie,Ot=!1,dn=j||!1,An=[],{pos:Cn}=te,ti=se!==void 0?se:b3(Ie,Cn),di=ti?"{/*":"/*",jn=ti?"*/}":"*/",Ar=ti?"\\{\\/\\*":"\\/\\*",Zi=ti?"\\*\\/\\}":"\\*\\/";for(;Cn<=te.end;){let _i=bt.substr(Cn,di.length)===di?di.length:0,ui=uv(Ie,Cn+_i);if(ui)ti&&(ui.pos--,ui.end++),An.push(ui.pos),ui.kind===3&&An.push(ui.end),Ot=!0,Cn=ui.end+1;else{let Mr=bt.substring(Cn,te.end).search(`(${Ar})|(${Zi})`);dn=j!==void 0?j:dn||!Zse(bt,Cn,Mr===-1?te.end:Cn+Mr),Cn=Mr===-1?te.end+1:Cn+Mr+jn.length}}if(dn||!Ot){((Pe=uv(Ie,te.pos))==null?void 0:Pe.kind)!==2&&Fv(An,te.pos,Ms),Fv(An,te.end,Ms);let _i=An[0];bt.substr(_i,di.length)!==di&>.push({newText:di,span:{length:0,start:_i}});for(let ui=1;ui<An.length-1;ui++)bt.substr(An[ui]-jn.length,jn.length)!==jn&>.push({newText:jn,span:{length:0,start:An[ui]}}),bt.substr(An[ui],di.length)!==di&>.push({newText:di,span:{length:0,start:An[ui]}});gt.length%2!==0&>.push({newText:jn,span:{length:0,start:An[An.length-1]}})}else for(let _i of An){let ui=_i-jn.length>0?_i-jn.length:0,Mr=bt.substr(ui,jn.length)===jn?jn.length:0;gt.push({newText:"",span:{length:di.length,start:_i-Mr}})}return gt}function ke(M,te){let j=s.getCurrentSourceFile(M),{firstLine:se,lastLine:Pe}=ba(j,te);return se===Pe&&te.pos!==te.end?Tn(M,te,!0):ln(M,te,!0)}function nt(M,te){let j=s.getCurrentSourceFile(M),se=[],{pos:Pe}=te,{end:Ie}=te;Pe===Ie&&(Ie+=b3(j,Pe)?2:1);for(let gt=Pe;gt<=Ie;gt++){let bt=uv(j,gt);if(bt){switch(bt.kind){case 2:se.push(...ln(M,{end:bt.end,pos:bt.pos+1},!1));break;case 3:se.push(...Tn(M,{end:bt.end,pos:bt.pos+1},!1))}gt=bt.end+1}}return se}function tt({openingElement:M,closingElement:te,parent:j}){return!Fb(M.tagName,te.tagName)||Ch(j)&&Fb(M.tagName,j.openingElement.tagName)&&tt(j)}function yt({closingFragment:M,parent:te}){return!!(M.flags&262144)||c0(te)&&yt(te)}function re(M,te,j){let se=s.getCurrentSourceFile(M),Pe=uc.getRangeOfEnclosingComment(se,te);return Pe&&(!j||Pe.kind===3)?yy(Pe):void 0}function Ce(M,te){R();let j=C(M);h.throwIfCancellationRequested();let se=j.text,Pe=[];if(te.length>0&&!Ot(j.fileName)){let dn=gt(),An;for(;An=dn.exec(se);){h.throwIfCancellationRequested();let Cn=3;x.assert(An.length===te.length+Cn);let ti=An[1],di=An.index+ti.length;if(!uv(j,di))continue;let jn;for(let Zi=0;Zi<te.length;Zi++)An[Zi+Cn]&&(jn=te[Zi]);if(jn===void 0)return x.fail();if(bt(se.charCodeAt(di+jn.text.length)))continue;let Ar=An[2];Pe.push({descriptor:jn,message:Ar,position:di})}}return Pe;function Ie(dn){return dn.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")}function gt(){let dn=/(?:\/\/+\s*)/.source,An=/(?:\/\*+\s*)/.source,ti="("+/(?:^(?:\s|\*)*)/.source+"|"+dn+"|"+An+")",di="(?:"+nn(te,ui=>"("+Ie(ui.text)+")").join("|")+")",jn=/(?:$|\*\/)/.source,Ar=/(?:.*?)/.source,Zi="("+di+Ar+")",_i=ti+Zi+jn;return new RegExp(_i,"gim")}function bt(dn){return dn>=97&&dn<=122||dn>=65&&dn<=90||dn>=48&&dn<=57}function Ot(dn){return dn.includes("/node_modules/")}}function et(M,te,j){return R(),$z.getRenameInfo(l,C(M),te,j||{})}function z(M,te,j,se,Pe,Ie){let[gt,bt]=typeof te=="number"?[te,void 0]:[te.pos,te.end];return{file:M,startPosition:gt,endPosition:bt,program:G(),host:e,formatContext:uc.getFormatContext(se,e),cancellationToken:h,preferences:j,triggerReason:Pe,kind:Ie}}function Je(M,te,j){return{file:M,program:G(),host:e,span:te,preferences:j,cancellationToken:h}}function _t(M,te){return VY.getSmartSelectionRange(te,s.getCurrentSourceFile(M))}function ze(M,te,j=ef,se,Pe,Ie){R();let gt=C(M);return MI.getApplicableRefactors(z(gt,te,j,ef,se,Pe),Ie)}function it(M,te,j=ef){R();let se=C(M),Pe=x.checkDefined(l.getSourceFiles()),Ie=jC(M),gt=pO(z(se,te,j,ef)),bt=mce(gt?.all),Ot=Fi(Pe,dn=>{let An=jC(dn.fileName);return!l?.isSourceFileFromExternalLibrary(se)&&!(se===C(dn.fileName)||Ie===".ts"&&An===".d.ts"||Ie===".d.ts"&&Ui(Ll(dn.fileName),"lib.")&&An===".d.ts")&&(Ie===An||(Ie===".tsx"&&An===".ts"||Ie===".jsx"&&An===".js")&&!bt)?dn.fileName:void 0});return{newFileName:fce(se,l,e,gt),files:Ot}}function Ct(M,te,j,se,Pe,Ie=ef,gt){R();let bt=C(M);return MI.getEditsForRefactor(z(bt,j,Ie,te),se,Pe,gt)}function on(M,te){return te===0?{line:0,character:0}:A.toLineColumnOffset(M,te)}function Qt(M,te){R();let j=LI.resolveCallHierarchyDeclaration(l,pu(C(M),te));return j&&PJ(j,se=>LI.createCallHierarchyItem(l,se))}function Zt(M,te){R();let j=C(M),se=MJ(LI.resolveCallHierarchyDeclaration(l,te===0?j:pu(j,te)));return se?LI.getIncomingCalls(l,se,h):[]}function V(M,te){R();let j=C(M),se=MJ(LI.resolveCallHierarchyDeclaration(l,te===0?j:pu(j,te)));return se?LI.getOutgoingCalls(l,se):[]}function Re(M,te,j=ef){R();let se=C(M);return OY.provideInlayHints(Je(se,te,j))}let St={dispose:oe,cleanupSemanticCache:F,getSyntacticDiagnostics:W,getSemanticDiagnostics:$,getSuggestionDiagnostics:de,getCompilerOptionsDiagnostics:fe,getSyntacticClassifications:en,getSemanticClassifications:gn,getEncodedSyntacticClassifications:zt,getEncodedSemanticClassifications:On,getCompletionsAtPosition:q,getCompletionEntryDetails:H,getCompletionEntrySymbol:ee,getSignatureHelpItems:Dt,getQuickInfoAtPosition:le,getDefinitionAtPosition:Z,getDefinitionAndBoundSpan:pe,getImplementationAtPosition:Oe,getTypeDefinitionAtPosition:Ae,getReferencesAtPosition:Te,findReferences:ft,getFileReferences:he,getDocumentHighlights:_e,getNameOrDottedNameSpan:Ge,getBreakpointStatementAtPosition:ot,getNavigateToItems:Le,getRenameInfo:et,getSmartSelectionRange:_t,findRenameLocations:be,getNavigationBarItems:Vt,getNavigationTree:jt,getOutliningSpans:Wt,getTodoComments:Ce,getBraceMatchingAtPosition:Ki,getIndentationAtPosition:gi,getFormattingEditsForRange:io,getFormattingEditsForDocument:Gn,getFormattingEditsAfterKeystroke:Nr,getDocCommentTemplateAtPosition:ni,isValidBraceCompletionAtPosition:ki,getJsxClosingTagAtPosition:so,getLinkedEditingRangeAtPosition:Jo,getSpanOfEnclosingComment:re,getCodeFixesAtPosition:cr,getCombinedCodeFix:Jt,applyCodeActionCommand:mn,organizeImports:Ue,getEditsForFileRename:Rt,getEmitOutput:Ke,getNonBoundSourceFile:st,getProgram:G,getCurrentProgram:()=>l,getAutoImportProvider:U,updateIsDefinitionOfReferencedSymbols:K,getApplicableRefactors:ze,getEditsForRefactor:Ct,getMoveToRefactoringFileSuggestions:it,toLineColumnOffset:on,getSourceMapper:()=>A,clearSourceMapperCache:()=>A.clearCache(),prepareCallHierarchy:Qt,provideCallHierarchyIncomingCalls:Zt,provideCallHierarchyOutgoingCalls:V,toggleLineComment:ln,toggleMultilineComment:Tn,commentSelection:ke,uncommentSelection:nt,provideInlayHints:Re,getSupportedCodeFixes:OK};switch(o){case 0:break;case 1:qce.forEach(M=>St[M]=()=>{throw new Error(`LanguageService Operation: ${M} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:K1e.forEach(M=>St[M]=()=>{throw new Error(`LanguageService Operation: ${M} not allowed in LanguageServiceMode.Syntactic`)});break;default:x.assertNever(o)}return St}function WK(e){return e.nameTable||dje(e),e.nameTable}function dje(e){let t=e.nameTable=new Map;e.forEachChild(function r(i){if(Me(i)&&!Vq(i)&&i.escapedText||Tp(i)&&uje(i)){let o=AC(i);t.set(o,t.get(o)===void 0?i.pos:-1)}else if(Ci(i)){let o=i.escapedText;t.set(o,t.get(o)===void 0?i.pos:-1)}if(Ao(i,r),ap(i))for(let o of i.jsDoc)Ao(o,r)})}function uje(e){return ng(e)||e.parent.kind===283||mje(e)||LL(e)}function bO(e){let t=pje(e);return t&&(fa(t.parent)||d0(t.parent))?t:void 0}function pje(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return r9(e.parent.parent)?e.parent.parent:void 0;case 80:return r9(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function fje(e,t){let r=bO(e);if(r){let i=t.getContextualType(r.parent),o=i&&Iz(r,t,i,!1);if(o&&o.length===1)return Sa(o)}return t.getSymbolAtLocation(e)}function Iz(e,t,r,i){let o=qk(e.name);if(!o)return je;if(!r.isUnion()){let d=r.getProperty(o);return d?[d]:je}let s=fa(e.parent)||d0(e.parent)?Cr(r.types,d=>!t.isTypeInvalidDueToUnionDiscriminant(d,e.parent)):r.types,l=Fi(s,d=>d.getProperty(o));if(i&&(l.length===0||l.length===r.types.length)){let d=r.getProperty(o);if(d)return[d]}return!s.length&&!l.length?Fi(r.types,d=>d.getProperty(o)):NE(l,Hg)}function mje(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function jce(e){if(Hc)return wr(Ur(Yo(Hc.getExecutingFilePath())),OM(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var Uce,FK,zK,B1e,Hce,BK,GK,G1e,V1e,j1e,U1e,H1e,q1e,J1e,VK,qce,K1e,_je=pt({"src/services/services.ts"(){"use strict";Hr(),dIe(),PIe(),q_(),BAe(),k1e(),Uce="0.8",FK=class{constructor(e,t,r){this.pos=t,this.end=r,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){x.assert(!ym(this.pos)&&!ym(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Nn(this)}getStart(e,t){return this.assertHasRealPosition(),Tb(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=sje(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=Dr(t,i=>i.kind<316||i.kind>357);return r.kind<166?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=Ns(t);if(r)return r.kind<166?r:r.getLastToken(e)}forEachChild(e,t){return Ao(this,e,t)}},zK=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Nn(this)}getStart(e,t){return Tb(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||je}getFirstToken(){}getLastToken(){}forEachChild(){}},B1e=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return $s(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=je,!this.declarations&&L_(this)&&this.links.target&&L_(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Sz([t],e)}else this.documentationComment=Sz(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(Yv(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Sz(Cr(this.declarations,Yv),t)),yn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if($g(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Sz(Cr(this.declarations,$g),t)),yn(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=kK(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(Yv(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=kK(Cr(this.declarations,Yv),t)),yn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if($g(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=kK(Cr(this.declarations,$g),t)),yn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Hce=class extends zK{constructor(e,t,r){super(t,r),this.kind=e}},BK=class extends zK{constructor(e,t,r){super(t,r),this.kind=80}get text(){return ar(this)}},BK.prototype.kind=80,GK=class extends zK{constructor(e,t,r){super(t,r),this.kind=81}get text(){return ar(this)}},GK.prototype.kind=81,G1e=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(br(this)&3)}isClass(){return!!(br(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(br(this)&4)return this.checker.getTypeArguments(this)}},V1e=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&YC(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Sz(EA(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=kK(EA(this.declaration),this.checker))}},j1e=class extends FK{constructor(e,t,r){super(e,t,r),this.kind=312}update(e,t){return Kj(this,e,t)}getLineAndCharacterOfPosition(e){return $a(this,e)}getLineStarts(){return Yh(this)}getPositionOfLineAndCharacter(e,t,r){return R8(Yh(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),i;t+1>=r.length&&(i=this.getEnd()),i||(i=r[t+1]-1);let o=this.getFullText();return o[i]===`
`&&o[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=bp();return this.forEachChild(o),e;function t(s){let l=i(s);l&&e.add(l,s)}function r(s){let l=e.get(s);return l||e.set(s,l=[]),l}function i(s){let l=M8(s);return l&&(Pa(l)&&Er(l.expression)?l.expression.name.text:kl(l)?qk(l):void 0)}function o(s){switch(s.kind){case 262:case 218:case 174:case 173:let l=s,d=i(l);if(d){let m=r(d),v=Ns(m);v&&l.parent===v.parent&&l.symbol===v.symbol?l.body&&!v.body&&(m[m.length-1]=l):m.push(l)}Ao(s,o);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(s),Ao(s,o);break;case 169:if(!Wr(s,31))break;case 260:case 208:{let m=s;if(ko(m.name)){Ao(m.name,o);break}m.initializer&&o(m.initializer)}case 306:case 172:case 171:t(s);break;case 278:let p=s;p.exportClause&&($p(p.exportClause)?an(p.exportClause.elements,o):o(p.exportClause.name));break;case 272:let h=s.importClause;h&&(h.name&&t(h.name),h.namedBindings&&(h.namedBindings.kind===274?t(h.namedBindings):an(h.namedBindings.elements,o)));break;case 226:hl(s)!==0&&t(s);default:Ao(s,o)}}}},U1e=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r}getLineAndCharacterOfPosition(e){return $a(this,e)}},H1e=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,r,i,o,s,l,d,p;let h=this.host.getScriptSnapshot(e);if(!h)throw new Error("Could not find file: '"+e+"'.");let m=bJ(e,this.host),v=this.host.getScriptVersion(e),E;if(this.currentFileName!==e){let S={languageVersion:99,impliedNodeFormat:Tk(ks(e,this.host.getCurrentDirectory(),((i=(r=(t=this.host).getCompilerHost)==null?void 0:r.call(t))==null?void 0:i.getCanonicalFileName)||ev(this.host)),(p=(d=(l=(s=(o=this.host).getCompilerHost)==null?void 0:s.call(o))==null?void 0:l.getModuleResolutionCache)==null?void 0:d.call(l))==null?void 0:p.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:XL(this.host.getCompilationSettings()),jsDocParsingMode:0};E=Az(e,h,S,v,!0,m)}else if(this.currentFileVersion!==v){let S=h.getChangeRange(this.currentFileScriptSnapshot);E=wK(this.currentSourceFile,h,v,S)}return E&&(this.currentFileVersion=v,this.currentFileName=e,this.currentFileScriptSnapshot=h,this.currentSourceFile=E),this.currentSourceFile}},q1e={isCancellationRequested:_m,throwIfCancellationRequested:Ca},J1e=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=qn)==null||e.instant(qn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new k1}},VK=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=Is();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=qn)==null||e.instant(qn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new k1}},qce=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],K1e=[...qce,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],jne(cje())}});function X1e(e,t,r){let i=[];r=rK(r,i);let o=oo(e)?e:[e],s=mk(void 0,void 0,P,r,o,t,!0);return s.diagnostics=ro(s.diagnostics,i),s}var hje=pt({"src/services/transform.ts"(){"use strict";Hr()}});function gje(e,t){if(e.isDeclarationFile)return;let r=Hi(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(r.getStart(e)).line>i){let v=ec(r.pos,e);if(!v||e.getLineAndCharacterOfPosition(v.getEnd()).line!==i)return;r=v}if(r.flags&33554432)return;return m(r);function o(v,E){let S=ZS(v)?hA(v.modifiers,Xc):void 0,A=S?ua(e.text,S.end):v.getStart(e);return Gl(A,(E||v).getEnd())}function s(v,E){return o(v,S0(E,E.parent,e))}function l(v,E){return v&&i===e.getLineAndCharacterOfPosition(v.getStart(e)).line?m(v):m(E)}function d(v,E,S){if(v){let A=v.indexOf(E);if(A>=0){let C=A,R=A+1;for(;C>0&&S(v[C-1]);)C--;for(;R<v.length&&S(v[R]);)R++;return Gl(ua(e.text,v[C].pos),v[R-1].end)}}return o(E)}function p(v){return m(ec(v.pos,e))}function h(v){return m(S0(v,v.parent,e))}function m(v){if(v){let{parent:Z}=v;switch(v.kind){case 243:return S(v.declarationList.declarations[0]);case 260:case 172:case 171:return S(v);case 169:return C(v);case 262:case 174:case 173:case 177:case 178:case 176:case 218:case 219:return L(v);case 241:if(VE(v))return G(v);case 268:return U(v);case 299:return U(v.block);case 244:return o(v.expression);case 253:return o(v.getChildAt(0),v.expression);case 247:return s(v,v.expression);case 246:return m(v.statement);case 259:return o(v.getChildAt(0));case 245:return s(v,v.expression);case 256:return m(v.statement);case 252:case 251:return o(v.getChildAt(0),v.label);case 248:return F(v);case 249:return s(v,v.expression);case 250:return K(v);case 255:return s(v,v.expression);case 296:case 297:return m(v.statements[0]);case 258:return U(v.tryBlock);case 257:return o(v,v.expression);case 277:return o(v,v.expression);case 271:return o(v,v.moduleReference);case 272:return o(v,v.moduleSpecifier);case 278:return o(v,v.moduleSpecifier);case 267:if(dg(v)!==1)return;case 263:case 266:case 306:case 208:return o(v);case 254:return m(v.statement);case 170:return d(Z.modifiers,v,Xc);case 206:case 207:return oe(v);case 264:case 265:return;case 27:case 1:return l(ec(v.pos,e));case 28:return p(v);case 19:return $(v);case 20:return de(v);case 24:return fe(v);case 21:return q(v);case 22:return H(v);case 59:return ee(v);case 32:case 30:return le(v);case 117:return Ee(v);case 93:case 85:case 98:return h(v);case 165:return ce(v);default:if(pv(v))return W(v);if((v.kind===80||v.kind===230||v.kind===303||v.kind===304)&&pv(Z))return o(v);if(v.kind===226){let{left:pe,operatorToken:Ae}=v;if(pv(pe))return W(pe);if(Ae.kind===64&&pv(v.parent))return o(v);if(Ae.kind===28)return m(pe)}if(bh(v))switch(Z.kind){case 246:return p(v);case 170:return m(v.parent);case 248:case 250:return o(v);case 226:if(v.parent.operatorToken.kind===28)return o(v);break;case 219:if(v.parent.body===v)return o(v);break}switch(v.parent.kind){case 303:if(v.parent.name===v&&!pv(v.parent.parent))return m(v.parent.initializer);break;case 216:if(v.parent.type===v)return h(v.parent.type);break;case 260:case 169:{let{initializer:pe,type:Ae}=v.parent;if(pe===v||Ae===v||tv(v.kind))return p(v);break}case 226:{let{left:pe}=v.parent;if(pv(pe)&&v!==pe)return p(v);break}default:if(Lo(v.parent)&&v.parent.type===v)return p(v)}return m(v.parent)}}function E(Z){return yc(Z.parent)&&Z.parent.declarations[0]===Z?o(ec(Z.pos,e,Z.parent),Z):o(Z)}function S(Z){if(Z.parent.parent.kind===249)return m(Z.parent.parent);let pe=Z.parent;if(ko(Z.name))return oe(Z.name);if(SS(Z)&&Z.initializer||Wr(Z,32)||pe.parent.kind===250)return E(Z);if(yc(Z.parent)&&Z.parent.declarations[0]!==Z)return m(ec(Z.pos,e,Z.parent))}function A(Z){return!!Z.initializer||Z.dotDotDotToken!==void 0||Wr(Z,3)}function C(Z){if(ko(Z.name))return oe(Z.name);if(A(Z))return o(Z);{let pe=Z.parent,Ae=pe.parameters.indexOf(Z);return x.assert(Ae!==-1),Ae!==0?C(pe.parameters[Ae-1]):m(pe.body)}}function R(Z){return Wr(Z,32)||Z.parent.kind===263&&Z.kind!==176}function L(Z){if(Z.body)return R(Z)?o(Z):m(Z.body)}function G(Z){let pe=Z.statements.length?Z.statements[0]:Z.getLastToken();return R(Z.parent)?l(Z.parent,pe):m(pe)}function U(Z){switch(Z.parent.kind){case 267:if(dg(Z.parent)!==1)return;case 247:case 245:case 249:return l(Z.parent,Z.statements[0]);case 248:case 250:return l(ec(Z.pos,e,Z.parent),Z.statements[0])}return m(Z.statements[0])}function K(Z){if(Z.initializer.kind===261){let pe=Z.initializer;if(pe.declarations.length>0)return m(pe.declarations[0])}else return m(Z.initializer)}function F(Z){if(Z.initializer)return K(Z);if(Z.condition)return o(Z.condition);if(Z.incrementor)return o(Z.incrementor)}function oe(Z){let pe=an(Z.elements,Ae=>Ae.kind!==232?Ae:void 0);return pe?m(pe):Z.parent.kind===208?o(Z.parent):E(Z.parent)}function W(Z){x.assert(Z.kind!==207&&Z.kind!==206);let pe=Z.kind===209?Z.elements:Z.properties,Ae=an(pe,Oe=>Oe.kind!==232?Oe:void 0);return Ae?m(Ae):o(Z.parent.kind===226?Z.parent:Z)}function $(Z){switch(Z.parent.kind){case 266:let pe=Z.parent;return l(ec(Z.pos,e,Z.parent),pe.members.length?pe.members[0]:pe.getLastToken(e));case 263:let Ae=Z.parent;return l(ec(Z.pos,e,Z.parent),Ae.members.length?Ae.members[0]:Ae.getLastToken(e));case 269:return l(Z.parent.parent,Z.parent.clauses[0])}return m(Z.parent)}function de(Z){switch(Z.parent.kind){case 268:if(dg(Z.parent.parent)!==1)return;case 266:case 263:return o(Z);case 241:if(VE(Z.parent))return o(Z);case 299:return m(Ns(Z.parent.statements));case 269:let pe=Z.parent,Ae=Ns(pe.clauses);return Ae?m(Ns(Ae.statements)):void 0;case 206:let Oe=Z.parent;return m(Ns(Oe.elements)||Oe);default:if(pv(Z.parent)){let _e=Z.parent;return o(Ns(_e.properties)||_e)}return m(Z.parent)}}function fe(Z){switch(Z.parent.kind){case 207:let pe=Z.parent;return o(Ns(pe.elements)||pe);default:if(pv(Z.parent)){let Ae=Z.parent;return o(Ns(Ae.elements)||Ae)}return m(Z.parent)}}function q(Z){return Z.parent.kind===246||Z.parent.kind===213||Z.parent.kind===214?p(Z):Z.parent.kind===217?h(Z):m(Z.parent)}function H(Z){switch(Z.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return p(Z);default:return m(Z.parent)}}function ee(Z){return Lo(Z.parent)||Z.parent.kind===303||Z.parent.kind===169?p(Z):m(Z.parent)}function le(Z){return Z.parent.kind===216?h(Z):m(Z.parent)}function Ee(Z){return Z.parent.kind===246?s(Z,Z.parent.expression):m(Z.parent)}function ce(Z){return Z.parent.kind===250?h(Z):m(Z.parent)}}}var vje=pt({"src/services/breakpoints.ts"(){"use strict";Hr()}}),jK={};Ra(jK,{spanInSourceFileAtLocation:()=>gje});var yje=pt({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";vje()}});function bje(e){return(us(e)||Dc(e))&&Ld(e)}function Y1e(e){return xo(e)||yi(e)}function EO(e){return(us(e)||hs(e)||Dc(e))&&Y1e(e.parent)&&e===e.parent.initializer&&Me(e.parent.name)&&(!!(Xg(e.parent)&2)||xo(e.parent))}function $1e(e){return Li(e)||Il(e)||Ql(e)||us(e)||Zl(e)||Dc(e)||nl(e)||El(e)||z_(e)||Ap(e)||Vu(e)}function RR(e){return Li(e)||Il(e)&&Me(e.name)||Ql(e)||Zl(e)||nl(e)||El(e)||z_(e)||Ap(e)||Vu(e)||bje(e)||EO(e)}function Q1e(e){return Li(e)?e:Ld(e)?e.name:EO(e)?e.parent.name:x.checkDefined(e.modifiers&&Dr(e.modifiers,Z1e))}function Z1e(e){return e.kind===90}function exe(e,t){let r=Q1e(t);return r&&e.getSymbolAtLocation(r)}function Eje(e,t){if(Li(t))return{text:t.fileName,pos:0,end:0};if((Ql(t)||Zl(t))&&!Ld(t)){let o=t.modifiers&&Dr(t.modifiers,Z1e);if(o)return{text:"default",pos:o.getStart(),end:o.getEnd()}}if(nl(t)){let o=t.getSourceFile(),s=ua(o.text,Qm(t).pos),l=s+6,d=e.getTypeChecker(),p=d.getSymbolAtLocation(t.parent);return{text:`${p?`${d.symbolToString(p,t.parent)} `:""}static {}`,pos:s,end:l}}let r=EO(t)?t.parent.name:x.checkDefined(mo(t),"Expected call hierarchy item to have a name"),i=Me(r)?ar(r):Tp(r)?r.text:Pa(r)&&Tp(r.expression)?r.expression.text:void 0;if(i===void 0){let o=e.getTypeChecker(),s=o.getSymbolAtLocation(r);s&&(i=o.symbolToString(s,t))}if(i===void 0){let o=hk();i=dC(s=>o.writeNode(4,t,t.getSourceFile(),s))}return{text:i,pos:r.getStart(),end:r.getEnd()}}function Sje(e){var t,r,i,o;if(EO(e))return xo(e.parent)&&Kr(e.parent.parent)?Dc(e.parent.parent)?(t=L8(e.parent.parent))==null?void 0:t.getText():(r=e.parent.parent.name)==null?void 0:r.getText():t_(e.parent.parent.parent.parent)&&Me(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(i=L8(e.parent))==null?void 0:i.getText():(o=mo(e.parent))==null?void 0:o.getText();case 262:case 263:case 267:if(t_(e.parent)&&Me(e.parent.parent.name))return e.parent.parent.name.getText()}}function txe(e,t){if(t.body)return t;if(ll(t))return Ah(t.parent);if(Ql(t)||El(t)){let r=exe(e,t);return r&&r.valueDeclaration&&_s(r.valueDeclaration)&&r.valueDeclaration.body?r.valueDeclaration:void 0}return t}function nxe(e,t){let r=exe(e,t),i;if(r&&r.declarations){let o=uM(r.declarations),s=nn(r.declarations,p=>({file:p.getSourceFile().fileName,pos:p.pos}));o.sort((p,h)=>gd(s[p].file,s[h].file)||s[p].pos-s[h].pos);let l=nn(o,p=>r.declarations[p]),d;for(let p of l)RR(p)&&((!d||d.parent!==p.parent||d.end!==p.pos)&&(i=pn(i,p)),d=p)}return i}function UK(e,t){return nl(t)?t:_s(t)?txe(e,t)??nxe(e,t)??t:nxe(e,t)??t}function rxe(e,t){let r=e.getTypeChecker(),i=!1;for(;;){if(RR(t))return UK(r,t);if($1e(t)){let o=Rn(t,RR);return o&&UK(r,o)}if(ng(t)){if(RR(t.parent))return UK(r,t.parent);if($1e(t.parent)){let o=Rn(t.parent,RR);return o&&UK(r,o)}return Y1e(t.parent)&&t.parent.initializer&&EO(t.parent.initializer)?t.parent.initializer:void 0}if(ll(t))return RR(t.parent)?t.parent:void 0;if(t.kind===126&&nl(t.parent)){t=t.parent;continue}if(yi(t)&&t.initializer&&EO(t.initializer))return t.initializer;if(!i){let o=r.getSymbolAtLocation(t);if(o&&(o.flags&2097152&&(o=r.getAliasedSymbol(o)),o.valueDeclaration)){i=!0,t=o.valueDeclaration;continue}}return}}function Jce(e,t){let r=t.getSourceFile(),i=Eje(e,t),o=Sje(t),s=E0(t),l=YN(t),d=Gl(ua(r.text,t.getFullStart(),!1,!0),t.getEnd()),p=Gl(i.pos,i.end);return{file:r.fileName,kind:s,kindModifiers:l,name:i.text,containerName:o,span:d,selectionSpan:p}}function Tje(e){return e!==void 0}function Aje(e){if(e.kind===ps.EntryKind.Node){let{node:t}=e;if(Fq(t,!0,!0)||Nse(t,!0,!0)||Pse(t,!0,!0)||Mse(t,!0,!0)||fR(t)||jq(t)){let r=t.getSourceFile();return{declaration:Rn(t,RR)||r,range:iJ(t,r)}}}}function ixe(e){return Fa(e.declaration)}function Ije(e,t){return{from:e,fromSpans:t}}function xje(e,t){return Ije(Jce(e,t[0].declaration),nn(t,r=>yy(r.range)))}function Rje(e,t,r){if(Li(t)||Il(t)||nl(t))return[];let i=Q1e(t),o=Cr(ps.findReferenceOrRenameEntries(e,r,e.getSourceFiles(),i,0,{use:ps.FindReferencesUse.References},Aje),Tje);return o?GD(o,ixe,s=>xje(e,s)):[]}function Dje(e,t){function r(o){let s=a0(o)?o.tag:Od(o)?o.tagName:ds(o)||nl(o)?o:o.expression,l=rxe(e,s);if(l){let d=iJ(s,o.getSourceFile());if(oo(l))for(let p of l)t.push({declaration:p,range:d});else t.push({declaration:l,range:d})}}function i(o){if(o&&!(o.flags&33554432)){if(RR(o)){if(Kr(o))for(let s of o.members)s.name&&Pa(s.name)&&i(s.name.expression);return}switch(o.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:r(o);return;case 216:case 234:i(o.expression);return;case 260:case 169:i(o.name),i(o.initializer);return;case 213:r(o),i(o.expression),an(o.arguments,i);return;case 214:r(o),i(o.expression),an(o.arguments,i);return;case 215:r(o),i(o.tag),i(o.template);return;case 286:case 285:r(o),i(o.tagName),i(o.attributes);return;case 170:r(o),i(o.expression);return;case 211:case 212:r(o),Ao(o,i);break;case 238:i(o.expression);return}yh(o)||Ao(o,i)}}return i}function Cje(e,t){an(e.statements,t)}function Nje(e,t){!Wr(e,128)&&e.body&&t_(e.body)&&an(e.body.statements,t)}function Pje(e,t,r){let i=txe(e,t);i&&(an(i.parameters,r),r(i.body))}function Mje(e,t){t(e.body)}function Lje(e,t){an(e.modifiers,t);let r=qE(e);r&&t(r.expression);for(let i of e.members)Yf(i)&&an(i.modifiers,t),xo(i)?t(i.initializer):ll(i)&&i.body?(an(i.parameters,t),t(i.body)):nl(i)&&t(i)}function kje(e,t){let r=[],i=Dje(e,r);switch(t.kind){case 312:Cje(t,i);break;case 267:Nje(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:Pje(e.getTypeChecker(),t,i);break;case 263:case 231:Lje(t,i);break;case 175:Mje(t,i);break;default:x.assertNever(t)}return r}function Oje(e,t){return{to:e,fromSpans:t}}function wje(e,t){return Oje(Jce(e,t[0].declaration),nn(t,r=>yy(r.range)))}function Wje(e,t){return t.flags&33554432||z_(t)?[]:GD(kje(e,t),ixe,r=>wje(e,r))}var Fje=pt({"src/services/callHierarchy.ts"(){"use strict";Hr()}}),LI={};Ra(LI,{createCallHierarchyItem:()=>Jce,getIncomingCalls:()=>Rje,getOutgoingCalls:()=>Wje,resolveCallHierarchyDeclaration:()=>rxe});var zje=pt({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";Fje()}}),oxe={};Ra(oxe,{TokenEncodingConsts:()=>Fce,TokenModifier:()=>Bce,TokenType:()=>zce,getEncodedSemanticClassifications:()=>Wce,getSemanticClassifications:()=>P1e});var Bje=pt({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";k1e()}}),Kce={};Ra(Kce,{v2020:()=>oxe});var Gje=pt({"src/services/_namespaces/ts.classifier.ts"(){"use strict";Bje()}});function Im(e,t,r){return Yce(e,uT(r),t,void 0,void 0)}function Go(e,t,r,i,o,s){return Yce(e,uT(r),t,i,uT(o),s)}function Xce(e,t,r,i,o,s){return Yce(e,uT(r),t,i,o&&uT(o),s)}function Yce(e,t,r,i,o,s){return{fixName:e,description:t,changes:r,fixId:i,fixAllDescription:o,commands:s?[s]:void 0}}function ra(e){for(let t of e.errorCodes)$ce=void 0,HK.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)x.assert(!qK.has(t)),qK.set(t,e)}function Vje(){return $ce??($ce=bo(HK.keys()))}function jje(e,t){let{errorCodes:r}=e,i=0;for(let s of t)if(To(r,s.code)&&i++,i>1)break;let o=i<2;return({fixId:s,fixAllDescription:l,...d})=>o?d:{...d,fixId:s,fixAllDescription:l}}function Uje(e){let t=sxe(e),r=HK.get(String(e.errorCode));return ta(r,i=>nn(i.getCodeActions(e),jje(i,t)))}function Hje(e){return qK.get(Fo(e.fixId,fo)).getAllCodeActions(e)}function DR(e,t){return{changes:e,commands:t}}function axe(e,t){return{fileName:e,textChanges:t}}function Qa(e,t,r){let i=[],o=er.ChangeTracker.with(e,s=>CR(e,t,l=>r(s,l,i)));return DR(o,i.length===0?void 0:i)}function CR(e,t,r){for(let i of sxe(e))To(t,i.code)&&r(i)}function sxe({program:e,sourceFile:t,cancellationToken:r}){return[...e.getSemanticDiagnostics(t,r),...e.getSyntacticDiagnostics(t,r),...QJ(t,e,r)]}var HK,qK,$ce,qje=pt({"src/services/codeFixProvider.ts"(){"use strict";Hr(),HK=bp(),qK=new Map}});function lxe(e,t,r){let i=x2(r)?P.createAsExpression(r.expression,P.createKeywordTypeNode(159)):P.createTypeAssertion(P.createKeywordTypeNode(159),r.expression);e.replaceNode(t,r.expression,i)}function cxe(e,t){if(!Jn(e))return Rn(Hi(e,t),r=>x2(r)||Xre(r))}var JK,Qce,Jje=pt({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";Hr(),oa(),JK="addConvertToUnknownForNonOverlappingTypes",Qce=[f.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],ra({errorCodes:Qce,getCodeActions:function(t){let r=cxe(t.sourceFile,t.span.start);if(r===void 0)return;let i=er.ChangeTracker.with(t,o=>lxe(o,t.sourceFile,r));return[Go(JK,i,f.Add_unknown_conversion_for_non_overlapping_types,JK,f.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[JK],getAllCodeActions:e=>Qa(e,Qce,(t,r)=>{let i=cxe(r.file,r.start);i&&lxe(t,r.file,i)})})}}),Kje=pt({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";Hr(),oa(),ra({errorCodes:[f.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,f.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:r}=t,i=er.ChangeTracker.with(t,o=>{let s=P.createExportDeclaration(void 0,!1,P.createNamedExports([]),void 0);o.insertNodeAtEndOfScope(r,r,s)});return[Im("addEmptyExportDeclaration",i,f.Add_export_to_make_this_file_into_a_module)]}})}});function dxe(e,t,r,i){let o=r(s=>Xje(s,e.sourceFile,t,i));return Go(KK,o,f.Add_async_modifier_to_containing_function,KK,f.Add_all_missing_async_modifiers)}function Xje(e,t,r,i){if(i&&i.has(Fa(r)))return;i?.add(Fa(r));let o=P.replaceModifiers(Fs(r,!0),P.createNodeArray(P.createModifiersFromModifierFlags(ny(r)|1024)));e.replaceNode(t,r,o)}function uxe(e,t){if(!t)return;let r=Hi(e,t.start);return Rn(r,o=>o.getStart(e)<t.start||o.getEnd()>Al(t)?"quit":(hs(o)||El(o)||us(o)||Ql(o))&&vR(t,eu(o,e)))}function Yje(e,t){return({start:r,length:i,relatedInformation:o,code:s})=>jg(r)&&jg(i)&&vR({start:r,length:i},e)&&s===t&&!!o&&ct(o,l=>l.code===f.Did_you_mean_to_mark_this_function_as_async.code)}var KK,Zce,$je=pt({"src/services/codefixes/addMissingAsync.ts"(){"use strict";Hr(),oa(),KK="addMissingAsync",Zce=[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_comparable_to_type_1.code],ra({fixIds:[KK],errorCodes:Zce,getCodeActions:function(t){let{sourceFile:r,errorCode:i,cancellationToken:o,program:s,span:l}=t,d=Dr(s.getTypeChecker().getDiagnostics(r,o),Yje(l,i)),p=d&&d.relatedInformation&&Dr(d.relatedInformation,v=>v.code===f.Did_you_mean_to_mark_this_function_as_async.code),h=uxe(r,p);return h?[dxe(t,h,v=>er.ChangeTracker.with(t,v))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,r=new Set;return Qa(e,Zce,(i,o)=>{let s=o.relatedInformation&&Dr(o.relatedInformation,p=>p.code===f.Did_you_mean_to_mark_this_function_as_async.code),l=uxe(t,s);return l?dxe(e,l,p=>(p(i),[]),r):void 0})}})}});function pxe(e,t,r,i,o){let s=NJ(e,r);return s&&Qje(e,t,r,i,o)&&_xe(s)?s:void 0}function fxe(e,t,r,i,o,s){let{sourceFile:l,program:d,cancellationToken:p}=e,h=Zje(t,l,p,d,i);if(h){let m=o(v=>{an(h.initializers,({expression:E})=>ede(v,r,l,i,E,s)),s&&h.needsSecondPassForFixAll&&ede(v,r,l,i,t,s)});return Im("addMissingAwaitToInitializer",m,h.initializers.length===1?[f.Add_await_to_initializer_for_0,h.initializers[0].declarationSymbol.name]:f.Add_await_to_initializers)}}function mxe(e,t,r,i,o,s){let l=o(d=>ede(d,r,e.sourceFile,i,t,s));return Go(XK,l,f.Add_await,XK,f.Fix_all_expressions_possibly_missing_await)}function Qje(e,t,r,i,o){let l=o.getTypeChecker().getDiagnostics(e,i);return ct(l,({start:d,length:p,relatedInformation:h,code:m})=>jg(d)&&jg(p)&&vR({start:d,length:p},r)&&m===t&&!!h&&ct(h,v=>v.code===f.Did_you_forget_to_use_await.code))}function Zje(e,t,r,i,o){let s=eUe(e,o);if(!s)return;let l=s.isCompleteFix,d;for(let p of s.identifiers){let h=o.getSymbolAtLocation(p);if(!h)continue;let m=Vr(h.valueDeclaration,yi),v=m&&Vr(m.name,Me),E=Db(m,243);if(!m||!E||m.type||!m.initializer||E.getSourceFile()!==t||Wr(E,32)||!v||!_xe(m.initializer)){l=!1;continue}let S=i.getSemanticDiagnostics(t,r);if(ps.Core.eachSymbolReferenceInFile(v,o,t,C=>p!==C&&!tUe(C,S,t,o))){l=!1;continue}(d||(d=[])).push({expression:m.initializer,declarationSymbol:h})}return d&&{initializers:d,needsSecondPassForFixAll:!l}}function eUe(e,t){if(Er(e.parent)&&Me(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Me(e))return{identifiers:[e],isCompleteFix:!0};if(Zn(e)){let r,i=!0;for(let o of[e.left,e.right]){let s=t.getTypeAtLocation(o);if(t.getPromisedTypeOfPromise(s)){if(!Me(o)){i=!1;continue}(r||(r=[])).push(o)}}return r&&{identifiers:r,isCompleteFix:i}}}function tUe(e,t,r,i){let o=Er(e.parent)?e.parent.name:Zn(e.parent)?e.parent:e,s=Dr(t,l=>l.start===o.getStart(r)&&l.start+l.length===o.getEnd());return s&&To(YK,s.code)||i.getTypeAtLocation(o).flags&1}function _xe(e){return e.flags&65536||!!Rn(e,t=>t.parent&&hs(t.parent)&&t.parent.body===t||Do(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function ede(e,t,r,i,o,s){if(R2(o.parent)&&!o.parent.awaitModifier){let l=i.getTypeAtLocation(o),d=i.getAsyncIterableType();if(d&&i.isTypeAssignableTo(l,d)){let p=o.parent;e.replaceNode(r,p,P.updateForOfStatement(p,P.createToken(135),p.initializer,p.expression,p.statement));return}}if(Zn(o))for(let l of[o.left,o.right]){if(s&&Me(l)){let h=i.getSymbolAtLocation(l);if(h&&s.has(na(h)))continue}let d=i.getTypeAtLocation(l),p=i.getPromisedTypeOfPromise(d)?P.createAwaitExpression(l):l;e.replaceNode(r,l,p)}else if(t===tde&&Er(o.parent)){if(s&&Me(o.parent.expression)){let l=i.getSymbolAtLocation(o.parent.expression);if(l&&s.has(na(l)))return}e.replaceNode(r,o.parent.expression,P.createParenthesizedExpression(P.createAwaitExpression(o.parent.expression))),hxe(e,o.parent.expression,r)}else if(To(nde,t)&&Um(o.parent)){if(s&&Me(o)){let l=i.getSymbolAtLocation(o);if(l&&s.has(na(l)))return}e.replaceNode(r,o,P.createParenthesizedExpression(P.createAwaitExpression(o))),hxe(e,o,r)}else{if(s&&yi(o.parent)&&Me(o.parent.name)){let l=i.getSymbolAtLocation(o.parent.name);if(l&&!db(s,na(l)))return}e.replaceNode(r,o,P.createAwaitExpression(o))}}function hxe(e,t,r){let i=ec(t.pos,r);i&&F3(i.end,i.parent,r)&&e.insertText(r,t.getStart(r),";")}var XK,tde,nde,YK,nUe=pt({"src/services/codefixes/addMissingAwait.ts"(){"use strict";Hr(),oa(),XK="addMissingAwait",tde=f.Property_0_does_not_exist_on_type_1.code,nde=[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],YK=[f.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,f.Operator_0_cannot_be_applied_to_type_1.code,f.Operator_0_cannot_be_applied_to_types_1_and_2.code,f.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,f.This_condition_will_always_return_true_since_this_0_is_always_defined.code,f.Type_0_is_not_an_array_type.code,f.Type_0_is_not_an_array_type_or_a_string_type.code,f.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,f.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,f.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,tde,...nde],ra({fixIds:[XK],errorCodes:YK,getCodeActions:function(t){let{sourceFile:r,errorCode:i,span:o,cancellationToken:s,program:l}=t,d=pxe(r,i,o,s,l);if(!d)return;let p=t.program.getTypeChecker(),h=m=>er.ChangeTracker.with(t,m);return pM([fxe(t,d,i,p,h),mxe(t,d,i,p,h)])},getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=e.program.getTypeChecker(),s=new Set;return Qa(e,YK,(l,d)=>{let p=pxe(t,d.code,d,i,r);if(!p)return;let h=m=>(m(l),[]);return fxe(e,p,d.code,o,h,s)||mxe(e,p,d.code,o,h,s)})}})}});function gxe(e,t,r,i,o){let s=Hi(t,r),l=Rn(s,h=>H1(h.parent)?h.parent.initializer===h:rUe(h)?!1:"quit");if(l)return $K(e,l,t,o);let d=s.parent;if(Zn(d)&&d.operatorToken.kind===64&&Cc(d.parent))return $K(e,s,t,o);if(Bd(d)){let h=i.getTypeChecker();return ji(d.elements,m=>iUe(m,h))?$K(e,d,t,o):void 0}let p=Rn(s,h=>Cc(h.parent)?!0:oUe(h)?!1:"quit");if(p){let h=i.getTypeChecker();return vxe(p,h)?$K(e,p,t,o):void 0}}function $K(e,t,r,i){(!i||db(i,t))&&e.insertModifierBefore(r,87,t)}function rUe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function iUe(e,t){let r=Me(e)?e:lc(e,!0)&&Me(e.left)?e.left:void 0;return!!r&&!t.getSymbolAtLocation(r)}function oUe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function vxe(e,t){return Zn(e)?e.operatorToken.kind===28?ji([e.left,e.right],r=>vxe(r,t)):e.operatorToken.kind===64&&Me(e.left)&&!t.getSymbolAtLocation(e.left):!1}var QK,rde,aUe=pt({"src/services/codefixes/addMissingConst.ts"(){"use strict";Hr(),oa(),QK="addMissingConst",rde=[f.Cannot_find_name_0.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],ra({errorCodes:rde,getCodeActions:function(t){let r=er.ChangeTracker.with(t,i=>gxe(i,t.sourceFile,t.span.start,t.program));if(r.length>0)return[Go(QK,r,f.Add_const_to_unresolved_variable,QK,f.Add_const_to_all_unresolved_variables)]},fixIds:[QK],getAllCodeActions:e=>{let t=new Set;return Qa(e,rde,(r,i)=>gxe(r,i.file,i.start,e.program,t))}})}});function yxe(e,t,r,i){let o=Hi(t,r);if(!Me(o))return;let s=o.parent;s.kind===172&&(!i||db(i,s))&&e.insertModifierBefore(t,138,s)}var ZK,ide,sUe=pt({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";Hr(),oa(),ZK="addMissingDeclareProperty",ide=[f.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],ra({errorCodes:ide,getCodeActions:function(t){let r=er.ChangeTracker.with(t,i=>yxe(i,t.sourceFile,t.span.start));if(r.length>0)return[Go(ZK,r,f.Prefix_with_declare,ZK,f.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[ZK],getAllCodeActions:e=>{let t=new Set;return Qa(e,ide,(r,i)=>yxe(r,i.file,i.start,t))}})}});function bxe(e,t,r){let i=Hi(t,r),o=Rn(i,Xc);x.assert(!!o,"Expected position to be owned by a decorator.");let s=P.createCallExpression(o.expression,void 0,void 0);e.replaceNode(t,o.expression,s)}var eX,ode,lUe=pt({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";Hr(),oa(),eX="addMissingInvocationForDecorator",ode=[f._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],ra({errorCodes:ode,getCodeActions:function(t){let r=er.ChangeTracker.with(t,i=>bxe(i,t.sourceFile,t.span.start));return[Go(eX,r,f.Call_decorator_expression,eX,f.Add_to_all_uncalled_decorators)]},fixIds:[eX],getAllCodeActions:e=>Qa(e,ode,(t,r)=>bxe(t,r.file,r.start))})}});function Exe(e,t,r){let i=Hi(t,r),o=i.parent;if(!ao(o))return x.fail("Tried to add a parameter name to a non-parameter: "+x.formatSyntaxKind(i.kind));let s=o.parent.parameters.indexOf(o);x.assert(!o.type,"Tried to add a parameter name to a parameter that already had one."),x.assert(s>-1,"Parameter not found in parent parameter list.");let l=o.name.getEnd(),d=P.createTypeReferenceNode(o.name,void 0),p=Sxe(t,o);for(;p;)d=P.createArrayTypeNode(d),l=p.getEnd(),p=Sxe(t,p);let h=P.createParameterDeclaration(o.modifiers,o.dotDotDotToken,"arg"+s,o.questionToken,o.dotDotDotToken&&!A2(d)?P.createArrayTypeNode(d):d,o.initializer);e.replaceRange(t,qp(o.getStart(t),l),h)}function Sxe(e,t){let r=S0(t.name,t.parent,e);if(r&&r.kind===23&&i0(r.parent)&&ao(r.parent.parent))return r.parent.parent}var tX,ade,cUe=pt({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";Hr(),oa(),tX="addNameToNamelessParameter",ade=[f.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],ra({errorCodes:ade,getCodeActions:function(t){let r=er.ChangeTracker.with(t,i=>Exe(i,t.sourceFile,t.span.start));return[Go(tX,r,f.Add_parameter_name,tX,f.Add_names_to_all_parameters_without_names)]},fixIds:[tX],getAllCodeActions:e=>Qa(e,ade,(t,r)=>Exe(t,r.file,r.start))})}});function dUe(e,t,r){var i,o;let s=Txe(NJ(e,t),r);if(!s)return je;let{source:l,target:d}=s,p=uUe(l,d,r)?r.getTypeAtLocation(d.expression):r.getTypeAtLocation(d);return(o=(i=p.symbol)==null?void 0:i.declarations)!=null&&o.some(h=>Nn(h).fileName.match(/\.d\.ts$/))?je:r.getExactOptionalProperties(p)}function uUe(e,t,r){return Er(t)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(t.expression)).length&&r.getTypeAtLocation(e)===r.getUndefinedType()}function Txe(e,t){var r;if(e){if(Zn(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(yi(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Bo(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!DA(i.valueDeclaration.kind)||!lt(e))return;let o=e.parent.arguments.indexOf(e);if(o===-1)return;let s=i.valueDeclaration.parameters[o].name;if(Me(s))return{source:e,target:s}}else if(Hl(e.parent)&&Me(e.parent.name)||xu(e.parent)){let i=Txe(e.parent.parent,t);if(!i)return;let o=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),s=(r=o?.declarations)==null?void 0:r[0];return s?{source:Hl(e.parent)?e.parent.initializer:e.parent.name,target:s}:void 0}}else return}function pUe(e,t){for(let r of t){let i=r.valueDeclaration;if(i&&(Gu(i)||xo(i))&&i.type){let o=P.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],P.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,o)}}}var sde,Axe,fUe=pt({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";Hr(),oa(),sde="addOptionalPropertyUndefined",Axe=[f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],ra({errorCodes:Axe,getCodeActions(e){let t=e.program.getTypeChecker(),r=dUe(e.sourceFile,e.span,t);if(!r.length)return;let i=er.ChangeTracker.with(e,o=>pUe(o,r));return[Im(sde,i,f.Add_undefined_to_optional_property_type)]},fixIds:[sde]})}});function Ixe(e,t){let r=Hi(e,t);return Vr(ao(r.parent)?r.parent.parent:r.parent,xxe)}function xxe(e){return mUe(e)&&Rxe(e)}function Rxe(e){return _s(e)?e.parameters.some(Rxe)||!e.type&&!!BM(e):!e.type&&!!bb(e)}function Dxe(e,t,r){if(_s(r)&&(BM(r)||r.parameters.some(i=>!!bb(i)))){if(!r.typeParameters){let o=VW(r);o.length&&e.insertTypeParameters(t,r,o)}let i=hs(r)&&!Ya(r,21,t);i&&e.insertNodeBefore(t,Sa(r.parameters),P.createToken(21));for(let o of r.parameters)if(!o.type){let s=bb(o);s&&e.tryInsertTypeAnnotation(t,o,He(s,R0,xi))}if(i&&e.insertNodeAfter(t,Da(r.parameters),P.createToken(22)),!r.type){let o=BM(r);o&&e.tryInsertTypeAnnotation(t,r,He(o,R0,xi))}}else{let i=x.checkDefined(bb(r),"A JSDocType for this declaration should exist");x.assert(!r.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,r,He(i,R0,xi))}}function mUe(e){return _s(e)||e.kind===260||e.kind===171||e.kind===172}function R0(e){switch(e.kind){case 319:case 320:return P.createTypeReferenceNode("any",je);case 323:return hUe(e);case 322:return R0(e.type);case 321:return gUe(e);case 325:return vUe(e);case 324:return yUe(e);case 183:return EUe(e);case 329:return _Ue(e);default:let t=un(e,R0,void 0);return $n(t,1),t}}function _Ue(e){let t=P.createTypeLiteralNode(nn(e.jsDocPropertyTags,r=>P.createPropertySignature(void 0,Me(r.name)?r.name:r.name.right,t2(r)?P.createToken(58):void 0,r.typeExpression&&He(r.typeExpression.type,R0,xi)||P.createKeywordTypeNode(133))));return $n(t,1),t}function hUe(e){return P.createUnionTypeNode([He(e.type,R0,xi),P.createTypeReferenceNode("undefined",je)])}function gUe(e){return P.createUnionTypeNode([He(e.type,R0,xi),P.createTypeReferenceNode("null",je)])}function vUe(e){return P.createArrayTypeNode(He(e.type,R0,xi))}function yUe(e){return P.createFunctionTypeNode(je,e.parameters.map(bUe),e.type??P.createKeywordTypeNode(133))}function bUe(e){let t=e.parent.parameters.indexOf(e),r=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(r?"rest":"arg"+t),o=r?P.createToken(26):e.dotDotDotToken;return P.createParameterDeclaration(e.modifiers,o,i,e.questionToken,He(e.type,R0,xi),e.initializer)}function EUe(e){let t=e.typeName,r=e.typeArguments;if(Me(e.typeName)){if(TW(e))return SUe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=P.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?r=P.createNodeArray([P.createTypeReferenceNode("any",je)]):r=Dn(e.typeArguments,R0,xi)}return P.createTypeReferenceNode(t,r)}function SUe(e){let t=P.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,P.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),r=P.createTypeLiteralNode([P.createIndexSignature(void 0,[t],e.typeArguments[1])]);return $n(r,1),r}var nX,lde,TUe=pt({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";Hr(),oa(),nX="annotateWithTypeFromJSDoc",lde=[f.JSDoc_types_may_be_moved_to_TypeScript_types.code],ra({errorCodes:lde,getCodeActions(e){let t=Ixe(e.sourceFile,e.span.start);if(!t)return;let r=er.ChangeTracker.with(e,i=>Dxe(i,e.sourceFile,t));return[Go(nX,r,f.Annotate_with_type_from_JSDoc,nX,f.Annotate_everything_with_types_from_JSDoc)]},fixIds:[nX],getAllCodeActions:e=>Qa(e,lde,(t,r)=>{let i=Ixe(r.file,r.start);i&&Dxe(t,r.file,i)})})}});function Cxe(e,t,r,i,o,s){let l=i.getSymbolAtLocation(Hi(t,r));if(!l||!l.valueDeclaration||!(l.flags&19))return;let d=l.valueDeclaration;if(Ql(d)||us(d))e.replaceNode(t,d,m(d));else if(yi(d)){let v=h(d);if(!v)return;let E=d.parent.parent;yc(d.parent)&&d.parent.declarations.length>1?(e.delete(t,d),e.insertNodeAfter(t,E,v)):e.replaceNode(t,E,v)}function p(v){let E=[];return v.exports&&v.exports.forEach(C=>{if(C.name==="prototype"&&C.declarations){let R=C.declarations[0];if(C.declarations.length===1&&Er(R)&&Zn(R.parent)&&R.parent.operatorToken.kind===64&&fa(R.parent.right)){let L=R.parent.right;A(L.symbol,void 0,E)}}else A(C,[P.createToken(126)],E)}),v.members&&v.members.forEach((C,R)=>{var L,G,U,K;if(R==="constructor"&&C.valueDeclaration){let F=(K=(U=(G=(L=v.exports)==null?void 0:L.get("prototype"))==null?void 0:G.declarations)==null?void 0:U[0])==null?void 0:K.parent;F&&Zn(F)&&fa(F.right)&&ct(F.right.properties,iX)||e.delete(t,C.valueDeclaration.parent);return}A(C,void 0,E)}),E;function S(C,R){return ds(C)?Er(C)&&iX(C)?!0:Lo(R):ji(C.properties,L=>!!(El(L)||w8(L)||Hl(L)&&us(L.initializer)&&L.name||iX(L)))}function A(C,R,L){if(!(C.flags&8192)&&!(C.flags&4096))return;let G=C.valueDeclaration,U=G.parent,K=U.right;if(!S(G,K)||ct(L,de=>{let fe=mo(de);return!!(fe&&Me(fe)&&ar(fe)===$s(C))}))return;let F=U.parent&&U.parent.kind===244?U.parent:U;if(e.delete(t,F),!K){L.push(P.createPropertyDeclaration(R,C.name,void 0,void 0,void 0));return}if(ds(G)&&(us(K)||hs(K))){let de=Np(t,o),fe=AUe(G,s,de);fe&&oe(L,K,fe);return}else if(fa(K)){an(K.properties,de=>{(El(de)||w8(de))&&L.push(de),Hl(de)&&us(de.initializer)&&oe(L,de.initializer,de.name),iX(de)});return}else{if(wd(t)||!Er(G))return;let de=P.createPropertyDeclaration(R,G.name,void 0,void 0,K);bR(U.parent,de,t),L.push(de);return}function oe(de,fe,q){return us(fe)?W(de,fe,q):$(de,fe,q)}function W(de,fe,q){let H=ro(R,rX(fe,134)),ee=P.createMethodDeclaration(H,void 0,q,void 0,void 0,fe.parameters,void 0,fe.body);bR(U,ee,t),de.push(ee)}function $(de,fe,q){let H=fe.body,ee;H.kind===241?ee=H:ee=P.createBlock([P.createReturnStatement(H)]);let le=ro(R,rX(fe,134)),Ee=P.createMethodDeclaration(le,void 0,q,void 0,void 0,fe.parameters,void 0,ee);bR(U,Ee,t),de.push(Ee)}}}function h(v){let E=v.initializer;if(!E||!us(E)||!Me(v.name))return;let S=p(v.symbol);E.body&&S.unshift(P.createConstructorDeclaration(void 0,E.parameters,E.body));let A=rX(v.parent.parent,95);return P.createClassDeclaration(A,v.name,void 0,void 0,S)}function m(v){let E=p(l);v.body&&E.unshift(P.createConstructorDeclaration(void 0,v.parameters,v.body));let S=rX(v,95);return P.createClassDeclaration(S,v.name,void 0,void 0,E)}}function rX(e,t){return Yf(e)?Cr(e.modifiers,r=>r.kind===t):void 0}function iX(e){return e.name?!!(Me(e.name)&&e.name.text==="constructor"):!1}function AUe(e,t,r){if(Er(e))return e.name;let i=e.argumentExpression;if(Bu(i))return i;if(Ga(i))return Sp(i.text,Wa(t))?P.createIdentifier(i.text):eI(i)?P.createStringLiteral(i.text,r===0):i}var oX,cde,IUe=pt({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";Hr(),oa(),oX="convertFunctionToEs6Class",cde=[f.This_constructor_function_may_be_converted_to_a_class_declaration.code],ra({errorCodes:cde,getCodeActions(e){let t=er.ChangeTracker.with(e,r=>Cxe(r,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[Go(oX,t,f.Convert_function_to_an_ES2015_class,oX,f.Convert_all_constructor_functions_to_classes)]},fixIds:[oX],getAllCodeActions:e=>Qa(e,cde,(t,r)=>Cxe(t,r.file,r.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function Nxe(e,t,r,i){let o=Hi(t,r),s;if(Me(o)&&yi(o.parent)&&o.parent.initializer&&_s(o.parent.initializer)?s=o.parent.initializer:s=Vr(cp(Hi(t,r)),tK),!s)return;let l=new Map,d=Jn(s),p=RUe(s,i),h=DUe(s,i,l);if(!ZJ(h,i))return;let m=h.body&&Do(h.body)?xUe(h.body,i):je,v={checker:i,synthNamesMap:l,setOfExpressionsToReturn:p,isInJSFile:d};if(!m.length)return;let E=ua(t.text,Qm(s).pos);e.insertModifierAt(t,E,134,{suffix:" "});for(let S of m)if(Ao(S,function A(C){if(Bo(C)){let R=NR(C,C,v,!1);if(kI())return!0;e.replaceNodeWithNodes(t,S,R)}else if(!Lo(C)&&(Ao(C,A),kI()))return!0}),kI())return}function xUe(e,t){let r=[];return GE(e,i=>{tz(i,t)&&r.push(i)}),r}function RUe(e,t){if(!e.body)return new Set;let r=new Set;return Ao(e.body,function i(o){SO(o,t,"then")?(r.add(Fa(o)),an(o.arguments,i)):SO(o,t,"catch")||SO(o,t,"finally")?(r.add(Fa(o)),Ao(o,i)):Mxe(o,t)?r.add(Fa(o)):Ao(o,i)}),r}function SO(e,t,r){if(!Bo(e))return!1;let o=Ok(e,r)&&t.getTypeAtLocation(e);return!!(o&&t.getPromisedTypeOfPromise(o))}function Pxe(e,t){return(br(e)&4)!==0&&e.target===t}function aX(e,t,r){if(e.expression.name.escapedText==="finally")return;let i=r.getTypeAtLocation(e.expression.expression);if(Pxe(i,r.getPromiseType())||Pxe(i,r.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===qg(e.arguments,0))return qg(e.typeArguments,0);if(t===qg(e.arguments,1))return qg(e.typeArguments,1)}else return qg(e.typeArguments,0)}function Mxe(e,t){return lt(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function DUe(e,t,r){let i=new Map,o=bp();return Ao(e,function s(l){if(!Me(l)){Ao(l,s);return}let d=t.getSymbolAtLocation(l);if(d){let p=t.getTypeAtLocation(l),h=Fxe(p,t),m=na(d).toString();if(h&&!ao(l.parent)&&!_s(l.parent)&&!r.has(m)){let v=Ac(h.parameters),E=v?.valueDeclaration&&ao(v.valueDeclaration)&&Vr(v.valueDeclaration.name,Me)||P.createUniqueName("result",16),S=Lxe(E,o);r.set(m,S),o.add(E.text,d)}else if(l.parent&&(ao(l.parent)||yi(l.parent)||Na(l.parent))){let v=l.text,E=o.get(v);if(E&&E.some(S=>S!==d)){let S=Lxe(l,o);i.set(m,S.identifier),r.set(m,S),o.add(v,d)}else{let S=Fs(l);r.set(m,cP(S)),o.add(v,d)}}}}),Yk(e,!0,s=>{if(Na(s)&&Me(s.name)&&Rf(s.parent)){let l=t.getSymbolAtLocation(s.name),d=l&&i.get(String(na(l)));if(d&&d.text!==(s.name||s.propertyName).getText())return P.createBindingElement(s.dotDotDotToken,s.propertyName||s.name,d,s.initializer)}else if(Me(s)){let l=t.getSymbolAtLocation(s),d=l&&i.get(String(na(l)));if(d)return P.createIdentifier(d.text)}})}function Lxe(e,t){let r=(t.get(e.text)||je).length,i=r===0?e:P.createIdentifier(e.text+"_"+r);return cP(i)}function kI(){return!Rz}function Kb(){return Rz=!1,je}function NR(e,t,r,i,o){if(SO(t,r.checker,"then"))return PUe(t,qg(t.arguments,0),qg(t.arguments,1),r,i,o);if(SO(t,r.checker,"catch"))return wxe(t,qg(t.arguments,0),r,i,o);if(SO(t,r.checker,"finally"))return NUe(t,qg(t.arguments,0),r,i,o);if(Er(t))return NR(e,t.expression,r,i,o);let s=r.checker.getTypeAtLocation(t);return s&&r.checker.getPromisedTypeOfPromise(s)?(x.assertNode(sl(t).parent,Er),MUe(e,t,r,i,o)):Kb()}function sX({checker:e},t){if(t.kind===106)return!0;if(Me(t)&&!ws(t)&&ar(t)==="undefined"){let r=e.getSymbolAtLocation(t);return!r||e.isUndefinedSymbol(r)}return!1}function CUe(e){let t=P.createUniqueName(e.identifier.text,16);return cP(t)}function kxe(e,t,r){let i;return r&&!AO(e,t)&&(TO(r)?(i=r,t.synthNamesMap.forEach((o,s)=>{if(o.identifier.text===r.identifier.text){let l=CUe(r);t.synthNamesMap.set(s,l)}})):i=cP(P.createUniqueName("result",16),r.types),fde(i)),i}function Oxe(e,t,r,i,o){let s=[],l;if(i&&!AO(e,t)){l=Fs(fde(i));let d=i.types,p=t.checker.getUnionType(d,2),h=t.isInJSFile?void 0:t.checker.typeToTypeNode(p,void 0,void 0),m=[P.createVariableDeclaration(l,void 0,h)],v=P.createVariableStatement(void 0,P.createVariableDeclarationList(m,1));s.push(v)}return s.push(r),o&&l&&OUe(o)&&s.push(P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(Fs(Vxe(o)),void 0,void 0,l)],2))),s}function NUe(e,t,r,i,o){if(!t||sX(r,t))return NR(e,e.expression.expression,r,i,o);let s=kxe(e,r,o),l=NR(e,e.expression.expression,r,!0,s);if(kI())return Kb();let d=ude(t,i,void 0,void 0,e,r);if(kI())return Kb();let p=P.createBlock(l),h=P.createBlock(d),m=P.createTryStatement(p,void 0,h);return Oxe(e,r,m,s,o)}function wxe(e,t,r,i,o){if(!t||sX(r,t))return NR(e,e.expression.expression,r,i,o);let s=Bxe(t,r),l=kxe(e,r,o),d=NR(e,e.expression.expression,r,!0,l);if(kI())return Kb();let p=ude(t,i,l,s,e,r);if(kI())return Kb();let h=P.createBlock(d),m=P.createCatchClause(s&&Fs(xz(s)),P.createBlock(p)),v=P.createTryStatement(h,m,void 0);return Oxe(e,r,v,l,o)}function PUe(e,t,r,i,o,s){if(!t||sX(i,t))return wxe(e,r,i,o,s);if(r&&!sX(i,r))return Kb();let l=Bxe(t,i),d=NR(e.expression.expression,e.expression.expression,i,!0,l);if(kI())return Kb();let p=ude(t,o,s,l,e,i);return kI()?Kb():ro(d,p)}function MUe(e,t,r,i,o){if(AO(e,r)){let s=Fs(t);return i&&(s=P.createAwaitExpression(s)),[P.createReturnStatement(s)]}return lX(o,P.createAwaitExpression(t),void 0)}function lX(e,t,r){return!e||Gxe(e)?[P.createExpressionStatement(t)]:TO(e)&&e.hasBeenDeclared?[P.createExpressionStatement(P.createAssignment(Fs(pde(e)),t))]:[P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(Fs(xz(e)),void 0,r,t)],2))]}function dde(e,t){if(t&&e){let r=P.createUniqueName("result",16);return[...lX(cP(r),e,t),P.createReturnStatement(r)]}return[P.createReturnStatement(e)]}function ude(e,t,r,i,o,s){var l;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let d=P.createCallExpression(Fs(e),void 0,TO(i)?[pde(i)]:[]);if(AO(o,s))return dde(d,aX(o,e,s.checker));let p=s.checker.getTypeAtLocation(e),h=s.checker.getSignaturesOfType(p,0);if(!h.length)return Kb();let m=h[0].getReturnType(),v=lX(r,P.createAwaitExpression(d),aX(o,e,s.checker));return r&&r.types.push(s.checker.getAwaitedType(m)||m),v;case 218:case 219:{let E=e.body,S=(l=Fxe(s.checker.getTypeAtLocation(e),s.checker))==null?void 0:l.getReturnType();if(Do(E)){let A=[],C=!1;for(let R of E.statements)if(Kf(R))if(C=!0,tz(R,s.checker))A=A.concat(zxe(s,R,t,r));else{let L=S&&R.expression?Wxe(s.checker,S,R.expression):R.expression;A.push(...dde(L,aX(o,e,s.checker)))}else{if(t&&GE(R,Ug))return Kb();A.push(R)}return AO(o,s)?A.map(R=>Fs(R)):LUe(A,r,s,C)}else{let A=eK(E,s.checker)?zxe(s,P.createReturnStatement(E),t,r):je;if(A.length>0)return A;if(S){let C=Wxe(s.checker,S,E);if(AO(o,s))return dde(C,aX(o,e,s.checker));{let R=lX(r,C,void 0);return r&&r.types.push(s.checker.getAwaitedType(S)||S),R}}else return Kb()}}default:return Kb()}return je}function Wxe(e,t,r){let i=Fs(r);return e.getPromisedTypeOfPromise(t)?P.createAwaitExpression(i):i}function Fxe(e,t){let r=t.getSignaturesOfType(e,0);return Ns(r)}function LUe(e,t,r,i){let o=[];for(let s of e)if(Kf(s)){if(s.expression){let l=Mxe(s.expression,r.checker)?P.createAwaitExpression(s.expression):s.expression;t===void 0?o.push(P.createExpressionStatement(l)):TO(t)&&t.hasBeenDeclared?o.push(P.createExpressionStatement(P.createAssignment(pde(t),l))):o.push(P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(xz(t),void 0,void 0,l)],2)))}}else o.push(Fs(s));return!i&&t!==void 0&&o.push(P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(xz(t),void 0,void 0,P.createIdentifier("undefined"))],2))),o}function zxe(e,t,r,i){let o=[];return Ao(t,function s(l){if(Bo(l)){let d=NR(l,l,e,r,i);if(o=o.concat(d),o.length>0)return}else Lo(l)||Ao(l,s)}),o}function Bxe(e,t){let r=[],i;if(_s(e)){if(e.parameters.length>0){let p=e.parameters[0].name;i=o(p)}}else Me(e)?i=s(e):Er(e)&&Me(e.name)&&(i=s(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function o(p){if(Me(p))return s(p);let h=ta(p.elements,m=>vc(m)?[]:[o(m.name)]);return kUe(p,h)}function s(p){let h=d(p),m=l(h);return m&&t.synthNamesMap.get(na(m).toString())||cP(p,r)}function l(p){var h;return((h=Vr(p,Hm))==null?void 0:h.symbol)??t.checker.getSymbolAtLocation(p)}function d(p){return p.original?p.original:p}}function Gxe(e){return e?TO(e)?!e.identifier.text:ji(e.elements,Gxe):!0}function cP(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function kUe(e,t=je,r=[]){return{kind:1,bindingPattern:e,elements:t,types:r}}function pde(e){return e.hasBeenReferenced=!0,e.identifier}function xz(e){return TO(e)?fde(e):Vxe(e)}function Vxe(e){for(let t of e.elements)xz(t);return e.bindingPattern}function fde(e){return e.hasBeenDeclared=!0,e.identifier}function TO(e){return e.kind===0}function OUe(e){return e.kind===1}function AO(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Fa(e.original))}var cX,mde,Rz,wUe=pt({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";Hr(),oa(),cX="convertToAsyncFunction",mde=[f.This_may_be_converted_to_an_async_function.code],Rz=!0,ra({errorCodes:mde,getCodeActions(e){Rz=!0;let t=er.ChangeTracker.with(e,r=>Nxe(r,e.sourceFile,e.span.start,e.program.getTypeChecker()));return Rz?[Go(cX,t,f.Convert_to_async_function,cX,f.Convert_all_to_async_functions)]:[]},fixIds:[cX],getAllCodeActions:e=>Qa(e,mde,(t,r)=>Nxe(t,r.file,r.start,e.program.getTypeChecker()))})}});function WUe(e,t,r,i,o){var s;for(let l of e.imports){let d=(s=r.getResolvedModuleFromModuleSpecifier(l))==null?void 0:s.resolvedModule;if(!d||d.resolvedFileName!==t.fileName)continue;let p=yC(l);switch(p.kind){case 271:i.replaceNode(e,p,fv(p.name,void 0,l,o));break;case 213:Xd(p,!1)&&i.replaceNode(e,p,P.createPropertyAccessExpression(Fs(p),"default"));break}}}function FUe(e,t,r,i,o){let s={original:$Ue(e),additional:new Set},l=zUe(e,t,s);BUe(e,l,r);let d=!1,p;for(let h of Cr(e.statements,cl)){let m=Uxe(e,h,r,t,s,i,o);m&&$8(m,p??(p=new Map))}for(let h of Cr(e.statements,m=>!cl(m))){let m=GUe(e,h,t,r,s,i,l,p,o);d=d||m}return p?.forEach((h,m)=>{r.replaceNode(e,m,h)}),d}function zUe(e,t,r){let i=new Map;return jxe(e,o=>{let{text:s}=o.name;!i.has(s)&&(q9(o.name)||t.resolveName(s,o,111551,!0))&&i.set(s,dX(`_${s}`,r))}),i}function BUe(e,t,r){jxe(e,(i,o)=>{if(o)return;let{text:s}=i.name;r.replaceNode(e,i,P.createIdentifier(t.get(s)||s))})}function jxe(e,t){e.forEachChild(function r(i){if(Er(i)&&_0(e,i.expression)&&Me(i.name)){let{parent:o}=i;t(i,Zn(o)&&o.left===i&&o.operatorToken.kind===64)}i.forEachChild(r)})}function GUe(e,t,r,i,o,s,l,d,p){switch(t.kind){case 243:return Uxe(e,t,i,r,o,s,p),!1;case 244:{let{expression:h}=t;switch(h.kind){case 213:return Xd(h,!0)&&i.replaceNode(e,t,fv(void 0,void 0,h.arguments[0],p)),!1;case 226:{let{operatorToken:m}=h;return m.kind===64&&jUe(e,r,h,i,l,d)}}}default:return!1}}function Uxe(e,t,r,i,o,s,l){let{declarationList:d}=t,p=!1,h=nn(d.declarations,m=>{let{name:v,initializer:E}=m;if(E){if(_0(e,E))return p=!0,dP([]);if(Xd(E,!0))return p=!0,XUe(v,E.arguments[0],i,o,s,l);if(Er(E)&&Xd(E.expression,!0))return p=!0,VUe(v,E.name.text,E.expression.arguments[0],o,l)}return dP([P.createVariableStatement(void 0,P.createVariableDeclarationList([m],d.flags))])});if(p){r.replaceNodeWithNodes(e,t,ta(h,v=>v.newImports));let m;return an(h,v=>{v.useSitesToUnqualify&&$8(v.useSitesToUnqualify,m??(m=new Map))}),m}}function VUe(e,t,r,i,o){switch(e.kind){case 206:case 207:{let s=dX(t,i);return dP([Kxe(s,t,r,o),uX(void 0,e,P.createIdentifier(s))])}case 80:return dP([Kxe(e.text,t,r,o)]);default:return x.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function jUe(e,t,r,i,o,s){let{left:l,right:d}=r;if(!Er(l))return!1;if(_0(e,l))if(_0(e,d))i.delete(e,r.parent);else{let p=fa(d)?UUe(d,s):Xd(d,!0)?qUe(d.arguments[0],t):void 0;return p?(i.replaceNodeWithNodes(e,r.parent,p[0]),p[1]):(i.replaceRangeWithText(e,qp(l.getStart(e),d.pos),"export default"),!0)}else _0(e,l.expression)&&HUe(e,r,i,o);return!1}function UUe(e,t){let r=$5(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Me(i.name)?KUe(i.name.text,i.initializer,t):void 0;case 174:return Me(i.name)?Jxe(i.name.text,[P.createToken(95)],i,t):void 0;default:x.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return r&&[r,!1]}function HUe(e,t,r,i){let{text:o}=t.left.name,s=i.get(o);if(s!==void 0){let l=[uX(void 0,s,t.right),gde([P.createExportSpecifier(!1,s,o)])];r.replaceNodeWithNodes(e,t.parent,l)}else JUe(t,e,r)}function qUe(e,t){let r=e.text,i=t.getSymbolAtLocation(e),o=i?i.exports:r8;return o.has("export=")?[[_de(r)],!0]:o.has("default")?o.size>1?[[Hxe(r),_de(r)],!0]:[[_de(r)],!0]:[[Hxe(r)],!1]}function Hxe(e){return gde(void 0,e)}function _de(e){return gde([P.createExportSpecifier(!1,void 0,"default")],e)}function JUe({left:e,right:t,parent:r},i,o){let s=e.name.text;if((us(t)||hs(t)||Dc(t))&&(!t.name||t.name.text===s)){o.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},P.createToken(95),{suffix:" "}),t.name||o.insertName(i,t,s);let l=Ya(r,27,i);l&&o.delete(i,l)}else o.replaceNodeRangeWithNodes(i,e.expression,Ya(e,25,i),[P.createToken(95),P.createToken(87)],{joiner:" ",suffix:" "})}function KUe(e,t,r){let i=[P.createToken(95)];switch(t.kind){case 218:{let{name:s}=t;if(s&&s.text!==e)return o()}case 219:return Jxe(e,i,t,r);case 231:return ZUe(e,i,t,r);default:return o()}function o(){return uX(i,P.createIdentifier(e),hde(t,r))}}function hde(e,t){if(!t||!ct(bo(t.keys()),i=>Cp(e,i)))return e;return oo(e)?SJ(e,!0,r):Yk(e,!0,r);function r(i){if(i.kind===211){let o=t.get(i);return t.delete(i),o}}}function XUe(e,t,r,i,o,s){switch(e.kind){case 206:{let l=$5(e.elements,d=>d.dotDotDotToken||d.initializer||d.propertyName&&!Me(d.propertyName)||!Me(d.name)?void 0:Xxe(d.propertyName&&d.propertyName.text,d.name.text));if(l)return dP([fv(void 0,l,t,s)])}case 207:{let l=dX(Nde(t.text,o),i);return dP([fv(P.createIdentifier(l),void 0,t,s),uX(void 0,Fs(e),P.createIdentifier(l))])}case 80:return YUe(e,t,r,i,s);default:return x.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function YUe(e,t,r,i,o){let s=r.getSymbolAtLocation(e),l=new Map,d=!1,p;for(let m of i.original.get(e.text)){if(r.getSymbolAtLocation(m)!==s||m===e)continue;let{parent:v}=m;if(Er(v)){let{name:{text:E}}=v;if(E==="default"){d=!0;let S=m.getText();(p??(p=new Map)).set(v,P.createIdentifier(S))}else{x.assert(v.expression===m,"Didn't expect expression === use");let S=l.get(E);S===void 0&&(S=dX(E,i),l.set(E,S)),(p??(p=new Map)).set(v,P.createIdentifier(S))}}else d=!0}let h=l.size===0?void 0:bo(OD(l.entries(),([m,v])=>P.createImportSpecifier(!1,m===v?void 0:P.createIdentifier(m),P.createIdentifier(v))));return h||(d=!0),dP([fv(d?Fs(e):void 0,h,t,o)],p)}function dX(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function $Ue(e){let t=bp();return qxe(e,r=>t.add(r.text,r)),t}function qxe(e,t){Me(e)&&QUe(e)&&t(e),e.forEachChild(r=>qxe(r,t))}function QUe(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function Jxe(e,t,r,i){return P.createFunctionDeclaration(ro(t,T0(r.modifiers)),Fs(r.asteriskToken),e,T0(r.typeParameters),T0(r.parameters),Fs(r.type),P.converters.convertToFunctionBlock(hde(r.body,i)))}function ZUe(e,t,r,i){return P.createClassDeclaration(ro(t,T0(r.modifiers)),e,T0(r.typeParameters),T0(r.heritageClauses),hde(r.members,i))}function Kxe(e,t,r,i){return t==="default"?fv(P.createIdentifier(e),void 0,r,i):fv(void 0,[Xxe(t,e)],r,i)}function Xxe(e,t){return P.createImportSpecifier(!1,e!==void 0&&e!==t?P.createIdentifier(e):void 0,P.createIdentifier(t))}function uX(e,t,r){return P.createVariableStatement(e,P.createVariableDeclarationList([P.createVariableDeclaration(t,void 0,void 0,r)],2))}function gde(e,t){return P.createExportDeclaration(void 0,!1,e&&P.createNamedExports(e),t===void 0?void 0:P.createStringLiteral(t))}function dP(e,t){return{newImports:e,useSitesToUnqualify:t}}var eHe=pt({"src/services/codefixes/convertToEsModule.ts"(){"use strict";Hr(),oa(),ra({errorCodes:[f.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:r,preferences:i}=e,o=er.ChangeTracker.with(e,s=>{if(FUe(t,r.getTypeChecker(),s,Wa(r.getCompilerOptions()),Np(t,i)))for(let d of r.getSourceFiles())WUe(d,t,r,s,Np(d,i))});return[Im("convertToEsModule",o,f.Convert_to_ES_module)]}})}});function Yxe(e,t){let r=Rn(Hi(e,t),$d);return x.assert(!!r,"Expected position to be owned by a qualified name."),Me(r.left)?r:void 0}function $xe(e,t,r){let i=r.right.text,o=P.createIndexedAccessTypeNode(P.createTypeReferenceNode(r.left,void 0),P.createLiteralTypeNode(P.createStringLiteral(i)));e.replaceNode(t,r,o)}var pX,vde,tHe=pt({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";Hr(),oa(),pX="correctQualifiedNameToIndexedAccessType",vde=[f.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],ra({errorCodes:vde,getCodeActions(e){let t=Yxe(e.sourceFile,e.span.start);if(!t)return;let r=er.ChangeTracker.with(e,o=>$xe(o,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[Go(pX,r,[f.Rewrite_as_the_indexed_access_type_0,i],pX,f.Rewrite_all_as_indexed_access_types)]},fixIds:[pX],getAllCodeActions:e=>Qa(e,vde,(t,r)=>{let i=Yxe(r.file,r.start);i&&$xe(t,r.file,i)})})}});function Qxe(e,t){return Vr(Hi(t,e.start).parent,Ed)}function Zxe(e,t,r){if(!t)return;let i=t.parent,o=i.parent,s=nHe(t,r);if(s.length===i.elements.length)e.insertModifierBefore(r.sourceFile,156,i);else{let l=P.updateExportDeclaration(o,o.modifiers,!1,P.updateNamedExports(i,Cr(i.elements,p=>!To(s,p))),o.moduleSpecifier,void 0),d=P.createExportDeclaration(void 0,!0,P.createNamedExports(s),o.moduleSpecifier,void 0);e.replaceNode(r.sourceFile,o,l,{leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Exclude}),e.insertNodeAfter(r.sourceFile,o,d)}}function nHe(e,t){let r=e.parent;if(r.elements.length===1)return r.elements;let i=vle(eu(r),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Cr(r.elements,o=>{var s;return o===e||((s=gle(o,i))==null?void 0:s.code)===fX[0]})}var fX,mX,rHe=pt({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";Hr(),oa(),fX=[f.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],mX="convertToTypeOnlyExport",ra({errorCodes:fX,getCodeActions:function(t){let r=er.ChangeTracker.with(t,i=>Zxe(i,Qxe(t.span,t.sourceFile),t));if(r.length)return[Go(mX,r,f.Convert_to_type_only_export,mX,f.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[mX],getAllCodeActions:function(t){let r=new Map;return Qa(t,fX,(i,o)=>{let s=Qxe(o,t.sourceFile);s&&Jf(r,Fa(s.parent.parent))&&Zxe(i,s,t)})}})}});function eRe(e,t){let{parent:r}=Hi(e,t);return Iu(r)||cc(r)&&r.importClause?r:void 0}function tRe(e,t,r){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(s=>!s.isTypeOnly);if(i.length===1)return!0;let o=r.getTypeChecker();for(let s of i)if(ps.Core.eachSymbolReferenceInFile(s.name,o,t,d=>!Pb(d)))return!1;return!0}function Dz(e,t,r){var i;if(Iu(r))e.replaceNode(t,r,P.updateImportSpecifier(r,!0,r.propertyName,r.name));else{let o=r.importClause;if(o.name&&o.namedBindings)e.replaceNodeWithNodes(t,r,[P.createImportDeclaration(T0(r.modifiers,!0),P.createImportClause(!0,Fs(o.name,!0),void 0),Fs(r.moduleSpecifier,!0),Fs(r.attributes,!0)),P.createImportDeclaration(T0(r.modifiers,!0),P.createImportClause(!0,void 0,Fs(o.namedBindings,!0)),Fs(r.moduleSpecifier,!0),Fs(r.attributes,!0))]);else{let s=((i=o.namedBindings)==null?void 0:i.kind)===275?P.updateNamedImports(o.namedBindings,sc(o.namedBindings.elements,d=>P.updateImportSpecifier(d,!1,d.propertyName,d.name))):o.namedBindings,l=P.updateImportDeclaration(r,r.modifiers,P.updateImportClause(o,!0,o.name,s),r.moduleSpecifier,r.attributes);e.replaceNode(t,r,l)}}}var yde,Cz,iHe=pt({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";Hr(),oa(),yde=[f.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,f._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code,f._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],Cz="convertToTypeOnlyImport",ra({errorCodes:yde,getCodeActions:function(t){var r;let i=eRe(t.sourceFile,t.span.start);if(i){let o=er.ChangeTracker.with(t,d=>Dz(d,t.sourceFile,i)),s=i.kind===276&&tRe(i,t.sourceFile,t.program)?er.ChangeTracker.with(t,d=>Dz(d,t.sourceFile,i.parent.parent.parent)):void 0,l=Go(Cz,o,i.kind===276?[f.Use_type_0,((r=i.propertyName)==null?void 0:r.text)??i.name.text]:f.Use_import_type,Cz,f.Fix_all_with_type_only_imports);return ct(s)?[Im(Cz,s,f.Use_import_type),l]:[l]}},fixIds:[Cz],getAllCodeActions:function(t){let r=new Set;return Qa(t,yde,(i,o)=>{let s=eRe(o.file,o.start);s?.kind===272&&!r.has(s)?(Dz(i,o.file,s),r.add(s)):s?.kind===276&&!r.has(s.parent.parent.parent)&&tRe(s,o.file,t.program)?(Dz(i,o.file,s.parent.parent.parent),r.add(s.parent.parent.parent)):s?.kind===276&&Dz(i,o.file,s)})}})}});function nRe(e,t,r,i,o=!1){if(!$S(t))return;let s=aHe(t);if(!s)return;let l=t.parent,{leftSibling:d,rightSibling:p}=oHe(t),h=l.getStart(),m="";!d&&l.comment&&(h=rRe(l,l.getStart(),t.getStart()),m=`${i} */${i}`),d&&(o&&$S(d)?(h=t.getStart(),m=""):(h=rRe(l,d.getStart(),t.getStart()),m=`${i} */${i}`));let v=l.getEnd(),E="";p&&(o&&$S(p)?(v=p.getStart(),E=`${i}${i}`):(v=p.getStart(),E=`${i}/**${i} * `)),e.replaceRange(r,{pos:h,end:v},s,{prefix:m,suffix:E})}function oHe(e){let t=e.parent,r=t.getChildCount()-1,i=t.getChildren().findIndex(l=>l.getStart()===e.getStart()&&l.getEnd()===e.getEnd()),o=i>0?t.getChildAt(i-1):void 0,s=i<r?t.getChildAt(i+1):void 0;return{leftSibling:o,rightSibling:s}}function rRe(e,t,r){let i=e.getText().substring(t-e.getStart(),r-e.getStart());for(let o=i.length;o>0;o--)if(!/[*/\s]/g.test(i.substring(o-1,o)))return t+o;return r}function aHe(e){var t;let{typeExpression:r}=e;if(!r)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(r.kind===329)return sHe(i,r);if(r.kind===316)return lHe(i,r)}}function sHe(e,t){let r=iRe(t);if(ct(r))return P.createInterfaceDeclaration(void 0,e,void 0,void 0,r)}function lHe(e,t){let r=Fs(t.type);if(r)return P.createTypeAliasDeclaration(void 0,P.createIdentifier(e),void 0,r)}function iRe(e){let t=e.jsDocPropertyTags;return ct(t)?Fi(t,i=>{var o;let s=cHe(i),l=(o=i.typeExpression)==null?void 0:o.type,d=i.isBracketed,p;if(l&&YS(l)){let h=iRe(l);p=P.createTypeLiteralNode(h)}else l&&(p=Fs(l));if(p&&s){let h=d?P.createToken(58):void 0;return P.createPropertySignature(void 0,s,h,p)}}):void 0}function cHe(e){return e.name.kind===80?e.name.text:e.name.right.text}function dHe(e){return ap(e)?ta(e.jsDoc,t=>{var r;return(r=t.tags)==null?void 0:r.filter(i=>$S(i))}):[]}var _X,bde,uHe=pt({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";Hr(),oa(),_X="convertTypedefToType",bde=[f.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],ra({fixIds:[_X],errorCodes:bde,getCodeActions(e){let t=mv(e.host,e.formatContext.options),r=Hi(e.sourceFile,e.span.start);if(!r)return;let i=er.ChangeTracker.with(e,o=>nRe(o,r,e.sourceFile,t));if(i.length>0)return[Go(_X,i,f.Convert_typedef_to_TypeScript_type,_X,f.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>Qa(e,bde,(t,r)=>{let i=mv(e.host,e.formatContext.options),o=Hi(r.file,r.start);o&&nRe(t,o,r.file,i,!0)})})}});function oRe(e,t){let r=Hi(e,t);if(Me(r)){let i=Fo(r.parent.parent,Gu),o=r.getText(e);return{container:Fo(i.parent,ju),typeNode:i.type,constraint:o,name:o==="K"?"P":"K"}}}function aRe(e,t,{container:r,typeNode:i,constraint:o,name:s}){e.replaceNode(t,r,P.createMappedTypeNode(void 0,P.createTypeParameterDeclaration(void 0,s,P.createTypeReferenceNode(o)),void 0,void 0,i,void 0))}var hX,Ede,pHe=pt({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";Hr(),oa(),hX="convertLiteralTypeToMappedType",Ede=[f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],ra({errorCodes:Ede,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=oRe(r,i.start);if(!o)return;let{name:s,constraint:l}=o,d=er.ChangeTracker.with(t,p=>aRe(p,r,o));return[Go(hX,d,[f.Convert_0_to_1_in_0,l,s],hX,f.Convert_all_type_literals_to_mapped_type)]},fixIds:[hX],getAllCodeActions:e=>Qa(e,Ede,(t,r)=>{let i=oRe(r.file,r.start);i&&aRe(t,r.file,i)})})}});function sRe(e,t){return x.checkDefined(Oc(Hi(e,t)),"There should be a containing class")}function lRe(e){return!e.valueDeclaration||!(Wd(e.valueDeclaration)&2)}function cRe(e,t,r,i,o,s){let l=e.program.getTypeChecker(),d=fHe(i,l),p=l.getTypeAtLocation(t),m=l.getPropertiesOfType(p).filter(Zw(lRe,R=>!d.has(R.escapedName))),v=l.getTypeAtLocation(i),E=Dr(i.members,R=>ll(R));v.getNumberIndexType()||A(p,1),v.getStringIndexType()||A(p,0);let S=OI(r,e.program,s,e.host);Cue(i,m,r,e,s,S,R=>C(r,i,R)),S.writeFixes(o);function A(R,L){let G=l.getIndexInfoOfType(R,L);G&&C(r,i,l.indexInfoToIndexSignatureDeclaration(G,i,void 0,PR(e)))}function C(R,L,G){E?o.insertNodeAfter(R,E,G):o.insertMemberAtStart(R,L,G)}}function fHe(e,t){let r=Jm(e);if(!r)return Vo();let i=t.getTypeAtLocation(r),o=t.getPropertiesOfType(i);return Vo(o.filter(lRe))}var Sde,gX,mHe=pt({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";Hr(),oa(),Sde=[f.Class_0_incorrectly_implements_interface_1.code,f.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],gX="fixClassIncorrectlyImplementsInterface",ra({errorCodes:Sde,getCodeActions(e){let{sourceFile:t,span:r}=e,i=sRe(t,r.start);return Fi(fx(i),o=>{let s=er.ChangeTracker.with(e,l=>cRe(e,o,t,i,l,e.preferences));return s.length===0?void 0:Go(gX,s,[f.Implement_interface_0,o.getText(t)],gX,f.Implement_all_unimplemented_interfaces)})},fixIds:[gX],getAllCodeActions(e){let t=new Map;return Qa(e,Sde,(r,i)=>{let o=sRe(i.file,i.start);if(Jf(t,Fa(o)))for(let s of fx(o))cRe(e,s,i.file,o,r,e.preferences)})}})}});function OI(e,t,r,i,o){return dRe(e,t,!1,r,i,o)}function dRe(e,t,r,i,o,s){let l=t.getCompilerOptions(),d=[],p=[],h=new Map,m=new Map;return{addImportFromDiagnostic:v,addImportFromExportedSymbol:E,writeFixes:A,hasFixes:C};function v(R,L){let G=hRe(L,R.code,R.start,r);!G||!G.length||S(Sa(G))}function E(R,L){let G=x.checkDefined(R.parent),U=U3(R,Wa(l)),K=t.getTypeChecker(),F=K.getMergedSymbol(Kc(R,K)),oe=fRe(e,F,U,G,!1,t,o,i,s),W=yX(e,t),$=uRe(e,x.checkDefined(oe),t,void 0,!!L,W,o,i);$&&S({fix:$,symbolName:U,errorIdentifierText:void 0})}function S(R){var L,G;let{fix:U,symbolName:K}=R;switch(U.kind){case 0:d.push(U);break;case 1:p.push(U);break;case 2:{let{importClauseOrBindingPattern:$,importKind:de,addAsTypeOnly:fe}=U,q=String(Fa($)),H=h.get(q);if(H||h.set(q,H={importClauseOrBindingPattern:$,defaultImport:void 0,namedImports:new Map}),de===0){let ee=H?.namedImports.get(K);H.namedImports.set(K,F(ee,fe))}else x.assert(H.defaultImport===void 0||H.defaultImport.name===K,"(Add to Existing) Default import should be missing or match symbolName"),H.defaultImport={name:K,addAsTypeOnly:F((L=H.defaultImport)==null?void 0:L.addAsTypeOnly,fe)};break}case 3:{let{moduleSpecifier:$,importKind:de,useRequire:fe,addAsTypeOnly:q}=U,H=oe($,de,fe,q);switch(x.assert(H.useRequire===fe,"(Add new) Tried to add an `import` and a `require` for the same module"),de){case 1:x.assert(H.defaultImport===void 0||H.defaultImport.name===K,"(Add new) Default import should be missing or match symbolName"),H.defaultImport={name:K,addAsTypeOnly:F((G=H.defaultImport)==null?void 0:G.addAsTypeOnly,q)};break;case 0:let ee=(H.namedImports||(H.namedImports=new Map)).get(K);H.namedImports.set(K,F(ee,q));break;case 3:case 2:x.assert(H.namespaceLikeImport===void 0||H.namespaceLikeImport.name===K,"Namespacelike import shoudl be missing or match symbolName"),H.namespaceLikeImport={importKind:de,name:K,addAsTypeOnly:q};break}break}case 4:break;default:x.assertNever(U,`fix wasn't never - got kind ${U.kind}`)}function F($,de){return Math.max($??0,de)}function oe($,de,fe,q){let H=W($,!0),ee=W($,!1),le=m.get(H),Ee=m.get(ee),ce={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:fe};return de===1&&q===2?le||(m.set(H,ce),ce):q===1&&(le||Ee)?le||Ee:Ee||(m.set(ee,ce),ce)}function W($,de){return`${de?1:0}|${$}`}}function A(R,L){let G;e.imports.length===0&&L!==void 0?G=L:G=Np(e,i);for(let K of d)Rde(R,e,K);for(let K of p)TRe(R,e,K,G);h.forEach(({importClauseOrBindingPattern:K,defaultImport:F,namedImports:oe})=>{SRe(R,e,K,F,bo(oe.entries(),([W,$])=>({addAsTypeOnly:$,name:W})),i)});let U;m.forEach(({useRequire:K,defaultImport:F,namedImports:oe,namespaceLikeImport:W},$)=>{let de=$.slice(2),q=(K?xRe:IRe)(de,G,F,oe&&bo(oe.entries(),([H,ee])=>({addAsTypeOnly:ee,name:H})),W,l,i);U=x1(U,q)}),U&&QN(R,e,U,!0,i)}function C(){return d.length>0||p.length>0||h.size>0||m.size>0}}function _He(e,t,r,i){let o=oP(e,i,r),s=mRe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:l};function l(d,p,h,m){let{fixes:v,computedWithoutCacheCount:E}=vX(d,p,h,!1,t,e,r,i,s,m),S=gRe(v,e,t,o,r);return S&&{...S,computedWithoutCacheCount:E}}}function hHe(e,t,r,i,o,s,l,d,p,h,m,v){let E;r?(E=rO(i,l,d,m,v).get(i.path,r),x.assertIsDefined(E,"Some exportInfo should match the specified exportMapKey")):(E=RG(Sf(t.name))?[vHe(e,o,t,d,l)]:fRe(i,e,o,t,s,d,l,m,v),x.assertIsDefined(E,"Some exportInfo should match the specified symbol / moduleSymbol"));let S=yX(i,d),A=Pb(Hi(i,h)),C=x.checkDefined(uRe(i,E,d,h,A,S,l,m));return{moduleSpecifier:C.moduleSpecifier,codeAction:pRe(xde({host:l,formatContext:p,preferences:m},i,o,C,!1,d,m))}}function gHe(e,t,r,i,o,s){let l=r.getCompilerOptions(),d=iB(Ide(e,r.getTypeChecker(),t,l)),p=bRe(e,t,d,r),h=d!==t.text;return p&&pRe(xde({host:i,formatContext:o,preferences:s},e,d,p,h,r,s))}function uRe(e,t,r,i,o,s,l,d){let p=oP(e,d,l);return gRe(vX(t,i,o,s,r,e,l,d).fixes,e,r,p,l)}function pRe({description:e,changes:t,commands:r}){return{description:e,changes:t,commands:r}}function fRe(e,t,r,i,o,s,l,d,p){let h=_Re(s,l);return rO(e,l,s,d,p).search(e.path,o,m=>m===r,m=>{if(Kc(m[0].symbol,h(m[0].isFromPackageJson))===t&&m.some(v=>v.moduleSymbol===i||v.symbol.parent===i))return m})}function vHe(e,t,r,i,o){var s,l;let d=i.getCompilerOptions(),p=m(i.getTypeChecker(),!1);if(p)return p;let h=(l=(s=o.getPackageJsonAutoImportProvider)==null?void 0:s.call(o))==null?void 0:l.getTypeChecker();return x.checkDefined(h&&m(h,!0),"Could not find symbol in specified module for code actions");function m(v,E){let S=$3(r,v,d);if(S&&Kc(S.symbol,v)===e)return{symbol:S.symbol,moduleSymbol:r,moduleFileName:void 0,exportKind:S.exportKind,targetFlags:Kc(e,v).flags,isFromPackageJson:E};let A=v.tryGetMemberInModuleExportsAndProperties(t,r);if(A&&Kc(A,v)===e)return{symbol:A,moduleSymbol:r,moduleFileName:void 0,exportKind:0,targetFlags:Kc(e,v).flags,isFromPackageJson:E}}}function vX(e,t,r,i,o,s,l,d,p=mRe(o.getTypeChecker(),s,o.getCompilerOptions()),h){let m=o.getTypeChecker(),v=ta(e,p.getImportsForExportInfo),E=t!==void 0&&yHe(v,t),S=EHe(v,r,m,o.getCompilerOptions());if(S)return{computedWithoutCacheCount:0,fixes:[...E?[E]:je,S]};let{fixes:A,computedWithoutCacheCount:C=0}=THe(e,v,o,s,t,r,i,l,d,h);return{computedWithoutCacheCount:C,fixes:[...E?[E]:je,...A]}}function yHe(e,t){return ml(e,({declaration:r,importKind:i})=>{var o;if(i!==0)return;let s=bHe(r),l=s&&((o=sx(r))==null?void 0:o.text);if(l)return{kind:0,namespacePrefix:s,usagePosition:t,moduleSpecifier:l}})}function bHe(e){var t,r,i;switch(e.kind){case 260:return(t=Vr(e.name,Me))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=Vr((r=e.importClause)==null?void 0:r.namedBindings,my))==null?void 0:i.name.text;default:return x.assertNever(e)}}function Tde(e,t,r,i,o,s){return e?t&&s.importsNotUsedAsValues===2||TV(s)&&(!(i&111551)||o.getTypeOnlyAliasDeclaration(r))?2:1:4}function EHe(e,t,r,i){let o;for(let l of e){let d=s(l);if(!d)continue;let p=UM(d.importClauseOrBindingPattern);if(d.addAsTypeOnly!==4&&p||d.addAsTypeOnly===4&&!p)return d;o??(o=d)}return o;function s({declaration:l,importKind:d,symbol:p,targetFlags:h}){if(d===3||d===2||l.kind===271)return;if(l.kind===260)return(d===0||d===1)&&l.name.kind===206?{kind:2,importClauseOrBindingPattern:l.name,importKind:d,moduleSpecifier:l.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:m}=l;if(!m||!Ga(l.moduleSpecifier))return;let{name:v,namedBindings:E}=m;if(m.isTypeOnly&&!(d===0&&E))return;let S=Tde(t,!1,p,h,r,i);if(!(d===1&&(v||S===2&&E))&&!(d===0&&E?.kind===274))return{kind:2,importClauseOrBindingPattern:m,importKind:d,moduleSpecifier:l.moduleSpecifier.text,addAsTypeOnly:S}}}function mRe(e,t,r){let i;for(let o of t.imports){let s=yC(o);if(AW(s.parent)){let l=e.resolveExternalModuleName(o);l&&(i||(i=bp())).add(na(l),s.parent)}else if(s.kind===272||s.kind===271){let l=e.getSymbolAtLocation(o);l&&(i||(i=bp())).add(na(l),s)}}return{getImportsForExportInfo:({moduleSymbol:o,exportKind:s,targetFlags:l,symbol:d})=>{if(!(l&111551)&&wd(t))return je;let p=i?.get(na(o));if(!p)return je;let h=Ade(t,s,r);return p.map(m=>({declaration:m,importKind:h,symbol:d,targetFlags:l}))}}}function yX(e,t){if(!wd(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let r=t.getCompilerOptions();if(r.configFile)return ld(r)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!wd(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function _Re(e,t){return C_(r=>r?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function SHe(e,t,r,i,o,s,l,d,p){let h=wd(t),m=e.getCompilerOptions(),v=lT(e,l),E=_Re(e,l),S=zd(m),A=x3(S),C=p?G=>({moduleSpecifiers:h0.tryGetModuleSpecifiersFromCache(G,t,v,d),computedWithoutCache:!1}):(G,U)=>h0.getModuleSpecifiersWithCacheInfo(G,U,m,t,v,d,void 0,!0),R=0,L=ta(s,(G,U)=>{let K=E(G.isFromPackageJson),{computedWithoutCache:F,moduleSpecifiers:oe}=C(G.moduleSymbol,K),W=!!(G.targetFlags&111551),$=Tde(i,!0,G.symbol,G.targetFlags,K,m);return R+=F?1:0,Fi(oe,de=>{var fe;if(A&&Gb(de))return;if(!W&&h&&r!==void 0)return{kind:1,moduleSpecifier:de,usagePosition:r,exportInfo:G,isReExport:U>0};let q=Ade(t,G.exportKind,m),H;if(r!==void 0&&q===3&&G.exportKind===0){let ee=K.resolveExternalModuleSymbol(G.moduleSymbol),le;ee!==G.moduleSymbol&&(le=(fe=Q3(ee,K,m))==null?void 0:fe.name),le||(le=Cde(G.moduleSymbol,Wa(m),!1)),H={namespacePrefix:le,usagePosition:r}}return{kind:3,moduleSpecifier:de,importKind:q,useRequire:o,addAsTypeOnly:$,exportInfo:G,isReExport:U>0,qualification:H}})});return{computedWithoutCacheCount:R,fixes:L}}function THe(e,t,r,i,o,s,l,d,p,h){let m=ml(t,v=>AHe(v,s,l,r.getTypeChecker(),r.getCompilerOptions()));return m?{fixes:[m]}:SHe(r,i,o,s,l,e,d,p,h)}function AHe({declaration:e,importKind:t,symbol:r,targetFlags:i},o,s,l,d){var p;let h=(p=sx(e))==null?void 0:p.text;if(h){let m=s?4:Tde(o,!0,r,i,l,d);return{kind:3,moduleSpecifier:h,importKind:t,addAsTypeOnly:m,useRequire:s}}}function hRe(e,t,r,i){let o=Hi(e.sourceFile,r),s;if(t===f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)s=DHe(e,o);else if(Me(o))if(t===f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let d=iB(Ide(e.sourceFile,e.program.getTypeChecker(),o,e.program.getCompilerOptions())),p=bRe(e.sourceFile,o,d,e.program);return p&&[{fix:p,symbolName:d,errorIdentifierText:o.text}]}else s=PHe(e,o,i);else return;let l=oP(e.sourceFile,e.preferences,e.host);return s&&IHe(s,e.sourceFile,e.program,l,e.host)}function IHe(e,t,r,i,o){let s=l=>ks(l,o.getCurrentDirectory(),ev(o));return uS(e,(l,d)=>zv(!!l.isJsxNamespaceFix,!!d.isJsxNamespaceFix)||Ms(l.fix.kind,d.fix.kind)||vRe(l.fix,d.fix,t,r,i.allowsImportingSpecifier,s))}function gRe(e,t,r,i,o){if(ct(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((s,l)=>vRe(l,s,t,r,i.allowsImportingSpecifier,d=>ks(d,o.getCurrentDirectory(),ev(o)))===-1?l:s)}function vRe(e,t,r,i,o,s){return e.kind!==0&&t.kind!==0?zv(o(t.moduleSpecifier),o(e.moduleSpecifier))||RHe(e.moduleSpecifier,t.moduleSpecifier,r,i)||zv(yRe(e,r,i.getCompilerOptions(),s),yRe(t,r,i.getCompilerOptions(),s))||$L(e.moduleSpecifier,t.moduleSpecifier):0}function yRe(e,t,r,i){var o;if(e.isReExport&&((o=e.exportInfo)!=null&&o.moduleFileName)&&xHe(e.exportInfo.moduleFileName)){let s=i(Ur(e.exportInfo.moduleFileName));return Ui(t.path,s)}return!1}function xHe(e){return Ll(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function RHe(e,t,r,i){return Ui(e,"node:")&&!Ui(t,"node:")?q3(r,i)?-1:1:Ui(t,"node:")&&!Ui(e,"node:")?q3(r,i)?1:-1:0}function DHe({sourceFile:e,program:t,host:r,preferences:i},o){let s=t.getTypeChecker(),l=CHe(o,s);if(!l)return;let d=s.getAliasedSymbol(l),p=l.name,h=[{symbol:l,moduleSymbol:d,moduleFileName:void 0,exportKind:3,targetFlags:d.flags,isFromPackageJson:!1}],m=yX(e,t);return vX(h,void 0,!1,m,t,e,r,i).fixes.map(E=>{var S;return{fix:E,symbolName:p,errorIdentifierText:(S=Vr(o,Me))==null?void 0:S.text}})}function CHe(e,t){let r=Me(e)?t.getSymbolAtLocation(e):void 0;if(QW(r))return r;let{parent:i}=e;if(Od(i)&&i.tagName===e||fI(i)){let o=t.resolveName(t.getJsxNamespace(i),Od(i)?e:i,111551,!1);if(QW(o))return o}}function Ade(e,t,r,i){if(r.verbatimModuleSyntax&&(ld(r)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return kHe(e,r,!!i);case 3:return NHe(e,r,!!i);default:return x.assertNever(t)}}function NHe(e,t,r){if(zS(t))return 1;let i=ld(t);switch(i){case 2:case 1:case 3:return Jn(e)&&(wl(e)||r)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:case 200:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return x.assertNever(i,`Unexpected moduleKind ${i}`)}}function PHe({sourceFile:e,program:t,cancellationToken:r,host:i,preferences:o},s,l){let d=t.getTypeChecker(),p=t.getCompilerOptions();return ta(Ide(e,d,s,p),h=>{if(h==="default")return;let m=Pb(s),v=yX(e,t),E=LHe(h,ix(s),aT(s),r,e,t,l,i,o);return bo(Y5(E.values(),S=>vX(S,s.getStart(e),m,v,t,e,i,o).fixes),S=>({fix:S,symbolName:h,errorIdentifierText:s.text,isJsxNamespaceFix:h!==s.text}))})}function bRe(e,t,r,i){let o=i.getTypeChecker(),s=o.resolveName(r,t,111551,!0);if(!s)return;let l=o.getTypeOnlyAliasDeclaration(s);if(!(!l||Nn(l)!==e))return{kind:4,typeOnlyAliasDeclaration:l}}function Ide(e,t,r,i){let o=r.parent;if((Od(o)||l0(o))&&o.tagName===r&&kJ(i.jsx)){let s=t.getJsxNamespace(e);if(MHe(s,r,t))return!gx(r.text)&&!t.resolveName(r.text,r,111551,!1)?[r.text,s]:[s]}return[r.text]}function MHe(e,t,r){if(gx(t.text))return!0;let i=r.resolveName(e,t,111551,!0);return!i||ct(i.declarations,Sb)&&!(i.flags&111551)}function LHe(e,t,r,i,o,s,l,d,p){var h;let m=bp(),v=oP(o,p,d),E=(h=d.getModuleSpecifierCache)==null?void 0:h.call(d),S=C_(C=>lT(C?d.getPackageJsonAutoImportProvider():s,d));function A(C,R,L,G,U,K){let F=S(K);if(R&&GJ(U,o,R,p,v,F,E)||!R&&v.allowsImportingAmbientModule(C,F)){let oe=U.getTypeChecker();m.add(lle(L,oe).toString(),{symbol:L,moduleSymbol:C,moduleFileName:R?.fileName,exportKind:G,targetFlags:Kc(L,oe).flags,isFromPackageJson:K})}}return VJ(s,d,p,l,(C,R,L,G)=>{let U=L.getTypeChecker();i.throwIfCancellationRequested();let K=L.getCompilerOptions(),F=$3(C,U,K);F&&(F.name===e||Cde(C,Wa(K),t)===e)&&DRe(F.resolvedSymbol,r)&&A(C,R,F.symbol,F.exportKind,L,G);let oe=U.tryGetMemberInModuleExportsAndProperties(e,C);oe&&DRe(oe,r)&&A(C,R,oe,0,L,G)}),m}function kHe(e,t,r){let i=zS(t),o=Jn(e);if(!o&&ld(t)>=5)return i?1:2;if(o)return wl(e)||r?i?1:2:3;for(let s of e.statements)if(Nc(s)&&!_l(s.moduleReference))return 3;return i?1:3}function xde(e,t,r,i,o,s,l){let d,p=er.ChangeTracker.with(e,h=>{d=OHe(h,t,r,i,o,s,l)});return Go(Pde,p,d,Mde,f.Add_all_missing_imports)}function OHe(e,t,r,i,o,s,l){let d=Np(t,l);switch(i.kind){case 0:return Rde(e,t,i),[f.Change_0_to_1,r,`${i.namespacePrefix}.${r}`];case 1:return TRe(e,t,i,d),[f.Change_0_to_1,r,ARe(i.moduleSpecifier,d)+r];case 2:{let{importClauseOrBindingPattern:p,importKind:h,addAsTypeOnly:m,moduleSpecifier:v}=i;SRe(e,t,p,h===1?{name:r,addAsTypeOnly:m}:void 0,h===0?[{name:r,addAsTypeOnly:m}]:je,l);let E=Sf(v);return o?[f.Import_0_from_1,r,E]:[f.Update_import_from_0,E]}case 3:{let{importKind:p,moduleSpecifier:h,addAsTypeOnly:m,useRequire:v,qualification:E}=i,S=v?xRe:IRe,A=p===1?{name:r,addAsTypeOnly:m}:void 0,C=p===0?[{name:r,addAsTypeOnly:m}]:void 0,R=p===2||p===3?{importKind:p,name:E?.namespacePrefix||r,addAsTypeOnly:m}:void 0;return QN(e,t,S(h,d,A,C,R,s.getCompilerOptions(),l),!0,l),E&&Rde(e,t,E),o?[f.Import_0_from_1,r,h]:[f.Add_import_from_0,h]}case 4:{let{typeOnlyAliasDeclaration:p}=i,h=wHe(e,p,s,t,l);return h.kind===276?[f.Remove_type_from_import_of_0_from_1,r,ERe(h.parent.parent)]:[f.Remove_type_from_import_declaration_from_0,ERe(h)]}default:return x.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function ERe(e){var t,r;return e.kind===271?((r=Vr((t=Vr(e.moduleReference,j_))==null?void 0:t.expression,Ga))==null?void 0:r.text)||e.moduleReference.getText():Fo(e.parent.moduleSpecifier,ca).text}function wHe(e,t,r,i,o){let s=r.getCompilerOptions(),l=TV(s);switch(t.kind){case 276:if(t.isTypeOnly){let p=Zf.detectImportSpecifierSorting(t.parent.elements,o);if(t.parent.elements.length>1&&p){let h=P.updateImportSpecifier(t,!1,t.propertyName,t.name),m=Zf.getOrganizeImportsComparer(o,p===2),v=Zf.getImportSpecifierInsertionIndex(t.parent.elements,h,m,o);if(v!==t.parent.elements.indexOf(t))return e.delete(i,t),e.insertImportSpecifierAtIndex(i,h,t.parent,v),t}return e.deleteRange(i,{pos:Tb(t.getFirstToken()),end:Tb(t.propertyName??t.name)}),t}else return x.assert(t.parent.parent.isTypeOnly),d(t.parent.parent),t.parent.parent;case 273:return d(t),t;case 274:return d(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:x.failBadSyntaxKind(t)}function d(p){var h;if(e.delete(i,uJ(p,i)),!s.allowImportingTsExtensions){let m=sx(p.parent),v=m&&((h=r.getResolvedModuleFromModuleSpecifier(m))==null?void 0:h.resolvedModule);if(v?.resolvedUsingTsExtension){let E=xM(m.text,A4(m.text,s));e.replaceNode(i,m,P.createStringLiteral(E))}}if(l){let m=Vr(p.namedBindings,sg);if(m&&m.elements.length>1){Zf.detectImportSpecifierSorting(m.elements,o)&&t.kind===276&&m.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,m,0));for(let v of m.elements)v!==t&&!v.isTypeOnly&&e.insertModifierBefore(i,156,v)}}}}function SRe(e,t,r,i,o,s){var l;if(r.kind===206){i&&h(r,i.name,"default");for(let m of o)h(r,m.name,void 0);return}let d=r.isTypeOnly&&ct([i,...o],m=>m?.addAsTypeOnly===4),p=r.namedBindings&&((l=Vr(r.namedBindings,sg))==null?void 0:l.elements);if(i&&(x.assert(!r.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,r.getStart(t),P.createIdentifier(i.name),{suffix:", "})),o.length){let m;if(typeof s.organizeImportsIgnoreCase=="boolean")m=s.organizeImportsIgnoreCase;else if(p){let A=Zf.detectImportSpecifierSorting(p,s);A!==3&&(m=A===2)}m===void 0&&(m=Zf.detectSorting(t,s)===2);let v=Zf.getOrganizeImportsComparer(s,m),E=Gg(o.map(A=>P.createImportSpecifier((!r.isTypeOnly||d)&&bX(A,s),void 0,P.createIdentifier(A.name))),(A,C)=>Zf.compareImportOrExportSpecifiers(A,C,v)),S=p?.length&&Zf.detectImportSpecifierSorting(p,s);if(S&&!(m&&S===1))for(let A of E){let C=d&&!A.isTypeOnly?0:Zf.getImportSpecifierInsertionIndex(p,A,v,s);e.insertImportSpecifierAtIndex(t,A,r.namedBindings,C)}else if(p?.length)for(let A of E)e.insertNodeInListAfter(t,Da(p),A,p);else if(E.length){let A=P.createNamedImports(E);r.namedBindings?e.replaceNode(t,r.namedBindings,A):e.insertNodeAfter(t,x.checkDefined(r.name,"Import clause must have either named imports or a default import"),A)}}if(d&&(e.delete(t,uJ(r,t)),p))for(let m of p)e.insertModifierBefore(t,156,m);function h(m,v,E){let S=P.createBindingElement(void 0,E,v);m.elements.length?e.insertNodeInListAfter(t,Da(m.elements),S):e.replaceNode(t,m,P.createObjectBindingPattern([S]))}}function Rde(e,t,{namespacePrefix:r,usagePosition:i}){e.insertText(t,i,r+".")}function TRe(e,t,{moduleSpecifier:r,usagePosition:i},o){e.insertText(t,i,ARe(r,o))}function ARe(e,t){let r=dJ(t);return`import(${r}${e}${r}).`}function Dde({addAsTypeOnly:e}){return e===2}function bX(e,t){return Dde(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function IRe(e,t,r,i,o,s,l){let d=CI(e,t),p;if(r!==void 0||i?.length){let h=(!r||Dde(r))&&ji(i,Dde)||(s.verbatimModuleSyntax||l.preferTypeOnlyAutoImports)&&r?.addAsTypeOnly!==4&&!ct(i,m=>m.addAsTypeOnly===4);p=x1(p,fv(r&&P.createIdentifier(r.name),i?.map(m=>P.createImportSpecifier(!h&&bX(m,l),void 0,P.createIdentifier(m.name))),e,t,h))}if(o){let h=o.importKind===3?P.createImportEqualsDeclaration(void 0,bX(o,l),P.createIdentifier(o.name),P.createExternalModuleReference(d)):P.createImportDeclaration(void 0,P.createImportClause(bX(o,l),void 0,P.createNamespaceImport(P.createIdentifier(o.name))),d,void 0);p=x1(p,h)}return x.checkDefined(p)}function xRe(e,t,r,i,o){let s=CI(e,t),l;if(r||i?.length){let d=i?.map(({name:h})=>P.createBindingElement(void 0,void 0,h))||[];r&&d.unshift(P.createBindingElement(void 0,"default",r.name));let p=RRe(P.createObjectBindingPattern(d),s);l=x1(l,p)}if(o){let d=RRe(o.name,s);l=x1(l,d)}return x.checkDefined(l)}function RRe(e,t){return P.createVariableStatement(void 0,P.createVariableDeclarationList([P.createVariableDeclaration(typeof e=="string"?P.createIdentifier(e):e,void 0,void 0,P.createCallExpression(P.createIdentifier("require"),void 0,[t]))],2))}function DRe({declarations:e},t){return ct(e,r=>!!(Lk(r)&t))}function Cde(e,t,r){return Nde(Yd(Sf(e.name)),t,r)}function Nde(e,t,r){let i=Ll(C1(e,"/index")),o="",s=!0,l=i.charCodeAt(0);_h(l,t)?(o+=String.fromCharCode(l),r&&(o=o.toUpperCase())):s=!1;for(let d=1;d<i.length;d++){let p=i.charCodeAt(d),h=_b(p,t);if(h){let m=String.fromCharCode(p);s||(m=m.toUpperCase()),o+=m}s=h}return FA(o)?`_${o}`:o||"_"}var Pde,Mde,Lde,WHe=pt({"src/services/codefixes/importFixes.ts"(){"use strict";Hr(),oa(),Pde="import",Mde="fixMissingImport",Lde=[f.Cannot_find_name_0.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f.Cannot_find_namespace_0.code,f._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,f._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,f.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code,f._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later.code,f.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom.code,f.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,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code,f.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,f.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,f.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode.code,f.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,f.Cannot_find_namespace_0_Did_you_mean_1.code],ra({errorCodes:Lde,getCodeActions(e){let{errorCode:t,preferences:r,sourceFile:i,span:o,program:s}=e,l=hRe(e,t,o.start,!0);if(l)return l.map(({fix:d,symbolName:p,errorIdentifierText:h})=>xde(e,i,p,d,p!==h,s,r))},fixIds:[Mde],getAllCodeActions:e=>{let{sourceFile:t,program:r,preferences:i,host:o,cancellationToken:s}=e,l=dRe(t,r,!0,i,o,s);return CR(e,Lde,d=>l.addImportFromDiagnostic(d,e)),DR(er.ChangeTracker.with(e,l.writeFixes))}})}});function CRe(e,t,r){let i=Dr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Dr(i.relatedInformation,l=>l.code===f.This_type_parameter_might_need_an_extends_0_constraint.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=wue(o.file,qc(o.start,o.length));if(s!==void 0&&(Me(s)&&qs(s.parent)&&(s=s.parent),qs(s))){if(wx(s.parent))return;let l=Hi(t,r.start),d=e.getTypeChecker();return{constraint:zHe(d,l)||FHe(o.messageText),declaration:s,token:l}}}function NRe(e,t,r,i,o,s){let{declaration:l,constraint:d}=s,p=t.getTypeChecker();if(fo(d))e.insertText(o,l.name.end,` extends ${d}`);else{let h=Wa(t.getCompilerOptions()),m=PR({program:t,host:i}),v=OI(o,t,r,i),E=iY(p,v,d,void 0,h,void 0,m);E&&(e.replaceNode(o,l,P.updateTypeParameterDeclaration(l,void 0,l.name,E,l.default)),v.writeFixes(e))}}function FHe(e){let[,t]=o_(e,`
`,0).match(/`extends (.*)`/)||[];return t}function zHe(e,t){return xi(t.parent)?e.getTypeArgumentConstraint(t.parent):(lt(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var EX,kde,BHe=pt({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";Hr(),oa(),EX="addMissingConstraint",kde=[f.Type_0_is_not_comparable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,f.Property_0_is_incompatible_with_index_signature.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Type_0_does_not_satisfy_the_constraint_1.code],ra({errorCodes:kde,getCodeActions(e){let{sourceFile:t,span:r,program:i,preferences:o,host:s}=e,l=CRe(i,t,r);if(l===void 0)return;let d=er.ChangeTracker.with(e,p=>NRe(p,i,o,s,t,l));return[Go(EX,d,f.Add_extends_constraint,EX,f.Add_extends_constraint_to_all_type_parameters)]},fixIds:[EX],getAllCodeActions:e=>{let{program:t,preferences:r,host:i}=e,o=new Map;return DR(er.ChangeTracker.with(e,s=>{CR(e,kde,l=>{let d=CRe(t,l.file,qc(l.start,l.length));if(d&&Jf(o,Fa(d.declaration)))return NRe(s,t,r,i,l.file,d)})}))}})}});function PRe(e,t,r,i){switch(r){case f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return GHe(e,t.sourceFile,i);case f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return VHe(e,t.sourceFile,i);default:x.fail("Unexpected error code: "+r)}}function GHe(e,t,r){let i=LRe(t,r);if(wd(t)){e.addJSDocTags(t,i,[P.createJSDocOverrideTag(P.createIdentifier("override"))]);return}let o=i.modifiers||je,s=Dr(o,rI),l=Dr(o,Ure),d=Dr(o,v=>eJ(v.kind)),p=hA(o,Xc),h=l?l.end:s?s.end:d?d.end:p?ua(t.text,p.end):i.getStart(t),m=d||s||l?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,h,164,m)}function VHe(e,t,r){let i=LRe(t,r);if(wd(t)){e.filterJSDocTags(t,i,e8(S6));return}let o=Dr(i.modifiers,Hre);x.assertIsDefined(o),e.deleteModifier(t,o)}function MRe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return wu(e,e.parent);default:return!1}}function LRe(e,t){let r=Hi(e,t),i=Rn(r,o=>Kr(o)?"quit":MRe(o));return x.assert(i&&MRe(i)),i}var Ode,uP,IO,wde,Wde,jHe=pt({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";Hr(),oa(),Ode="fixOverrideModifier",uP="fixAddOverrideModifier",IO="fixRemoveOverrideModifier",wde=[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],Wde={[f.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:IO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:f.Remove_override_modifier,fixId:IO,fixAllDescriptions:f.Remove_override_modifier},[f.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uP,fixAllDescriptions:f.Add_all_missing_override_modifiers},[f.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:f.Add_override_modifier,fixId:uP,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:IO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers},[f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:f.Remove_override_modifier,fixId:IO,fixAllDescriptions:f.Remove_all_unnecessary_override_modifiers}},ra({errorCodes:wde,getCodeActions:function(t){let{errorCode:r,span:i}=t,o=Wde[r];if(!o)return je;let{descriptions:s,fixId:l,fixAllDescriptions:d}=o,p=er.ChangeTracker.with(t,h=>PRe(h,t,r,i.start));return[Xce(Ode,p,s,l,d)]},fixIds:[Ode,uP,IO],getAllCodeActions:e=>Qa(e,wde,(t,r)=>{let{code:i,start:o}=r,s=Wde[i];!s||s.fixId!==e.fixId||PRe(t,e,i,o)})})}});function kRe(e,t,r,i){let o=Np(t,i),s=P.createStringLiteral(r.name.text,o===0);e.replaceNode(t,r,W8(r)?P.createElementAccessChain(r.expression,r.questionDotToken,s):P.createElementAccessExpression(r.expression,s))}function ORe(e,t){return Fo(Hi(e,t).parent,Er)}var SX,Fde,UHe=pt({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";Hr(),oa(),SX="fixNoPropertyAccessFromIndexSignature",Fde=[f.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],ra({errorCodes:Fde,fixIds:[SX],getCodeActions(e){let{sourceFile:t,span:r,preferences:i}=e,o=ORe(t,r.start),s=er.ChangeTracker.with(e,l=>kRe(l,e.sourceFile,o,i));return[Go(SX,s,[f.Use_element_access_for_0,o.name.text],SX,f.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>Qa(e,Fde,(t,r)=>kRe(t,r.file,ORe(r.file,r.start),e.preferences))})}});function wRe(e,t,r,i){let o=Hi(t,r);if(!mR(o))return;let s=lu(o,!1,!1);if(!(!Ql(s)&&!us(s))&&!Li(lu(s,!1,!1))){let l=x.checkDefined(Ya(s,100,t)),{name:d}=s,p=x.checkDefined(s.body);return us(s)?d&&ps.Core.isSymbolReferencedInFile(d,i,t,p)?void 0:(e.delete(t,l),d&&e.delete(t,d),e.insertText(t,p.pos," =>"),[f.Convert_function_expression_0_to_arrow_function,d?d.text:Y3]):(e.replaceNode(t,l,P.createToken(87)),e.insertText(t,d.end," = "),e.insertText(t,p.pos," =>"),[f.Convert_function_declaration_0_to_arrow_function,d.text])}}var TX,zde,HHe=pt({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";Hr(),oa(),TX="fixImplicitThis",zde=[f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ra({errorCodes:zde,getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s,l=er.ChangeTracker.with(t,d=>{s=wRe(d,r,o.start,i.getTypeChecker())});return s?[Go(TX,l,s,TX,f.Fix_all_implicit_this_errors)]:je},fixIds:[TX],getAllCodeActions:e=>Qa(e,zde,(t,r)=>{wRe(t,r.file,r.start,e.program.getTypeChecker())})})}});function WRe(e,t,r){var i,o;let s=Hi(e,t);if(Me(s)){let l=Rn(s,cc);if(l===void 0)return;let d=ca(l.moduleSpecifier)?l.moduleSpecifier:void 0;if(d===void 0)return;let p=(i=r.getResolvedModuleFromModuleSpecifier(d))==null?void 0:i.resolvedModule;if(p===void 0)return;let h=r.getSourceFile(p.resolvedFileName);if(h===void 0||ER(r,h))return;let m=h.symbol,v=(o=Vr(m.valueDeclaration,M_))==null?void 0:o.locals;if(v===void 0)return;let E=v.get(s.escapedText);if(E===void 0)return;let S=JHe(E);return S===void 0?void 0:{exportName:{node:s,isTypeOnly:Cx(S)},node:S,moduleSourceFile:h,moduleSpecifier:d.text}}}function qHe(e,t,{exportName:r,node:i,moduleSourceFile:o}){let s=AX(o,r.isTypeOnly);s?FRe(e,t,o,s,[r]):e2(i)?e.insertExportModifier(o,i):zRe(e,t,o,[r])}function Bde(e,t,r,i,o){yn(i)&&(o?FRe(e,t,r,o,i):zRe(e,t,r,i))}function AX(e,t){let r=i=>xl(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return hA(e.statements,r)}function FRe(e,t,r,i,o){let s=i.exportClause&&$p(i.exportClause)?i.exportClause.elements:P.createNodeArray([]),l=!i.isTypeOnly&&!!(xf(t.getCompilerOptions())||Dr(s,d=>d.isTypeOnly));e.replaceNode(r,i,P.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,P.createNamedExports(P.createNodeArray([...s,...BRe(o,l)],s.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function zRe(e,t,r,i){e.insertNodeAtEndOfScope(r,r,P.createExportDeclaration(void 0,!1,P.createNamedExports(BRe(i,xf(t.getCompilerOptions()))),void 0,void 0))}function BRe(e,t){return P.createNodeArray(nn(e,r=>P.createExportSpecifier(t&&r.isTypeOnly,void 0,r.node)))}function JHe(e){if(e.valueDeclaration===void 0)return Ac(e.declarations);let t=e.valueDeclaration,r=yi(t)?Vr(t.parent.parent,cl):void 0;return r&&yn(r.declarationList.declarations)===1?r:t}var IX,Gde,KHe=pt({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";Hr(),oa(),IX="fixImportNonExportedMember",Gde=[f.Module_0_declares_1_locally_but_it_is_not_exported.code],ra({errorCodes:Gde,fixIds:[IX],getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=WRe(t,r.start,i);if(o===void 0)return;let s=er.ChangeTracker.with(e,l=>qHe(l,i,o));return[Go(IX,s,[f.Export_0_from_module_1,o.exportName.node.text,o.moduleSpecifier],IX,f.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return DR(er.ChangeTracker.with(e,r=>{let i=new Map;CR(e,Gde,o=>{let s=WRe(o.file,o.start,t);if(s===void 0)return;let{exportName:l,node:d,moduleSourceFile:p}=s;if(AX(p,l.isTypeOnly)===void 0&&e2(d))r.insertExportModifier(p,d);else{let h=i.get(p)||{typeOnlyExports:[],exports:[]};l.isTypeOnly?h.typeOnlyExports.push(l):h.exports.push(l),i.set(p,h)}}),i.forEach((o,s)=>{let l=AX(s,!0);l&&l.isTypeOnly?(Bde(r,t,s,o.typeOnlyExports,l),Bde(r,t,s,o.exports,AX(s,!1))):Bde(r,t,s,[...o.exports,...o.typeOnlyExports],l)})}))}})}});function XHe(e,t){let r=Hi(e,t);return Rn(r,i=>i.kind===202)}function YHe(e,t,r){if(!r)return;let i=r.type,o=!1,s=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?o=!0:i.kind===191&&(s=!0),i=i.type;let l=P.updateNamedTupleMember(r,r.dotDotDotToken||(s?P.createToken(26):void 0),r.name,r.questionToken||(o?P.createToken(58):void 0),i);l!==r&&e.replaceNode(t,r,l)}var xX,GRe,$He=pt({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";Hr(),oa(),xX="fixIncorrectNamedTupleSyntax",GRe=[f.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,f.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],ra({errorCodes:GRe,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=XHe(r,i.start),s=er.ChangeTracker.with(t,l=>YHe(l,r,o));return[Go(xX,s,f.Move_labeled_tuple_element_modifiers_to_labels,xX,f.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[xX]})}});function VRe(e,t,r,i){let o=Hi(e,t),s=o.parent;if((i===f.No_overload_matches_this_call.code||i===f.Type_0_is_not_assignable_to_type_1.code)&&!r_(s))return;let l=r.program.getTypeChecker(),d;if(Er(s)&&s.name===o){x.assert(hh(o),"Expected an identifier for spelling (property access)");let p=l.getTypeAtLocation(s.expression);s.flags&64&&(p=l.getNonNullableType(p)),d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if(Zn(s)&&s.operatorToken.kind===103&&s.left===o&&Ci(o)){let p=l.getTypeAtLocation(s.right);d=l.getSuggestedSymbolForNonexistentProperty(o,p)}else if($d(s)&&s.right===o){let p=l.getSymbolAtLocation(s.left);p&&p.flags&1536&&(d=l.getSuggestedSymbolForNonexistentModule(s.right,p))}else if(Iu(s)&&s.name===o){x.assertNode(o,Me,"Expected an identifier for spelling (import)");let p=Rn(o,cc),h=ZHe(r,p);h&&h.symbol&&(d=l.getSuggestedSymbolForNonexistentModule(o,h.symbol))}else if(r_(s)&&s.name===o){x.assertNode(o,Me,"Expected an identifier for JSX attribute");let p=Rn(o,Od),h=l.getContextualTypeForArgumentAtIndex(p,0);d=l.getSuggestedSymbolForNonexistentJSXAttribute(o,h)}else if(UW(s)&&xc(s)&&s.name===o){let p=Rn(o,Kr),h=p?Jm(p):void 0,m=h?l.getTypeAtLocation(h):void 0;m&&(d=l.getSuggestedSymbolForNonexistentClassMember(Vl(o),m))}else{let p=aT(o),h=Vl(o);x.assert(h!==void 0,"name should be defined"),d=l.getSuggestedSymbolForNonexistentSymbol(o,h,QHe(p))}return d===void 0?void 0:{node:o,suggestedSymbol:d}}function jRe(e,t,r,i,o){let s=$s(i);if(!Sp(s,o)&&Er(r.parent)){let l=i.valueDeclaration;l&&Ld(l)&&Ci(l.name)?e.replaceNode(t,r,P.createIdentifier(s)):e.replaceNode(t,r.parent,P.createElementAccessExpression(r.parent.expression,P.createStringLiteral(s)))}else e.replaceNode(t,r,P.createIdentifier(s))}function QHe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function ZHe(e,t){var r;if(!t||!Ga(t.moduleSpecifier))return;let i=(r=e.program.getResolvedModuleFromModuleSpecifier(t.moduleSpecifier))==null?void 0:r.resolvedModule;if(i)return e.program.getSourceFile(i.resolvedFileName)}var Vde,jde,eqe=pt({"src/services/codefixes/fixSpelling.ts"(){"use strict";Hr(),oa(),Vde="fixSpelling",jde=[f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,f.Cannot_find_name_0_Did_you_mean_1.code,f.Could_not_find_name_0_Did_you_mean_1.code,f.Cannot_find_namespace_0_Did_you_mean_1.code,f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,f._0_has_no_exported_member_named_1_Did_you_mean_2.code,f.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,f.No_overload_matches_this_call.code,f.Type_0_is_not_assignable_to_type_1.code],ra({errorCodes:jde,getCodeActions(e){let{sourceFile:t,errorCode:r}=e,i=VRe(t,e.span.start,e,r);if(!i)return;let{node:o,suggestedSymbol:s}=i,l=Wa(e.host.getCompilationSettings()),d=er.ChangeTracker.with(e,p=>jRe(p,t,o,s,l));return[Go("spelling",d,[f.Change_spelling_to_0,$s(s)],Vde,f.Fix_all_detected_spelling_errors)]},fixIds:[Vde],getAllCodeActions:e=>Qa(e,jde,(t,r)=>{let i=VRe(r.file,r.start,e,r.code),o=Wa(e.host.getCompilationSettings());i&&jRe(t,e.sourceFile,i.node,i.suggestedSymbol,o)})})}});function URe(e,t,r){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(r);let o=Vo([i]);return e.createAnonymousType(void 0,o,[],[],[])}function Ude(e,t,r,i){if(!t.body||!Do(t.body)||yn(t.body.statements)!==1)return;let o=Sa(t.body.statements);if(Cc(o)&&Hde(e,t,e.getTypeAtLocation(o.expression),r,i))return{declaration:t,kind:0,expression:o.expression,statement:o,commentSource:o.expression};if(s0(o)&&Cc(o.statement)){let s=P.createObjectLiteralExpression([P.createPropertyAssignment(o.label,o.statement.expression)]),l=URe(e,o.label,o.statement.expression);if(Hde(e,t,l,r,i))return hs(t)?{declaration:t,kind:1,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:t,kind:0,expression:s,statement:o,commentSource:o.statement.expression}}else if(Do(o)&&yn(o.statements)===1){let s=Sa(o.statements);if(s0(s)&&Cc(s.statement)){let l=P.createObjectLiteralExpression([P.createPropertyAssignment(s.label,s.statement.expression)]),d=URe(e,s.label,s.statement.expression);if(Hde(e,t,d,r,i))return{declaration:t,kind:0,expression:l,statement:o,commentSource:s}}}}function Hde(e,t,r,i,o){if(o){let s=e.getSignatureFromDeclaration(t);if(s){Wr(t,1024)&&(r=e.createPromiseType(r));let l=e.createSignature(t,s.typeParameters,s.thisParameter,s.parameters,r,void 0,s.minArgumentCount,s.flags);r=e.createAnonymousType(void 0,Vo(),[l],[],[])}else r=e.getAnyType()}return e.isTypeAssignableTo(r,i)}function HRe(e,t,r,i){let o=Hi(t,r);if(!o.parent)return;let s=Rn(o.parent,_s);switch(i){case f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!s||!s.body||!s.type||!Cp(s.type,o)?void 0:Ude(e,s,e.getTypeFromTypeNode(s.type),!1);case f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!s||!Bo(s.parent)||!s.body)return;let l=s.parent.arguments.indexOf(s);if(l===-1)return;let d=e.getContextualTypeForArgumentAtIndex(s.parent,l);return d?Ude(e,s,d,!0):void 0;case f.Type_0_is_not_assignable_to_type_1.code:if(!ng(o)||!tx(o.parent)&&!r_(o.parent))return;let p=tqe(o.parent);return!p||!_s(p)||!p.body?void 0:Ude(e,p,e.getTypeAtLocation(o.parent),!0)}}function tqe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(mN(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function qRe(e,t,r,i){qu(r);let o=Zk(t);e.replaceNode(t,i,P.createReturnStatement(r),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Exclude,suffix:o?";":void 0})}function JRe(e,t,r,i,o,s){let l=s||k3(i)?P.createParenthesizedExpression(i):i;qu(o),cT(o,l),e.replaceNode(t,r.body,l)}function KRe(e,t,r,i){e.replaceNode(t,r.body,P.createParenthesizedExpression(i))}function nqe(e,t,r){let i=er.ChangeTracker.with(e,o=>qRe(o,e.sourceFile,t,r));return Go(RX,i,f.Add_a_return_statement,DX,f.Add_all_missing_return_statement)}function rqe(e,t,r,i){let o=er.ChangeTracker.with(e,s=>JRe(s,e.sourceFile,t,r,i,!1));return Go(RX,o,f.Remove_braces_from_arrow_function_body,CX,f.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function iqe(e,t,r){let i=er.ChangeTracker.with(e,o=>KRe(o,e.sourceFile,t,r));return Go(RX,i,f.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,NX,f.Wrap_all_object_literal_with_parentheses)}var RX,DX,CX,NX,qde,oqe=pt({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";Hr(),oa(),RX="returnValueCorrect",DX="fixAddReturnStatement",CX="fixRemoveBracesFromArrowFunctionBody",NX="fixWrapTheBlockWithParen",qde=[f.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,f.Type_0_is_not_assignable_to_type_1.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],ra({errorCodes:qde,fixIds:[DX,CX,NX],getCodeActions:function(t){let{program:r,sourceFile:i,span:{start:o},errorCode:s}=t,l=HRe(r.getTypeChecker(),i,o,s);if(l)return l.kind===0?pn([nqe(t,l.expression,l.statement)],hs(l.declaration)?rqe(t,l.declaration,l.expression,l.commentSource):void 0):[iqe(t,l.declaration,l.expression)]},getAllCodeActions:e=>Qa(e,qde,(t,r)=>{let i=HRe(e.program.getTypeChecker(),r.file,r.start,r.code);if(i)switch(e.fixId){case DX:qRe(t,r.file,i.expression,i.statement);break;case CX:if(!hs(i.declaration))return;JRe(t,r.file,i.declaration,i.expression,i.commentSource,!1);break;case NX:if(!hs(i.declaration))return;KRe(t,r.file,i.declaration,i.expression);break;default:x.fail(JSON.stringify(e.fixId))}})})}});function XRe(e,t,r,i,o){var s;let l=Hi(e,t),d=l.parent;if(r===f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(l.kind===19&&fa(d)&&Bo(d.parent)))return;let S=Tl(d.parent.arguments,L=>L===d);if(S<0)return;let A=i.getResolvedSignature(d.parent);if(!(A&&A.declaration&&A.parameters[S]))return;let C=A.parameters[S].valueDeclaration;if(!(C&&ao(C)&&Me(C.name)))return;let R=bo(i.getUnmatchedProperties(i.getTypeAtLocation(d),i.getParameterType(A,S),!1,!1));return yn(R)?{kind:3,token:C.name,identifier:C.name.text,properties:R,parentDeclaration:d}:void 0}if(l.kind===19&&fa(d)){let S=i.getContextualType(d)||i.getTypeAtLocation(d),A=bo(i.getUnmatchedProperties(i.getTypeAtLocation(d),S,!1,!1));return yn(A)?{kind:3,token:d,identifier:"",properties:A,parentDeclaration:d}:void 0}if(!hh(l))return;if(Me(l)&&$v(d)&&d.initializer&&fa(d.initializer)){let S=i.getContextualType(l)||i.getTypeAtLocation(l),A=bo(i.getUnmatchedProperties(i.getTypeAtLocation(d.initializer),S,!1,!1));return yn(A)?{kind:3,token:l,identifier:l.text,properties:A,parentDeclaration:d.initializer}:void 0}if(Me(l)&&Od(l.parent)){let S=Wa(o.getCompilerOptions()),A=pqe(i,S,l.parent);return yn(A)?{kind:4,token:l,attributes:A,parentDeclaration:l.parent}:void 0}if(Me(l)){let S=(s=i.getContextualType(l))==null?void 0:s.getNonNullableType();if(S&&br(S)&16){let A=Ac(i.getSignaturesOfType(S,0));return A===void 0?void 0:{kind:5,token:l,signature:A,sourceFile:e,parentDeclaration:aDe(l)}}if(Bo(d)&&d.expression===l)return{kind:2,token:l,call:d,sourceFile:e,modifierFlags:0,parentDeclaration:aDe(l)}}if(!Er(d))return;let p=aJ(i.getTypeAtLocation(d.expression)),h=p.symbol;if(!h||!h.declarations)return;if(Me(l)&&Bo(d.parent)){let S=Dr(h.declarations,Il),A=S?.getSourceFile();if(S&&A&&!ER(o,A))return{kind:2,token:l,call:d.parent,sourceFile:e,modifierFlags:32,parentDeclaration:S};let C=Dr(h.declarations,Li);if(e.commonJsModuleIndicator)return;if(C&&!ER(o,C))return{kind:2,token:l,call:d.parent,sourceFile:C,modifierFlags:32,parentDeclaration:C}}let m=Dr(h.declarations,Kr);if(!m&&Ci(l))return;let v=m||Dr(h.declarations,S=>Gd(S)||ju(S));if(v&&!ER(o,v.getSourceFile())){let S=!ju(v)&&(p.target||p)!==i.getDeclaredTypeOfSymbol(h);if(S&&(Ci(l)||Gd(v)))return;let A=v.getSourceFile(),C=ju(v)?0:(S?256:0)|(LJ(l.text)?2:0),R=wd(A),L=Vr(d.parent,Bo);return{kind:0,token:l,call:L,modifierFlags:C,parentDeclaration:v,declSourceFile:A,isJSFile:R}}let E=Dr(h.declarations,kb);if(E&&!(p.flags&1056)&&!Ci(l)&&!ER(o,E.getSourceFile()))return{kind:1,token:l,parentDeclaration:E}}function aqe(e,t){return t.isJSFile?EA(sqe(e,t)):lqe(e,t)}function sqe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){if(Gd(t)||ju(t))return;let s=er.ChangeTracker.with(e,d=>YRe(d,r,t,o,!!(i&256)));if(s.length===0)return;let l=i&256?f.Initialize_static_property_0:Ci(o)?f.Declare_a_private_field_named_0:f.Initialize_property_0_in_the_constructor;return Go(Ey,s,[l,o.text],Ey,f.Add_all_missing_members)}function YRe(e,t,r,i,o){let s=i.text;if(o){if(r.kind===231)return;let l=r.name.getText(),d=$Re(P.createIdentifier(l),s);e.insertNodeAfter(t,r,d)}else if(Ci(i)){let l=P.createPropertyDeclaration(void 0,s,void 0,void 0,void 0),d=eDe(r);d?e.insertNodeAfter(t,d,l):e.insertMemberAtStart(t,r,l)}else{let l=Ah(r);if(!l)return;let d=$Re(P.createThis(),s);e.insertNodeAtConstructorEnd(t,l,d)}}function $Re(e,t){return P.createExpressionStatement(P.createAssignment(P.createPropertyAccessExpression(e,t),wI()))}function lqe(e,{parentDeclaration:t,declSourceFile:r,modifierFlags:i,token:o}){let s=o.text,l=i&256,d=QRe(e.program.getTypeChecker(),t,o),p=m=>er.ChangeTracker.with(e,v=>ZRe(v,r,t,s,d,m)),h=[Go(Ey,p(i&256),[l?f.Declare_static_property_0:f.Declare_property_0,s],Ey,f.Add_all_missing_members)];return l||Ci(o)||(i&2&&h.unshift(Im(Ey,p(2),[f.Declare_private_property_0,s])),h.push(cqe(e,r,t,o.text,d))),h}function QRe(e,t,r){let i;if(r.parent.parent.kind===226){let o=r.parent.parent,s=r.parent===o.left?o.right:o.left,l=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(s)));i=e.typeToTypeNode(l,t,1)}else{let o=e.getContextualType(r.parent);i=o?e.typeToTypeNode(o,void 0,1):void 0}return i||P.createKeywordTypeNode(133)}function ZRe(e,t,r,i,o,s){let l=s?P.createNodeArray(P.createModifiersFromModifierFlags(s)):void 0,d=Kr(r)?P.createPropertyDeclaration(l,i,void 0,o,void 0):P.createPropertySignature(void 0,i,void 0,o),p=eDe(r);p?e.insertNodeAfter(t,p,d):e.insertMemberAtStart(t,r,d)}function eDe(e){let t;for(let r of e.members){if(!xo(r))break;t=r}return t}function cqe(e,t,r,i,o){let s=P.createKeywordTypeNode(154),l=P.createParameterDeclaration(void 0,void 0,"x",void 0,s,void 0),d=P.createIndexSignature(void 0,[l],o),p=er.ChangeTracker.with(e,h=>h.insertMemberAtStart(t,r,d));return Im(Ey,p,[f.Add_index_signature_for_property_0,i])}function dqe(e,t){let{parentDeclaration:r,declSourceFile:i,modifierFlags:o,token:s,call:l}=t;if(l===void 0)return;let d=s.text,p=m=>er.ChangeTracker.with(e,v=>tDe(e,v,l,s,m,r,i)),h=[Go(Ey,p(o&256),[o&256?f.Declare_static_method_0:f.Declare_method_0,d],Ey,f.Add_all_missing_members)];return o&2&&h.unshift(Im(Ey,p(2),[f.Declare_private_method_0,d])),h}function tDe(e,t,r,i,o,s,l){let d=OI(l,e.program,e.preferences,e.host),p=Kr(s)?174:173,h=Nue(p,e,d,r,i,o,s),m=fqe(s,r);m?t.insertNodeAfter(l,m,h):t.insertMemberAtStart(l,s,h),d.writeFixes(t)}function nDe(e,t,{token:r,parentDeclaration:i}){let o=ct(i.members,p=>{let h=t.getTypeAtLocation(p);return!!(h&&h.flags&402653316)}),s=i.getSourceFile(),l=P.createEnumMember(r,o?P.createStringLiteral(r.text):void 0),d=Ns(i.members);d?e.insertNodeInListAfter(s,d,l,i.members):e.insertMemberAtStart(s,i,l)}function rDe(e,t,r){let i=Np(t.sourceFile,t.preferences),o=OI(t.sourceFile,t.program,t.preferences,t.host),s=r.kind===2?Nue(262,t,o,r.call,ar(r.token),r.modifierFlags,r.parentDeclaration):rY(262,t,i,r.signature,Fz(f.Function_not_implemented.message,i),r.token,void 0,void 0,void 0,o);s===void 0&&x.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Kf(r.parentDeclaration)?e.insertNodeBefore(r.sourceFile,r.parentDeclaration,s,!0):e.insertNodeAtEndOfScope(r.sourceFile,r.parentDeclaration,s),o.writeFixes(e)}function iDe(e,t,r){let i=OI(t.sourceFile,t.program,t.preferences,t.host),o=Np(t.sourceFile,t.preferences),s=t.program.getTypeChecker(),l=r.parentDeclaration.attributes,d=ct(l.properties,mI),p=nn(r.attributes,v=>{let E=PX(t,s,i,o,s.getTypeOfSymbol(v),r.parentDeclaration),S=P.createIdentifier(v.name),A=P.createJsxAttribute(S,P.createJsxExpression(void 0,E));return Ta(S,A),A}),h=P.createJsxAttributes(d?[...p,...l.properties]:[...l.properties,...p]),m={prefix:l.pos===l.end?" ":void 0};e.replaceNode(t.sourceFile,l,h,m),i.writeFixes(e)}function oDe(e,t,r){let i=OI(t.sourceFile,t.program,t.preferences,t.host),o=Np(t.sourceFile,t.preferences),s=Wa(t.program.getCompilerOptions()),l=t.program.getTypeChecker(),d=nn(r.properties,h=>{let m=PX(t,l,i,o,l.getTypeOfSymbol(h),r.parentDeclaration);return P.createPropertyAssignment(mqe(h,s,o,l),m)}),p={leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Exclude,indentation:r.indentation};e.replaceNode(t.sourceFile,r.parentDeclaration,P.createObjectLiteralExpression([...r.parentDeclaration.properties,...d],!0),p),i.writeFixes(e)}function PX(e,t,r,i,o,s){if(o.flags&3)return wI();if(o.flags&134217732)return P.createStringLiteral("",i===0);if(o.flags&8)return P.createNumericLiteral(0);if(o.flags&64)return P.createBigIntLiteral("0n");if(o.flags&16)return P.createFalse();if(o.flags&1056){let l=o.symbol.exports?qw(o.symbol.exports.values()):o.symbol,d=t.symbolToExpression(o.symbol.parent?o.symbol.parent:o.symbol,111551,void 0,64);return l===void 0||d===void 0?P.createNumericLiteral(0):P.createPropertyAccessExpression(d,t.symbolToString(l))}if(o.flags&256)return P.createNumericLiteral(o.value);if(o.flags&2048)return P.createBigIntLiteral(o.value);if(o.flags&128)return P.createStringLiteral(o.value,i===0);if(o.flags&512)return o===t.getFalseType()||o===t.getFalseType(!0)?P.createFalse():P.createTrue();if(o.flags&65536)return P.createNull();if(o.flags&1048576)return ml(o.types,d=>PX(e,t,r,i,d,s))??wI();if(t.isArrayLikeType(o))return P.createArrayLiteralExpression();if(uqe(o)){let l=nn(t.getPropertiesOfType(o),d=>{let p=PX(e,t,r,i,t.getTypeOfSymbol(d),s);return P.createPropertyAssignment(d.name,p)});return P.createObjectLiteralExpression(l,!0)}if(br(o)&16){if(Dr(o.symbol.declarations||je,hm(B_,z_,El))===void 0)return wI();let d=t.getSignaturesOfType(o,0);return d===void 0?wI():rY(218,e,i,d[0],Fz(f.Function_not_implemented.message,i),void 0,void 0,void 0,s,r)??wI()}if(br(o)&1){let l=ig(o.symbol);if(l===void 0||$E(l))return wI();let d=Ah(l);return d&&yn(d.parameters)?wI():P.createNewExpression(P.createIdentifier(o.symbol.name),void 0,void 0)}return wI()}function wI(){return P.createIdentifier("undefined")}function uqe(e){return e.flags&524288&&(br(e)&128||e.symbol&&Vr(x_(e.symbol.declarations),ju))}function pqe(e,t,r){let i=e.getContextualType(r.attributes);if(i===void 0)return je;let o=i.getProperties();if(!yn(o))return je;let s=new Set;for(let l of r.attributes.properties)if(r_(l)&&s.add(QC(l.name)),mI(l)){let d=e.getTypeAtLocation(l.expression);for(let p of d.getProperties())s.add(p.escapedName)}return Cr(o,l=>Sp(l.name,t,1)&&!(l.flags&16777216||tl(l)&48||s.has(l.escapedName)))}function fqe(e,t){if(ju(e))return;let r=Rn(t,i=>El(i)||ll(i));return r&&r.parent===e?r:void 0}function mqe(e,t,r,i){if(L_(e)){let o=i.symbolToNode(e,111551,void 0,1073741824);if(o&&Pa(o))return o}return vF(e.name,t,r===0,!1,!1)}function aDe(e){if(Rn(e,mN)){let t=Rn(e.parent,Kf);if(t)return t}return Nn(e)}var Ey,Nz,Pz,Mz,Jde,_qe=pt({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";Hr(),oa(),Ey="fixMissingMember",Nz="fixMissingProperties",Pz="fixMissingAttributes",Mz="fixMissingFunctionDeclaration",Jde=[f.Property_0_does_not_exist_on_type_1.code,f.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,f.Property_0_is_missing_in_type_1_but_required_in_type_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,f.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Cannot_find_name_0.code],ra({errorCodes:Jde,getCodeActions(e){let t=e.program.getTypeChecker(),r=XRe(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(r){if(r.kind===3){let i=er.ChangeTracker.with(e,o=>oDe(o,e,r));return[Go(Nz,i,f.Add_missing_properties,Nz,f.Add_all_missing_properties)]}if(r.kind===4){let i=er.ChangeTracker.with(e,o=>iDe(o,e,r));return[Go(Pz,i,f.Add_missing_attributes,Pz,f.Add_all_missing_attributes)]}if(r.kind===2||r.kind===5){let i=er.ChangeTracker.with(e,o=>rDe(o,e,r));return[Go(Mz,i,[f.Add_missing_function_declaration_0,r.token.text],Mz,f.Add_all_missing_function_declarations)]}if(r.kind===1){let i=er.ChangeTracker.with(e,o=>nDe(o,e.program.getTypeChecker(),r));return[Go(Ey,i,[f.Add_missing_enum_member_0,r.token.text],Ey,f.Add_all_missing_members)]}return ro(dqe(e,r),aqe(e,r))}},fixIds:[Ey,Mz,Nz,Pz],getAllCodeActions:e=>{let{program:t,fixId:r}=e,i=t.getTypeChecker(),o=new Map,s=new Map;return DR(er.ChangeTracker.with(e,l=>{CR(e,Jde,d=>{let p=XRe(d.file,d.start,d.code,i,e.program);if(!(!p||!Jf(o,Fa(p.parentDeclaration)+"#"+(p.kind===3?p.identifier:p.token.text)))){if(r===Mz&&(p.kind===2||p.kind===5))rDe(l,e,p);else if(r===Nz&&p.kind===3)oDe(l,e,p);else if(r===Pz&&p.kind===4)iDe(l,e,p);else if(p.kind===1&&nDe(l,i,p),p.kind===0){let{parentDeclaration:h,token:m}=p,v=FD(s,h,()=>[]);v.some(E=>E.token.text===m.text)||v.push(p)}}}),s.forEach((d,p)=>{let h=ju(p)?void 0:Fue(p,i);for(let m of d){if(h?.some(L=>{let G=s.get(L);return!!G&&G.some(({token:U})=>U.text===m.token.text)}))continue;let{parentDeclaration:v,declSourceFile:E,modifierFlags:S,token:A,call:C,isJSFile:R}=m;if(C&&!Ci(A))tDe(e,l,C,A,S&256,v,E);else if(R&&!Gd(v)&&!ju(v))YRe(l,E,v,A,!!(S&256));else{let L=QRe(i,v,A);ZRe(l,E,v,A.text,L,S&256)}}})}))}})}});function sDe(e,t,r){let i=Fo(hqe(t,r),Bo),o=P.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,o)}function hqe(e,t){let r=Hi(e,t.start),i=Al(t);for(;r.end<i;)r=r.parent;return r}var MX,Kde,gqe=pt({"src/services/codefixes/fixAddMissingNewOperator.ts"(){"use strict";Hr(),oa(),MX="addMissingNewOperator",Kde=[f.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code],ra({errorCodes:Kde,getCodeActions(e){let{sourceFile:t,span:r}=e,i=er.ChangeTracker.with(e,o=>sDe(o,t,r));return[Go(MX,i,f.Add_missing_new_operator_to_call,MX,f.Add_missing_new_operator_to_all_calls)]},fixIds:[MX],getAllCodeActions:e=>Qa(e,Kde,(t,r)=>sDe(t,e.sourceFile,r))})}});function lDe(e,t,r){let i=Hi(e,r),o=Rn(i,Bo);if(o===void 0||yn(o.arguments)===0)return;let s=t.getTypeChecker(),l=s.getTypeAtLocation(o.expression),d=Cr(l.symbol.declarations,cDe);if(d===void 0)return;let p=Ns(d);if(p===void 0||p.body===void 0||ER(t,p.getSourceFile()))return;let h=vqe(p);if(h===void 0)return;let m=[],v=[],E=yn(p.parameters),S=yn(o.arguments);if(E>S)return;let A=[p,...bqe(p,d)];for(let C=0,R=0,L=0;C<S;C++){let G=o.arguments[C],U=ds(G)?EV(G):G,K=s.getWidenedType(s.getBaseTypeOfLiteralType(s.getTypeAtLocation(G))),F=R<E?p.parameters[R]:void 0;if(F&&s.isTypeAssignableTo(K,s.getTypeAtLocation(F))){R++;continue}let oe=U&&Me(U)?U.text:`p${L++}`,W=yqe(s,K,p);pn(m,{pos:C,declaration:uDe(oe,W,void 0)}),!Sqe(A,R)&&pn(v,{pos:C,declaration:uDe(oe,W,P.createToken(58))})}return{newParameters:m,newOptionalParameters:v,name:is(h),declarations:A}}function vqe(e){let t=mo(e);if(t)return t;if(yi(e.parent)&&Me(e.parent.name)||xo(e.parent)||ao(e.parent))return e.parent.name}function yqe(e,t,r){return e.typeToTypeNode(e.getWidenedType(t),r,1)??P.createKeywordTypeNode(159)}function LX(e,t,r,i){an(r,o=>{yn(o.parameters)?e.replaceNodeRangeWithNodes(t,Sa(o.parameters),Da(o.parameters),dDe(o,i),{joiner:", ",indentation:0,leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Include}):an(dDe(o,i),(s,l)=>{yn(o.parameters)===0&&l===0?e.insertNodeAt(t,o.parameters.end,s):e.insertNodeAtEndOfList(t,o.parameters,s)})})}function cDe(e){switch(e.kind){case 262:case 218:case 174:case 219:return!0;default:return!1}}function dDe(e,t){let r=nn(e.parameters,i=>P.createParameterDeclaration(i.modifiers,i.dotDotDotToken,i.name,i.questionToken,i.type,i.initializer));for(let{pos:i,declaration:o}of t){let s=i>0?r[i-1]:void 0;r.splice(i,0,P.updateParameterDeclaration(o,o.modifiers,o.dotDotDotToken,o.name,s&&s.questionToken?P.createToken(58):o.questionToken,o.type,o.initializer))}return r}function bqe(e,t){let r=[];for(let i of t)if(Eqe(i)){if(yn(i.parameters)===yn(e.parameters)){r.push(i);continue}if(yn(i.parameters)>yn(e.parameters))return[]}return r}function Eqe(e){return cDe(e)&&e.body===void 0}function uDe(e,t,r){return P.createParameterDeclaration(void 0,void 0,e,r,t,void 0)}function Sqe(e,t){return yn(e)&&ct(e,r=>t<yn(r.parameters)&&!!r.parameters[t]&&r.parameters[t].questionToken===void 0)}var Lz,kz,Xde,Tqe=pt({"src/services/codefixes/fixAddMissingParam.ts"(){"use strict";Hr(),oa(),Lz="addMissingParam",kz="addOptionalParam",Xde=[f.Expected_0_arguments_but_got_1.code],ra({errorCodes:Xde,fixIds:[Lz,kz],getCodeActions(e){let t=lDe(e.sourceFile,e.program,e.span.start);if(t===void 0)return;let{name:r,declarations:i,newParameters:o,newOptionalParameters:s}=t,l=[];return yn(o)&&pn(l,Go(Lz,er.ChangeTracker.with(e,d=>LX(d,e.sourceFile,i,o)),[yn(o)>1?f.Add_missing_parameters_to_0:f.Add_missing_parameter_to_0,r],Lz,f.Add_all_missing_parameters)),yn(s)&&pn(l,Go(kz,er.ChangeTracker.with(e,d=>LX(d,e.sourceFile,i,s)),[yn(s)>1?f.Add_optional_parameters_to_0:f.Add_optional_parameter_to_0,r],kz,f.Add_all_optional_parameters)),l},getAllCodeActions:e=>Qa(e,Xde,(t,r)=>{let i=lDe(e.sourceFile,e.program,r.start);if(i){let{declarations:o,newParameters:s,newOptionalParameters:l}=i;e.fixId===Lz&&LX(t,e.sourceFile,o,s),e.fixId===kz&&LX(t,e.sourceFile,o,l)}})})}});function pDe(e,t){return{type:"install package",file:e,packageName:t}}function fDe(e,t){let r=Vr(Hi(e,t),ca);if(!r)return;let i=r.text,{packageName:o}=ik(i);return Ic(o)?void 0:o}function mDe(e,t,r){var i;return r===Yde?s_.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?n4(e):void 0}var _De,kX,Yde,$de,Aqe=pt({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";Hr(),oa(),_De="fixCannotFindModule",kX="installTypesPackage",Yde=f.Cannot_find_module_0_or_its_corresponding_type_declarations.code,$de=[Yde,f.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],ra({errorCodes:$de,getCodeActions:function(t){let{host:r,sourceFile:i,span:{start:o}}=t,s=fDe(i,o);if(s===void 0)return;let l=mDe(s,r,t.errorCode);return l===void 0?[]:[Go(_De,[],[f.Install_0,l],kX,f.Install_all_missing_types_packages,pDe(i.fileName,l))]},fixIds:[kX],getAllCodeActions:e=>Qa(e,$de,(t,r,i)=>{let o=fDe(r.file,r.start);if(o!==void 0)switch(e.fixId){case kX:{let s=mDe(o,e.host,r.code);s&&i.push(pDe(r.file.fileName,s));break}default:x.fail(`Bad fixId: ${e.fixId}`)}})})}});function hDe(e,t){let r=Hi(e,t);return Fo(r.parent,Kr)}function gDe(e,t,r,i,o){let s=Jm(e),l=r.program.getTypeChecker(),d=l.getTypeAtLocation(s),p=l.getPropertiesOfType(d).filter(Iqe),h=OI(t,r.program,o,r.host);Cue(e,p,t,r,o,h,m=>i.insertMemberAtStart(t,e,m)),h.writeFixes(i)}function Iqe(e){let t=ny(Sa(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Qde,OX,xqe=pt({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";Hr(),oa(),Qde=[f.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],OX="fixClassDoesntImplementInheritedAbstractMember",ra({errorCodes:Qde,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=er.ChangeTracker.with(t,s=>gDe(hDe(r,i.start),r,t,s,t.preferences));return o.length===0?void 0:[Go(OX,o,f.Implement_inherited_abstract_class,OX,f.Implement_all_inherited_abstract_classes)]},fixIds:[OX],getAllCodeActions:function(t){let r=new Map;return Qa(t,Qde,(i,o)=>{let s=hDe(o.file,o.start);Jf(r,Fa(s))&&gDe(s,t.sourceFile,t,i,t.preferences)})}})}});function vDe(e,t,r,i){e.insertNodeAtConstructorStart(t,r,i),e.delete(t,i)}function yDe(e,t){let r=Hi(e,t);if(r.kind!==110)return;let i=cp(r),o=bDe(i.body);return o&&!o.expression.arguments.some(s=>Er(s)&&s.expression===r)?{constructor:i,superCall:o}:void 0}function bDe(e){return Cc(e)&&xS(e.expression)?e:Lo(e)?void 0:Ao(e,bDe)}var wX,Zde,Rqe=pt({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";Hr(),oa(),wX="classSuperMustPrecedeThisAccess",Zde=[f.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],ra({errorCodes:Zde,getCodeActions(e){let{sourceFile:t,span:r}=e,i=yDe(t,r.start);if(!i)return;let{constructor:o,superCall:s}=i,l=er.ChangeTracker.with(e,d=>vDe(d,t,o,s));return[Go(wX,l,f.Make_super_call_the_first_statement_in_the_constructor,wX,f.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[wX],getAllCodeActions(e){let{sourceFile:t}=e,r=new Map;return Qa(e,Zde,(i,o)=>{let s=yDe(o.file,o.start);if(!s)return;let{constructor:l,superCall:d}=s;Jf(r,Fa(l.parent))&&vDe(i,t,l,d)})}})}});function EDe(e,t){let r=Hi(e,t);return x.assert(ll(r.parent),"token should be at the constructor declaration"),r.parent}function SDe(e,t,r){let i=P.createExpressionStatement(P.createCallExpression(P.createSuper(),void 0,je));e.insertNodeAtConstructorStart(t,r,i)}var WX,eue,Dqe=pt({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";Hr(),oa(),WX="constructorForDerivedNeedSuperCall",eue=[f.Constructors_for_derived_classes_must_contain_a_super_call.code],ra({errorCodes:eue,getCodeActions(e){let{sourceFile:t,span:r}=e,i=EDe(t,r.start),o=er.ChangeTracker.with(e,s=>SDe(s,t,i));return[Go(WX,o,f.Add_missing_super_call,WX,f.Add_all_missing_super_calls)]},fixIds:[WX],getAllCodeActions:e=>Qa(e,eue,(t,r)=>SDe(t,e.sourceFile,EDe(r.file,r.start)))})}});function TDe(e,t){kue(e,t,"jsx",P.createStringLiteral("react"))}var tue,nue,Cqe=pt({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";Hr(),oa(),tue="fixEnableJsxFlag",nue=[f.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],ra({errorCodes:nue,getCodeActions:function(t){let{configFile:r}=t.program.getCompilerOptions();if(r===void 0)return;let i=er.ChangeTracker.with(t,o=>TDe(o,r));return[Im(tue,i,f.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[tue],getAllCodeActions:e=>Qa(e,nue,t=>{let{configFile:r}=e.program.getCompilerOptions();r!==void 0&&TDe(t,r)})})}});function ADe(e,t,r){let i=Dr(e.getSemanticDiagnostics(t),l=>l.start===r.start&&l.length===r.length);if(i===void 0||i.relatedInformation===void 0)return;let o=Dr(i.relatedInformation,l=>l.code===f.Did_you_mean_0.code);if(o===void 0||o.file===void 0||o.start===void 0||o.length===void 0)return;let s=wue(o.file,qc(o.start,o.length));if(s!==void 0&<(s)&&Zn(s.parent))return{suggestion:Nqe(o.messageText),expression:s.parent,arg:s}}function IDe(e,t,r,i){let o=P.createCallExpression(P.createPropertyAccessExpression(P.createIdentifier("Number"),P.createIdentifier("isNaN")),void 0,[r]),s=i.operatorToken.kind;e.replaceNode(t,i,s===38||s===36?P.createPrefixUnaryExpression(54,o):o)}function Nqe(e){let[,t]=o_(e,`
`,0).match(/'(.*)'/)||[];return t}var FX,rue,Pqe=pt({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";Hr(),oa(),FX="fixNaNEquality",rue=[f.This_condition_will_always_return_0.code],ra({errorCodes:rue,getCodeActions(e){let{sourceFile:t,span:r,program:i}=e,o=ADe(i,t,r);if(o===void 0)return;let{suggestion:s,expression:l,arg:d}=o,p=er.ChangeTracker.with(e,h=>IDe(h,t,d,l));return[Go(FX,p,[f.Use_0,s],FX,f.Use_Number_isNaN_in_all_conditions)]},fixIds:[FX],getAllCodeActions:e=>Qa(e,rue,(t,r)=>{let i=ADe(e.program,r.file,qc(r.start,r.length));i&&IDe(t,r.file,i.arg,i.expression)})})}}),Mqe=pt({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";Hr(),oa(),ra({errorCodes:[f.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code,f.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_nodenext_or_preserve_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(t){let r=t.program.getCompilerOptions(),{configFile:i}=r;if(i===void 0)return;let o=[],s=ld(r);if(s>=5&&s<99){let h=er.ChangeTracker.with(t,m=>{kue(m,i,"module",P.createStringLiteral("esnext"))});o.push(Im("fixModuleOption",h,[f.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let d=Wa(r);if(d<4||d>99){let h=er.ChangeTracker.with(t,m=>{if(!_C(i))return;let E=[["target",P.createStringLiteral("es2017")]];s===1&&E.push(["module",P.createStringLiteral("commonjs")]),Lue(m,i,E)});o.push(Im("fixTargetOption",h,[f.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return o.length?o:void 0}})}});function xDe(e,t,r){e.replaceNode(t,r,P.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function RDe(e,t){return Fo(Hi(e,t).parent,xu)}var zX,iue,Lqe=pt({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";Hr(),oa(),zX="fixPropertyAssignment",iue=[f.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],ra({errorCodes:iue,fixIds:[zX],getCodeActions(e){let{sourceFile:t,span:r}=e,i=RDe(t,r.start),o=er.ChangeTracker.with(e,s=>xDe(s,e.sourceFile,i));return[Go(zX,o,[f.Change_0_to_1,"=",":"],zX,[f.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>Qa(e,iue,(t,r)=>xDe(t,r.file,RDe(r.file,r.start)))})}});function DDe(e,t){let r=Hi(e,t),i=Oc(r).heritageClauses,o=i[0].getFirstToken();return o.kind===96?{extendsToken:o,heritageClauses:i}:void 0}function CDe(e,t,r,i){if(e.replaceNode(t,r,P.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let o=i[1].getFirstToken(),s=o.getFullStart();e.replaceRange(t,{pos:s,end:s},P.createToken(28));let l=t.text,d=o.end;for(;d<l.length&&jm(l.charCodeAt(d));)d++;e.deleteRange(t,{pos:o.getStart(),end:d})}}var BX,oue,kqe=pt({"src/services/codefixes/fixExtendsInterfaceBecomesImplements.ts"(){"use strict";Hr(),oa(),BX="extendsInterfaceBecomesImplements",oue=[f.Cannot_extend_an_interface_0_Did_you_mean_implements.code],ra({errorCodes:oue,getCodeActions(e){let{sourceFile:t}=e,r=DDe(t,e.span.start);if(!r)return;let{extendsToken:i,heritageClauses:o}=r,s=er.ChangeTracker.with(e,l=>CDe(l,t,i,o));return[Go(BX,s,f.Change_extends_to_implements,BX,f.Change_all_extended_interfaces_to_implements)]},fixIds:[BX],getAllCodeActions:e=>Qa(e,oue,(t,r)=>{let i=DDe(r.file,r.start);i&&CDe(t,r.file,i.extendsToken,i.heritageClauses)})})}});function NDe(e,t,r){let i=Hi(e,t);if(Me(i)||Ci(i))return{node:i,className:r===aue?Oc(i).name.text:void 0}}function PDe(e,t,{node:r,className:i}){qu(r),e.replaceNode(t,r,P.createPropertyAccessExpression(i?P.createIdentifier(i):P.createThis(),r))}var GX,aue,sue,Oqe=pt({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";Hr(),oa(),GX="forgottenThisPropertyAccess",aue=f.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,sue=[f.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,f.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,aue],ra({errorCodes:sue,getCodeActions(e){let{sourceFile:t}=e,r=NDe(t,e.span.start,e.errorCode);if(!r)return;let i=er.ChangeTracker.with(e,o=>PDe(o,t,r));return[Go(GX,i,[f.Add_0_to_unresolved_variable,r.className||"this"],GX,f.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[GX],getAllCodeActions:e=>Qa(e,sue,(t,r)=>{let i=NDe(r.file,r.start,r.code);i&&PDe(t,e.sourceFile,i)})})}});function wqe(e){return rs(due,e)}function lue(e,t,r,i,o){let s=r.getText()[i];if(!wqe(s))return;let l=o?due[s]:`{${rP(r,t,s)}}`;e.replaceRangeWithText(r,{pos:i,end:i+1},l)}var VX,Oz,cue,due,Wqe=pt({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";Hr(),oa(),VX="fixInvalidJsxCharacters_expression",Oz="fixInvalidJsxCharacters_htmlEntity",cue=[f.Unexpected_token_Did_you_mean_or_gt.code,f.Unexpected_token_Did_you_mean_or_rbrace.code],ra({errorCodes:cue,fixIds:[VX,Oz],getCodeActions(e){let{sourceFile:t,preferences:r,span:i}=e,o=er.ChangeTracker.with(e,l=>lue(l,r,t,i.start,!1)),s=er.ChangeTracker.with(e,l=>lue(l,r,t,i.start,!0));return[Go(VX,o,f.Wrap_invalid_character_in_an_expression_container,VX,f.Wrap_all_invalid_characters_in_an_expression_container),Go(Oz,s,f.Convert_invalid_character_to_its_html_entity_code,Oz,f.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return Qa(e,cue,(t,r)=>lue(t,e.preferences,r.file,r.start,e.fixId===Oz))}}),due={">":">","}":"}"}}});function Fqe(e,{name:t,jsDocHost:r,jsDocParameterTag:i}){let o=er.ChangeTracker.with(e,s=>s.filterJSDocTags(e.sourceFile,r,l=>l!==i));return Go(wz,o,[f.Delete_unused_param_tag_0,t.getText(e.sourceFile)],wz,f.Delete_all_unused_param_tags)}function zqe(e,{name:t,jsDocHost:r,signature:i,jsDocParameterTag:o}){if(!yn(i.parameters))return;let s=e.sourceFile,l=Eb(i),d=new Set;for(let v of l)Tm(v)&&Me(v.name)&&d.add(v.name.escapedText);let p=ml(i.parameters,v=>Me(v.name)&&!d.has(v.name.escapedText)?v.name.getText(s):void 0);if(p===void 0)return;let h=P.updateJSDocParameterTag(o,o.tagName,P.createIdentifier(p),o.isBracketed,o.typeExpression,o.isNameFirst,o.comment),m=er.ChangeTracker.with(e,v=>v.replaceJSDocComment(s,r,nn(l,E=>E===o?h:E)));return Im(uue,m,[f.Rename_param_tag_name_0_to_1,t.getText(s),p])}function MDe(e,t){let r=Hi(e,t);if(r.parent&&Tm(r.parent)&&Me(r.parent.name)){let i=r.parent,o=PS(i),s=xb(i);if(o&&s)return{jsDocHost:o,signature:s,name:r.parent.name,jsDocParameterTag:i}}}var wz,uue,pue,Bqe=pt({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";Hr(),oa(),wz="deleteUnmatchedParameter",uue="renameUnmatchedParameter",pue=[f.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],ra({fixIds:[wz,uue],errorCodes:pue,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=[],s=MDe(r,i.start);if(s)return pn(o,Fqe(t,s)),pn(o,zqe(t,s)),o},getAllCodeActions:function(t){let r=new Map;return DR(er.ChangeTracker.with(t,i=>{CR(t,pue,({file:o,start:s})=>{let l=MDe(o,s);l&&r.set(l.signature,pn(r.get(l.signature),l.jsDocParameterTag))}),r.forEach((o,s)=>{if(t.fixId===wz){let l=new Set(o);i.filterJSDocTags(s.getSourceFile(),s,d=>!l.has(d))}})}))}})}});function Gqe(e,t,r){let i=Vr(Hi(e,r),Me);if(!i||i.parent.kind!==183)return;let s=t.getTypeChecker().getSymbolAtLocation(i);return Dr(s?.declarations||je,hm(G_,Iu,Nc))}function Vqe(e,t,r,i){if(r.kind===271){e.insertModifierBefore(t,156,r.name);return}let o=r.kind===273?r:r.parent.parent;if(o.name&&o.namedBindings)return;let s=i.getTypeChecker();CW(o,d=>{if(Kc(d.symbol,s).flags&111551)return!0})||e.insertModifierBefore(t,156,o)}function jqe(e,t,r,i){MI.doChangeNamedToNamespaceOrDefault(t,i,e,r.parent)}var jX,LDe,Uqe=pt({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";Hr(),oa(),jX="fixUnreferenceableDecoratorMetadata",LDe=[f.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],ra({errorCodes:LDe,getCodeActions:e=>{let t=Gqe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=er.ChangeTracker.with(e,s=>t.kind===276&&jqe(s,e.sourceFile,t,e.program)),i=er.ChangeTracker.with(e,s=>Vqe(s,e.sourceFile,t,e.program)),o;return r.length&&(o=pn(o,Im(jX,r,f.Convert_named_imports_to_namespace_import))),i.length&&(o=pn(o,Im(jX,i,f.Use_import_type))),o},fixIds:[jX]})}});function kDe(e,t,r){e.replaceNode(t,r.parent,P.createKeywordTypeNode(159))}function xO(e,t){return Go(RO,e,t,qX,f.Delete_all_unused_declarations)}function ODe(e,t,r){e.delete(t,x.checkDefined(Fo(r.parent,E9).typeParameters,"The type parameter to delete should exist"))}function fue(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function wDe(e){return e.kind===102?Vr(e.parent,cc):void 0}function WDe(e,t){return yc(t.parent)&&Sa(t.parent.getChildren(e))===t}function FDe(e,t,r){e.delete(t,r.parent.kind===243?r.parent:r)}function Hqe(e,t,r){an(r.elements,i=>e.delete(t,i))}function qqe(e,t,r,{parent:i}){if(yi(i)&&i.initializer&&WE(i.initializer))if(yc(i.parent)&&yn(i.parent.declarations)>1){let o=i.parent.parent,s=o.getStart(r),l=o.end;t.delete(r,i),t.insertNodeAt(r,l,i.initializer,{prefix:mv(e.host,e.formatContext.options)+r.text.slice(L3(r.text,s-1),s),suffix:Zk(r)?";":""})}else t.replaceNode(r,i.parent,i.initializer);else t.delete(r,i)}function zDe(e,t,r,i){t!==f.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Fo(i.parent,GS).typeParameter.name),Me(i)&&Jqe(i)&&(e.replaceNode(r,i,P.createIdentifier(`_${i.text}`)),ao(i.parent)&&G1(i.parent).forEach(o=>{Me(o.name)&&e.replaceNode(r,o.name,P.createIdentifier(`_${o.name.text}`))})))}function Jqe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function UX(e,t,r,i,o,s,l,d){Kqe(t,r,e,i,o,s,l,d),Me(t)&&ps.Core.eachSymbolReferenceInFile(t,i,e,p=>{Er(p.parent)&&p.parent.name===p&&(p=p.parent),!d&&Qqe(p)&&r.delete(e,p.parent.parent)})}function Kqe(e,t,r,i,o,s,l,d){let{parent:p}=e;if(ao(p))Xqe(t,r,p,i,o,s,l,d);else if(!(d&&Me(e)&&ps.Core.isSymbolReferencedInFile(e,i,r))){let h=G_(p)?e:Pa(p)?p.parent:p;x.assert(h!==r,"should not delete whole source file"),t.delete(r,h)}}function Xqe(e,t,r,i,o,s,l,d=!1){if(Yqe(i,t,r,o,s,l,d))if(r.modifiers&&r.modifiers.length>0&&(!Me(r.name)||ps.Core.isSymbolReferencedInFile(r.name,i,t)))for(let p of r.modifiers)ia(p)&&e.deleteModifier(t,p);else!r.initializer&&BDe(r,i,o)&&e.delete(t,r)}function BDe(e,t,r){let i=e.parent.parameters.indexOf(e);return!ps.Core.someSignatureUsage(e.parent,r,t,(o,s)=>!s||s.arguments.length>i)}function Yqe(e,t,r,i,o,s,l){let{parent:d}=r;switch(d.kind){case 174:case 176:let p=d.parameters.indexOf(r),h=El(d)?d.name:d,m=ps.Core.getReferencedSymbolsForNode(d.pos,h,o,i,s);if(m){for(let v of m)for(let E of v.references)if(E.kind===ps.EntryKind.Node){let S=sN(E.node)&&Bo(E.node.parent)&&E.node.parent.arguments.length>p,A=Er(E.node.parent)&&sN(E.node.parent.expression)&&Bo(E.node.parent.parent)&&E.node.parent.parent.arguments.length>p,C=(El(E.node.parent)||z_(E.node.parent))&&E.node.parent!==r.parent&&E.node.parent.parameters.length>p;if(S||A||C)return!1}}return!0;case 262:return d.name&&$qe(e,t,d.name)?GDe(d,r,l):!0;case 218:case 219:return GDe(d,r,l);case 178:return!1;case 177:return!0;default:return x.failBadSyntaxKind(d)}}function $qe(e,t,r){return!!ps.Core.eachSymbolReferenceInFile(r,e,t,i=>Me(i)&&Bo(i.parent)&&i.parent.arguments.includes(i))}function GDe(e,t,r){let i=e.parameters,o=i.indexOf(t);return x.assert(o!==-1,"The parameter should already be in the list"),r?i.slice(o+1).every(s=>Me(s.name)&&!s.symbol.isReferenced):o===i.length-1}function Qqe(e){return(Zn(e.parent)&&e.parent.left===e||(Ej(e.parent)||fy(e.parent))&&e.parent.operand===e)&&Cc(e.parent.parent)}var RO,HX,qX,Wz,JX,mue,Zqe=pt({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";Hr(),oa(),RO="unusedIdentifier",HX="unusedIdentifier_prefix",qX="unusedIdentifier_delete",Wz="unusedIdentifier_deleteImports",JX="unusedIdentifier_infer",mue=[f._0_is_declared_but_its_value_is_never_read.code,f._0_is_declared_but_never_used.code,f.Property_0_is_declared_but_its_value_is_never_read.code,f.All_imports_in_import_declaration_are_unused.code,f.All_destructured_elements_are_unused.code,f.All_variables_are_unused.code,f.All_type_parameters_are_unused.code],ra({errorCodes:mue,getCodeActions(e){let{errorCode:t,sourceFile:r,program:i,cancellationToken:o}=e,s=i.getTypeChecker(),l=i.getSourceFiles(),d=Hi(r,e.span.start);if(Df(d))return[xO(er.ChangeTracker.with(e,v=>v.delete(r,d)),f.Remove_template_tag)];if(d.kind===30){let v=er.ChangeTracker.with(e,E=>ODe(E,r,d));return[xO(v,f.Remove_type_parameters)]}let p=wDe(d);if(p){let v=er.ChangeTracker.with(e,E=>E.delete(r,p));return[Go(RO,v,[f.Remove_import_from_0,Fne(p)],Wz,f.Delete_all_unused_imports)]}else if(fue(d)){let v=er.ChangeTracker.with(e,E=>UX(r,d,E,s,l,i,o,!1));if(v.length)return[Go(RO,v,[f.Remove_unused_declaration_for_Colon_0,d.getText(r)],Wz,f.Delete_all_unused_imports)]}if(Rf(d.parent)||i0(d.parent)){if(ao(d.parent.parent)){let v=d.parent.elements,E=[v.length>1?f.Remove_unused_declarations_for_Colon_0:f.Remove_unused_declaration_for_Colon_0,nn(v,S=>S.getText(r)).join(", ")];return[xO(er.ChangeTracker.with(e,S=>Hqe(S,r,d.parent)),E)]}return[xO(er.ChangeTracker.with(e,v=>qqe(e,v,r,d.parent)),f.Remove_unused_destructuring_declaration)]}if(WDe(r,d))return[xO(er.ChangeTracker.with(e,v=>FDe(v,r,d.parent)),f.Remove_variable_statement)];let h=[];if(d.kind===140){let v=er.ChangeTracker.with(e,S=>kDe(S,r,d)),E=Fo(d.parent,GS).typeParameter.name.text;h.push(Go(RO,v,[f.Replace_infer_0_with_unknown,E],JX,f.Replace_all_unused_infer_with_unknown))}else{let v=er.ChangeTracker.with(e,E=>UX(r,d,E,s,l,i,o,!1));if(v.length){let E=Pa(d.parent)?d.parent:d;h.push(xO(v,[f.Remove_unused_declaration_for_Colon_0,E.getText(r)]))}}let m=er.ChangeTracker.with(e,v=>zDe(v,t,r,d));return m.length&&h.push(Go(RO,m,[f.Prefix_0_with_an_underscore,d.getText(r)],HX,f.Prefix_all_unused_declarations_with_where_possible)),h},fixIds:[HX,qX,Wz,JX],getAllCodeActions:e=>{let{sourceFile:t,program:r,cancellationToken:i}=e,o=r.getTypeChecker(),s=r.getSourceFiles();return Qa(e,mue,(l,d)=>{let p=Hi(t,d.start);switch(e.fixId){case HX:zDe(l,d.code,t,p);break;case Wz:{let h=wDe(p);h?l.delete(t,h):fue(p)&&UX(t,p,l,o,s,r,i,!0);break}case qX:{if(p.kind===140||fue(p))break;if(Df(p))l.delete(t,p);else if(p.kind===30)ODe(l,t,p);else if(Rf(p.parent)){if(p.parent.parent.initializer)break;(!ao(p.parent.parent)||BDe(p.parent.parent,o,s))&&l.delete(t,p.parent.parent)}else{if(i0(p.parent.parent)&&p.parent.parent.parent.initializer)break;WDe(t,p)?FDe(l,t,p.parent):UX(t,p,l,o,s,r,i,!0)}break}case JX:p.kind===140&&kDe(l,t,p);break;default:x.fail(JSON.stringify(e.fixId))}})}})}});function VDe(e,t,r,i,o){let s=Hi(t,r),l=Rn(s,Di);if(l.getStart(t)!==s.getStart(t)){let p=JSON.stringify({statementKind:x.formatSyntaxKind(l.kind),tokenKind:x.formatSyntaxKind(s.kind),errorCode:o,start:r,length:i});x.fail("Token and statement should start at the same point. "+p)}let d=(Do(l.parent)?l.parent:l).parent;if(!Do(l.parent)||l===Sa(l.parent.statements))switch(d.kind){case 245:if(d.elseStatement){if(Do(l.parent))break;e.replaceNode(t,l,P.createBlock(je));return}case 247:case 248:e.delete(t,d);return}if(Do(l.parent)){let p=r+i,h=x.checkDefined(eJe(NV(l.parent.statements,l),m=>m.pos<p),"Some statement should be last");e.deleteNodeRange(t,l,h)}else e.delete(t,l)}function eJe(e,t){let r;for(let i of e){if(!t(i))break;r=i}return r}var KX,_ue,tJe=pt({"src/services/codefixes/fixUnreachableCode.ts"(){"use strict";Hr(),oa(),KX="fixUnreachableCode",_ue=[f.Unreachable_code_detected.code],ra({errorCodes:_ue,getCodeActions(e){if(e.program.getSyntacticDiagnostics(e.sourceFile,e.cancellationToken).length)return;let r=er.ChangeTracker.with(e,i=>VDe(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[Go(KX,r,f.Remove_unreachable_code,KX,f.Remove_all_unreachable_code)]},fixIds:[KX],getAllCodeActions:e=>Qa(e,_ue,(t,r)=>VDe(t,r.file,r.start,r.length,r.code))})}});function jDe(e,t,r){let i=Hi(t,r),o=Fo(i.parent,s0),s=i.getStart(t),l=o.statement.getStart(t),d=Jp(s,l,t)?l:ua(t.text,Ya(o,59,t).end,!0);e.deleteRange(t,{pos:s,end:d})}var XX,hue,nJe=pt({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";Hr(),oa(),XX="fixUnusedLabel",hue=[f.Unused_label.code],ra({errorCodes:hue,getCodeActions(e){let t=er.ChangeTracker.with(e,r=>jDe(r,e.sourceFile,e.span.start));return[Go(XX,t,f.Remove_unused_label,XX,f.Remove_all_unused_labels)]},fixIds:[XX],getAllCodeActions:e=>Qa(e,hue,(t,r)=>jDe(t,r.file,r.start))})}});function UDe(e,t,r,i,o){e.replaceNode(t,r,o.typeToTypeNode(i,r,void 0))}function HDe(e,t,r){let i=Rn(Hi(e,t),rJe),o=i&&i.type;return o&&{typeNode:o,type:iJe(r,o)}}function rJe(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 iJe(e,t){if(Bx(t)){let r=e.getTypeFromTypeNode(t.type);return r===e.getNeverType()||r===e.getVoidType()?r:e.getUnionType(pn([r,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var gue,YX,vue,oJe=pt({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";Hr(),oa(),gue="fixJSDocTypes_plain",YX="fixJSDocTypes_nullable",vue=[f.JSDoc_types_can_only_be_used_inside_documentation_comments.code,f._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,f._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],ra({errorCodes:vue,getCodeActions(e){let{sourceFile:t}=e,r=e.program.getTypeChecker(),i=HDe(t,e.span.start,r);if(!i)return;let{typeNode:o,type:s}=i,l=o.getText(t),d=[p(s,gue,f.Change_all_jsdoc_style_types_to_TypeScript)];return o.kind===321&&d.push(p(s,YX,f.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),d;function p(h,m,v){let E=er.ChangeTracker.with(e,S=>UDe(S,t,o,h,r));return Go("jdocTypes",E,[f.Change_0_to_1,l,r.typeToString(h)],m,v)}},fixIds:[gue,YX],getAllCodeActions(e){let{fixId:t,program:r,sourceFile:i}=e,o=r.getTypeChecker();return Qa(e,vue,(s,l)=>{let d=HDe(l.file,l.start,o);if(!d)return;let{typeNode:p,type:h}=d,m=p.kind===321&&t===YX?o.getNullableType(h,32768):h;UDe(s,i,p,m,o)})}})}});function qDe(e,t,r){e.replaceNodeWithText(t,r,`${r.text}()`)}function JDe(e,t){let r=Hi(e,t);if(Er(r.parent)){let i=r.parent;for(;Er(i.parent);)i=i.parent;return i.name}if(Me(r))return r}var $X,yue,aJe=pt({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";Hr(),oa(),$X="fixMissingCallParentheses",yue=[f.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],ra({errorCodes:yue,fixIds:[$X],getCodeActions(e){let{sourceFile:t,span:r}=e,i=JDe(t,r.start);if(!i)return;let o=er.ChangeTracker.with(e,s=>qDe(s,e.sourceFile,i));return[Go($X,o,f.Add_missing_call_parentheses,$X,f.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>Qa(e,yue,(t,r)=>{let i=JDe(r.file,r.start);i&&qDe(t,r.file,i)})})}});function sJe(e){if(e.type)return e.type;if(yi(e.parent)&&e.parent.type&&B_(e.parent.type))return e.parent.type.type}function KDe(e,t){let r=Hi(e,t),i=cp(r);if(!i)return;let o;switch(i.kind){case 174:o=i.name;break;case 262:case 218:o=Ya(i,100,e);break;case 219:let s=i.typeParameters?30:21;o=Ya(i,s,e)||Sa(i.parameters);break;default:return}return o&&{insertBefore:o,returnType:sJe(i)}}function XDe(e,t,{insertBefore:r,returnType:i}){if(i){let o=mL(i);(!o||o.kind!==80||o.text!=="Promise")&&e.replaceNode(t,i,P.createTypeReferenceNode("Promise",P.createNodeArray([i])))}e.insertModifierBefore(t,134,r)}var QX,bue,lJe=pt({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";Hr(),oa(),QX="fixAwaitInSyncFunction",bue=[f.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,f.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],ra({errorCodes:bue,getCodeActions(e){let{sourceFile:t,span:r}=e,i=KDe(t,r.start);if(!i)return;let o=er.ChangeTracker.with(e,s=>XDe(s,t,i));return[Go(QX,o,f.Add_async_modifier_to_containing_function,QX,f.Add_all_missing_async_modifiers)]},fixIds:[QX],getAllCodeActions:function(t){let r=new Map;return Qa(t,bue,(i,o)=>{let s=KDe(o.file,o.start);!s||!Jf(r,Fa(s.insertBefore))||XDe(i,t.sourceFile,s)})}})}});function YDe(e,t,r,i,o){let s,l;if(i===f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)s=t,l=t+r;else if(i===f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let d=o.program.getTypeChecker(),p=Hi(e,t).parent;x.assert(Kv(p),"error span of fixPropertyOverrideAccessor should only be on an accessor");let h=p.parent;x.assert(Kr(h),"erroneous accessors should only be inside classes");let m=x_(Fue(h,d));if(!m)return[];let v=Ii($1(p.name)),E=d.getPropertyOfType(d.getTypeAtLocation(m),v);if(!E||!E.valueDeclaration)return[];s=E.valueDeclaration.pos,l=E.valueDeclaration.end,e=Nn(E.valueDeclaration)}else x.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return uCe(e,o.program,s,l,o,f.Generate_get_and_set_accessors.message)}var Eue,ZX,cJe=pt({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";Hr(),oa(),Eue=[f._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,f._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],ZX="fixPropertyOverrideAccessor",ra({errorCodes:Eue,getCodeActions(e){let t=YDe(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[Go(ZX,t,f.Generate_get_and_set_accessors,ZX,f.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[ZX],getAllCodeActions:e=>Qa(e,Eue,(t,r)=>{let i=YDe(r.file,r.start,r.length,r.code,e);if(i)for(let o of i)t.pushRaw(e.sourceFile,o)})})}});function dJe(e,t){switch(e){case f.Parameter_0_implicitly_has_an_1_type.code:case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Vu(cp(t))?f.Infer_type_of_0_from_usage:f.Infer_parameter_types_from_usage;case f.Rest_parameter_0_implicitly_has_an_any_type.code:case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Infer_parameter_types_from_usage;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return f.Infer_this_type_of_0_from_usage;default:return f.Infer_type_of_0_from_usage}}function uJe(e){switch(e){case f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Variable_0_implicitly_has_an_1_type.code;case f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Parameter_0_implicitly_has_an_1_type.code;case f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Rest_parameter_0_implicitly_has_an_any_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return f.Member_0_implicitly_has_an_1_type.code}return e}function $De(e,t,r,i,o,s,l,d,p){if(!aC(r.kind)&&r.kind!==80&&r.kind!==26&&r.kind!==110)return;let{parent:h}=r,m=OI(t,o,p,d);switch(i=uJe(i),i){case f.Member_0_implicitly_has_an_1_type.code:case f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(yi(h)&&l(h)||xo(h)||Gu(h))return QDe(e,m,t,h,o,d,s),m.writeFixes(e),h;if(Er(h)){let S=DO(h.name,o,s),A=iP(S,h,o,d);if(A){let C=P.createJSDocTypeTag(void 0,P.createJSDocTypeExpression(A),void 0);e.addJSDocTags(t,Fo(h.parent.parent,Cc),[C])}return m.writeFixes(e),h}return;case f.Variable_0_implicitly_has_an_1_type.code:{let S=o.getTypeChecker().getSymbolAtLocation(r);return S&&S.valueDeclaration&&yi(S.valueDeclaration)&&l(S.valueDeclaration)?(QDe(e,m,Nn(S.valueDeclaration),S.valueDeclaration,o,d,s),m.writeFixes(e),S.valueDeclaration):void 0}}let v=cp(r);if(v===void 0)return;let E;switch(i){case f.Parameter_0_implicitly_has_an_1_type.code:if(Vu(v)){ZDe(e,m,t,v,o,d,s),E=v;break}case f.Rest_parameter_0_implicitly_has_an_any_type.code:if(l(v)){let S=Fo(h,ao);pJe(e,m,t,S,v,o,d,s),E=S}break;case f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Ap(v)&&Me(v.name)&&(eY(e,m,t,v,DO(v.name,o,s),o,d),E=v);break;case f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Vu(v)&&(ZDe(e,m,t,v,o,d,s),E=v);break;case f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:er.isThisTypeAnnotatable(v)&&l(v)&&(fJe(e,t,v,o,d,s),E=v);break;default:return x.fail(String(i))}return m.writeFixes(e),E}function QDe(e,t,r,i,o,s,l){Me(i.name)&&eY(e,t,r,i,DO(i.name,o,l),o,s)}function pJe(e,t,r,i,o,s,l,d){if(!Me(i.name))return;let p=hJe(o,r,s,d);if(x.assert(o.parameters.length===p.length,"Parameter count and inference count should match"),Jn(o))eCe(e,r,p,s,l);else{let h=hs(o)&&!Ya(o,21,r);h&&e.insertNodeBefore(r,Sa(o.parameters),P.createToken(21));for(let{declaration:m,type:v}of p)m&&!m.type&&!m.initializer&&eY(e,t,r,m,v,s,l);h&&e.insertNodeAfter(r,Da(o.parameters),P.createToken(22))}}function fJe(e,t,r,i,o,s){let l=tCe(r,t,i,s);if(!l||!l.length)return;let d=Tue(i,l,s).thisParameter(),p=iP(d,r,i,o);p&&(Jn(r)?mJe(e,t,r,p):e.tryInsertThisTypeAnnotation(t,r,p))}function mJe(e,t,r,i){e.addJSDocTags(t,r,[P.createJSDocThisTag(void 0,P.createJSDocTypeExpression(i))])}function ZDe(e,t,r,i,o,s,l){let d=Ac(i.parameters);if(d&&Me(i.name)&&Me(d.name)){let p=DO(i.name,o,l);p===o.getTypeChecker().getAnyType()&&(p=DO(d.name,o,l)),Jn(i)?eCe(e,r,[{declaration:d,type:p}],o,s):eY(e,t,r,d,p,o,s)}}function eY(e,t,r,i,o,s,l){let d=iP(o,i,s,l);if(d)if(Jn(r)&&i.kind!==171){let p=yi(i)?Vr(i.parent.parent,cl):i;if(!p)return;let h=P.createJSDocTypeExpression(d),m=Ap(i)?P.createJSDocReturnTag(void 0,h,void 0):P.createJSDocTypeTag(void 0,h,void 0);e.addJSDocTags(r,p,[m])}else _Je(d,i,r,e,t,Wa(s.getCompilerOptions()))||e.tryInsertTypeAnnotation(r,i,d)}function _Je(e,t,r,i,o,s){let l=WI(e,s);return l&&i.tryInsertTypeAnnotation(r,t,l.typeNode)?(an(l.symbols,d=>o.addImportFromExportedSymbol(d,!0)),!0):!1}function eCe(e,t,r,i,o){let s=r.length&&r[0].declaration.parent;if(!s)return;let l=Fi(r,d=>{let p=d.declaration;if(p.initializer||bb(p)||!Me(p.name))return;let h=d.type&&iP(d.type,p,i,o);if(h){let m=P.cloneNode(p.name);return $n(m,7168),{name:P.cloneNode(p.name),param:p,isOptional:!!d.isOptional,typeNode:h}}});if(l.length)if(hs(s)||us(s)){let d=hs(s)&&!Ya(s,21,t);d&&e.insertNodeBefore(t,Sa(s.parameters),P.createToken(21)),an(l,({typeNode:p,param:h})=>{let m=P.createJSDocTypeTag(void 0,P.createJSDocTypeExpression(p)),v=P.createJSDocComment(void 0,[m]);e.insertNodeAt(t,h.getStart(t),v,{suffix:" "})}),d&&e.insertNodeAfter(t,Da(s.parameters),P.createToken(22))}else{let d=nn(l,({name:p,typeNode:h,isOptional:m})=>P.createJSDocParameterTag(void 0,p,!!m,P.createJSDocTypeExpression(h),!1,void 0));e.addJSDocTags(t,s,d)}}function Sue(e,t,r){return Fi(ps.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),r),i=>i.kind!==ps.EntryKind.Span?Vr(i.node,Me):void 0)}function DO(e,t,r){let i=Sue(e,t,r);return Tue(t,i,r).single()}function hJe(e,t,r,i){let o=tCe(e,t,r,i);return o&&Tue(r,o,i).parameters(e)||e.parameters.map(s=>({declaration:s,type:Me(s.name)?DO(s.name,r,i):r.getTypeChecker().getAnyType()}))}function tCe(e,t,r,i){let o;switch(e.kind){case 176:o=Ya(e,137,t);break;case 219:case 218:let s=e.parent;o=(yi(s)||xo(s))&&Me(s.name)?s.name:e.name;break;case 262:case 174:case 173:o=e.name;break}if(o)return Sue(o,r,i)}function Tue(e,t,r){let i=e.getTypeChecker(),o={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:be=>i.createArrayType(be),Promise:be=>i.createPromiseType(be)},s=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:p,parameters:h,thisParameter:m};function l(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function d(be){let Te=new Map;for(let ft of be)ft.properties&&ft.properties.forEach((he,Le)=>{Te.has(Le)||Te.set(Le,[]),Te.get(Le).push(he)});let De=new Map;return Te.forEach((ft,he)=>{De.set(he,d(ft))}),{isNumber:be.some(ft=>ft.isNumber),isString:be.some(ft=>ft.isString),isNumberOrString:be.some(ft=>ft.isNumberOrString),candidateTypes:ta(be,ft=>ft.candidateTypes),properties:De,calls:ta(be,ft=>ft.calls),constructs:ta(be,ft=>ft.constructs),numberIndex:an(be,ft=>ft.numberIndex),stringIndex:an(be,ft=>ft.stringIndex),candidateThisTypes:ta(be,ft=>ft.candidateThisTypes),inferredTypes:void 0}}function p(){return de(v(t))}function h(be){if(t.length===0||!be.parameters)return;let Te=l();for(let ft of t)r.throwIfCancellationRequested(),E(ft,Te);let De=[...Te.constructs||[],...Te.calls||[]];return be.parameters.map((ft,he)=>{let Le=[],Ke=gh(ft),Dt=!1;for(let Ge of De)if(Ge.argumentTypes.length<=he)Dt=Jn(be),Le.push(i.getUndefinedType());else if(Ke)for(let ot=he;ot<Ge.argumentTypes.length;ot++)Le.push(i.getBaseTypeOfLiteralType(Ge.argumentTypes[ot]));else Le.push(i.getBaseTypeOfLiteralType(Ge.argumentTypes[he]));if(Me(ft.name)){let Ge=v(Sue(ft.name,e,r));Le.push(...Ke?Fi(Ge,i.getElementTypeOfArrayType):Ge)}let st=de(Le);return{type:Ke?i.createArrayType(st):st,isOptional:Dt&&!Ke,declaration:ft}})}function m(){let be=l();for(let Te of t)r.throwIfCancellationRequested(),E(Te,be);return de(be.candidateThisTypes||je)}function v(be){let Te=l();for(let De of be)r.throwIfCancellationRequested(),E(De,Te);return q(Te)}function E(be,Te){for(;LC(be);)be=be.parent;switch(be.parent.kind){case 244:A(be,Te);break;case 225:Te.isNumber=!0;break;case 224:C(be.parent,Te);break;case 226:R(be,be.parent,Te);break;case 296:case 297:L(be.parent,Te);break;case 213:case 214:be.parent.expression===be?G(be.parent,Te):S(be,Te);break;case 211:U(be.parent,Te);break;case 212:K(be.parent,be,Te);break;case 303:case 304:F(be.parent,Te);break;case 172:oe(be.parent,Te);break;case 260:{let{name:De,initializer:ft}=be.parent;if(be===De){ft&&Oe(Te,i.getTypeAtLocation(ft));break}}default:return S(be,Te)}}function S(be,Te){bh(be)&&Oe(Te,i.getContextualType(be))}function A(be,Te){Oe(Te,Bo(be)?i.getVoidType():i.getAnyType())}function C(be,Te){switch(be.operator){case 46:case 47:case 41:case 55:Te.isNumber=!0;break;case 40:Te.isNumberOrString=!0;break}}function R(be,Te,De){switch(Te.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 68: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:let ft=i.getTypeAtLocation(Te.left===be?Te.right:Te.left);ft.flags&1056?Oe(De,ft):De.isNumber=!0;break;case 65:case 40:let he=i.getTypeAtLocation(Te.left===be?Te.right:Te.left);he.flags&1056?Oe(De,he):he.flags&296?De.isNumber=!0:he.flags&402653316?De.isString=!0:he.flags&1||(De.isNumberOrString=!0);break;case 64:case 35:case 37:case 38:case 36:case 77:case 78:case 76:Oe(De,i.getTypeAtLocation(Te.left===be?Te.right:Te.left));break;case 103:be===Te.left&&(De.isString=!0);break;case 57:case 61:be===Te.left&&(be.parent.parent.kind===260||lc(be.parent.parent,!0))&&Oe(De,i.getTypeAtLocation(Te.right));break;case 56:case 28:case 104:break}}function L(be,Te){Oe(Te,i.getTypeAtLocation(be.parent.parent.expression))}function G(be,Te){let De={argumentTypes:[],return_:l()};if(be.arguments)for(let ft of be.arguments)De.argumentTypes.push(i.getTypeAtLocation(ft));E(be,De.return_),be.kind===213?(Te.calls||(Te.calls=[])).push(De):(Te.constructs||(Te.constructs=[])).push(De)}function U(be,Te){let De=Hs(be.name.text);Te.properties||(Te.properties=new Map);let ft=Te.properties.get(De)||l();E(be,ft),Te.properties.set(De,ft)}function K(be,Te,De){if(Te===be.argumentExpression){De.isNumberOrString=!0;return}else{let ft=i.getTypeAtLocation(be.argumentExpression),he=l();E(be,he),ft.flags&296?De.numberIndex=he:De.stringIndex=he}}function F(be,Te){let De=yi(be.parent.parent)?be.parent.parent:be.parent;_e(Te,i.getTypeAtLocation(De))}function oe(be,Te){_e(Te,i.getTypeAtLocation(be.parent))}function W(be,Te){let De=[];for(let ft of be)for(let{high:he,low:Le}of Te)he(ft)&&(x.assert(!Le(ft),"Priority can't have both low and high"),De.push(Le));return be.filter(ft=>De.every(he=>!he(ft)))}function $(be){return de(q(be))}function de(be){if(!be.length)return i.getAnyType();let Te=i.getUnionType([i.getStringType(),i.getNumberType()]),ft=W(be,[{high:Le=>Le===i.getStringType()||Le===i.getNumberType(),low:Le=>Le===Te},{high:Le=>!(Le.flags&16385),low:Le=>!!(Le.flags&16385)},{high:Le=>!(Le.flags&114689)&&!(br(Le)&16),low:Le=>!!(br(Le)&16)}]),he=ft.filter(Le=>br(Le)&16);return he.length&&(ft=ft.filter(Le=>!(br(Le)&16)),ft.push(fe(he))),i.getWidenedType(i.getUnionType(ft.map(i.getBaseTypeOfLiteralType),2))}function fe(be){if(be.length===1)return be[0];let Te=[],De=[],ft=[],he=[],Le=!1,Ke=!1,Dt=bp();for(let ot of be){for(let gn of i.getPropertiesOfType(ot))Dt.add(gn.escapedName,gn.valueDeclaration?i.getTypeOfSymbolAtLocation(gn,gn.valueDeclaration):i.getAnyType());Te.push(...i.getSignaturesOfType(ot,0)),De.push(...i.getSignaturesOfType(ot,1));let Vt=i.getIndexInfoOfType(ot,0);Vt&&(ft.push(Vt.type),Le=Le||Vt.isReadonly);let jt=i.getIndexInfoOfType(ot,1);jt&&(he.push(jt.type),Ke=Ke||jt.isReadonly)}let st=MZ(Dt,(ot,Vt)=>{let jt=Vt.length<be.length?16777216:0,gn=i.createSymbol(4|jt,ot);return gn.links.type=i.getUnionType(Vt),[ot,gn]}),Ge=[];return ft.length&&Ge.push(i.createIndexInfo(i.getStringType(),i.getUnionType(ft),Le)),he.length&&Ge.push(i.createIndexInfo(i.getNumberType(),i.getUnionType(he),Ke)),i.createAnonymousType(be[0].symbol,st,Te,De,Ge)}function q(be){var Te,De,ft;let he=[];be.isNumber&&he.push(i.getNumberType()),be.isString&&he.push(i.getStringType()),be.isNumberOrString&&he.push(i.getUnionType([i.getStringType(),i.getNumberType()])),be.numberIndex&&he.push(i.createArrayType($(be.numberIndex))),((Te=be.properties)!=null&&Te.size||(De=be.constructs)!=null&&De.length||be.stringIndex)&&he.push(H(be));let Le=(be.candidateTypes||[]).map(Dt=>i.getBaseTypeOfLiteralType(Dt)),Ke=(ft=be.calls)!=null&&ft.length?H(be):void 0;return Ke&&Le?he.push(i.getUnionType([Ke,...Le],2)):(Ke&&he.push(Ke),yn(Le)&&he.push(...Le)),he.push(...ee(be)),he}function H(be){let Te=new Map;be.properties&&be.properties.forEach((Le,Ke)=>{let Dt=i.createSymbol(4,Ke);Dt.links.type=$(Le),Te.set(Ke,Dt)});let De=be.calls?[Ae(be.calls)]:[],ft=be.constructs?[Ae(be.constructs)]:[],he=be.stringIndex?[i.createIndexInfo(i.getStringType(),$(be.stringIndex),!1)]:[];return i.createAnonymousType(void 0,Te,De,ft,he)}function ee(be){if(!be.properties||!be.properties.size)return[];let Te=s.filter(De=>le(De,be));return 0<Te.length&&Te.length<3?Te.map(De=>Ee(De,be)):[]}function le(be,Te){return Te.properties?!hc(Te.properties,(De,ft)=>{let he=i.getTypeOfPropertyOfType(be,ft);return he?De.calls?!i.getSignaturesOfType(he,0).length||!i.isTypeAssignableTo(he,pe(De.calls)):!i.isTypeAssignableTo(he,$(De)):!0}):!1}function Ee(be,Te){if(!(br(be)&4)||!Te.properties)return be;let De=be.target,ft=x_(De.typeParameters);if(!ft)return be;let he=[];return Te.properties.forEach((Le,Ke)=>{let Dt=i.getTypeOfPropertyOfType(De,Ke);x.assert(!!Dt,"generic should have all the properties of its reference."),he.push(...ce(Dt,$(Le),ft))}),o[be.symbol.escapedName](de(he))}function ce(be,Te,De){if(be===De)return[Te];if(be.flags&3145728)return ta(be.types,Le=>ce(Le,Te,De));if(br(be)&4&&br(Te)&4){let Le=i.getTypeArguments(be),Ke=i.getTypeArguments(Te),Dt=[];if(Le&&Ke)for(let st=0;st<Le.length;st++)Ke[st]&&Dt.push(...ce(Le[st],Ke[st],De));return Dt}let ft=i.getSignaturesOfType(be,0),he=i.getSignaturesOfType(Te,0);return ft.length===1&&he.length===1?Z(ft[0],he[0],De):[]}function Z(be,Te,De){var ft;let he=[];for(let Dt=0;Dt<be.parameters.length;Dt++){let st=be.parameters[Dt],Ge=Te.parameters[Dt],ot=be.declaration&&gh(be.declaration.parameters[Dt]);if(!Ge)break;let Vt=st.valueDeclaration?i.getTypeOfSymbolAtLocation(st,st.valueDeclaration):i.getAnyType(),jt=ot&&i.getElementTypeOfArrayType(Vt);jt&&(Vt=jt);let gn=((ft=Vr(Ge,L_))==null?void 0:ft.links.type)||(Ge.valueDeclaration?i.getTypeOfSymbolAtLocation(Ge,Ge.valueDeclaration):i.getAnyType());he.push(...ce(Vt,gn,De))}let Le=i.getReturnTypeOfSignature(be),Ke=i.getReturnTypeOfSignature(Te);return he.push(...ce(Le,Ke,De)),he}function pe(be){return i.createAnonymousType(void 0,Vo(),[Ae(be)],je,je)}function Ae(be){let Te=[],De=Math.max(...be.map(he=>he.argumentTypes.length));for(let he=0;he<De;he++){let Le=i.createSymbol(1,Hs(`arg${he}`));Le.links.type=de(be.map(Ke=>Ke.argumentTypes[he]||i.getUndefinedType())),be.some(Ke=>Ke.argumentTypes[he]===void 0)&&(Le.flags|=16777216),Te.push(Le)}let ft=$(d(be.map(he=>he.return_)));return i.createSignature(void 0,void 0,void 0,Te,ft,void 0,De,0)}function Oe(be,Te){Te&&!(Te.flags&1)&&!(Te.flags&131072)&&(be.candidateTypes||(be.candidateTypes=[])).push(Te)}function _e(be,Te){Te&&!(Te.flags&1)&&!(Te.flags&131072)&&(be.candidateThisTypes||(be.candidateThisTypes=[])).push(Te)}}var tY,Aue,gJe=pt({"src/services/codefixes/inferFromUsage.ts"(){"use strict";Hr(),oa(),tY="inferFromUsage",Aue=[f.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,f.Variable_0_implicitly_has_an_1_type.code,f.Parameter_0_implicitly_has_an_1_type.code,f.Rest_parameter_0_implicitly_has_an_any_type.code,f.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,f._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,f.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,f.Member_0_implicitly_has_an_1_type.code,f.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,f.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,f._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,f.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,f.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,f.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ra({errorCodes:Aue,getCodeActions(e){let{sourceFile:t,program:r,span:{start:i},errorCode:o,cancellationToken:s,host:l,preferences:d}=e,p=Hi(t,i),h,m=er.ChangeTracker.with(e,E=>{h=$De(E,t,p,o,r,s,Ug,l,d)}),v=h&&mo(h);return!v||m.length===0?void 0:[Go(tY,m,[dJe(o,p),Vl(v)],tY,f.Infer_all_types_from_usage)]},fixIds:[tY],getAllCodeActions(e){let{sourceFile:t,program:r,cancellationToken:i,host:o,preferences:s}=e,l=DI();return Qa(e,Aue,(d,p)=>{$De(d,t,Hi(p.file,p.start),p.code,r,i,l,o,s)})}})}});function nCe(e,t,r){if(Jn(e))return;let i=Hi(e,r),o=Rn(i,_s),s=o?.type;if(!s)return;let l=t.getTypeFromTypeNode(s),d=t.getAwaitedType(l)||t.getVoidType(),p=t.typeToTypeNode(d,s,void 0);if(p)return{returnTypeNode:s,returnType:l,promisedTypeNode:p,promisedType:d}}function rCe(e,t,r,i){e.replaceNode(t,r,P.createTypeReferenceNode("Promise",[i]))}var nY,Iue,vJe=pt({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";Hr(),oa(),nY="fixReturnTypeInAsyncFunction",Iue=[f.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],ra({errorCodes:Iue,fixIds:[nY],getCodeActions:function(t){let{sourceFile:r,program:i,span:o}=t,s=i.getTypeChecker(),l=nCe(r,i.getTypeChecker(),o.start);if(!l)return;let{returnTypeNode:d,returnType:p,promisedTypeNode:h,promisedType:m}=l,v=er.ChangeTracker.with(t,E=>rCe(E,r,d,h));return[Go(nY,v,[f.Replace_0_with_Promise_1,s.typeToString(p),s.typeToString(m)],nY,f.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>Qa(e,Iue,(t,r)=>{let i=nCe(r.file,e.program.getTypeChecker(),r.start);i&&rCe(t,r.file,i.returnTypeNode,i.promisedTypeNode)})})}});function iCe(e,t,r,i){let{line:o}=$a(t,r);(!i||db(i,o))&&e.insertCommentBeforeLine(t,o,r," @ts-ignore")}var xue,Rue,Due,yJe=pt({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";Hr(),oa(),xue="disableJsDiagnostics",Rue="disableJsDiagnostics",Due=Fi(Object.keys(f),e=>{let t=f[e];return t.category===1?t.code:void 0}),ra({errorCodes:Due,getCodeActions:function(t){let{sourceFile:r,program:i,span:o,host:s,formatContext:l}=t;if(!Jn(r)||!ZL(r,i.getCompilerOptions()))return;let d=r.checkJsDirective?"":mv(s,l.options),p=[Im(xue,[axe(r.fileName,[jk(r.checkJsDirective?Gl(r.checkJsDirective.pos,r.checkJsDirective.end):qc(0,0),`// @ts-nocheck${d}`)])],f.Disable_checking_for_this_file)];return er.isValidLocationToAddComment(r,o.start)&&p.unshift(Go(xue,er.ChangeTracker.with(t,h=>iCe(h,r,o.start)),f.Ignore_this_error_message,Rue,f.Add_ts_ignore_to_all_error_messages)),p},fixIds:[Rue],getAllCodeActions:e=>{let t=new Set;return Qa(e,Due,(r,i)=>{er.isValidLocationToAddComment(i.file,i.start)&&iCe(r,i.file,i.start,t)})}})}});function Cue(e,t,r,i,o,s,l){let d=e.symbol.members;for(let p of t)d.has(p.escapedName)||oCe(p,e,r,i,o,s,l,void 0)}function PR(e){return{trackSymbol:()=>!1,moduleResolverHost:lJ(e.program,e.host)}}function oCe(e,t,r,i,o,s,l,d,p=3,h=!1){let m=e.getDeclarations(),v=Ac(m),E=i.program.getTypeChecker(),S=Wa(i.program.getCompilerOptions()),A=v?.kind??171,C=ee(e,v),R=v?Wd(v):0,L=R&256;L|=R&1?1:R&4?4:0,v&&su(v)&&(L|=512);let G=$(),U=E.getWidenedType(E.getTypeOfSymbolAtLocation(e,t)),K=!!(e.flags&16777216),F=!!(t.flags&33554432)||h,oe=Np(r,o);switch(A){case 171:case 172:let le=oe===0?268435456:void 0,Ee=E.typeToTypeNode(U,t,le,PR(i));if(s){let Z=WI(Ee,S);Z&&(Ee=Z.typeNode,MR(s,Z.symbols))}l(P.createPropertyDeclaration(G,v?fe(C):e.getName(),K&&p&2?P.createToken(58):void 0,Ee,void 0));break;case 177:case 178:{x.assertIsDefined(m);let Z=E.typeToTypeNode(U,t,void 0,PR(i)),pe=wS(m,v),Ae=pe.secondAccessor?[pe.firstAccessor,pe.secondAccessor]:[pe.firstAccessor];if(s){let Oe=WI(Z,S);Oe&&(Z=Oe.typeNode,MR(s,Oe.symbols))}for(let Oe of Ae)if(Ap(Oe))l(P.createGetAccessorDeclaration(G,fe(C),je,H(Z),q(d,oe,F)));else{x.assertNode(Oe,Vu,"The counterpart to a getter should be a setter");let _e=CC(Oe),be=_e&&Me(_e.name)?ar(_e.name):void 0;l(P.createSetAccessorDeclaration(G,fe(C),Pue(1,[be],[H(Z)],1,!1),q(d,oe,F)))}break}case 173:case 174:x.assertIsDefined(m);let ce=U.isUnion()?ta(U.types,Z=>Z.getCallSignatures()):U.getCallSignatures();if(!ct(ce))break;if(m.length===1){x.assert(ce.length===1,"One declaration implies one signature");let Z=ce[0];W(oe,Z,G,fe(C),q(d,oe,F));break}for(let Z of ce)W(oe,Z,G,fe(C));if(!F)if(m.length>ce.length){let Z=E.getSignatureFromDeclaration(m[m.length-1]);W(oe,Z,G,fe(C),q(d,oe))}else x.assert(m.length===ce.length,"Declarations and signatures should match count"),l(SJe(E,i,t,ce,fe(C),K&&!!(p&1),G,oe,d));break}function W(le,Ee,ce,Z,pe){let Ae=rY(174,i,le,Ee,pe,Z,ce,K&&!!(p&1),t,s);Ae&&l(Ae)}function $(){let le;return L&&(le=x1(le,P.createModifiersFromModifierFlags(L))),de()&&(le=pn(le,P.createToken(164))),le&&P.createNodeArray(le)}function de(){return!!(i.program.getCompilerOptions().noImplicitOverride&&v&&$E(v))}function fe(le){return Me(le)&&le.escapedText==="constructor"?P.createComputedPropertyName(P.createStringLiteral(ar(le),oe===0)):Fs(le,!1)}function q(le,Ee,ce){return ce?void 0:Fs(le,!1)||Mue(Ee)}function H(le){return Fs(le,!1)}function ee(le,Ee){if(tl(le)&262144){let ce=le.links.nameType;if(ce&&Af(ce))return P.createIdentifier(Ii(If(ce)))}return Fs(mo(Ee),!1)}}function rY(e,t,r,i,o,s,l,d,p,h){let m=t.program,v=m.getTypeChecker(),E=Wa(m.getCompilerOptions()),S=Jn(p),A=524545|(r===0?268435456:0),C=v.signatureToSignatureDeclaration(i,e,p,A,PR(t));if(!C)return;let R=S?void 0:C.typeParameters,L=C.parameters,G=S?void 0:C.type;if(h){if(R){let oe=sc(R,W=>{let $=W.constraint,de=W.default;if($){let fe=WI($,E);fe&&($=fe.typeNode,MR(h,fe.symbols))}if(de){let fe=WI(de,E);fe&&(de=fe.typeNode,MR(h,fe.symbols))}return P.updateTypeParameterDeclaration(W,W.modifiers,W.name,$,de)});R!==oe&&(R=Ze(P.createNodeArray(oe,R.hasTrailingComma),R))}let F=sc(L,oe=>{let W=S?void 0:oe.type;if(W){let $=WI(W,E);$&&(W=$.typeNode,MR(h,$.symbols))}return P.updateParameterDeclaration(oe,oe.modifiers,oe.dotDotDotToken,oe.name,S?void 0:oe.questionToken,W,oe.initializer)});if(L!==F&&(L=Ze(P.createNodeArray(F,L.hasTrailingComma),L)),G){let oe=WI(G,E);oe&&(G=oe.typeNode,MR(h,oe.symbols))}}let U=d?P.createToken(58):void 0,K=C.asteriskToken;if(us(C))return P.updateFunctionExpression(C,l,C.asteriskToken,Vr(s,Me),R,L,G,o??C.body);if(hs(C))return P.updateArrowFunction(C,l,R,L,G,C.equalsGreaterThanToken,o??C.body);if(El(C))return P.updateMethodDeclaration(C,l,K,s??P.createIdentifier(""),U,R,L,G,o);if(Ql(C))return P.updateFunctionDeclaration(C,l,C.asteriskToken,Vr(s,Me),R,L,G,o??C.body)}function Nue(e,t,r,i,o,s,l){let d=Np(t.sourceFile,t.preferences),p=Wa(t.program.getCompilerOptions()),h=PR(t),m=t.program.getTypeChecker(),v=Jn(l),{typeArguments:E,arguments:S,parent:A}=i,C=v?void 0:m.getContextualType(i),R=nn(S,de=>Me(de)?de.text:Er(de)&&Me(de.name)?de.name.text:void 0),L=v?[]:nn(S,de=>m.getTypeAtLocation(de)),{argumentTypeNodes:G,argumentTypeParameters:U}=lCe(m,r,L,l,p,1,h),K=s?P.createNodeArray(P.createModifiersFromModifierFlags(s)):void 0,F=g6(A)?P.createToken(42):void 0,oe=v?void 0:bJe(m,U,E),W=Pue(S.length,R,G,void 0,v),$=v||C===void 0?void 0:m.typeToTypeNode(C,l,void 0,h);switch(e){case 174:return P.createMethodDeclaration(K,F,o,void 0,oe,W,$,Mue(d));case 173:return P.createMethodSignature(K,o,void 0,oe,W,$===void 0?P.createKeywordTypeNode(159):$);case 262:return x.assert(typeof o=="string"||Me(o),"Unexpected name"),P.createFunctionDeclaration(K,F,o,oe,W,$,Fz(f.Function_not_implemented.message,d));default:x.fail("Unexpected kind")}}function bJe(e,t,r){let i=new Set(t.map(s=>s[0])),o=new Map(t);if(r){let s=r.filter(d=>!t.some(p=>{var h;return e.getTypeAtLocation(d)===((h=p[1])==null?void 0:h.argumentType)})),l=i.size+s.length;for(let d=0;i.size<l;d+=1)i.add(aCe(d))}return bo(i.values(),s=>{var l;return P.createTypeParameterDeclaration(void 0,s,(l=o.get(s))==null?void 0:l.constraint)})}function aCe(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function iY(e,t,r,i,o,s,l){let d=e.typeToTypeNode(r,i,s,l);if(d&&Dh(d)){let p=WI(d,o);p&&(MR(t,p.symbols),d=p.typeNode)}return Fs(d)}function sCe(e){return e.isUnionOrIntersection()?e.types.some(sCe):e.flags&262144}function lCe(e,t,r,i,o,s,l){let d=[],p=new Map;for(let h=0;h<r.length;h+=1){let m=r[h];if(m.isUnionOrIntersection()&&m.types.some(sCe)){let C=aCe(h);d.push(P.createTypeReferenceNode(C)),p.set(C,void 0);continue}let v=e.getBaseTypeOfLiteralType(m),E=iY(e,t,v,i,o,s,l);if(!E)continue;d.push(E);let S=cCe(m),A=m.isTypeParameter()&&m.constraint&&!EJe(m.constraint)?iY(e,t,m.constraint,i,o,s,l):void 0;S&&p.set(S,{argumentType:m,constraint:A})}return{argumentTypeNodes:d,argumentTypeParameters:bo(p.entries())}}function EJe(e){return e.flags&524288&&e.objectFlags===16}function cCe(e){var t;if(e.flags&3145728)for(let r of e.types){let i=cCe(r);if(i)return i}return e.flags&262144?(t=e.getSymbol())==null?void 0:t.getName():void 0}function Pue(e,t,r,i,o){let s=[],l=new Map;for(let d=0;d<e;d++){let p=t?.[d]||`arg${d}`,h=l.get(p);l.set(p,(h||0)+1);let m=P.createParameterDeclaration(void 0,void 0,p+(h||""),i!==void 0&&d>=i?P.createToken(58):void 0,o?void 0:r?.[d]||P.createKeywordTypeNode(159),void 0);s.push(m)}return s}function SJe(e,t,r,i,o,s,l,d,p){let h=i[0],m=i[0].minArgumentCount,v=!1;for(let C of i)m=Math.min(C.minArgumentCount,m),Td(C)&&(v=!0),C.parameters.length>=h.parameters.length&&(!Td(C)||Td(h))&&(h=C);let E=h.parameters.length-(Td(h)?1:0),S=h.parameters.map(C=>C.name),A=Pue(E,S,void 0,m,!1);if(v){let C=P.createParameterDeclaration(void 0,P.createToken(26),S[E]||"rest",E>=m?P.createToken(58):void 0,P.createArrayTypeNode(P.createKeywordTypeNode(159)),void 0);A.push(C)}return AJe(l,o,s,void 0,A,TJe(i,e,t,r),d,p)}function TJe(e,t,r,i){if(yn(e)){let o=t.getUnionType(nn(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(o,i,1,PR(r))}}function AJe(e,t,r,i,o,s,l,d){return P.createMethodDeclaration(e,void 0,t,r?P.createToken(58):void 0,i,o,s,d||Mue(l))}function Mue(e){return Fz(f.Method_not_implemented.message,e)}function Fz(e,t){return P.createBlock([P.createThrowStatement(P.createNewExpression(P.createIdentifier("Error"),void 0,[P.createStringLiteral(e,t===0)]))],!0)}function Lue(e,t,r){let i=_C(t);if(!i)return;let o=Oue(i,"compilerOptions");if(o===void 0){e.insertNodeAtObjectStart(t,i,oY("compilerOptions",P.createObjectLiteralExpression(r.map(([l,d])=>oY(l,d)),!0)));return}let s=o.initializer;if(fa(s))for(let[l,d]of r){let p=Oue(s,l);p===void 0?e.insertNodeAtObjectStart(t,s,oY(l,d)):e.replaceNode(t,p.initializer,d)}}function kue(e,t,r,i){Lue(e,t,[[r,i]])}function oY(e,t){return P.createPropertyAssignment(P.createStringLiteral(e),t)}function Oue(e,t){return Dr(e.properties,r=>Hl(r)&&!!r.name&&ca(r.name)&&r.name.text===t)}function WI(e,t){let r,i=He(e,o,xi);if(r&&i)return{typeNode:i,symbols:r};function o(s){if(ey(s)&&s.qualifier){let l=dp(s.qualifier),d=U3(l.symbol,t),p=d!==l.text?dCe(s.qualifier,P.createIdentifier(d)):s.qualifier;r=pn(r,l.symbol);let h=Dn(s.typeArguments,o,xi);return P.createTypeReferenceNode(p,h)}return un(s,o,void 0)}}function dCe(e,t){return e.kind===80?t:P.createQualifiedName(dCe(e.left,t),e.right)}function MR(e,t){t.forEach(r=>e.addImportFromExportedSymbol(r,!0))}function wue(e,t){let r=Al(t),i=Hi(e,t.start);for(;i.end<r;)i=i.parent;return i}var Wue,IJe=pt({"src/services/codefixes/helpers.ts"(){"use strict";Hr(),Wue=(e=>(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(Wue||{})}});function uCe(e,t,r,i,o,s){let l=mCe(e,t,r,i);if(!l||MI.isRefactorErrorInfo(l))return;let d=er.ChangeTracker.fromContext(o),{isStatic:p,isReadonly:h,fieldName:m,accessorName:v,originalName:E,type:S,container:A,declaration:C}=l;qu(m),qu(v),qu(C),qu(A);let R,L;if(Kr(A)){let U=Wd(C);if(wd(e)){let K=P.createModifiersFromModifierFlags(U);R=K,L=K}else R=P.createModifiersFromModifierFlags(DJe(U)),L=P.createModifiersFromModifierFlags(CJe(U));ZS(C)&&(L=ro(Hv(C),L))}kJe(d,e,C,S,m,L);let G=NJe(m,v,S,R,p,A);if(qu(G),_Ce(d,e,G,C,A),h){let U=Ah(A);U&&OJe(d,e,U,m.text,E)}else{let U=PJe(m,v,S,R,p,A);qu(U),_Ce(d,e,U,C,A)}return d.getChanges()}function xJe(e){return Me(e)||ca(e)}function RJe(e){return wu(e,e.parent)||xo(e)||Hl(e)}function pCe(e,t){return Me(t)?P.createIdentifier(e):P.createStringLiteral(e)}function fCe(e,t,r){let i=t?r.name:P.createThis();return Me(e)?P.createPropertyAccessExpression(i,e):P.createElementAccessExpression(i,P.createStringLiteralFromNode(e))}function DJe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function CJe(e){return e&=-2,e&=-5,e|=2,e}function mCe(e,t,r,i,o=!0){let s=Hi(e,r),l=r===i&&o,d=Rn(s.parent,RJe),p=271;if(!d||!(f3(d.name,e,r,i)||l))return{error:vo(f.Could_not_find_property_for_which_to_generate_accessor)};if(!xJe(d.name))return{error:vo(f.Name_is_not_valid)};if((Wd(d)&98303|p)!==p)return{error:vo(f.Can_only_convert_property_with_modifier)};let h=d.name.text,m=LJ(h),v=pCe(m?h:dT(`_${h}`,e),d.name),E=pCe(m?dT(h.substring(1),e):h,d.name);return{isStatic:jl(d),isReadonly:NC(d),type:wJe(d,t),container:d.kind===169?d.parent.parent:d.parent,originalName:d.name.text,declaration:d,fieldName:v,accessorName:E,renameAccessor:m}}function NJe(e,t,r,i,o,s){return P.createGetAccessorDeclaration(i,t,[],r,P.createBlock([P.createReturnStatement(fCe(e,o,s))],!0))}function PJe(e,t,r,i,o,s){return P.createSetAccessorDeclaration(i,t,[P.createParameterDeclaration(void 0,void 0,P.createIdentifier("value"),void 0,r)],P.createBlock([P.createExpressionStatement(P.createAssignment(fCe(e,o,s),P.createIdentifier("value")))],!0))}function MJe(e,t,r,i,o,s){let l=P.updatePropertyDeclaration(r,s,o,r.questionToken||r.exclamationToken,i,r.initializer);e.replaceNode(t,r,l)}function LJe(e,t,r,i){let o=P.updatePropertyAssignment(r,i,r.initializer);(o.modifiers||o.questionToken||o.exclamationToken)&&(o===r&&(o=P.cloneNode(o)),o.modifiers=void 0,o.questionToken=void 0,o.exclamationToken=void 0),e.replacePropertyAssignment(t,r,o)}function kJe(e,t,r,i,o,s){xo(r)?MJe(e,t,r,i,o,s):Hl(r)?LJe(e,t,r,o):e.replaceNode(t,r,P.updateParameterDeclaration(r,s,r.dotDotDotToken,Fo(o,Me),r.questionToken,r.type,r.initializer))}function _Ce(e,t,r,i,o){wu(i,i.parent)?e.insertMemberAtStart(t,o,r):Hl(i)?e.insertNodeAfterComma(t,i,r):e.insertNodeAfter(t,i,r)}function OJe(e,t,r,i,o){r.body&&r.body.forEachChild(function s(l){Rs(l)&&l.expression.kind===110&&ca(l.argumentExpression)&&l.argumentExpression.text===o&&VA(l)&&e.replaceNode(t,l.argumentExpression,P.createStringLiteral(i)),Er(l)&&l.expression.kind===110&&l.name.text===o&&VA(l)&&e.replaceNode(t,l.name,P.createIdentifier(i)),!Lo(l)&&!Kr(l)&&l.forEachChild(s)})}function wJe(e,t){let r=fne(e);if(xo(e)&&r&&e.questionToken){let i=t.getTypeChecker(),o=i.getTypeFromTypeNode(r);if(!i.isTypeAssignableTo(i.getUndefinedType(),o)){let s=dy(r)?r.types:[r];return P.createUnionTypeNode([...s,P.createKeywordTypeNode(157)])}}return r}function Fue(e,t){let r=[];for(;e;){let i=qE(e),o=i&&t.getSymbolAtLocation(i.expression);if(!o)break;let s=o.flags&2097152?t.getAliasedSymbol(o):o,l=s.declarations&&Dr(s.declarations,Kr);if(!l)break;r.push(l),e=l}return r}var WJe=pt({"src/services/codefixes/generateAccessors.ts"(){"use strict";Hr()}});function FJe(e,t){let r=Nn(t),i=cx(t),o=e.program.getCompilerOptions(),s=[];return s.push(hCe(e,r,t,fv(i.name,void 0,t.moduleSpecifier,Np(r,e.preferences)))),ld(o)===1&&s.push(hCe(e,r,t,P.createImportEqualsDeclaration(void 0,!1,i.name,P.createExternalModuleReference(t.moduleSpecifier)))),s}function hCe(e,t,r,i){let o=er.ChangeTracker.with(e,s=>s.replaceNode(t,r,i));return Im(zue,o,[f.Replace_import_with_0,o[0].textChanges[0].newText])}function zJe(e){let t=e.sourceFile,r=f.This_expression_is_not_callable.code===e.errorCode?213:214,i=Rn(Hi(t,e.span.start),s=>s.kind===r);if(!i)return[];let o=i.expression;return gCe(e,o)}function BJe(e){let t=e.sourceFile,r=Rn(Hi(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return r?gCe(e,r):[]}function gCe(e,t){let r=e.program.getTypeChecker().getTypeAtLocation(t);if(!(r.symbol&&L_(r.symbol)&&r.symbol.links.originatingImport))return[];let i=[],o=r.symbol.links.originatingImport;if(lp(o)||Pr(i,FJe(e,o)),lt(t)&&!(Ld(t.parent)&&t.parent.name===t)){let s=e.sourceFile,l=er.ChangeTracker.with(e,d=>d.replaceNode(s,t,P.createPropertyAccessExpression(t,"default"),{}));i.push(Im(zue,l,f.Use_synthetic_default_member))}return i}var zue,GJe=pt({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";Hr(),oa(),zue="invalidImportSyntax",ra({errorCodes:[f.This_expression_is_not_callable.code,f.This_expression_is_not_constructable.code],getCodeActions:zJe}),ra({errorCodes:[f.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,f.Type_0_does_not_satisfy_the_constraint_1.code,f.Type_0_is_not_assignable_to_type_1.code,f.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,f.Type_predicate_0_is_not_assignable_to_1.code,f.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,f._0_index_type_1_is_not_assignable_to_2_index_type_3.code,f.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,f.Property_0_in_type_1_is_not_assignable_to_type_2.code,f.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,f.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:BJe})}});function vCe(e,t){let r=Hi(e,t);if(Me(r)&&xo(r.parent)){let i=Jc(r.parent);if(i)return{type:i,prop:r.parent,isJs:Jn(r.parent)}}}function VJe(e,t){if(t.isJs)return;let r=er.ChangeTracker.with(e,i=>yCe(i,e.sourceFile,t.prop));return Go(aY,r,[f.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],sY,f.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function yCe(e,t,r){qu(r);let i=P.updatePropertyDeclaration(r,r.modifiers,r.name,P.createToken(54),r.type,r.initializer);e.replaceNode(t,r,i)}function jJe(e,t){let r=er.ChangeTracker.with(e,i=>bCe(i,e.sourceFile,t));return Go(aY,r,[f.Add_undefined_type_to_property_0,t.prop.name.getText()],lY,f.Add_undefined_type_to_all_uninitialized_properties)}function bCe(e,t,r){let i=P.createKeywordTypeNode(157),o=dy(r.type)?r.type.types.concat(i):[r.type,i],s=P.createUnionTypeNode(o);r.isJs?e.addJSDocTags(t,r.prop,[P.createJSDocTypeTag(void 0,P.createJSDocTypeExpression(s))]):e.replaceNode(t,r.type,s)}function UJe(e,t){if(t.isJs)return;let r=e.program.getTypeChecker(),i=SCe(r,t.prop);if(!i)return;let o=er.ChangeTracker.with(e,s=>ECe(s,e.sourceFile,t.prop,i));return Go(aY,o,[f.Add_initializer_to_property_0,t.prop.name.getText()],cY,f.Add_initializers_to_all_uninitialized_properties)}function ECe(e,t,r,i){qu(r);let o=P.updatePropertyDeclaration(r,r.modifiers,r.name,r.questionToken,r.type,i);e.replaceNode(t,r,o)}function SCe(e,t){return TCe(e,e.getTypeFromTypeNode(t.type))}function TCe(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?P.createFalse():P.createTrue();if(t.isStringLiteral())return P.createStringLiteral(t.value);if(t.isNumberLiteral())return P.createNumericLiteral(t.value);if(t.flags&2048)return P.createBigIntLiteral(t.value);if(t.isUnion())return ml(t.types,r=>TCe(e,r));if(t.isClass()){let r=ig(t.symbol);if(!r||Wr(r,64))return;let i=Ah(r);return i&&i.parameters.length?void 0:P.createNewExpression(P.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return P.createArrayLiteralExpression()}var aY,sY,lY,cY,Bue,HJe=pt({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";Hr(),oa(),aY="strictClassInitialization",sY="addMissingPropertyDefiniteAssignmentAssertions",lY="addMissingPropertyUndefinedType",cY="addMissingPropertyInitializer",Bue=[f.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],ra({errorCodes:Bue,getCodeActions:function(t){let r=vCe(t.sourceFile,t.span.start);if(!r)return;let i=[];return pn(i,jJe(t,r)),pn(i,VJe(t,r)),pn(i,UJe(t,r)),i},fixIds:[sY,lY,cY],getAllCodeActions:e=>Qa(e,Bue,(t,r)=>{let i=vCe(r.file,r.start);if(i)switch(e.fixId){case sY:yCe(t,r.file,i.prop);break;case lY:bCe(t,r.file,i);break;case cY:let o=e.program.getTypeChecker(),s=SCe(o,i.prop);if(!s)return;ECe(t,r.file,i.prop,s);break;default:x.fail(JSON.stringify(e.fixId))}})})}});function ACe(e,t,r){let{allowSyntheticDefaults:i,defaultImportName:o,namedImports:s,statement:l,required:d}=r;e.replaceNode(t,l,o&&!i?P.createImportEqualsDeclaration(void 0,!1,o,P.createExternalModuleReference(d)):P.createImportDeclaration(void 0,P.createImportClause(!1,o,s),d,void 0))}function ICe(e,t,r){let{parent:i}=Hi(e,r);Xd(i,!0)||x.failBadSyntaxKind(i);let o=Fo(i.parent,yi),s=Vr(o.name,Me),l=Rf(o.name)?qJe(o.name):void 0;if(s||l)return{allowSyntheticDefaults:zS(t.getCompilerOptions()),defaultImportName:s,namedImports:l,statement:Fo(o.parent.parent,cl),required:Sa(i.arguments)}}function qJe(e){let t=[];for(let r of e.elements){if(!Me(r.name)||r.initializer)return;t.push(P.createImportSpecifier(!1,Vr(r.propertyName,Me),r.name))}if(t.length)return P.createNamedImports(t)}var dY,Gue,JJe=pt({"src/services/codefixes/requireInTs.ts"(){"use strict";Hr(),oa(),dY="requireInTs",Gue=[f.require_call_may_be_converted_to_an_import.code],ra({errorCodes:Gue,getCodeActions(e){let t=ICe(e.sourceFile,e.program,e.span.start);if(!t)return;let r=er.ChangeTracker.with(e,i=>ACe(i,e.sourceFile,t));return[Go(dY,r,f.Convert_require_to_import,dY,f.Convert_all_require_to_import)]},fixIds:[dY],getAllCodeActions:e=>Qa(e,Gue,(t,r)=>{let i=ICe(r.file,e.program,r.start);i&&ACe(t,e.sourceFile,i)})})}});function xCe(e,t){let r=Hi(e,t);if(!Me(r))return;let{parent:i}=r;if(Nc(i)&&j_(i.moduleReference))return{importNode:i,name:r,moduleSpecifier:i.moduleReference.expression};if(my(i)){let o=i.parent.parent;return{importNode:o,name:r,moduleSpecifier:o.moduleSpecifier}}}function RCe(e,t,r,i){e.replaceNode(t,r.importNode,fv(r.name,void 0,r.moduleSpecifier,Np(t,i)))}var uY,Vue,KJe=pt({"src/services/codefixes/useDefaultImport.ts"(){"use strict";Hr(),oa(),uY="useDefaultImport",Vue=[f.Import_may_be_converted_to_a_default_import.code],ra({errorCodes:Vue,getCodeActions(e){let{sourceFile:t,span:{start:r}}=e,i=xCe(t,r);if(!i)return;let o=er.ChangeTracker.with(e,s=>RCe(s,t,i,e.preferences));return[Go(uY,o,f.Convert_to_default_import,uY,f.Convert_all_to_default_imports)]},fixIds:[uY],getAllCodeActions:e=>Qa(e,Vue,(t,r)=>{let i=xCe(r.file,r.start);i&&RCe(t,r.file,i,e.preferences)})})}});function DCe(e,t,r){let i=Vr(Hi(t,r.start),Bu);if(!i)return;let o=i.getText(t)+"n";e.replaceNode(t,i,P.createBigIntLiteral(o))}var pY,jue,XJe=pt({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";Hr(),oa(),pY="useBigintLiteral",jue=[f.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],ra({errorCodes:jue,getCodeActions:function(t){let r=er.ChangeTracker.with(t,i=>DCe(i,t.sourceFile,t.span));if(r.length>0)return[Go(pY,r,f.Convert_to_a_bigint_numeric_literal,pY,f.Convert_all_to_bigint_numeric_literals)]},fixIds:[pY],getAllCodeActions:e=>Qa(e,jue,(t,r)=>DCe(t,r.file,r))})}});function CCe(e,t){let r=Hi(e,t);return x.assert(r.kind===102,"This token should be an ImportKeyword"),x.assert(r.parent.kind===205,"Token parent should be an ImportType"),r.parent}function NCe(e,t,r){let i=P.updateImportTypeNode(r,r.argument,r.attributes,r.qualifier,r.typeArguments,!0);e.replaceNode(t,r,i)}var PCe,fY,Uue,YJe=pt({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";Hr(),oa(),PCe="fixAddModuleReferTypeMissingTypeof",fY=PCe,Uue=[f.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],ra({errorCodes:Uue,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=CCe(r,i.start),s=er.ChangeTracker.with(t,l=>NCe(l,r,o));return[Go(fY,s,f.Add_missing_typeof,fY,f.Add_missing_typeof)]},fixIds:[fY],getAllCodeActions:e=>Qa(e,Uue,(t,r)=>NCe(t,e.sourceFile,CCe(r.file,r.start)))})}});function MCe(e,t){let o=Hi(e,t).parent.parent;if(!(!Zn(o)&&(o=o.parent,!Zn(o)))&&_l(o.operatorToken))return o}function LCe(e,t,r){let i=$Je(r);i&&e.replaceNode(t,r,P.createJsxFragment(P.createJsxOpeningFragment(),i,P.createJsxJsxClosingFragment()))}function $Je(e){let t=[],r=e;for(;;)if(Zn(r)&&_l(r.operatorToken)&&r.operatorToken.kind===28){if(t.push(r.left),ZM(r.right))return t.push(r.right),t;if(Zn(r.right)){r=r.right;continue}else return}else return}var mY,Hue,QJe=pt({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";Hr(),oa(),mY="wrapJsxInFragment",Hue=[f.JSX_expressions_must_have_one_parent_element.code],ra({errorCodes:Hue,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=MCe(r,i.start);if(!o)return;let s=er.ChangeTracker.with(t,l=>LCe(l,r,o));return[Go(mY,s,f.Wrap_in_JSX_fragment,mY,f.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[mY],getAllCodeActions:e=>Qa(e,Hue,(t,r)=>{let i=MCe(e.sourceFile,r.start);i&&LCe(t,e.sourceFile,i)})})}});function kCe(e,t){let r=Hi(e,t),i=Vr(r.parent.parent,r0);if(!i)return;let o=Gd(i.parent)?i.parent:Vr(i.parent.parent,Xf);if(o)return{indexSignature:i,container:o}}function ZJe(e,t){return P.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function OCe(e,t,{indexSignature:r,container:i}){let s=(Gd(i)?i.members:i.type.members).filter(m=>!r0(m)),l=Sa(r.parameters),d=P.createTypeParameterDeclaration(void 0,Fo(l.name,Me),l.type),p=P.createMappedTypeNode(NC(r)?P.createModifier(148):void 0,d,void 0,r.questionToken,r.type,void 0),h=P.createIntersectionTypeNode([...EC(i),p,...s.length?[P.createTypeLiteralNode(s)]:je]);e.replaceNode(t,i,ZJe(i,h))}var _Y,que,eKe=pt({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";Hr(),oa(),_Y="fixConvertToMappedObjectType",que=[f.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],ra({errorCodes:que,getCodeActions:function(t){let{sourceFile:r,span:i}=t,o=kCe(r,i.start);if(!o)return;let s=er.ChangeTracker.with(t,d=>OCe(d,r,o)),l=ar(o.container.name);return[Go(_Y,s,[f.Convert_0_to_mapped_object_type,l],_Y,[f.Convert_0_to_mapped_object_type,l])]},fixIds:[_Y],getAllCodeActions:e=>Qa(e,que,(t,r)=>{let i=kCe(r.file,r.start);i&&OCe(t,r.file,i)})})}}),Jue,wCe,tKe=pt({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";Hr(),oa(),Jue="removeAccidentalCallParentheses",wCe=[f.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],ra({errorCodes:wCe,getCodeActions(e){let t=Rn(Hi(e.sourceFile,e.span.start),Bo);if(!t)return;let r=er.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Im(Jue,r,f.Remove_parentheses)]},fixIds:[Jue]})}});function WCe(e,t,r){let i=Vr(Hi(t,r.start),d=>d.kind===135),o=i&&Vr(i.parent,py);if(!o)return;let s=o;if(uu(o.parent)){let d=Ax(o.expression,!1);if(Me(d)){let p=ec(o.parent.pos,t);p&&p.kind!==105&&(s=o.parent)}}e.replaceNode(t,s,o.expression)}var hY,Kue,nKe=pt({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";Hr(),oa(),hY="removeUnnecessaryAwait",Kue=[f.await_has_no_effect_on_the_type_of_this_expression.code],ra({errorCodes:Kue,getCodeActions:function(t){let r=er.ChangeTracker.with(t,i=>WCe(i,t.sourceFile,t.span));if(r.length>0)return[Go(hY,r,f.Remove_unnecessary_await,hY,f.Remove_all_unnecessary_uses_of_await)]},fixIds:[hY],getAllCodeActions:e=>Qa(e,Kue,(t,r)=>WCe(t,r.file,r))})}});function FCe(e,t){return Rn(Hi(e,t.start),cc)}function zCe(e,t,r){if(!t)return;let i=x.checkDefined(t.importClause);e.replaceNode(r.sourceFile,t,P.updateImportDeclaration(t,t.modifiers,P.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(r.sourceFile,t,P.createImportDeclaration(void 0,P.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var Xue,gY,rKe=pt({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";Hr(),oa(),Xue=[f.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],gY="splitTypeOnlyImport",ra({errorCodes:Xue,fixIds:[gY],getCodeActions:function(t){let r=er.ChangeTracker.with(t,i=>zCe(i,FCe(t.sourceFile,t.span),t));if(r.length)return[Go(gY,r,f.Split_into_two_separate_import_declarations,gY,f.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>Qa(e,Xue,(t,r)=>{zCe(t,FCe(e.sourceFile,r),e)})})}});function BCe(e,t,r){var i;let s=r.getTypeChecker().getSymbolAtLocation(Hi(e,t));if(s===void 0)return;let l=Vr((i=s?.valueDeclaration)==null?void 0:i.parent,yc);if(l===void 0)return;let d=Ya(l,87,e);if(d!==void 0)return{symbol:s,token:d}}function GCe(e,t,r){e.replaceNode(t,r,P.createToken(121))}var vY,Yue,iKe=pt({"src/services/codefixes/convertConstToLet.ts"(){"use strict";Hr(),oa(),vY="fixConvertConstToLet",Yue=[f.Cannot_assign_to_0_because_it_is_a_constant.code],ra({errorCodes:Yue,getCodeActions:function(t){let{sourceFile:r,span:i,program:o}=t,s=BCe(r,i.start,o);if(s===void 0)return;let l=er.ChangeTracker.with(t,d=>GCe(d,r,s.token));return[Xce(vY,l,f.Convert_const_to_let,vY,f.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,r=new Map;return DR(er.ChangeTracker.with(e,i=>{CR(e,Yue,o=>{let s=BCe(o.file,o.start,t);if(s&&Jf(r,na(s.symbol)))return GCe(i,o.file,s.token)})}))},fixIds:[vY]})}});function VCe(e,t,r){let i=Hi(e,t);return i.kind===27&&i.parent&&(fa(i.parent)||Bd(i.parent))?{node:i}:void 0}function jCe(e,t,{node:r}){let i=P.createToken(28);e.replaceNode(t,r,i)}var yY,UCe,$ue,oKe=pt({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";Hr(),oa(),yY="fixExpectedComma",UCe=f._0_expected.code,$ue=[UCe],ra({errorCodes:$ue,getCodeActions(e){let{sourceFile:t}=e,r=VCe(t,e.span.start,e.errorCode);if(!r)return;let i=er.ChangeTracker.with(e,o=>jCe(o,t,r));return[Go(yY,i,[f.Change_0_to_1,";",","],yY,[f.Change_0_to_1,";",","])]},fixIds:[yY],getAllCodeActions:e=>Qa(e,$ue,(t,r)=>{let i=VCe(r.file,r.start,r.code);i&&jCe(t,e.sourceFile,i)})})}});function HCe(e,t,r,i,o){let s=Hi(t,r.start);if(!Me(s)||!Bo(s.parent)||s.parent.expression!==s||s.parent.arguments.length!==0)return;let l=i.getTypeChecker(),d=l.getSymbolAtLocation(s),p=d?.valueDeclaration;if(!p||!ao(p)||!o0(p.parent.parent)||o?.has(p))return;o?.add(p);let h=aKe(p.parent.parent);if(ct(h)){let m=h[0],v=!dy(m)&&!VS(m)&&VS(P.createUnionTypeNode([m,P.createKeywordTypeNode(116)]).types[0]);v&&e.insertText(t,m.pos,"("),e.insertText(t,m.end,v?") | void":" | void")}else{let m=l.getResolvedSignature(s.parent),v=m?.parameters[0],E=v&&l.getTypeOfSymbolAtLocation(v,p.parent.parent);Jn(p)?(!E||E.flags&3)&&(e.insertText(t,p.parent.parent.end,")"),e.insertText(t,ua(t.text,p.parent.parent.pos),"/** @type {Promise<void>} */(")):(!E||E.flags&2)&&e.insertText(t,p.parent.parent.expression.end,"<void>")}}function aKe(e){var t;if(Jn(e)){if(uu(e.parent)){let r=(t=yb(e.parent))==null?void 0:t.typeExpression.type;if(r&&Yp(r)&&Me(r.typeName)&&ar(r.typeName)==="Promise")return r.typeArguments}}else return e.typeArguments}var qCe,Que,Zue,sKe=pt({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";Hr(),oa(),qCe="addVoidToPromise",Que="addVoidToPromise",Zue=[f.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,f.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],ra({errorCodes:Zue,fixIds:[Que],getCodeActions(e){let t=er.ChangeTracker.with(e,r=>HCe(r,e.sourceFile,e.span,e.program));if(t.length>0)return[Go(qCe,t,f.Add_void_to_Promise_resolved_without_a_value,Que,f.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return Qa(e,Zue,(t,r)=>HCe(t,r.file,r,e.program,new Set))}})}}),ud={};Ra(ud,{PreserveOptionalFlags:()=>Wue,addNewNodeForMemberSymbol:()=>oCe,codeFixAll:()=>Qa,createCodeFixAction:()=>Go,createCodeFixActionMaybeFixAll:()=>Xce,createCodeFixActionWithoutFixAll:()=>Im,createCombinedCodeActions:()=>DR,createFileTextChanges:()=>axe,createImportAdder:()=>OI,createImportSpecifierResolver:()=>_He,createJsonPropertyAssignment:()=>oY,createMissingMemberNodes:()=>Cue,createSignatureDeclarationFromCallExpression:()=>Nue,createSignatureDeclarationFromSignature:()=>rY,createStubbedBody:()=>Fz,eachDiagnostic:()=>CR,findAncestorMatchingSpan:()=>wue,findJsonProperty:()=>Oue,generateAccessorFromProperty:()=>uCe,getAccessorConvertiblePropertyAtPosition:()=>mCe,getAllFixes:()=>Hje,getAllSupers:()=>Fue,getArgumentTypesAndTypeParameters:()=>lCe,getFixes:()=>Uje,getImportCompletionAction:()=>hHe,getImportKind:()=>Ade,getJSDocTypedefNodes:()=>dHe,getNoopSymbolTrackerWithResolver:()=>PR,getPromoteTypeOnlyCompletionAction:()=>gHe,getSupportedErrorCodes:()=>Vje,importFixName:()=>Pde,importSymbols:()=>MR,moduleSpecifierToValidIdentifier:()=>Nde,moduleSymbolToValidIdentifier:()=>Cde,parameterShouldGetTypeFromJSDoc:()=>xxe,registerCodeFix:()=>ra,setJsonCompilerOptionValue:()=>kue,setJsonCompilerOptionValues:()=>Lue,tryGetAutoImportableReferenceFromTypeNode:()=>WI,typeToAutoImportableTypeNode:()=>iY});var oa=pt({"src/services/_namespaces/ts.codefix.ts"(){"use strict";qje(),Jje(),Kje(),$je(),nUe(),aUe(),sUe(),lUe(),cUe(),fUe(),TUe(),IUe(),wUe(),eHe(),tHe(),rHe(),iHe(),uHe(),pHe(),mHe(),WHe(),BHe(),jHe(),UHe(),HHe(),KHe(),$He(),eqe(),oqe(),_qe(),gqe(),Tqe(),Aqe(),xqe(),Rqe(),Dqe(),Cqe(),Pqe(),Mqe(),Lqe(),kqe(),Oqe(),Wqe(),Bqe(),Uqe(),Zqe(),tJe(),nJe(),oJe(),aJe(),lJe(),cJe(),gJe(),vJe(),yJe(),IJe(),WJe(),GJe(),HJe(),JJe(),KJe(),XJe(),YJe(),QJe(),eKe(),tKe(),nKe(),rKe(),iKe(),oKe(),sKe()}});function lKe(e){return!!(e.kind&1)}function cKe(e){return!!(e.kind&2)}function zz(e){return!!(e&&e.kind&4)}function pP(e){return!!(e&&e.kind===32)}function dKe(e){return zz(e)||pP(e)||epe(e)}function uKe(e){return(zz(e)||pP(e))&&!!e.isFromPackageJson}function pKe(e){return!!(e.kind&8)}function fKe(e){return!!(e.kind&16)}function JCe(e){return!!(e&&e.kind&64)}function KCe(e){return!!(e&&e.kind&128)}function mKe(e){return!!(e&&e.kind&256)}function epe(e){return!!(e&&e.kind&512)}function XCe(e,t,r,i,o,s,l,d,p){var h,m,v;let E=Is(),S=l||HA(zd(i.getCompilerOptions())),A=!1,C=0,R=0,L=0,G=0,U=p({tryResolve:F,skippedAny:()=>A,resolvedAny:()=>R>0,resolvedBeyondLimit:()=>R>CY}),K=G?` (${(L/G*100).toFixed(1)}% hit rate)`:"";return(h=t.log)==null||h.call(t,`${e}: resolved ${R} module specifiers, plus ${C} ambient and ${L} from cache${K}`),(m=t.log)==null||m.call(t,`${e}: response is ${A?"incomplete":"complete"}`),(v=t.log)==null||v.call(t,`${e}: ${Is()-E}`),U;function F(oe,W){if(W){let q=r.getModuleSpecifierForBestExportInfo(oe,o,d);return q&&C++,q||"failed"}let $=S||s.allowIncompleteCompletions&&R<CY,de=!$&&s.allowIncompleteCompletions&&G<dpe,fe=$||de?r.getModuleSpecifierForBestExportInfo(oe,o,d,de):void 0;return(!$&&!de||de&&!fe)&&(A=!0),R+=fe?.computedWithoutCacheCount||0,L+=oe.length-(fe?.computedWithoutCacheCount||0),de&&G++,fe||(S?"failed":"skipped")}}function _Ke(e,t,r,i,o,s,l,d,p,h,m=!1){var v;let{previousToken:E}=TY(o,i);if(l&&!RI(i,o,E)&&!YKe(i,l,E,o))return;if(l===" ")return s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText?{isGlobalCompletion:!0,isMemberCompletion:!1,isNewIdentifierLocation:!0,isIncomplete:!0,entries:[]}:void 0;let S=t.getCompilerOptions(),A=t.getTypeChecker(),C=s.allowIncompleteCompletions?(v=e.getIncompleteCompletionsCache)==null?void 0:v.call(e):void 0;if(C&&d===3&&E&&Me(E)){let G=hKe(C,i,E,t,e,s,p,o);if(G)return G}else C?.clear();let R=PY.getStringLiteralCompletions(i,o,E,S,e,t,r,s,m);if(R)return R;if(E&&rC(E.parent)&&(E.kind===83||E.kind===88||E.kind===80))return OKe(E.parent);let L=sNe(t,r,i,S,o,s,void 0,e,h,p);if(L)switch(L.kind){case 0:let G=EKe(i,e,t,S,r,L,s,h,o,m);return G?.isIncomplete&&C?.set(G),G;case 1:return tpe([...Xb.getJSDocTagNameCompletions(),...$Ce(i,o,A,S,s,!0)]);case 2:return tpe([...Xb.getJSDocTagCompletions(),...$Ce(i,o,A,S,s,!1)]);case 3:return tpe(Xb.getJSDocParameterNameCompletions(L.tag));case 4:return yKe(L.keywordCompletions,L.isNewIdentifierLocation);default:return x.assertNever(L)}}function Bz(e,t){var r,i;let o=_M(e.sortText,t.sortText);return o===0&&(o=_M(e.name,t.name)),o===0&&((r=e.data)!=null&&r.moduleSpecifier)&&((i=t.data)!=null&&i.moduleSpecifier)&&(o=$L(e.data.moduleSpecifier,t.data.moduleSpecifier)),o===0?-1:o}function YCe(e){return!!e?.moduleSpecifier}function hKe(e,t,r,i,o,s,l,d){let p=e.get();if(!p)return;let h=pu(t,d),m=r.text.toLowerCase(),v=rO(t,o,i,s,l),E=XCe("continuePreviousIncompleteResponse",o,ud.createImportSpecifierResolver(t,i,o,s),i,r.getStart(),s,!1,Pb(r),S=>{let A=Fi(p.entries,C=>{var R;if(!C.hasAction||!C.source||!C.data||YCe(C.data))return C;if(!ENe(C.name,m))return;let{origin:L}=x.checkDefined(lNe(C.name,C.data,i,o)),G=v.get(t.path,C.data.exportMapKey),U=G&&S.tryResolve(G,!Ic(Sf(L.moduleSymbol.name)));if(U==="skipped")return C;if(!U||U==="failed"){(R=o.log)==null||R.call(o,`Unexpected failure resolving auto import for '${C.name}' from '${C.source}'`);return}let K={...L,kind:32,moduleSpecifier:U.moduleSpecifier};return C.data=iNe(K),C.source=rpe(K),C.sourceDisplay=[Pp(K.moduleSpecifier)],C});return S.skippedAny()||(p.isIncomplete=void 0),A});return p.entries=E,p.flags=(p.flags||0)|4,p.optionalReplacementSpan=eNe(h),p}function tpe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function $Ce(e,t,r,i,o,s){let l=Hi(e,t);if(!J1(l)&&!Sm(l))return[];let d=Sm(l)?l:l.parent;if(!Sm(d))return[];let p=d.parent;if(!Lo(p))return[];let h=wd(e),m=o.includeCompletionsWithSnippetText||void 0,v=Wv(d.tags,E=>Tm(E)&&E.getEnd()<=t);return Fi(p.parameters,E=>{if(!G1(E).length){if(Me(E.name)){let S={tabstop:1},A=E.name.text,C=CO(A,E.initializer,E.dotDotDotToken,h,!1,!1,r,i,o),R=m?CO(A,E.initializer,E.dotDotDotToken,h,!1,!0,r,i,o,S):void 0;return s&&(C=C.slice(1),R&&(R=R.slice(1))),{name:C,kind:"parameter",sortText:pd.LocationPriority,insertText:m?R:void 0,isSnippet:m}}else if(E.parent.parameters.indexOf(E)===v){let S=`param${v}`,A=QCe(S,E.name,E.initializer,E.dotDotDotToken,h,!1,r,i,o),C=m?QCe(S,E.name,E.initializer,E.dotDotDotToken,h,!0,r,i,o):void 0,R=A.join(rv(i)+"* "),L=C?.join(rv(i)+"* ");return s&&(R=R.slice(1),L&&(L=L.slice(1))),{name:R,kind:"parameter",sortText:pd.LocationPriority,insertText:m?L:void 0,isSnippet:m}}}})}function QCe(e,t,r,i,o,s,l,d,p){if(!o)return[CO(e,r,i,o,!1,s,l,d,p,{tabstop:1})];return h(e,t,r,i,{tabstop:1});function h(v,E,S,A,C){if(Rf(E)&&!A){let L={tabstop:C.tabstop},G=CO(v,S,A,o,!0,s,l,d,p,L),U=[];for(let K of E.elements){let F=m(v,K,L);if(F)U.push(...F);else{U=void 0;break}}if(U)return C.tabstop=L.tabstop,[G,...U]}return[CO(v,S,A,o,!1,s,l,d,p,C)]}function m(v,E,S){if(!E.propertyName&&Me(E.name)||Me(E.name)){let A=E.propertyName?fC(E.propertyName):E.name.text;if(!A)return;let C=`${v}.${A}`;return[CO(C,E.initializer,E.dotDotDotToken,o,!1,s,l,d,p,S)]}else if(E.propertyName){let A=fC(E.propertyName);return A&&h(`${v}.${A}`,E.name,E.initializer,E.dotDotDotToken,S)}}}function CO(e,t,r,i,o,s,l,d,p,h){if(s&&x.assertIsDefined(h),t&&(e=gKe(e,t)),s&&(e=t0(e)),i){let m="*";if(o)x.assert(!r,"Cannot annotate a rest parameter with type 'Object'."),m="Object";else{if(t){let S=l.getTypeAtLocation(t.parent);if(!(S.flags&16385)){let A=t.getSourceFile(),R=Np(A,p)===0?268435456:0,L=l.typeToTypeNode(S,Rn(t,Lo),R);if(L){let G=s?SY({removeComments:!0,module:d.module,target:d.target}):Vb({removeComments:!0,module:d.module,target:d.target});$n(L,1),m=G.printNode(4,L,A)}}}s&&m==="*"&&(m=`\${${h.tabstop++}:${m}}`)}let v=!o&&r?"...":"",E=s?`\${${h.tabstop++}}`:"";return`@param {${v}${m}} ${e} ${E}`}else{let m=s?`\${${h.tabstop++}}`:"";return`@param ${e} ${m}`}}function gKe(e,t){let r=t.getText().trim();return r.includes(`
`)||r.length>80?`[${e}]`:`[${e}=${r}]`}function vKe(e){return{name:qo(e),kind:"keyword",kindModifiers:"",sortText:pd.GlobalsOrKeywords}}function yKe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function ZCe(e,t,r){return{kind:4,keywordCompletions:cNe(e,t),isNewIdentifierLocation:r}}function bKe(e){switch(e){case 156:return 8;default:x.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function eNe(e){return e?.kind===80?eu(e):void 0}function EKe(e,t,r,i,o,s,l,d,p,h){let{symbols:m,contextToken:v,completionKind:E,isInSnippetScope:S,isNewIdentifierLocation:A,location:C,propertyAccessToConvert:R,keywordFilters:L,symbolToOriginInfoMap:G,recommendedCompletion:U,isJsxInitializer:K,isTypeOnlyLocation:F,isJsxIdentifierExpected:oe,isRightOfOpenTag:W,isRightOfDotOrQuestionDot:$,importStatementCompletion:de,insideJsDocTagTypeExpression:fe,symbolToSortTextMap:q,hasUnresolvedAutoImports:H}=s,ee=s.literals,le=r.getTypeChecker();if(KL(e.scriptKind)===1){let Oe=TKe(C,e);if(Oe)return Oe}let Ee=Rn(v,zx);if(Ee&&(Jre(v)||HE(v,Ee.expression))){let Oe=K3(le,Ee.parent.clauses);ee=ee.filter(_e=>!Oe.hasValue(_e)),m.forEach((_e,be)=>{if(_e.valueDeclaration&&p0(_e.valueDeclaration)){let Te=le.getConstantValue(_e.valueDeclaration);Te!==void 0&&Oe.hasValue(Te)&&(G[be]={kind:256})}})}let ce=eB(),Z=tNe(e,i);if(Z&&!A&&(!m||m.length===0)&&L===0)return;let pe=ipe(m,ce,void 0,v,C,p,e,t,r,Wa(i),o,E,l,i,d,F,R,oe,K,de,U,G,q,oe,W,h);if(L!==0)for(let Oe of cNe(L,!fe&&wd(e)))(F&&$N(LE(Oe.name))||!F&&iXe(Oe.name)||!pe.has(Oe.name))&&(pe.add(Oe.name),Fv(ce,Oe,Bz,!0));for(let Oe of HKe(v,p))pe.has(Oe.name)||(pe.add(Oe.name),Fv(ce,Oe,Bz,!0));for(let Oe of ee){let _e=IKe(e,l,Oe);pe.add(_e.name),Fv(ce,_e,Bz,!0)}Z||AKe(e,C.pos,pe,Wa(i),ce);let Ae;if(l.includeCompletionsWithInsertText&&v&&!W&&!$&&(Ae=Rn(v,fN))){let Oe=nNe(Ae,e,l,i,t,r,d);Oe&&ce.push(Oe.entry)}return{flags:s.flags,isGlobalCompletion:S,isIncomplete:l.allowIncompleteCompletions&&H?!0:void 0,isMemberCompletion:SKe(E),isNewIdentifierLocation:A,optionalReplacementSpan:eNe(C),entries:ce}}function tNe(e,t){return!wd(e)||!!ZL(e,t)}function nNe(e,t,r,i,o,s,l){let d=e.clauses,p=s.getTypeChecker(),h=p.getTypeAtLocation(e.parent.expression);if(h&&h.isUnion()&&ji(h.types,m=>m.isLiteral())){let m=K3(p,d),v=Wa(i),E=Np(t,r),S=ud.createImportAdder(t,s,r,o),A=[];for(let F of h.types)if(F.flags&1024){x.assert(F.symbol,"An enum member type should have a symbol"),x.assert(F.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let oe=F.symbol.valueDeclaration&&p.getConstantValue(F.symbol.valueDeclaration);if(oe!==void 0){if(m.hasValue(oe))continue;m.addValue(oe)}let W=ud.typeToAutoImportableTypeNode(p,S,F,e,v);if(!W)return;let $=bY(W,v,E);if(!$)return;A.push($)}else if(!m.hasValue(F.value))switch(typeof F.value){case"object":A.push(F.value.negative?P.createPrefixUnaryExpression(41,P.createBigIntLiteral({negative:!1,base10Value:F.value.base10Value})):P.createBigIntLiteral(F.value));break;case"number":A.push(F.value<0?P.createPrefixUnaryExpression(41,P.createNumericLiteral(-F.value)):P.createNumericLiteral(F.value));break;case"string":A.push(P.createStringLiteral(F.value,E===0));break}if(A.length===0)return;let C=nn(A,F=>P.createCaseClause(F,[])),R=mv(o,l?.options),L=SY({removeComments:!0,module:i.module,target:i.target,newLine:nO(R)}),G=l?F=>L.printAndFormatNode(4,F,t,l):F=>L.printNode(4,F,t),U=nn(C,(F,oe)=>r.includeCompletionsWithSnippetText?`${G(F)}$${oe+1}`:`${G(F)}`).join(R);return{entry:{name:`${L.printNode(4,C[0],t)} ...`,kind:"",sortText:pd.GlobalsOrKeywords,insertText:U,hasAction:S.hasFixes()||void 0,source:"SwitchCases/",isSnippet:r.includeCompletionsWithSnippetText?!0:void 0},importAdder:S}}}function bY(e,t,r){switch(e.kind){case 183:let i=e.typeName;return EY(i,t,r);case 199:let o=bY(e.objectType,t,r),s=bY(e.indexType,t,r);return o&&s&&P.createElementAccessExpression(o,s);case 201:let l=e.literal;switch(l.kind){case 11:return P.createStringLiteral(l.text,r===0);case 9:return P.createNumericLiteral(l.text,l.numericLiteralFlags)}return;case 196:let d=bY(e.type,t,r);return d&&(Me(d)?d:P.createParenthesizedExpression(d));case 186:return EY(e.exprName,t,r);case 205:x.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function EY(e,t,r){if(Me(e))return e;let i=Ii(e.right.escapedText);return OV(i,t)?P.createPropertyAccessExpression(EY(e.left,t,r),i):P.createElementAccessExpression(EY(e.left,t,r),P.createStringLiteral(i,r===0))}function SKe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function TKe(e,t){let r=Rn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(r){let i=!!Ya(r,32,t),l=r.parent.openingElement.tagName.getText(t)+(i?"":">"),d=eu(r.tagName),p={name:l,kind:"class",kindModifiers:void 0,sortText:pd.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:d,entries:[p]}}}function AKe(e,t,r,i,o){WK(e).forEach((s,l)=>{if(s===t)return;let d=Ii(l);!r.has(d)&&Sp(d,i)&&(r.add(d),Fv(o,{name:d,kind:"warning",kindModifiers:"",sortText:pd.JavascriptIdentifiers,isFromUncheckedFile:!0},Bz))})}function npe(e,t,r){return typeof r=="object"?ZE(r)+"n":fo(r)?rP(e,t,r):JSON.stringify(r)}function IKe(e,t,r){return{name:npe(e,t,r),kind:"string",kindModifiers:"",sortText:pd.LocationPriority}}function xKe(e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe,W){var $,de;let fe,q,H=nJ(r),ee,le,Ee=rpe(v),ce,Z,pe,Ae=p.getTypeChecker(),Oe=v&&fKe(v),_e=v&&cKe(v)||m;if(v&&lKe(v))fe=m?`this${Oe?"?.":""}[${oNe(l,G,h)}]`:`this${Oe?"?.":"."}${h}`;else if((_e||Oe)&&S){fe=_e?m?`[${oNe(l,G,h)}]`:`[${h}]`:h,(Oe||S.questionDotToken)&&(fe=`?.${fe}`);let Te=Ya(S,25,l)||Ya(S,29,l);if(!Te)return;let De=Ui(h,S.name.text)?S.name.end:Te.end;H=Gl(Te.getStart(l),De)}if(A&&(fe===void 0&&(fe=h),fe=`{${fe}}`,typeof A!="boolean"&&(H=eu(A,l))),v&&pKe(v)&&S){fe===void 0&&(fe=h);let Te=ec(S.pos,l),De="";Te&&F3(Te.end,Te.parent,l)&&(De=";"),De+=`(await ${S.expression.getText()})`,fe=m?`${De}${fe}`:`${De}${Oe?"?.":"."}${fe}`;let he=Vr(S.parent,py)?S.parent:S.expression;H=Gl(he.getStart(l),S.end)}if(pP(v)&&(ce=[Pp(v.moduleSpecifier)],C&&({insertText:fe,replacementSpan:H}=LKe(h,C,v,R,l,L,G),le=G.includeCompletionsWithSnippetText?!0:void 0)),v?.kind===64&&(Z=!0),U===0&&i&&(($=ec(i.pos,l,i))==null?void 0:$.kind)!==28&&(El(i.parent.parent)||Ap(i.parent.parent)||Vu(i.parent.parent)||lv(i.parent)||((de=Rn(i.parent,Hl))==null?void 0:de.getLastToken(l))===i||xu(i.parent)&&$a(l,i.getEnd()).line!==$a(l,s).line)&&(Ee="ObjectLiteralMemberWithComma/",Z=!0),G.includeCompletionsWithClassMemberSnippets&&G.includeCompletionsWithInsertText&&U===3&&RKe(e,o,l)){let Te,De=rNe(d,p,L,G,h,e,o,s,i,K);if(De)({insertText:fe,filterText:q,isSnippet:le,importAdder:Te}=De),Te?.hasFixes()&&(Z=!0,Ee="ClassMemberSnippet/");else return}if(v&&KCe(v)&&({insertText:fe,isSnippet:le,labelDetails:pe}=v,G.useLabelDetailsInCompletionEntries||(h=h+pe.detail,pe=void 0),Ee="ObjectLiteralMethodSnippet/",t=pd.SortBelow(t)),F&&!oe&&G.includeCompletionsWithSnippetText&&G.jsxAttributeCompletionStyle&&G.jsxAttributeCompletionStyle!=="none"&&!(r_(o.parent)&&o.parent.initializer)){let Te=G.jsxAttributeCompletionStyle==="braces",De=Ae.getTypeOfSymbolAtLocation(e,o);G.jsxAttributeCompletionStyle==="auto"&&!(De.flags&528)&&!(De.flags&1048576&&Dr(De.types,ft=>!!(ft.flags&528)))&&(De.flags&402653316||De.flags&1048576&&ji(De.types,ft=>!!(ft.flags&402686084||Jse(ft)))?(fe=`${t0(h)}=${rP(l,G,"$1")}`,le=!0):Te=!0),Te&&(fe=`${t0(h)}={$1}`,le=!0)}if(fe!==void 0&&!G.includeCompletionsWithInsertText)return;(zz(v)||pP(v))&&(ee=iNe(v),Z=!C);let be=Rn(o,ZW);if(be?.kind===275){let Te=LE(h);be&&Te&&(Te===135||H9(Te))&&(fe=`${h} as ${h}_`)}return{name:h,kind:gv.getSymbolKind(Ae,e,o),kindModifiers:gv.getSymbolModifiers(Ae,e),sortText:t,source:Ee,hasAction:Z?!0:void 0,isRecommended:kKe(e,E,Ae)||void 0,insertText:fe,filterText:q,replacementSpan:H,sourceDisplay:ce,labelDetails:pe,isSnippet:le,isPackageJsonImport:uKe(v)||void 0,isImportStatementCompletion:!!C||void 0,data:ee,...W?{symbol:e}:void 0}}function RKe(e,t,r){return Jn(t)?!1:!!(e.flags&106500)&&(Kr(t)||t.parent&&t.parent.parent&&xc(t.parent)&&t===t.parent.name&&t.parent.getLastToken(r)===t.parent.name&&Kr(t.parent.parent)||t.parent&&jx(t)&&Kr(t.parent))}function rNe(e,t,r,i,o,s,l,d,p,h){let m=Rn(l,Kr);if(!m)return;let v,E=o,S=o,A=t.getTypeChecker(),C=l.getSourceFile(),R=SY({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:nO(mv(e,h?.options))}),L=ud.createImportAdder(C,t,i,e),G;if(i.includeCompletionsWithSnippetText){v=!0;let de=P.createEmptyStatement();G=P.createBlock([de],!0),dj(de,{kind:0,order:0})}else G=P.createBlock([],!0);let U=0,{modifiers:K,range:F,decorators:oe}=DKe(p,C,d),W=K&64&&m.modifierFlagsCache&64,$=[];if(ud.addNewNodeForMemberSymbol(s,m,C,{program:t,host:e},i,L,de=>{let fe=0;W&&(fe|=64),xc(de)&&A.getMemberOverrideModifierStatus(m,de,s)===1&&(fe|=16),$.length||(U=de.modifierFlagsCache|fe),de=P.replaceModifiers(de,U),$.push(de)},G,ud.PreserveOptionalFlags.Property,!!W),$.length){let de=s.flags&8192,fe=U|16|1;de?fe|=1024:fe|=136;let q=K&fe;if(K&~fe)return;if(U&4&&q&1&&(U&=-5),q!==0&&!(q&1)&&(U&=-2),U|=q,$=$.map(ee=>P.replaceModifiers(ee,U)),oe?.length){let ee=$[$.length-1];ZS(ee)&&($[$.length-1]=P.replaceDecoratorsAndModifiers(ee,oe.concat(kE(ee)||[])))}let H=131073;h?E=R.printAndFormatSnippetList(H,P.createNodeArray($),C,h):E=R.printSnippetList(H,P.createNodeArray($),C)}return{insertText:E,filterText:S,isSnippet:v,importAdder:L,eraseRange:F}}function DKe(e,t,r){if(!e||$a(t,r).line>$a(t,e.getEnd()).line)return{modifiers:0};let i=0,o,s,l={pos:r,end:r};if(xo(e.parent)&&e.parent.modifiers&&(i|=$m(e.parent.modifiers)&98303,o=e.parent.modifiers.filter(Xc)||[],l.pos=Math.min(l.pos,e.parent.modifiers.pos)),s=CKe(e)){let d=GA(s);i&d||(i|=d,l.pos=Math.min(l.pos,e.pos))}return{modifiers:i,decorators:o,range:l.pos!==r?l:void 0}}function CKe(e){if(ia(e))return e.kind;if(Me(e)){let t=vb(e);if(t&&Yg(t))return t}}function NKe(e,t,r,i,o,s,l,d){let p=l.includeCompletionsWithSnippetText||void 0,h=t,m=r.getSourceFile(),v=PKe(e,r,m,i,o,l);if(!v)return;let E=SY({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:nO(mv(o,d?.options))});d?h=E.printAndFormatSnippetList(80,P.createNodeArray([v],!0),m,d):h=E.printSnippetList(80,P.createNodeArray([v],!0),m);let S=Vb({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!0}),A=P.createMethodSignature(void 0,"",v.questionToken,v.typeParameters,v.parameters,v.type),C={detail:S.printNode(4,A,m)};return{isSnippet:p,insertText:h,labelDetails:C}}function PKe(e,t,r,i,o,s){let l=e.getDeclarations();if(!(l&&l.length))return;let d=i.getTypeChecker(),p=l[0],h=Fs(mo(p),!1),m=d.getWidenedType(d.getTypeOfSymbolAtLocation(e,t)),E=33554432|(Np(r,s)===0?268435456:0);switch(p.kind){case 171:case 172:case 173:case 174:{let S=m.flags&1048576&&m.types.length<10?d.getUnionType(m.types,2):m;if(S.flags&1048576){let G=Cr(S.types,U=>d.getSignaturesOfType(U,0).length>0);if(G.length===1)S=G[0];else return}if(d.getSignaturesOfType(S,0).length!==1)return;let C=d.typeToTypeNode(S,t,E,ud.getNoopSymbolTrackerWithResolver({program:i,host:o}));if(!C||!B_(C))return;let R;if(s.includeCompletionsWithSnippetText){let G=P.createEmptyStatement();R=P.createBlock([G],!0),dj(G,{kind:0,order:0})}else R=P.createBlock([],!0);let L=C.parameters.map(G=>P.createParameterDeclaration(void 0,G.dotDotDotToken,G.name,void 0,void 0,G.initializer));return P.createMethodDeclaration(void 0,void 0,h,void 0,void 0,L,void 0,R)}default:return}}function SY(e){let t,r=er.createWriter(rv(e)),i=Vb(e,r),o={...r,write:E=>s(E,()=>r.write(E)),nonEscapingWrite:r.write,writeLiteral:E=>s(E,()=>r.writeLiteral(E)),writeStringLiteral:E=>s(E,()=>r.writeStringLiteral(E)),writeSymbol:(E,S)=>s(E,()=>r.writeSymbol(E,S)),writeParameter:E=>s(E,()=>r.writeParameter(E)),writeComment:E=>s(E,()=>r.writeComment(E)),writeProperty:E=>s(E,()=>r.writeProperty(E))};return{printSnippetList:l,printAndFormatSnippetList:p,printNode:h,printAndFormatNode:v};function s(E,S){let A=t0(E);if(A!==E){let C=r.getTextPos();S();let R=r.getTextPos();t=pn(t||(t=[]),{newText:A,span:{start:C,length:R-C}})}else S()}function l(E,S,A){let C=d(E,S,A);return t?er.applyChanges(C,t):C}function d(E,S,A){return t=void 0,o.clear(),i.writeList(E,S,A,o),o.getText()}function p(E,S,A,C){let R={text:d(E,S,A),getLineAndCharacterOfPosition(K){return $a(this,K)}},L=J3(C,A),G=ta(S,K=>{let F=er.assignPositionsToNode(K);return uc.formatNodeGivenIndentation(F,R,A.languageVariant,0,0,{...C,options:L})}),U=t?Gg(ro(G,t),(K,F)=>Yw(K.span,F.span)):G;return er.applyChanges(R.text,U)}function h(E,S,A){let C=m(E,S,A);return t?er.applyChanges(C,t):C}function m(E,S,A){return t=void 0,o.clear(),i.writeNode(E,S,A,o),o.getText()}function v(E,S,A,C){let R={text:m(E,S,A),getLineAndCharacterOfPosition(F){return $a(this,F)}},L=J3(C,A),G=er.assignPositionsToNode(S),U=uc.formatNodeGivenIndentation(G,R,A.languageVariant,0,0,{...C,options:L}),K=t?Gg(ro(U,t),(F,oe)=>Yw(F.span,oe.span)):U;return er.applyChanges(R.text,K)}}function iNe(e){let t=e.fileName?void 0:Sf(e.moduleSymbol.name),r=e.isFromPackageJson?!0:void 0;return pP(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:r}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:Sf(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function MKe(e,t,r){let i=e.exportName==="default",o=!!e.isPackageJsonImport;return YCe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:r,isDefaultExport:i,isFromPackageJson:o}}function LKe(e,t,r,i,o,s,l){let d=t.replacementSpan,p=t0(rP(o,l,r.moduleSpecifier)),h=r.isDefaultExport?1:r.exportName==="export="?2:0,m=l.includeCompletionsWithSnippetText?"$1":"",v=ud.getImportKind(o,h,s,!0),E=t.couldBeTypeOnlyImportSpecifier,S=t.isTopLevelTypeOnly?` ${qo(156)} `:" ",A=E?`${qo(156)} `:"",C=i?";":"";switch(v){case 3:return{replacementSpan:d,insertText:`import${S}${t0(e)}${m} = require(${p})${C}`};case 1:return{replacementSpan:d,insertText:`import${S}${t0(e)}${m} from ${p}${C}`};case 2:return{replacementSpan:d,insertText:`import${S}* as ${t0(e)} from ${p}${C}`};case 0:return{replacementSpan:d,insertText:`import${S}{ ${A}${t0(e)}${m} } from ${p}${C}`}}}function oNe(e,t,r){return/^\d+$/.test(r)?r:rP(e,t,r)}function kKe(e,t,r){return e===t||!!(e.flags&1048576)&&r.getExportSymbolOfSymbol(e)===t}function rpe(e){if(zz(e))return Sf(e.moduleSymbol.name);if(pP(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function ipe(e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C,R,L,G,U,K,F,oe,W,$,de=!1){let fe=Is(),q=tXe(i,o),H=Zk(l),ee=p.getTypeChecker(),le=new Map;for(let Z=0;Z<e.length;Z++){let pe=e[Z],Ae=F?.[Z],Oe=AY(pe,h,Ae,v,!!L);if(!Oe||le.get(Oe.name)&&(!Ae||!KCe(Ae))||v===1&&oe&&!Ee(pe,oe)||!C&&Jn(l)&&ce(pe))continue;let{name:_e,needsConvertPropertyAccess:be}=Oe,Te=oe?.[na(pe)]??pd.LocationPriority,De=nXe(pe,ee)?pd.Deprecated(Te):Te,ft=xKe(pe,De,r,i,o,s,l,d,p,_e,be,Ae,K,R,G,U,H,S,E,v,A,W,$,de);if(!ft)continue;let he=(!Ae||JCe(Ae))&&!(pe.parent===void 0&&!ct(pe.declarations,Le=>Le.getSourceFile()===o.getSourceFile()));le.set(_e,he),Fv(t,ft,Bz,!0)}return m("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(Is()-fe)),{has:Z=>le.has(Z),add:Z=>le.set(Z,!0)};function Ee(Z,pe){var Ae;let Oe=Z.flags;if(!Li(o)){if(dl(o.parent))return!0;if(Vr(q,yi)&&Z.valueDeclaration===q)return!1;let _e=Z.valueDeclaration??((Ae=Z.declarations)==null?void 0:Ae[0]);if(q&&_e&&(qs(q)&&qs(_e)||ao(q)&&ao(_e))){let Te=_e.pos,De=ao(q)?q.parent.parameters:GS(q.parent)?void 0:q.parent.typeParameters;if(Te>=q.pos&&De&&Te<De.end)return!1}let be=Kc(Z,ee);if(l.externalModuleIndicator&&!S.allowUmdGlobalAccess&&pe[na(Z)]===pd.GlobalsOrKeywords&&(pe[na(be)]===pd.AutoImportSuggestions||pe[na(be)]===pd.LocationPriority))return!1;if(Oe|=Sx(be),c3(o))return!!(Oe&1920);if(C)return cpe(Z,ee)}return!!(Oe&111551)}function ce(Z){var pe;let Ae=Sx(Kc(Z,ee));return!(Ae&111551)&&(!Jn((pe=Z.declarations)==null?void 0:pe[0])||!!(Ae&788968))}}function OKe(e){let t=wKe(e);if(t.length)return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function wKe(e){let t=[],r=new Map,i=e;for(;i&&!Lo(i);){if(s0(i)){let o=i.label.text;r.has(o)||(r.set(o,!0),t.push({name:o,kindModifiers:"",kind:"label",sortText:pd.LocationPriority}))}i=i.parent}return t}function aNe(e,t,r,i,o,s,l){if(o.source==="SwitchCases/")return{type:"cases"};if(o.data){let U=lNe(o.name,o.data,e,s);if(U){let{contextToken:K,previousToken:F}=TY(i,r);return{type:"symbol",symbol:U.symbol,location:pu(r,i),previousToken:F,contextToken:K,isJsxInitializer:!1,isTypeOnlyLocation:!1,origin:U.origin}}}let d=e.getCompilerOptions(),p=sNe(e,t,r,d,i,{includeCompletionsForModuleExports:!0,includeCompletionsWithInsertText:!0},o,s,void 0);if(!p)return{type:"none"};if(p.kind!==0)return{type:"request",request:p};let{symbols:h,literals:m,location:v,completionKind:E,symbolToOriginInfoMap:S,contextToken:A,previousToken:C,isJsxInitializer:R,isTypeOnlyLocation:L}=p,G=Dr(m,U=>npe(r,l,U)===o.name);return G!==void 0?{type:"literal",literal:G}:ml(h,(U,K)=>{let F=S[K],oe=AY(U,Wa(d),F,E,p.isJsxIdentifierExpected);return oe&&oe.name===o.name&&(o.source==="ClassMemberSnippet/"&&U.flags&106500||o.source==="ObjectLiteralMethodSnippet/"&&U.flags&8196||rpe(F)===o.source||o.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:U,location:v,origin:F,contextToken:A,previousToken:C,isJsxInitializer:R,isTypeOnlyLocation:L}:void 0})||{type:"none"}}function WKe(e,t,r,i,o,s,l,d,p){let h=e.getTypeChecker(),m=e.getCompilerOptions(),{name:v,source:E,data:S}=o,{previousToken:A,contextToken:C}=TY(i,r);if(RI(r,i,A))return PY.getStringLiteralCompletionDetails(v,r,i,A,e,s,p,d);let R=aNe(e,t,r,i,o,s,d);switch(R.type){case"request":{let{request:L}=R;switch(L.kind){case 1:return Xb.getJSDocTagNameCompletionDetails(v);case 2:return Xb.getJSDocTagCompletionDetails(v);case 3:return Xb.getJSDocParameterNameCompletionDetails(v);case 4:return ct(L.keywordCompletions,G=>G.name===v)?ope(v,"keyword",5):void 0;default:return x.assertNever(L)}}case"symbol":{let{symbol:L,location:G,contextToken:U,origin:K,previousToken:F}=R,{codeActions:oe,sourceDisplay:W}=FKe(v,G,U,K,L,e,s,m,r,i,F,l,d,S,E,p),$=epe(K)?K.symbolName:L.name;return ape(L,$,h,r,G,p,oe,W)}case"literal":{let{literal:L}=R;return ope(npe(r,d,L),"string",typeof L=="string"?8:7)}case"cases":{let L=nNe(C.parent,r,d,e.getCompilerOptions(),s,e,void 0);if(L?.importAdder.hasFixes()){let{entry:G,importAdder:U}=L,K=er.ChangeTracker.with({host:s,formatContext:l,preferences:d},U.writeFixes);return{name:G.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:K,description:uT([f.Includes_imports_of_types_referenced_by_0,v])}]}}return{name:v,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return mpe().some(L=>L.name===v)?ope(v,"keyword",5):void 0;default:x.assertNever(R)}}function ope(e,t,r){return Gz(e,"",t,[Ru(e,r)])}function ape(e,t,r,i,o,s,l,d){let{displayParts:p,documentation:h,symbolKind:m,tags:v}=r.runWithCancellationToken(s,E=>gv.getSymbolDisplayPartsDocumentationAndSymbolKind(E,e,i,o,o,7));return Gz(t,gv.getSymbolModifiers(r,e),m,p,h,v,l,d)}function Gz(e,t,r,i,o,s,l,d){return{name:e,kindModifiers:t,kind:r,displayParts:i,documentation:o,tags:s,codeActions:l,source:d,sourceDisplay:d}}function FKe(e,t,r,i,o,s,l,d,p,h,m,v,E,S,A,C){if(S?.moduleSpecifier&&m&&hNe(r||m,p).replacementSpan)return{codeActions:void 0,sourceDisplay:[Pp(S.moduleSpecifier)]};if(A==="ClassMemberSnippet/"){let{importAdder:oe,eraseRange:W}=rNe(l,s,d,E,e,o,t,h,r,v);if(oe||W)return{sourceDisplay:void 0,codeActions:[{changes:er.ChangeTracker.with({host:l,formatContext:v,preferences:E},de=>{oe&&oe.writeFixes(de),W&&de.deleteRange(p,W)}),description:uT([f.Includes_imports_of_types_referenced_by_0,e])}]}}if(JCe(i)){let oe=ud.getPromoteTypeOnlyCompletionAction(p,i.declaration.name,s,l,v,E);return x.assertIsDefined(oe,"Expected to have a code action for promoting type-only alias"),{codeActions:[oe],sourceDisplay:void 0}}if(A==="ObjectLiteralMemberWithComma/"&&r){let oe=er.ChangeTracker.with({host:l,formatContext:v,preferences:E},W=>W.insertText(p,r.end,","));if(oe)return{sourceDisplay:void 0,codeActions:[{changes:oe,description:uT([f.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(zz(i)||pP(i)))return{codeActions:void 0,sourceDisplay:void 0};let R=i.isFromPackageJson?l.getPackageJsonAutoImportProvider().getTypeChecker():s.getTypeChecker(),{moduleSymbol:L}=i,G=R.getMergedSymbol(Kc(o.exportSymbol||o,R)),U=r?.kind===30&&Od(r.parent),{moduleSpecifier:K,codeAction:F}=ud.getImportCompletionAction(G,L,S?.exportMapKey,p,e,U,l,s,v,m&&Me(m)?m.getStart(p):h,E,C);return x.assert(!S?.moduleSpecifier||K===S.moduleSpecifier),{sourceDisplay:[Pp(K)],codeActions:[F]}}function zKe(e,t,r,i,o,s,l){let d=aNe(e,t,r,i,o,s,l);return d.type==="symbol"?d.symbol:void 0}function BKe(e,t,r){return ml(t&&(t.isUnion()?t.types:[t]),i=>{let o=i&&i.symbol;return o&&o.flags&424&&!Wne(o)?spe(o,e,r):void 0})}function GKe(e,t,r,i){let{parent:o}=e;switch(e.kind){case 80:return O3(e,i);case 64:switch(o.kind){case 260:return i.getContextualType(o.initializer);case 226:return i.getTypeAtLocation(o.left);case 291:return i.getContextualTypeForJsxAttribute(o);default:return}case 105:return i.getContextualType(o);case 84:let s=Vr(o,zx);return s?IJ(s,i):void 0;case 19:return mN(o)&&!Ch(o.parent)&&!c0(o.parent)?i.getContextualTypeForJsxAttribute(o.parent):void 0;default:let l=OO.getArgumentInfoForCompletions(e,t,r,i);return l?i.getContextualTypeForArgumentAtIndex(l.invocation,l.argumentIndex):w3(e.kind)&&Zn(o)&&w3(o.operatorToken.kind)?i.getTypeAtLocation(o.left):i.getContextualType(e,4)||i.getContextualType(e)}}function spe(e,t,r){let i=r.getAccessibleSymbolChain(e,t,-1,!1);return i?Sa(i):e.parent&&(VKe(e.parent)?e:spe(e.parent,t,r))}function VKe(e){var t;return!!((t=e.declarations)!=null&&t.some(r=>r.kind===312))}function sNe(e,t,r,i,o,s,l,d,p,h){let m=e.getTypeChecker(),v=tNe(r,i),E=Is(),S=Hi(r,o);t("getCompletionData: Get current token: "+(Is()-E)),E=Is();let A=uv(r,o,S);t("getCompletionData: Is inside comment: "+(Is()-E));let C=!1,R=!1;if(A){if(Use(r,o)){if(r.text.charCodeAt(o-1)===64)return{kind:1};{let Pe=Cf(o,r);if(!/[^*|\s(/)]/.test(r.text.substring(Pe,o)))return{kind:2}}}let se=qKe(S,o);if(se){if(se.tagName.pos<=o&&o<=se.tagName.end)return{kind:1};let Pe=Vt(se);if(Pe&&(S=Hi(r,o),(!S||!ng(S)&&(S.parent.kind!==355||S.parent.name!==S))&&(C=j(Pe))),!C&&Tm(se)&&(_l(se.name)||se.name.pos<=o&&o<=se.name.end))return{kind:3,tag:se}}if(!C){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}E=Is();let L=!C&&wd(r),G=TY(o,r),U=G.previousToken,K=G.contextToken;t("getCompletionData: Get previous token: "+(Is()-E));let F=S,oe,W=!1,$=!1,de=!1,fe=!1,q=!1,H=!1,ee,le=pu(r,o),Ee=0,ce=!1,Z=0;if(K){let se=hNe(K,r);if(se.keywordCompletion){if(se.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[vKe(se.keywordCompletion)],isNewIdentifierLocation:se.isNewIdentifierLocation};Ee=bKe(se.keywordCompletion)}if(se.replacementSpan&&s.includeCompletionsForImportStatements&&s.includeCompletionsWithInsertText&&(Z|=2,ee=se,ce=se.isNewIdentifierLocation),!se.replacementSpan&&ki(K))return t("Returning an empty list because completion was requested in an invalid position."),Ee?ZCe(Ee,L,Jo()):void 0;let Pe=K.parent;if(K.kind===25||K.kind===29)switch(W=K.kind===25,$=K.kind===29,Pe.kind){case 211:oe=Pe,F=oe.expression;let Ie=Tx(oe);if(_l(Ie)||(Bo(F)||Lo(F))&&F.end===K.pos&&F.getChildCount(r)&&Da(F.getChildren(r)).kind!==22)return;break;case 166:F=Pe.left;break;case 267:F=Pe.name;break;case 205:F=Pe;break;case 236:F=Pe.getFirstToken(r),x.assert(F.kind===102||F.kind===105);break;default:return}else if(!ee){if(Pe&&Pe.kind===211&&(K=Pe,Pe=Pe.parent),S.parent===le)switch(S.kind){case 32:(S.parent.kind===284||S.parent.kind===286)&&(le=S);break;case 44:S.parent.kind===285&&(le=S);break}switch(Pe.kind){case 287:K.kind===44&&(fe=!0,le=K);break;case 226:if(!_Ne(Pe))break;case 285:case 284:case 286:H=!0,K.kind===30&&(de=!0,le=K);break;case 294:case 293:(U.kind===20||U.kind===80&&U.parent.kind===291)&&(H=!0);break;case 291:if(Pe.initializer===U&&U.end<o){H=!0;break}switch(U.kind){case 64:q=!0;break;case 80:H=!0,Pe!==U.parent&&!Pe.initializer&&Ya(Pe,64,r)&&(q=U)}break}}}let pe=Is(),Ae=5,Oe=!1,_e=[],be,Te=[],De=[],ft=new Map,he=Nr(),Le=C_(se=>lT(se?d.getPackageJsonAutoImportProvider():e,d));if(W||$)jt();else if(de)_e=m.getJsxIntrinsicTagNamesAt(le),x.assertEachIsDefined(_e,"getJsxIntrinsicTagNames() should all be defined"),zt(),Ae=1,Ee=0;else if(fe){let se=K.parent.parent.openingElement.tagName,Pe=m.getSymbolAtLocation(se);Pe&&(_e=[Pe]),Ae=1,Ee=0}else if(!zt())return Ee?ZCe(Ee,L,ce):void 0;t("getCompletionData: Semantic work: "+(Is()-pe));let Ke=U&&GKe(U,o,r,m),st=!Vr(U,Ga)&&!H?Fi(Ke&&(Ke.isUnion()?Ke.types:[Ke]),se=>se.isLiteral()&&!(se.flags&1024)?se.value:void 0):[],Ge=U&&Ke&&BKe(U,Ke,m);return{kind:0,symbols:_e,completionKind:Ae,isInSnippetScope:R,propertyAccessToConvert:oe,isNewIdentifierLocation:ce,location:le,keywordFilters:Ee,literals:st,symbolToOriginInfoMap:Te,recommendedCompletion:Ge,previousToken:U,contextToken:K,isJsxInitializer:q,insideJsDocTagTypeExpression:C,symbolToSortTextMap:De,isTypeOnlyLocation:he,isJsxIdentifierExpected:H,isRightOfOpenTag:de,isRightOfDotOrQuestionDot:W||$,importStatementCompletion:ee,hasUnresolvedAutoImports:Oe,flags:Z};function ot(se){switch(se.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!se.constraint;default:return!1}}function Vt(se){if(ot(se)){let Pe=Df(se)?se.constraint:se.typeExpression;return Pe&&Pe.kind===316?Pe:void 0}if(_I(se)||A6(se))return se.class}function jt(){Ae=2;let se=ey(F),Pe=se&&!F.isTypeOf||yh(F.parent)||Gk(K,r,m),Ie=c3(F);if(Su(F)||se||Er(F)){let gt=Il(F.parent);gt&&(ce=!0);let bt=m.getSymbolAtLocation(F);if(bt&&(bt=Kc(bt,m),bt.flags&1920)){let Ot=m.getExportsOfModule(bt);x.assertEachIsDefined(Ot,"getExportsOfModule() should all be defined");let dn=ti=>m.isValidPropertyAccess(se?F:F.parent,ti.name),An=ti=>cpe(ti,m),Cn=gt?ti=>{var di;return!!(ti.flags&1920)&&!((di=ti.declarations)!=null&&di.every(jn=>jn.parent===F.parent))}:Ie?ti=>An(ti)||dn(ti):Pe||C?An:dn;for(let ti of Ot)Cn(ti)&&_e.push(ti);if(!Pe&&!C&&bt.declarations&&bt.declarations.some(ti=>ti.kind!==312&&ti.kind!==267&&ti.kind!==266)){let ti=m.getTypeOfSymbolAtLocation(bt,F).getNonOptionalType(),di=!1;if(ti.isNullableType()){let jn=W&&!$&&s.includeAutomaticOptionalChainCompletions!==!1;(jn||$)&&(ti=ti.getNonNullableType(),jn&&(di=!0))}gn(ti,!!(F.flags&65536),di)}return}}if(!Pe||OS(F)){m.tryGetThisTypeAt(F,!1);let gt=m.getTypeAtLocation(F).getNonOptionalType();if(Pe)gn(gt.getNonNullableType(),!1,!1);else{let bt=!1;if(gt.isNullableType()){let Ot=W&&!$&&s.includeAutomaticOptionalChainCompletions!==!1;(Ot||$)&&(gt=gt.getNonNullableType(),Ot&&(bt=!0))}gn(gt,!!(F.flags&65536),bt)}}}function gn(se,Pe,Ie){ce=!!se.getStringIndexType(),$&&ct(se.getCallSignatures())&&(ce=!0);let gt=F.kind===205?F:F.parent;if(v)for(let bt of se.getApparentProperties())m.isValidPropertyAccessForCompletions(gt,se,bt)&&On(bt,!1,Ie);else _e.push(...Cr(RY(se,m),bt=>m.isValidPropertyAccessForCompletions(gt,se,bt)));if(Pe&&s.includeCompletionsWithInsertText){let bt=m.getPromisedTypeOfPromise(se);if(bt)for(let Ot of bt.getApparentProperties())m.isValidPropertyAccessForCompletions(gt,bt,Ot)&&On(Ot,!0,Ie)}}function On(se,Pe,Ie){var gt;let bt=ml(se.declarations,Cn=>Vr(mo(Cn),Pa));if(bt){let Cn=en(bt.expression),ti=Cn&&m.getSymbolAtLocation(Cn),di=ti&&spe(ti,K,m),jn=di&&na(di);if(jn&&Jf(ft,jn)){let Ar=_e.length;_e.push(di);let Zi=di.parent;if(!Zi||!Uk(Zi)||m.tryGetMemberInModuleExportsAndProperties(di.name,Zi)!==di)Te[Ar]={kind:An(2)};else{let _i=Ic(Sf(Zi.name))?(gt=eW(Zi))==null?void 0:gt.fileName:void 0,{moduleSpecifier:ui}=(be||(be=ud.createImportSpecifierResolver(r,e,d,s))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:_i,isFromPackageJson:!1,moduleSymbol:Zi,symbol:di,targetFlags:Kc(di,m).flags}],o,Pb(le))||{};if(ui){let Mr={kind:An(6),moduleSymbol:Zi,isDefaultExport:!1,symbolName:di.name,exportName:di.name,fileName:_i,moduleSpecifier:ui};Te[Ar]=Mr}}}else if(s.includeCompletionsWithInsertText){if(jn&&ft.has(jn))return;dn(se),Ot(se),_e.push(se)}}else dn(se),Ot(se),_e.push(se);function Ot(Cn){QKe(Cn)&&(De[na(Cn)]=pd.LocalDeclarationPriority)}function dn(Cn){s.includeCompletionsWithInsertText&&(Pe&&Jf(ft,na(Cn))?Te[_e.length]={kind:An(8)}:Ie&&(Te[_e.length]={kind:16}))}function An(Cn){return Ie?Cn|16:Cn}}function en(se){return Me(se)?se:Er(se)?en(se.expression):void 0}function zt(){return(ln()||Tn()||Ki()||ke()||nt()||tt()||Wt()||yt()||ei()||(gi(),1))===1}function Wt(){return Ce(K)?(Ae=5,ce=!0,Ee=4,1):0}function ei(){let se=z(K),Pe=se&&m.getContextualType(se.attributes);if(!Pe)return 0;let Ie=se&&m.getContextualType(se.attributes,4);return _e=ro(_e,te(xY(Pe,Ie,se.attributes,m),se.attributes.properties)),V(),Ae=3,ce=!1,1}function Ki(){return ee?(ce=!0,Ue(),1):0}function gi(){Ee=et(K)?5:1,Ae=1,ce=Jo(),U!==K&&x.assert(!!U,"Expected 'contextToken' to be defined when different from 'previousToken'.");let se=U!==K?U.getStart():o,Pe=ni(K,se,r)||r;R=Gn(Pe);let Ie=(he?0:111551)|788968|1920|2097152,gt=U&&!Pb(U);_e=ro(_e,m.getSymbolsInScope(Pe,Ie)),x.assertEachIsDefined(_e,"getSymbolsInScope() should all be defined");for(let bt=0;bt<_e.length;bt++){let Ot=_e[bt];if(!m.isArgumentsSymbol(Ot)&&!ct(Ot.declarations,dn=>dn.getSourceFile()===r)&&(De[na(Ot)]=pd.GlobalsOrKeywords),gt&&!(Ot.flags&111551)){let dn=Ot.declarations&&Dr(Ot.declarations,UM);if(dn){let An={kind:64,declaration:dn};Te[bt]=An}}}if(s.includeCompletionsWithInsertText&&Pe.kind!==312){let bt=m.tryGetThisTypeAt(Pe,!1,Kr(Pe.parent)?Pe:void 0);if(bt&&!$Ke(bt,r,m))for(let Ot of RY(bt,m))Te[_e.length]={kind:1},_e.push(Ot),De[na(Ot)]=pd.SuggestedClassMembers}Ue(),he&&(Ee=K&&ES(K.parent)?6:7)}function io(){return ee?!0:s.includeCompletionsForModuleExports?r.externalModuleIndicator||r.commonJsModuleIndicator||sJ(e.getCompilerOptions())?!0:Yse(e):!1}function Gn(se){switch(se.kind){case 312:case 228:case 294:case 241:return!0;default:return Di(se)}}function Nr(){return C||!!ee&&Sb(le.parent)||!cr(K)&&(Gk(K,r,m)||yh(le)||Jt(K))}function cr(se){return se&&(se.kind===114&&(se.parent.kind===186||Wx(se.parent))||se.kind===131&&se.parent.kind===182)}function Jt(se){if(se){let Pe=se.parent.kind;switch(se.kind){case 59:return Pe===172||Pe===171||Pe===169||Pe===260||DA(Pe);case 64:return Pe===265||Pe===168;case 130:return Pe===234;case 30:return Pe===183||Pe===216;case 96:return Pe===168;case 152:return Pe===238}}return!1}function Ue(){var se,Pe;if(!io()||(x.assert(!l?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),l&&!l.source))return;Z|=1;let gt=U===K&&ee?"":U&&Me(U)?U.text.toLowerCase():"",bt=(se=d.getModuleSpecifierCache)==null?void 0:se.call(d),Ot=rO(r,d,e,s,h),dn=(Pe=d.getPackageJsonAutoImportProvider)==null?void 0:Pe.call(d),An=l?void 0:oP(r,s,d);XCe("collectAutoImports",d,be||(be=ud.createImportSpecifierResolver(r,e,d,s)),e,o,s,!!ee,Pb(le),ti=>{Ot.search(r.path,de,(di,jn)=>{if(!Sp(di,Wa(d.getCompilationSettings()))||!l&&FA(di)||!he&&!ee&&!(jn&111551)||he&&!(jn&790504))return!1;let Ar=di.charCodeAt(0);return de&&(Ar<65||Ar>90)?!1:l?!0:ENe(di,gt)},(di,jn,Ar,Zi)=>{if(l&&!ct(di,fs=>l.source===Sf(fs.moduleSymbol.name))||(di=Cr(di,Cn),!di.length))return;let _i=ti.tryResolve(di,Ar)||{};if(_i==="failed")return;let ui=di[0],Mr;_i!=="skipped"&&({exportInfo:ui=di[0],moduleSpecifier:Mr}=_i);let lo=ui.exportKind===1,_n=lo&&Ex(ui.symbol)||ui.symbol;Rt(_n,{kind:Mr?32:4,moduleSpecifier:Mr,symbolName:jn,exportMapKey:Zi,exportName:ui.exportKind===2?"export=":ui.symbol.name,fileName:ui.moduleFileName,isDefaultExport:lo,moduleSymbol:ui.moduleSymbol,isFromPackageJson:ui.isFromPackageJson})}),Oe=ti.skippedAny(),Z|=ti.resolvedAny()?8:0,Z|=ti.resolvedBeyondLimit()?16:0});function Cn(ti){let di=Vr(ti.moduleSymbol.valueDeclaration,Li);if(!di){let jn=Sf(ti.moduleSymbol.name);return s_.nodeCoreModules.has(jn)&&Ui(jn,"node:")!==q3(r,e)?!1:An?An.allowsImportingAmbientModule(ti.moduleSymbol,Le(ti.isFromPackageJson)):!0}return GJ(ti.isFromPackageJson?dn:e,r,di,s,An,Le(ti.isFromPackageJson),bt)}}function Rt(se,Pe){let Ie=na(se);De[Ie]!==pd.GlobalsOrKeywords&&(Te[_e.length]=Pe,De[Ie]=ee?pd.LocationPriority:pd.AutoImportSuggestions,_e.push(se))}function mn(se,Pe){Jn(le)||se.forEach(Ie=>{if(!qr(Ie))return;let gt=AY(Ie,Wa(i),void 0,0,!1);if(!gt)return;let{name:bt}=gt,Ot=NKe(Ie,bt,Pe,e,d,i,s,p);if(!Ot)return;let dn={kind:128,...Ot};Z|=32,Te[_e.length]=dn,_e.push(Ie)})}function qr(se){return!!(se.flags&8196)}function ni(se,Pe,Ie){let gt=se;for(;gt&&!Jq(gt,Pe,Ie);)gt=gt.parent;return gt}function ki(se){let Pe=Is(),Ie=ba(se)||_t(se)||Ct(se)||so(se)||c6(se);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(Is()-Pe)),Ie}function so(se){if(se.kind===12)return!0;if(se.kind===32&&se.parent){if(le===se.parent&&(le.kind===286||le.kind===285))return!1;if(se.parent.kind===286)return le.parent.kind!==286;if(se.parent.kind===287||se.parent.kind===285)return!!se.parent.parent&&se.parent.parent.kind===284}return!1}function Jo(){if(K){let se=K.parent.kind,Pe=IY(K);switch(Pe){case 28:return se===213||se===176||se===214||se===209||se===226||se===184||se===210;case 21:return se===213||se===176||se===214||se===217||se===196;case 23:return se===209||se===181||se===167;case 144:case 145:case 102:return!0;case 25:return se===267;case 19:return se===263||se===210;case 64:return se===260||se===226;case 16:return se===228;case 17:return se===239;case 134:return se===174||se===304;case 42:return se===174}if(Vz(Pe))return!0}return!1}function ba(se){return(_j(se)||KG(se))&&(Fk(se,o)||o===se.end&&(!!se.isUnterminated||_j(se)))}function ln(){let se=XKe(K);if(!se)return 0;let Ie=(sI(se.parent)?se.parent:void 0)||se,gt=mNe(Ie,m);if(!gt)return 0;let bt=m.getTypeFromTypeNode(Ie),Ot=RY(gt,m),dn=RY(bt,m),An=new Set;return dn.forEach(Cn=>An.add(Cn.escapedName)),_e=ro(_e,Cr(Ot,Cn=>!An.has(Cn.escapedName))),Ae=0,ce=!0,1}function Tn(){let se=_e.length,Pe=jKe(K,o,r);if(!Pe)return 0;Ae=0;let Ie,gt;if(Pe.kind===210){let bt=ZKe(Pe,m);if(bt===void 0)return Pe.flags&67108864?2:0;let Ot=m.getContextualType(Pe,4),dn=(Ot||bt).getStringIndexType(),An=(Ot||bt).getNumberIndexType();if(ce=!!dn||!!An,Ie=xY(bt,Ot,Pe,m),gt=Pe.properties,Ie.length===0&&!An)return 0}else{x.assert(Pe.kind===206),ce=!1;let bt=Xm(Pe.parent);if(!tx(bt))return x.fail("Root declaration is not variable-like.");let Ot=$v(bt)||!!Jc(bt)||bt.parent.parent.kind===250;if(!Ot&&bt.kind===169&&(lt(bt.parent)?Ot=!!m.getContextualType(bt.parent):(bt.parent.kind===174||bt.parent.kind===178)&&(Ot=lt(bt.parent.parent)&&!!m.getContextualType(bt.parent.parent))),Ot){let dn=m.getTypeAtLocation(Pe);if(!dn)return 2;Ie=m.getPropertiesOfType(dn).filter(An=>m.isPropertyAccessible(Pe,!1,!1,dn,An)),gt=Pe.elements}}if(Ie&&Ie.length>0){let bt=Qt(Ie,x.checkDefined(gt));_e=ro(_e,bt),V(),Pe.kind===210&&s.includeCompletionsWithObjectLiteralMethodSnippets&&s.includeCompletionsWithInsertText&&(St(se),mn(bt,Pe))}return 1}function ke(){if(!K)return 0;let se=K.kind===19||K.kind===28?Vr(K.parent,ZW):I3(K)?Vr(K.parent.parent,ZW):void 0;if(!se)return 0;I3(K)||(Ee=8);let{moduleSpecifier:Pe}=se.kind===275?se.parent.parent:se.parent;if(!Pe)return ce=!0,se.kind===275?2:0;let Ie=m.getSymbolAtLocation(Pe);if(!Ie)return ce=!0,2;Ae=3,ce=!1;let gt=m.getExportsAndPropertiesOfModule(Ie),bt=new Set(se.elements.filter(dn=>!j(dn)).map(dn=>(dn.propertyName||dn.name).escapedText)),Ot=gt.filter(dn=>dn.escapedName!=="default"&&!bt.has(dn.escapedName));return _e=ro(_e,Ot),Ot.length||(Ee=0),1}function nt(){if(K===void 0)return 0;let se=K.kind===19||K.kind===28?Vr(K.parent,uI):K.kind===59?Vr(K.parent.parent,uI):void 0;if(se===void 0)return 0;let Pe=new Set(se.elements.map(SF));return _e=Cr(m.getTypeAtLocation(se).getApparentProperties(),Ie=>!Pe.has(Ie.escapedName)),1}function tt(){var se;let Pe=K&&(K.kind===19||K.kind===28)?Vr(K.parent,$p):void 0;if(!Pe)return 0;let Ie=Rn(Pe,hm(Li,Il));return Ae=5,ce=!1,(se=Ie.locals)==null||se.forEach((gt,bt)=>{var Ot,dn;_e.push(gt),(dn=(Ot=Ie.symbol)==null?void 0:Ot.exports)!=null&&dn.has(bt)&&(De[na(gt)]=pd.OptionalMember)}),1}function yt(){let se=KKe(r,K,le,o);if(!se)return 0;if(Ae=3,ce=!0,Ee=K.kind===42?0:Kr(se)?2:3,!Kr(se))return 1;let Pe=K.kind===27?K.parent.parent:K.parent,Ie=xc(Pe)?Wd(Pe):0;if(K.kind===80&&!j(K))switch(K.getText()){case"private":Ie=Ie|2;break;case"static":Ie=Ie|256;break;case"override":Ie=Ie|16;break}if(nl(Pe)&&(Ie|=256),!(Ie&2)){let gt=Kr(se)&&Ie&16?EA(Jm(se)):EC(se),bt=ta(gt,Ot=>{let dn=m.getTypeAtLocation(Ot);return Ie&256?dn?.symbol&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(dn.symbol,se)):dn&&m.getPropertiesOfType(dn)});_e=ro(_e,M(bt,se.members,Ie)),an(_e,(Ot,dn)=>{let An=Ot?.valueDeclaration;if(An&&xc(An)&&An.name&&Pa(An.name)){let Cn={kind:512,symbolName:m.symbolToString(Ot)};Te[dn]=Cn}})}return 1}function re(se){return!!se.parent&&ao(se.parent)&&ll(se.parent.parent)&&(aC(se.kind)||ng(se))}function Ce(se){if(se){let Pe=se.parent;switch(se.kind){case 21:case 28:return ll(se.parent)?se.parent:void 0;default:if(re(se))return Pe.parent}}}function et(se){if(se){let Pe,Ie=Rn(se.parent,gt=>Kr(gt)?"quit":_s(gt)&&Pe===gt.body?!0:(Pe=gt,!1));return Ie&&Ie}}function z(se){if(se){let Pe=se.parent;switch(se.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(Pe&&(Pe.kind===285||Pe.kind===286)){if(se.kind===32){let Ie=ec(se.pos,r,void 0);if(!Pe.typeArguments||Ie&&Ie.kind===44)break}return Pe}else if(Pe.kind===291)return Pe.parent.parent;break;case 11:if(Pe&&(Pe.kind===291||Pe.kind===293))return Pe.parent.parent;break;case 20:if(Pe&&Pe.kind===294&&Pe.parent&&Pe.parent.kind===291)return Pe.parent.parent.parent;if(Pe&&Pe.kind===293)return Pe.parent.parent;break}}}function Je(se,Pe){return r.getLineEndOfPosition(se.getEnd())<Pe}function _t(se){let Pe=se.parent,Ie=Pe.kind;switch(se.kind){case 28:return Ie===260||on(se)||Ie===243||Ie===266||it(Ie)||Ie===264||Ie===207||Ie===265||Kr(Pe)&&!!Pe.typeParameters&&Pe.typeParameters.end>=se.pos;case 25:return Ie===207;case 59:return Ie===208;case 23:return Ie===207;case 21:return Ie===299||it(Ie);case 19:return Ie===266;case 30:return Ie===263||Ie===231||Ie===264||Ie===265||DA(Ie);case 126:return Ie===172&&!Kr(Pe.parent);case 26:return Ie===169||!!Pe.parent&&Pe.parent.kind===207;case 125:case 123:case 124:return Ie===169&&!ll(Pe.parent);case 130:return Ie===276||Ie===281||Ie===274;case 139:case 153:return!DY(se);case 80:{if(Ie===276&&se===Pe.name&&se.text==="type"||Rn(se.parent,yi)&&Je(se,o))return!1;break}case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ie!==276;case 42:return Lo(se.parent)&&!El(se.parent)}if(Vz(IY(se))&&DY(se)||re(se)&&(!Me(se)||aC(IY(se))||j(se)))return!1;switch(IY(se)){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 xo(se.parent)}if(Rn(se.parent,Kr)&&se===U&&ze(se,o))return!1;let bt=Db(se.parent,172);if(bt&&se!==U&&Kr(U.parent.parent)&&o<=U.end){if(ze(se,U.end))return!1;if(se.kind!==64&&(uk(bt)||K8(bt)))return!0}return ng(se)&&!xu(se.parent)&&!r_(se.parent)&&!((Kr(se.parent)||Gd(se.parent)||qs(se.parent))&&(se!==U||o>U.end))}function ze(se,Pe){return se.kind!==64&&(se.kind===27||!Jp(se.end,Pe,r))}function it(se){return DA(se)&&se!==176}function Ct(se){if(se.kind===9){let Pe=se.getFullText();return Pe.charAt(Pe.length-1)==="."}return!1}function on(se){return se.parent.kind===261&&!Gk(se,r,m)}function Qt(se,Pe){if(Pe.length===0)return se;let Ie=new Set,gt=new Set;for(let Ot of Pe){if(Ot.kind!==303&&Ot.kind!==304&&Ot.kind!==208&&Ot.kind!==174&&Ot.kind!==177&&Ot.kind!==178&&Ot.kind!==305||j(Ot))continue;let dn;if(lv(Ot))Zt(Ot,Ie);else if(Na(Ot)&&Ot.propertyName)Ot.propertyName.kind===80&&(dn=Ot.propertyName.escapedText);else{let An=mo(Ot);dn=An&&Km(An)?AC(An):void 0}dn!==void 0&>.add(dn)}let bt=se.filter(Ot=>!gt.has(Ot.escapedName));return Re(Ie,bt),bt}function Zt(se,Pe){let Ie=se.expression,gt=m.getSymbolAtLocation(Ie),bt=gt&&m.getTypeOfSymbolAtLocation(gt,Ie),Ot=bt&&bt.properties;Ot&&Ot.forEach(dn=>{Pe.add(dn.name)})}function V(){_e.forEach(se=>{if(se.flags&16777216){let Pe=na(se);De[Pe]=De[Pe]??pd.OptionalMember}})}function Re(se,Pe){if(se.size!==0)for(let Ie of Pe)se.has(Ie.name)&&(De[na(Ie)]=pd.MemberDeclaredBySpreadAssignment)}function St(se){for(let Pe=se;Pe<_e.length;Pe++){let Ie=_e[Pe],gt=na(Ie),bt=Te?.[Pe],Ot=Wa(i),dn=AY(Ie,Ot,bt,0,!1);if(dn){let An=De[gt]??pd.LocationPriority,{name:Cn}=dn;De[gt]=pd.ObjectLiteralProperty(An,Cn)}}}function M(se,Pe,Ie){let gt=new Set;for(let bt of Pe){if(bt.kind!==172&&bt.kind!==174&&bt.kind!==177&&bt.kind!==178||j(bt)||zu(bt,2)||zo(bt)!==!!(Ie&256))continue;let Ot=MS(bt.name);Ot&>.add(Ot)}return se.filter(bt=>!gt.has(bt.escapedName)&&!!bt.declarations&&!(Kp(bt)&2)&&!(bt.valueDeclaration&&kd(bt.valueDeclaration)))}function te(se,Pe){let Ie=new Set,gt=new Set;for(let Ot of Pe)j(Ot)||(Ot.kind===291?Ie.add(QC(Ot.name)):mI(Ot)&&Zt(Ot,gt));let bt=se.filter(Ot=>!Ie.has(Ot.escapedName));return Re(gt,bt),bt}function j(se){return se.getStart(r)<=o&&o<=se.getEnd()}}function jKe(e,t,r){var i;if(e){let{parent:o}=e;switch(e.kind){case 19:case 28:if(fa(o)||Rf(o))return o;break;case 42:return El(o)?Vr(o.parent,fa):void 0;case 134:return Vr(o.parent,fa);case 80:if(e.text==="async"&&xu(e.parent))return e.parent.parent;{if(fa(e.parent.parent)&&(lv(e.parent)||xu(e.parent)&&$a(r,e.getEnd()).line!==$a(r,t).line))return e.parent.parent;let l=Rn(o,Hl);if(l?.getLastToken(r)===e&&fa(l.parent))return l.parent}break;default:if((i=o.parent)!=null&&i.parent&&(El(o.parent)||Ap(o.parent)||Vu(o.parent))&&fa(o.parent.parent))return o.parent.parent;if(lv(o)&&fa(o.parent))return o.parent;let s=Rn(o,Hl);if(e.kind!==59&&s?.getLastToken(r)===e&&fa(s.parent))return s.parent}}}function TY(e,t){let r=ec(e,t);return r&&e<=r.end&&(hh(r)||du(r.kind))?{contextToken:ec(r.getFullStart(),t,void 0),previousToken:r}:{contextToken:r,previousToken:r}}function lNe(e,t,r,i){let o=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():r,s=o.getTypeChecker(),l=t.ambientModuleName?s.tryFindAmbientModule(t.ambientModuleName):t.fileName?s.getMergedSymbol(x.checkDefined(o.getSourceFile(t.fileName)).symbol):void 0;if(!l)return;let d=t.exportName==="export="?s.resolveExternalModuleSymbol(l):s.tryGetMemberInModuleExportsAndProperties(t.exportName,l);return d?(d=t.exportName==="default"&&Ex(d)||d,{symbol:d,origin:MKe(t,e,l)}):void 0}function AY(e,t,r,i,o){if(mKe(r))return;let s=dKe(r)?r.symbolName:e.name;if(s===void 0||e.flags&1536&&gL(s.charCodeAt(0))||WL(e))return;let l={name:s,needsConvertPropertyAccess:!1};if(Sp(s,t,o?1:0)||e.valueDeclaration&&kd(e.valueDeclaration))return l;switch(i){case 3:return epe(r)?{name:r.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(s),needsConvertPropertyAccess:!1};case 2:case 1:return s.charCodeAt(0)===32?void 0:{name:s,needsConvertPropertyAccess:!0};case 5:case 4:return l;default:x.assertNever(i)}}function cNe(e,t){if(!t)return dNe(e);let r=e+8+1;return jz[r]||(jz[r]=dNe(e).filter(i=>!UKe(LE(i.name))))}function dNe(e){return jz[e]||(jz[e]=mpe().filter(t=>{let r=LE(t.name);switch(e){case 0:return!1;case 1:return pNe(r)||r===138||r===144||r===156||r===145||r===128||$N(r)&&r!==157;case 5:return pNe(r);case 2:return Vz(r);case 3:return uNe(r);case 4:return aC(r);case 6:return $N(r)||r===87;case 7:return $N(r);case 8:return r===156;default:return x.assertNever(e)}}))}function UKe(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function uNe(e){return e===148}function Vz(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return XG(e)}}function pNe(e){return e===134||e===135||e===160||e===130||e===152||e===156||!MW(e)&&!Vz(e)}function IY(e){return Me(e)?vb(e)??0:e.kind}function HKe(e,t){let r=[];if(e){let i=e.getSourceFile(),o=e.parent,s=i.getLineAndCharacterOfPosition(e.end).line,l=i.getLineAndCharacterOfPosition(t).line;(cc(o)||xl(o)&&o.moduleSpecifier)&&e===o.moduleSpecifier&&s===l&&r.push({name:qo(132),kind:"keyword",kindModifiers:"",sortText:pd.GlobalsOrKeywords})}return r}function qKe(e,t){return Rn(e,r=>J1(r)&&Wk(r,t)?!0:Sm(r)?"quit":!1)}function xY(e,t,r,i){let o=t&&t!==e,s=o&&!(t.flags&3)?i.getUnionType([e,t]):e,l=JKe(s,r,i);return s.isClass()&&fNe(l)?[]:o?Cr(l,d):l;function d(p){return yn(p.declarations)?ct(p.declarations,h=>h.parent!==r):!0}}function JKe(e,t,r){return e.isUnion()?r.getAllPossiblePropertiesOfTypes(Cr(e.types,i=>!(i.flags&402784252||r.isArrayLikeType(i)||r.isTypeInvalidDueToUnionDiscriminant(i,t)||r.typeHasCallOrConstructSignatures(i)||i.isClass()&&fNe(i.getApparentProperties())))):e.getApparentProperties()}function fNe(e){return ct(e,t=>!!(Kp(t)&6))}function RY(e,t){return e.isUnion()?x.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):x.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function KKe(e,t,r,i){switch(r.kind){case 358:return Vr(r.parent,jA);case 1:let o=Vr(Ns(Fo(r.parent,Li).statements),jA);if(o&&!Ya(o,20,e))return o;break;case 81:if(Vr(r.parent,xo))return Rn(r,Kr);break;case 80:{if(vb(r)||xo(r.parent)&&r.parent.initializer===r)return;if(DY(r))return Rn(r,jA)}}if(t){if(r.kind===137||Me(t)&&xo(t.parent)&&Kr(r))return Rn(t,Kr);switch(t.kind){case 64:return;case 27:case 20:return DY(r)&&r.parent.name===r?r.parent.parent:Vr(r,jA);case 19:case 28:return Vr(t.parent,jA);default:if(jA(r)){if($a(e,t.getEnd()).line!==$a(e,i).line)return r;let o=Kr(t.parent.parent)?Vz:uNe;return o(t.kind)||t.kind===42||Me(t)&&o(vb(t)??0)?t.parent.parent:void 0}return}}}function XKe(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(ju(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&ju(t.parent))return t.parent;break}}function mNe(e,t){if(!e)return;if(xi(e)&&X8(e.parent))return t.getTypeArgumentConstraint(e);let r=mNe(e.parent,t);if(r)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(r,e.symbol.escapedName);case 193:case 187:case 192:return r}}function DY(e){return e.parent&&G8(e.parent)&&jA(e.parent.parent)}function YKe(e,t,r,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!r&&fle(r)&&i===r.getStart(e)+1;case"#":return!!r&&Ci(r)&&!!Oc(r);case"<":return!!r&&r.kind===30&&(!Zn(r.parent)||_Ne(r.parent));case"/":return!!r&&(Ga(r)?!!xL(r):r.kind===44&&l0(r.parent));case" ":return!!r&&lN(r)&&r.parent.kind===312;default:return x.assertNever(t)}}function _Ne({left:e}){return _l(e)}function $Ke(e,t,r){let i=r.resolveName("self",void 0,111551,!1);if(i&&r.getTypeOfSymbolAtLocation(i,t)===e)return!0;let o=r.resolveName("global",void 0,111551,!1);if(o&&r.getTypeOfSymbolAtLocation(o,t)===e)return!0;let s=r.resolveName("globalThis",void 0,111551,!1);return!!(s&&r.getTypeOfSymbolAtLocation(s,t)===e)}function QKe(e){return!!(e.valueDeclaration&&Wd(e.valueDeclaration)&256&&Kr(e.valueDeclaration.parent))}function ZKe(e,t){let r=t.getContextualType(e);if(r)return r;let i=Zg(e.parent);if(Zn(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(lt(i))return t.getContextualType(i)}function hNe(e,t){var r,i,o;let s,l=!1,d=p();return{isKeywordOnlyCompletion:l,keywordCompletion:s,isNewIdentifierLocation:!!(d||s===156),isTopLevelTypeOnly:!!((i=(r=Vr(d,cc))==null?void 0:r.importClause)!=null&&i.isTypeOnly)||!!((o=Vr(d,Nc))!=null&&o.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!d&&vNe(d,e),replacementSpan:eXe(d)};function p(){let h=e.parent;if(Nc(h)){let m=h.getLastToken(t);if(Me(e)&&m!==e){s=161,l=!0;return}return s=e.kind===156?void 0:156,lpe(h.moduleReference)?h:void 0}if(vNe(h,e)&&yNe(h.parent))return h;if(sg(h)||my(h)){if(!h.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(s=156),yNe(h))if(e.kind===20||e.kind===80)l=!0,s=161;else return h.parent.parent;return}if(xl(h)&&e.kind===42||$p(h)&&e.kind===20){l=!0,s=161;return}if(lN(e)&&Li(h))return s=156,e;if(lN(e)&&cc(h))return s=156,lpe(h.moduleSpecifier)?h:void 0}}function eXe(e){var t;if(!e)return;let r=Rn(e,hm(cc,Nc))??e,i=r.getSourceFile();if(WS(r,i))return eu(r,i);x.assert(r.kind!==102&&r.kind!==276);let o=r.kind===272?gNe((t=r.importClause)==null?void 0:t.namedBindings)??r.moduleSpecifier:r.moduleReference,s={pos:r.getFirstToken().getStart(),end:o.pos};if(WS(s,i))return yy(s)}function gNe(e){var t;return Dr((t=Vr(e,sg))==null?void 0:t.elements,r=>{var i;return!r.propertyName&&FA(r.name.text)&&((i=ec(r.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function vNe(e,t){return Iu(e)&&(e.isTypeOnly||t===e.name&&I3(t))}function yNe(e){if(!lpe(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(sg(e)){let t=gNe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function lpe(e){var t;return _l(e)?!0:!((t=Vr(j_(e)?e.expression:e,Ga))!=null&&t.text)}function tXe(e,t){if(!e)return;let r=Rn(e,o=>VE(o)||bNe(o)||ko(o)?"quit":(ao(o)||qs(o))&&!r0(o.parent)),i=Rn(t,o=>VE(o)||bNe(o)||ko(o)?"quit":yi(o));return r||i}function bNe(e){return e.parent&&hs(e.parent)&&(e.parent.body===e||e.kind===39)}function cpe(e,t,r=new Map){return i(e)||i(Kc(e.exportSymbol||e,t));function i(o){return!!(o.flags&788968)||t.isUnknownSymbol(o)||!!(o.flags&1536)&&Jf(r,na(o))&&t.getExportsOfModule(o).some(s=>cpe(s,t,r))}}function nXe(e,t){let r=Kc(e,t).declarations;return!!yn(r)&&ji(r,H3)}function ENe(e,t){if(t.length===0)return!0;let r=!1,i,o=0,s=e.length;for(let l=0;l<s;l++){let d=e.charCodeAt(l),p=t.charCodeAt(o);if((d===p||d===rXe(p))&&(r||(r=i===void 0||97<=i&&i<=122&&65<=d&&d<=90||i===95&&d!==95),r&&o++,o===t.length))return!0;i=d}return!1}function rXe(e){return 97<=e&&e<=122?e-32:e}function iXe(e){return e==="abstract"||e==="async"||e==="await"||e==="declare"||e==="module"||e==="namespace"||e==="type"}var CY,dpe,pd,upe,ppe,fpe,jz,mpe,oXe=pt({"src/services/completions.ts"(){"use strict";Hr(),Epe(),CY=100,dpe=1e3,pd={LocalDeclarationPriority:"10",LocationPriority:"11",OptionalMember:"12",MemberDeclaredBySpreadAssignment:"13",SuggestedClassMembers:"14",GlobalsOrKeywords:"15",AutoImportSuggestions:"16",ClassMemberSnippets:"17",JavascriptIdentifiers:"18",Deprecated(e){return"z"+e},ObjectLiteralProperty(e,t){return`${e}\0${t}\0`},SortBelow(e){return e+"1"}},upe=(e=>(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(upe||{}),ppe=(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))(ppe||{}),fpe=(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))(fpe||{}),jz=[],mpe=Kd(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:qo(t),kind:"keyword",kindModifiers:"",sortText:pd.GlobalsOrKeywords});return e})}});function _pe(){let e=new Map;function t(r){let i=e.get(r.name);(!i||bpe[i.kind]<bpe[r.kind])&&e.set(r.name,r)}return{add:t,has:e.has.bind(e),values:e.values.bind(e)}}function aXe(e,t,r,i,o,s,l,d,p){if(Kse(e,t)){let h=SXe(e,t,i,o);return h&&SNe(h)}if(RI(e,t,r)){if(!r||!Ga(r))return;let h=ANe(e,r,t,s,o,d);return sXe(h,r,e,o,s,l,i,d,t,p)}}function sXe(e,t,r,i,o,s,l,d,p,h){if(e===void 0)return;let m=rJ(t);switch(e.kind){case 0:return SNe(e.paths);case 1:{let v=eB();return ipe(e.symbols,v,t,t,r,p,r,i,o,99,s,4,d,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,h),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:e.hasIndexSignature,optionalReplacementSpan:m,entries:v}}case 2:{let v=t.kind===15?96:Ui(Vl(t),"'")?39:34,E=e.types.map(S=>({name:Th(S.value,v),kindModifiers:"",kind:"string",sortText:pd.LocationPriority,replacementSpan:nJ(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:m,entries:E}}default:return x.assertNever(e)}}function lXe(e,t,r,i,o,s,l,d){if(!i||!Ga(i))return;let p=ANe(t,i,r,o,s,d);return p&&cXe(e,i,p,t,o.getTypeChecker(),l)}function cXe(e,t,r,i,o,s){switch(r.kind){case 0:{let l=Dr(r.paths,d=>d.name===e);return l&&Gz(e,TNe(l.extension),l.kind,[Pp(e)])}case 1:{let l=Dr(r.symbols,d=>d.name===e);return l&&ape(l,l.name,o,i,t,s)}case 2:return Dr(r.types,l=>l.value===e)?Gz(e,"","string",[Pp(e)]):void 0;default:return x.assertNever(r)}}function SNe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:o,kind:s,span:l,extension:d})=>({name:o,kind:s,kindModifiers:TNe(d),sortText:pd.LocationPriority,replacementSpan:l}))}}function TNe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return x.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return x.assertNever(e)}}function ANe(e,t,r,i,o,s){let l=i.getTypeChecker(),d=hpe(t.parent);switch(d.kind){case 201:{let S=hpe(d.parent);return S.kind===205?{kind:0,paths:RNe(e,t,i,o,s)}:p(S)}case 303:return fa(d.parent)&&d.name===t?pXe(l,d.parent):h()||h(0);case 212:{let{expression:S,argumentExpression:A}=d;return t===Ka(A)?INe(l.getTypeAtLocation(S)):void 0}case 213:case 214:case 291:if(!xXe(t)&&!lp(d)){let S=OO.getArgumentInfoForCompletions(d.kind===291?d.parent:t,r,e,l);return S&&uXe(S.invocation,t,S,l)||h(0)}case 272:case 278:case 283:return{kind:0,paths:RNe(e,t,i,o,s)};case 296:let m=K3(l,d.parent.clauses),v=h();return v?{kind:2,types:v.types.filter(S=>!m.hasValue(S.value)),isNewIdentifier:!1}:void 0;default:return h()||h(0)}function p(m){switch(m.kind){case 233:case 183:{let S=Rn(d,A=>A.parent===m);return S?{kind:2,types:NY(l.getTypeArgumentConstraint(S)),isNewIdentifier:!1}:void 0}case 199:let{indexType:v,objectType:E}=m;return Wk(v,r)?INe(l.getTypeFromTypeNode(E)):void 0;case 192:{let S=p(hpe(m.parent));if(!S)return;let A=dXe(m,d);return S.kind===1?{kind:1,symbols:S.symbols.filter(C=>!To(A,C.name)),hasIndexSignature:S.hasIndexSignature}:{kind:2,types:S.types.filter(C=>!To(A,C.value)),isNewIdentifier:!1}}default:return}}function h(m=4){let v=NY(O3(t,l,m));if(v.length)return{kind:2,types:v,isNewIdentifier:!1}}}function hpe(e){switch(e.kind){case 196:return PL(e);case 217:return Zg(e);default:return e}}function dXe(e,t){return Fi(e.types,r=>r!==t&&uy(r)&&ca(r.literal)?r.literal.text:void 0)}function uXe(e,t,r,i){let o=!1,s=new Map,l=Od(e)?x.checkDefined(Rn(t.parent,r_)):t,d=i.getCandidateSignaturesForStringLiteralCompletions(e,l),p=ta(d,h=>{if(!Td(h)&&r.argumentCount>h.parameters.length)return;let m=h.getTypeParameterAtPosition(r.argumentIndex);if(Od(e)){let v=i.getTypeOfPropertyOfType(m,r2(l.name));v&&(m=v)}return o=o||!!(m.flags&4),NY(m,s)});return yn(p)?{kind:2,types:p,isNewIdentifier:o}:void 0}function INe(e){return e&&{kind:1,symbols:Cr(e.getApparentProperties(),t=>!(t.valueDeclaration&&kd(t.valueDeclaration))),hasIndexSignature:AJ(e)}}function pXe(e,t){let r=e.getContextualType(t);if(!r)return;let i=e.getContextualType(t,4);return{kind:1,symbols:xY(r,i,t,e),hasIndexSignature:AJ(r)}}function NY(e,t=new Map){return e?(e=aJ(e),e.isUnion()?ta(e.types,r=>NY(r,t)):e.isStringLiteral()&&!(e.flags&1024)&&Jf(t,e.value)?[e]:je):je}function fP(e,t,r){return{name:e,kind:t,extension:r}}function gpe(e){return fP(e,"directory",void 0)}function xNe(e,t,r){let i=AXe(e,t),o=e.length===0?void 0:qc(t,e.length);return r.map(({name:s,kind:l,extension:d})=>s.includes(Os)||s.includes(DM)?{name:s,kind:l,extension:d,span:o}:{name:s,kind:l,extension:d,span:i})}function RNe(e,t,r,i,o){return xNe(t.text,t.getStart(e)+1,fXe(e,t,r,i,o))}function fXe(e,t,r,i,o){let s=ad(t.text),l=Ga(t)?r.getModeForUsageLocation(e,t):void 0,d=e.path,p=Ur(d),h=r.getCompilerOptions(),m=r.getTypeChecker(),v=vpe(h,1,e,m,o,l);return IXe(s)||!h.baseUrl&&!h.paths&&(Ou(s)||uee(s))?mXe(s,p,h,i,d,v):vXe(s,p,l,h,i,v,m)}function vpe(e,t,r,i,o,s){return{extensionsToSearch:Ff(_Xe(e,i)),referenceKind:t,importingSourceFile:r,endingPreference:o?.importModuleSpecifierEnding,resolutionMode:s}}function mXe(e,t,r,i,o,s){return r.rootDirs?gXe(r.rootDirs,e,t,s,r,i,o):bo(NO(e,t,s,i,!0,o).values())}function _Xe(e,t){let r=t?Fi(t.getAmbientModules(),s=>{let l=s.name.slice(1,-1);if(!(!l.startsWith("*.")||l.includes("/")))return l.slice(1)}):[],i=[...GC(e),r],o=zd(e);return x3(o)?YL(e,i):i}function hXe(e,t,r,i){e=e.map(s=>_c(Yo(Ou(s)?s:wr(t,s))));let o=ml(e,s=>Bf(s,r,t,i)?r.substr(s.length):void 0);return NE([...e.map(s=>wr(s,o)),r].map(s=>fb(s)),pS,gd)}function gXe(e,t,r,i,o,s,l){let d=o.project||s.getCurrentDirectory(),p=!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()),h=hXe(e,d,r,p);return NE(ta(h,m=>bo(NO(t,m,i,s,!0,l).values())),(m,v)=>m.name===v.name&&m.kind===v.kind&&m.extension===v.extension)}function NO(e,t,r,i,o,s,l=_pe()){var d;e===void 0&&(e=""),e=ad(e),Jg(e)||(e=Ur(e)),e===""&&(e="."+Os),e=_c(e);let p=jv(t,e),h=Jg(p)?p:Ur(p);if(!o){let S=_le(h,i);if(S){let C=kC(S,i).typesVersions;if(typeof C=="object"){let R=(d=X6(C))==null?void 0:d.paths;if(R){let L=Ur(S),G=p.slice(_c(L).length);if(CNe(l,G,L,r,i,R))return l}}}}let m=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!B3(i,h))return l;let v=xJ(i,h,r.extensionsToSearch,void 0,["./*"]);if(v)for(let S of v){if(S=Yo(S),s&&Xh(S,s,t,m)===0)continue;let{name:A,extension:C}=DNe(Ll(S),i.getCompilationSettings(),r,!1);l.add(fP(A,"script",C))}let E=z3(i,h);if(E)for(let S of E){let A=Ll(Yo(S));A!=="@types"&&l.add(gpe(A))}return l}function DNe(e,t,r,i){let o=h0.tryGetRealFileNameForNonJsDeclarationFileName(e);if(o)return{name:o,extension:og(o)};if(r.referenceKind===0)return{name:e,extension:og(e)};let s=sk({importModuleSpecifierEnding:r.endingPreference},t,r.importingSourceFile).getAllowedEndingsInPreferredOrder(r.resolutionMode);if(i&&(s=s.filter(d=>d!==0&&d!==1)),s[0]===3){if($l(e,l2))return{name:e,extension:og(e)};let d=h0.tryGetJSExtensionForFile(e,t);return d?{name:Nb(e,d),extension:d}:{name:e,extension:og(e)}}if(!i&&(s[0]===0||s[0]===1)&&$l(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Yd(e),extension:og(e)};let l=h0.tryGetJSExtensionForFile(e,t);return l?{name:Nb(e,l),extension:l}:{name:e,extension:og(e)}}function CNe(e,t,r,i,o,s){let l=p=>s[p],d=(p,h)=>{let m=xx(p),v=xx(h),E=typeof m=="object"?m.prefix.length:p.length,S=typeof v=="object"?v.prefix.length:h.length;return Ms(S,E)};return NNe(e,!1,t,r,i,o,fh(s),l,d)}function NNe(e,t,r,i,o,s,l,d,p){let h=[],m;for(let v of l){if(v===".")continue;let E=v.replace(/^\.\//,""),S=d(v);if(S){let A=xx(E);if(!A)continue;let C=typeof A=="object"&&Qw(A,r);C&&(m===void 0||p(v,m)===-1)&&(m=v,h=h.filter(L=>!L.matchedPattern)),(typeof A=="string"||m===void 0||p(v,m)!==1)&&h.push({matchedPattern:C,results:yXe(E,S,r,i,o,t&&C,s).map(({name:L,kind:G,extension:U})=>fP(L,G,U))})}}return h.forEach(v=>v.results.forEach(E=>e.add(E))),m!==void 0}function vXe(e,t,r,i,o,s,l){let{baseUrl:d,paths:p}=i,h=_pe(),m=zd(i);if(d){let E=Yo(wr(o.getCurrentDirectory(),d));NO(e,E,s,o,!1,void 0,h)}if(p){let E=zW(i,o);CNe(h,e,E,s,o,p)}let v=MNe(e);for(let E of EXe(e,v,l))h.add(fP(E,"external module name",void 0));if(ONe(o,i,t,v,s,h),x3(m)){let E=!1;if(v===void 0)for(let S of TXe(o,t)){let A=fP(S,"external module name",void 0);h.has(A.name)||(E=!0,h.add(A))}if(!E){let S=A=>{let C=wr(A,"node_modules");B3(o,C)&&NO(e,C,s,o,!1,void 0,h)};if(v&&RF(i)){let A=S;S=C=>{let R=mc(e);R.shift();let L=R.shift();if(!L)return A(C);if(Ui(L,"@")){let K=R.shift();if(!K)return A(C);L=wr(L,K)}let G=wr(C,"node_modules",L),U=wr(G,"package.json");if(eO(o,U)){let F=kC(U,o).exports;if(F){if(typeof F!="object"||F===null)return;let oe=fh(F),W=R.join("/")+(R.length&&Jg(e)?"/":""),$=hy(i,r);NNe(h,!0,W,G,s,o,oe,de=>EA(PNe(F[de],$)),NU);return}}return A(C)}}Vf(t,S)}}return bo(h.values())}function PNe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!oo(e)){for(let r in e)if(r==="default"||t.includes(r)||ok(t,r)){let i=e[r];return PNe(i,t)}}}function MNe(e){return ype(e)?Jg(e)?e:Ur(e):void 0}function yXe(e,t,r,i,o,s,l){if(!Zs(e,"*"))return e.includes("*")?je:h(e,"script");let d=e.slice(0,e.length-1),p=fB(r,d);if(p===void 0)return e[e.length-2]==="/"?h(d,"directory"):ta(t,v=>{var E;return(E=LNe("",i,v,o,s,l))==null?void 0:E.map(({name:S,...A})=>({name:d+S,...A}))});return ta(t,m=>LNe(p,i,m,o,s,l));function h(m,v){return Ui(m,r)?[{name:fb(m),kind:v,extension:void 0}]:je}}function LNe(e,t,r,i,o,s){if(!s.readDirectory)return;let l=xx(r);if(l===void 0||fo(l))return;let d=jv(l.prefix),p=Jg(l.prefix)?d:Ur(d),h=Jg(l.prefix)?"":Ll(d),m=ype(e),v=m?Jg(e)?e:Ur(e):void 0,E=m?wr(p,h+v):p,S=Yo(l.suffix),A=S&&FW("_"+S),C=A?[Nb(S,A),S]:[S],R=Yo(wr(t,E)),L=m?R:_c(R)+h,G=S?C.map(oe=>"**/*"+oe):["./*"],U=Fi(xJ(s,R,i.extensionsToSearch,void 0,G),oe=>{let W=F(oe);if(W){if(ype(W))return gpe(mc(kNe(W))[1]);let{name:$,extension:de}=DNe(W,s.getCompilationSettings(),i,o);return fP($,"script",de)}}),K=S?je:Fi(z3(s,R),oe=>oe==="node_modules"?void 0:gpe(oe));return[...U,...K];function F(oe){return ml(C,W=>{let $=bXe(Yo(oe),L,W);return $===void 0?void 0:kNe($)})}}function bXe(e,t,r){return Ui(e,t)&&Zs(e,r)?e.slice(t.length,e.length-r.length):void 0}function kNe(e){return e[0]===Os?e.slice(1):e}function EXe(e,t,r){let o=r.getAmbientModules().map(s=>Sf(s.name)).filter(s=>Ui(s,e)&&!s.includes("*"));if(t!==void 0){let s=_c(t);return o.map(l=>jD(l,s))}return o}function SXe(e,t,r,i){let o=Hi(e,t),s=mh(e.text,o.pos),l=s&&Dr(s,A=>t>=A.pos&&t<=A.end);if(!l)return;let d=e.text.slice(l.pos,t),p=wNe.exec(d);if(!p)return;let[,h,m,v]=p,E=Ur(e.path),S=m==="path"?NO(v,E,vpe(r,0,e),i,!0,e.path):m==="types"?ONe(i,r,E,MNe(v),vpe(r,1,e)):x.fail();return xNe(v,l.pos+h.length,bo(S.values()))}function ONe(e,t,r,i,o,s=_pe()){let l=new Map,d=G3(()=>RN(t,e))||je;for(let h of d)p(h);for(let h of RJ(r,e)){let m=wr(Ur(h),"node_modules/@types");p(m)}return s;function p(h){if(B3(e,h))for(let m of z3(e,h)){let v=ak(m);if(!(t.types&&!To(t.types,v)))if(i===void 0)l.has(v)||(s.add(fP(v,"external module name",void 0)),l.set(v,!0));else{let E=wr(h,m),S=xV(i,v,ev(e));S!==void 0&&NO(S,E,o,e,!1,void 0,s)}}}}function TXe(e,t){if(!e.readFile||!e.fileExists)return je;let r=[];for(let i of RJ(t,e)){let o=kC(i,e);for(let s of WNe){let l=o[s];if(l)for(let d in l)rs(l,d)&&!Ui(d,"@types/")&&r.push(d)}}return r}function AXe(e,t){let r=Math.max(e.lastIndexOf(Os),e.lastIndexOf(DM)),i=r!==-1?r+1:0,o=e.length-i;return o===0||Sp(e.substr(i,o),99)?void 0:qc(t+i,o)}function IXe(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,r=e.charCodeAt(t);return r===47||r===92}return!1}function ype(e){return e.includes(Os)}function xXe(e){return Bo(e.parent)&&Ac(e.parent.arguments)===e&&Me(e.parent.expression)&&e.parent.expression.escapedText==="require"}var bpe,wNe,WNe,RXe=pt({"src/services/stringCompletions.ts"(){"use strict";Soe(),Hr(),Epe(),bpe={directory:0,script:1,"external module name":2},wNe=/^(\/\/\/\s*<reference\s+(path|types)\s*=\s*(?:'|"))([^\3"]*)$/,WNe=["dependencies","devDependencies","peerDependencies","optionalDependencies"]}}),PY={};Ra(PY,{getStringLiteralCompletionDetails:()=>lXe,getStringLiteralCompletions:()=>aXe});var DXe=pt({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";RXe()}}),FI={};Ra(FI,{CompletionKind:()=>fpe,CompletionSource:()=>upe,SortText:()=>pd,StringCompletions:()=>PY,SymbolOriginInfoKind:()=>ppe,createCompletionDetails:()=>Gz,createCompletionDetailsForSymbol:()=>ape,getCompletionEntriesFromSymbols:()=>ipe,getCompletionEntryDetails:()=>WKe,getCompletionEntrySymbol:()=>zKe,getCompletionsAtPosition:()=>_Ke,getPropertiesForObjectExpression:()=>xY,moduleSpecifierResolutionCacheAttemptLimit:()=>dpe,moduleSpecifierResolutionLimit:()=>CY});var Epe=pt({"src/services/_namespaces/ts.Completions.ts"(){"use strict";oXe(),DXe()}});function Spe(e,t,r,i){let o=MXe(e,r,i);return(s,l,d)=>{let{directImports:p,indirectUsers:h}=CXe(e,t,o,l,r,i);return{indirectUsers:h,...NXe(p,s,l.exportKind,r,d)}}}function CXe(e,t,r,{exportingModuleSymbol:i,exportKind:o},s,l){let d=DI(),p=DI(),h=[],m=!!i.globalExports,v=m?void 0:[];return S(i),{directImports:h,indirectUsers:E()};function E(){if(m)return e;if(i.declarations)for(let U of i.declarations)zE(U)&&t.has(U.getSourceFile().fileName)&&L(U);return v.map(Nn)}function S(U){let K=G(U);if(K){for(let F of K)if(d(F))switch(l&&l.throwIfCancellationRequested(),F.kind){case 213:if(lp(F)){A(F);break}if(!m){let W=F.parent;if(o===2&&W.kind===260){let{name:$}=W;if($.kind===80){h.push($);break}}}break;case 80:break;case 271:R(F,F.name,Wr(F,32),!1);break;case 272:h.push(F);let oe=F.importClause&&F.importClause.namedBindings;oe&&oe.kind===274?R(F,oe.name,!1,!0):!m&&kA(F)&&L(Uz(F));break;case 278:F.exportClause?F.exportClause.kind===280?L(Uz(F),!0):h.push(F):S(WXe(F,s));break;case 205:!m&&F.isTypeOf&&!F.qualifier&&C(F)&&L(F.getSourceFile(),!0),h.push(F);break;default:x.failBadSyntaxKind(F,"Unexpected import kind.")}}}function A(U){let K=Rn(U,MY)||U.getSourceFile();L(K,!!C(U,!0))}function C(U,K=!1){return Rn(U,F=>K&&MY(F)?"quit":Yf(F)&&ct(F.modifiers,nI))}function R(U,K,F,oe){if(o===2)oe||h.push(U);else if(!m){let W=Uz(U);x.assert(W.kind===312||W.kind===267),F||PXe(W,K,s)?L(W,!0):L(W)}}function L(U,K=!1){if(x.assert(!m),!p(U)||(v.push(U),!K))return;let oe=s.getMergedSymbol(U.symbol);if(!oe)return;x.assert(!!(oe.flags&1536));let W=G(oe);if(W)for(let $ of W)Dh($)||L(Uz($),!0)}function G(U){return r.get(na(U).toString())}}function NXe(e,t,r,i,o){let s=[],l=[];function d(E,S){s.push([E,S])}if(e)for(let E of e)p(E);return{importSearches:s,singleReferences:l};function p(E){if(E.kind===271){Ape(E)&&h(E.name);return}if(E.kind===80){h(E);return}if(E.kind===205){if(E.qualifier){let C=dp(E.qualifier);C.escapedText===$s(t)&&l.push(C)}else r===2&&l.push(E.argument.literal);return}if(E.moduleSpecifier.kind!==11)return;if(E.kind===278){E.exportClause&&$p(E.exportClause)&&m(E.exportClause);return}let{name:S,namedBindings:A}=E.importClause||{name:void 0,namedBindings:void 0};if(A)switch(A.kind){case 274:h(A.name);break;case 275:(r===0||r===1)&&m(A);break;default:x.assertNever(A)}if(S&&(r===1||r===2)&&(!o||S.escapedText===D3(t))){let C=i.getSymbolAtLocation(S);d(S,C)}}function h(E){r===2&&(!o||v(E.escapedText))&&d(E,i.getSymbolAtLocation(E))}function m(E){if(E)for(let S of E.elements){let{name:A,propertyName:C}=S;if(v((C||A).escapedText))if(C)l.push(C),(!o||A.escapedText===t.escapedName)&&d(A,i.getSymbolAtLocation(A));else{let R=S.kind===281&&S.propertyName?i.getExportSpecifierLocalTargetSymbol(S):i.getSymbolAtLocation(A);d(A,R)}}}function v(E){return E===t.escapedName||r!==0&&E==="default"}}function PXe(e,t,r){let i=r.getSymbolAtLocation(t);return!!zNe(e,o=>{if(!xl(o))return;let{exportClause:s,moduleSpecifier:l}=o;return!l&&s&&$p(s)&&s.elements.some(d=>r.getExportSpecifierLocalTargetSymbol(d)===i)})}function FNe(e,t,r){var i;let o=[],s=e.getTypeChecker();for(let l of t){let d=r.valueDeclaration;if(d?.kind===312){for(let p of l.referencedFiles)e.getSourceFileFromReference(l,p)===d&&o.push({kind:"reference",referencingFile:l,ref:p});for(let p of l.typeReferenceDirectives){let h=(i=e.getResolvedTypeReferenceDirectives().get(p.fileName,p.resolutionMode||l.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;h!==void 0&&h.resolvedFileName===d.fileName&&o.push({kind:"reference",referencingFile:l,ref:p})}}BNe(l,(p,h)=>{s.getSymbolAtLocation(h)===r&&o.push(xs(p)?{kind:"implicit",literal:h,referencingFile:l}:{kind:"import",literal:h})})}return o}function MXe(e,t,r){let i=new Map;for(let o of e)r&&r.throwIfCancellationRequested(),BNe(o,(s,l)=>{let d=t.getSymbolAtLocation(l);if(d){let p=na(d).toString(),h=i.get(p);h||i.set(p,h=[]),h.push(s)}});return i}function zNe(e,t){return an(e.kind===312?e.statements:e.body.statements,r=>t(r)||MY(r)&&an(r.body&&r.body.statements,t))}function BNe(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let r of e.imports)t(yC(r),r);else zNe(e,r=>{switch(r.kind){case 278:case 272:{let i=r;i.moduleSpecifier&&ca(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=r;Ape(i)&&t(i,i.moduleReference.expression);break}}})}function GNe(e,t,r,i){return i?o():o()||s();function o(){var p;let{parent:h}=e,m=h.parent;if(t.exportSymbol)return h.kind===211?(p=t.declarations)!=null&&p.some(S=>S===h)&&Zn(m)?E(m,!1):void 0:l(t.exportSymbol,d(h));{let S=kXe(h,e);if(S&&Wr(S,32))return Nc(S)&&S.moduleReference===e?i?void 0:{kind:0,symbol:r.getSymbolAtLocation(S.name)}:l(t,d(S));if(V_(h))return l(t,0);if(dl(h))return v(h);if(dl(m))return v(m);if(Zn(h))return E(h,!0);if(Zn(m))return E(m,!0);if($S(h)||Dj(h))return l(t,0)}function v(S){if(!S.symbol.parent)return;let A=S.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:S.symbol.parent,exportKind:A}}}function E(S,A){let C;switch(hl(S)){case 1:C=0;break;case 2:C=2;break;default:return}let R=A?r.getSymbolAtLocation(EV(Fo(S.left,ds))):t;return R&&l(R,C)}}function s(){if(!OXe(e))return;let h=r.getImmediateAliasedSymbol(t);if(!h||(h=wXe(h,r),h.escapedName==="export="&&(h=LXe(h,r),h===void 0)))return;let m=D3(h);if(m===void 0||m==="default"||m===t.escapedName)return{kind:0,symbol:h}}function l(p,h){let m=Tpe(p,h,r);return m&&{kind:1,symbol:p,exportInfo:m}}function d(p){return Wr(p,2048)?1:0}}function LXe(e,t){var r,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let o=x.checkDefined(e.valueDeclaration);if(dl(o))return(r=Vr(o.expression,Hm))==null?void 0:r.symbol;if(Zn(o))return(i=Vr(o.right,Hm))==null?void 0:i.symbol;if(Li(o))return o.symbol}function kXe(e,t){let r=yi(e)?e:Na(e)?B1(e):void 0;return r?e.name!==t||u0(r.parent)?void 0:cl(r.parent.parent)?r.parent.parent:void 0:e}function OXe(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&Ape(t);case 276:return!t.propertyName;case 273:case 274:return x.assert(t.name===e),!0;case 208:return Jn(e)&&jE(t.parent.parent);default:return!1}}function Tpe(e,t,r){let i=e.parent;if(!i)return;let o=r.getMergedSymbol(i);return Uk(o)?{exportingModuleSymbol:o,exportKind:t}:void 0}function wXe(e,t){if(e.declarations)for(let r of e.declarations){if(Ed(r)&&!r.propertyName&&!r.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(r)||e;if(Er(r)&&Eh(r.expression)&&!Ci(r.name))return t.getSymbolAtLocation(r);if(xu(r)&&Zn(r.parent.parent)&&hl(r.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(r.name)}return e}function WXe(e,t){return t.getMergedSymbol(Uz(e).symbol)}function Uz(e){if(e.kind===213)return e.getSourceFile();let{parent:t}=e;return t.kind===312?t:(x.assert(t.kind===268),Fo(t.parent,MY))}function MY(e){return e.kind===267&&e.name.kind===11}function Ape(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Ipe,xpe,FXe=pt({"src/services/importTracker.ts"(){"use strict";Hr(),Ipe=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Ipe||{}),xpe=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(xpe||{})}});function Mh(e,t=1){return{kind:t,node:e.name||e,context:zXe(e)}}function Rpe(e){return e&&e.kind===void 0}function zXe(e){if(bd(e))return pT(e);if(e.parent){if(!bd(e.parent)&&!dl(e.parent)){if(Jn(e)){let r=Zn(e.parent)?e.parent:ds(e.parent)&&Zn(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(r&&hl(r)!==0)return pT(r)}if(n_(e.parent)||l0(e.parent))return e.parent.parent;if(KS(e.parent)||s0(e.parent)||rC(e.parent))return e.parent;if(Ga(e)){let r=xL(e);if(r){let i=Rn(r,o=>bd(o)||Di(o)||J1(o));return bd(i)?pT(i):i}}let t=Rn(e,Pa);return t?pT(t.parent):void 0}if(e.parent.name===e||ll(e.parent)||dl(e.parent)||(RA(e.parent)||Na(e.parent))&&e.parent.propertyName===e||e.kind===90&&Wr(e.parent,2080))return pT(e.parent)}}function pT(e){if(e)switch(e.kind){case 260:return!yc(e.parent)||e.parent.declarations.length!==1?e:cl(e.parent.parent)?e.parent.parent:H1(e.parent.parent)?pT(e.parent.parent):e.parent;case 208:return pT(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 Cc(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return pv(e.parent)?pT(Rn(e.parent,t=>Zn(t)||H1(t))):e;case 255:return{start:Dr(e.getChildren(e.getSourceFile()),t=>t.kind===109),end:e.caseBlock};default:return e}}function Dpe(e,t,r){if(!r)return;let i=Rpe(r)?qz(r.start,t,r.end):qz(r,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function BXe(e,t,r,i,o){let s=pu(i,o),l={use:1},d=zI.getReferencedSymbolsForNode(o,s,e,r,t,l),p=e.getTypeChecker(),h=zI.getAdjustedNode(s,l),m=GXe(h)?p.getSymbolAtLocation(h):void 0;return!d||!d.length?void 0:Fi(d,({definition:v,references:E})=>v&&{definition:p.runWithCancellationToken(t,S=>UXe(v,S,s)),references:E.map(S=>qXe(S,m))})}function GXe(e){return e.kind===90||!!bC(e)||LL(e)||e.kind===137&&ll(e.parent)}function VXe(e,t,r,i,o){let s=pu(i,o),l,d=VNe(e,t,r,s,o);if(s.parent.kind===211||s.parent.kind===208||s.parent.kind===212||s.kind===108)l=d&&[...d];else if(d){let h=mM(d),m=new Map;for(;!h.isEmpty();){let v=h.dequeue();if(!Jf(m,Fa(v.node)))continue;l=pn(l,v);let E=VNe(e,t,r,v.node,v.node.pos);E&&h.enqueue(...E)}}let p=e.getTypeChecker();return nn(l,h=>KXe(h,p))}function VNe(e,t,r,i,o){if(i.kind===312)return;let s=e.getTypeChecker();if(i.parent.kind===304){let l=[];return zI.getReferenceEntriesForShorthandPropertyAssignment(i,s,d=>l.push(Mh(d))),l}else if(i.kind===108||cu(i.parent)){let l=s.getSymbolAtLocation(i);return l.valueDeclaration&&[Mh(l.valueDeclaration)]}else return jNe(o,i,e,r,t,{implementations:!0,use:1})}function jXe(e,t,r,i,o,s,l){return nn(UNe(zI.getReferencedSymbolsForNode(o,i,e,r,t,s)),d=>l(d,i,e.getTypeChecker()))}function jNe(e,t,r,i,o,s={},l=new Set(i.map(d=>d.fileName))){return UNe(zI.getReferencedSymbolsForNode(e,t,r,i,o,s,l))}function UNe(e){return e&&ta(e,t=>t.references)}function UXe(e,t,r){let i=(()=>{switch(e.type){case 0:{let{symbol:m}=e,{displayParts:v,kind:E}=HNe(m,t,r),S=v.map(R=>R.text).join(""),A=m.declarations&&Ac(m.declarations),C=A?mo(A)||A:r;return{...Hz(C),name:S,kind:E,displayParts:v,context:pT(A)}}case 1:{let{node:m}=e;return{...Hz(m),name:m.text,kind:"label",displayParts:[Ru(m.text,17)]}}case 2:{let{node:m}=e,v=qo(m.kind);return{...Hz(m),name:v,kind:"keyword",displayParts:[{text:v,kind:"keyword"}]}}case 3:{let{node:m}=e,v=t.getSymbolAtLocation(m),E=v&&gv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,v,m.getSourceFile(),sT(m),m).displayParts||[Pp("this")];return{...Hz(m),name:"this",kind:"var",displayParts:E}}case 4:{let{node:m}=e;return{...Hz(m),name:m.text,kind:"var",displayParts:[Ru(Vl(m),8)]}}case 5:return{textSpan:yy(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[Ru(`"${e.reference.fileName}"`,8)]};default:return x.assertNever(e)}})(),{sourceFile:o,textSpan:s,name:l,kind:d,displayParts:p,context:h}=i;return{containerKind:"",containerName:"",fileName:o.fileName,kind:d,name:l,textSpan:s,displayParts:p,...Dpe(s,o,h)}}function Hz(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:qz(Pa(e)?e.expression:e,t)}}function HNe(e,t,r){let i=zI.getIntersectingMeaningFromDeclarations(r,e),o=e.declarations&&Ac(e.declarations)||r,{displayParts:s,symbolKind:l}=gv.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,o.getSourceFile(),o,o,i);return{displayParts:s,kind:l}}function HXe(e,t,r,i,o){return{...LY(e),...i&&JXe(e,t,r,o)}}function qXe(e,t){let r=qNe(e);return t?{...r,isDefinition:e.kind!==0&&JNe(e.node,t)}:r}function qNe(e){let t=LY(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:r,node:i}=e;return{...t,isWriteAccess:Npe(i),isInString:r===2?!0:void 0}}function LY(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),r=qz(e.node,t);return{textSpan:r,fileName:t.fileName,...Dpe(r,t,e.context)}}}function JXe(e,t,r,i){if(e.kind!==0&&Me(t)){let{node:o,kind:s}=e,l=o.parent,d=t.text,p=xu(l);if(p||Jk(l)&&l.name===o&&l.dotDotDotToken===void 0){let h={prefixText:d+": "},m={suffixText:": "+d};if(s===3)return h;if(s===4)return m;if(p){let v=l.parent;return fa(v)&&Zn(v.parent)&&Eh(v.parent.left)?h:m}else return h}else if(Iu(l)&&!l.propertyName){let h=Ed(t.parent)?r.getExportSpecifierLocalTargetSymbol(t.parent):r.getSymbolAtLocation(t);return To(h.declarations,l)?{prefixText:d+" as "}:ef}else if(Ed(l)&&!l.propertyName)return t===e.node||r.getSymbolAtLocation(t)===r.getSymbolAtLocation(e.node)?{prefixText:d+" as "}:{suffixText:" as "+d}}if(e.kind!==0&&Bu(e.node)&&ds(e.node.parent)){let o=dJ(i);return{prefixText:o,suffixText:o}}return ef}function KXe(e,t){let r=LY(e);if(e.kind!==0){let{node:i}=e;return{...r,...XXe(i,t)}}else return{...r,kind:"",displayParts:[]}}function XXe(e,t){let r=t.getSymbolAtLocation(bd(e)&&e.name?e.name:e);return r?HNe(r,t,e):e.kind===210?{kind:"interface",displayParts:[Ad(21),Pp("object literal"),Ad(22)]}:e.kind===231?{kind:"local class",displayParts:[Ad(21),Pp("anonymous local class"),Ad(22)]}:{kind:E0(e),displayParts:[]}}function YXe(e){let t=LY(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let r=Npe(e.node),i={textSpan:t.textSpan,kind:r?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function qz(e,t,r){let i=e.getStart(t),o=(r||e).getEnd();return Ga(e)&&o-i>2&&(x.assert(r===void 0),i+=1,o-=1),r?.kind===269&&(o=r.getFullStart()),Gl(i,o)}function Cpe(e){return e.kind===0?e.textSpan:qz(e.node,e.node.getSourceFile())}function Npe(e){let t=bC(e);return!!t&&$Xe(t)||e.kind===90||VA(e)}function JNe(e,t){var r;if(!t)return!1;let i=bC(e)||(e.kind===90?e.parent:LL(e)||e.kind===137&&ll(e.parent)?e.parent.parent:void 0),o=i&&Zn(i)?i.left:void 0;return!!(i&&((r=t.declarations)!=null&&r.some(s=>s===i||s===o)))}function $Xe(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!pv(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||u0(e.parent);case 173:case 171:case 355:case 348:return!1;default:return x.failBadSyntaxKind(e)}}var Ppe,Mpe,Lpe,zI,QXe=pt({"src/services/findAllReferences.ts"(){"use strict";Hr(),kpe(),Ppe=(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))(Ppe||{}),Mpe=(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))(Mpe||{}),Lpe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(Lpe||{}),(e=>{function t(ke,nt,tt,yt,re,Ce={},et=new Set(yt.map(z=>z.fileName))){var z,Je;if(nt=r(nt,Ce),Li(nt)){let Zt=LR.getReferenceAtPosition(nt,ke,tt);if(!Zt?.file)return;let V=tt.getTypeChecker().getMergedSymbol(Zt.file.symbol);if(V)return h(tt,V,!1,yt,et);let Re=tt.getFileIncludeReasons();return Re?[{definition:{type:5,reference:Zt.reference,file:nt},references:o(Zt.file,Re,tt)||je}]:void 0}if(!Ce.implementations){let Zt=v(nt,yt,re);if(Zt)return Zt}let _t=tt.getTypeChecker(),ze=_t.getSymbolAtLocation(ll(nt)&&nt.parent.name||nt);if(!ze){if(!Ce.implementations&&Ga(nt)){if(C3(nt)){let Zt=tt.getFileIncludeReasons(),V=(Je=(z=tt.getResolvedModuleFromModuleSpecifier(nt))==null?void 0:z.resolvedModule)==null?void 0:Je.resolvedFileName,Re=V?tt.getSourceFile(V):void 0;if(Re)return[{definition:{type:4,node:nt},references:o(Re,Zt,tt)||je}]}return Nr(nt,yt,_t,re)}return}if(ze.escapedName==="export=")return h(tt,ze.parent,!1,yt,et);let it=l(ze,tt,yt,re,Ce,et);if(it&&!(ze.flags&33554432))return it;let Ct=s(nt,ze,_t),on=Ct&&l(Ct,tt,yt,re,Ce,et),Qt=E(ze,nt,yt,et,_t,re,Ce);return d(tt,it,Qt,on)}e.getReferencedSymbolsForNode=t;function r(ke,nt){return nt.use===1?ke=Xq(ke):nt.use===2&&(ke=g3(ke)),ke}e.getAdjustedNode=r;function i(ke,nt,tt,yt=new Set(tt.map(re=>re.fileName))){var re,Ce;let et=(re=nt.getSourceFile(ke))==null?void 0:re.symbol;if(et)return((Ce=h(nt,et,!1,tt,yt)[0])==null?void 0:Ce.references)||je;let z=nt.getFileIncludeReasons(),Je=nt.getSourceFile(ke);return Je&&z&&o(Je,z,nt)||je}e.getReferencesForFileName=i;function o(ke,nt,tt){let yt,re=nt.get(ke.path)||je;for(let Ce of re)if(jb(Ce)){let et=tt.getSourceFileByPath(Ce.file),z=jN(tt,Ce);aR(z)&&(yt=pn(yt,{kind:0,fileName:et.fileName,textSpan:yy(z)}))}return yt}function s(ke,nt,tt){if(ke.parent&&D2(ke.parent)){let yt=tt.getAliasedSymbol(nt),re=tt.getMergedSymbol(yt);if(yt!==re)return re}}function l(ke,nt,tt,yt,re,Ce){let et=ke.flags&1536&&ke.declarations&&Dr(ke.declarations,Li);if(!et)return;let z=ke.exports.get("export="),Je=h(nt,ke,!!z,tt,Ce);if(!z||!Ce.has(et.fileName))return Je;let _t=nt.getTypeChecker();return ke=Kc(z,_t),d(nt,Je,E(ke,void 0,tt,Ce,_t,yt,re))}function d(ke,...nt){let tt;for(let yt of nt)if(!(!yt||!yt.length)){if(!tt){tt=yt;continue}for(let re of yt){if(!re.definition||re.definition.type!==0){tt.push(re);continue}let Ce=re.definition.symbol,et=Tl(tt,Je=>!!Je.definition&&Je.definition.type===0&&Je.definition.symbol===Ce);if(et===-1){tt.push(re);continue}let z=tt[et];tt[et]={definition:z.definition,references:z.references.concat(re.references).sort((Je,_t)=>{let ze=p(ke,Je),it=p(ke,_t);if(ze!==it)return Ms(ze,it);let Ct=Cpe(Je),on=Cpe(_t);return Ct.start!==on.start?Ms(Ct.start,on.start):Ms(Ct.length,on.length)})}}}return tt}function p(ke,nt){let tt=nt.kind===0?ke.getSourceFile(nt.fileName):nt.node.getSourceFile();return ke.getSourceFiles().indexOf(tt)}function h(ke,nt,tt,yt,re){x.assert(!!nt.valueDeclaration);let Ce=Fi(FNe(ke,yt,nt),z=>{if(z.kind==="import"){let Je=z.literal.parent;if(uy(Je)){let _t=Fo(Je.parent,Dh);if(tt&&!_t.qualifier)return}return Mh(z.literal)}else if(z.kind==="implicit"){let Je=z.literal.text!==ay&&EN(z.referencingFile,_t=>_t.transformFlags&2?Ch(_t)||KS(_t)||c0(_t)?_t:void 0:"skip")||z.referencingFile.statements[0]||z.referencingFile;return Mh(Je)}else return{kind:0,fileName:z.referencingFile.fileName,textSpan:yy(z.ref)}});if(nt.declarations)for(let z of nt.declarations)switch(z.kind){case 312:break;case 267:re.has(z.getSourceFile().fileName)&&Ce.push(Mh(z.name));break;default:x.assert(!!(nt.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let et=nt.exports.get("export=");if(et?.declarations)for(let z of et.declarations){let Je=z.getSourceFile();if(re.has(Je.fileName)){let _t=Zn(z)&&Er(z.left)?z.left.expression:dl(z)?x.checkDefined(Ya(z,95,Je)):mo(z)||z;Ce.push(Mh(_t))}}return Ce.length?[{definition:{type:0,symbol:nt},references:Ce}]:je}function m(ke){return ke.kind===148&&jS(ke.parent)&&ke.parent.operator===148}function v(ke,nt,tt){if($N(ke.kind))return ke.kind===116&&cI(ke.parent)||ke.kind===148&&!m(ke)?void 0:Ae(nt,ke.kind,tt,ke.kind===148?m:void 0);if(ex(ke.parent)&&ke.parent.name===ke)return pe(nt,tt);if(rI(ke)&&nl(ke.parent))return[{definition:{type:2,node:ke},references:[Mh(ke)]}];if(wk(ke)){let yt=u3(ke.parent,ke.text);return yt&&ce(yt.parent,yt)}else if(Bq(ke))return ce(ke.parent,ke);if(mR(ke))return Gn(ke,nt,tt);if(ke.kind===108)return gi(ke)}function E(ke,nt,tt,yt,re,Ce,et){let z=nt&&C(ke,nt,re,!Tn(et))||ke,Je=nt?ni(nt,z):7,_t=[],ze=new G(tt,yt,nt?A(nt):0,re,Ce,Je,et,_t),it=!Tn(et)||!z.declarations?void 0:Dr(z.declarations,Ed);if(it)ft(it.name,z,it,ze.createSearch(nt,ke,void 0),ze,!0,!0);else if(nt&&nt.kind===90&&z.escapedName==="default"&&z.parent)st(nt,z,ze),U(nt,z,{exportingModuleSymbol:z.parent,exportKind:1},ze);else{let Ct=ze.createSearch(nt,z,void 0,{allSearchSymbols:nt?Jt(z,nt,re,et.use===2,!!et.providePrefixAndSuffixTextForRename,!!et.implementations):[z]});S(z,ze,Ct)}return _t}function S(ke,nt,tt){let yt=de(ke);if(yt)_e(yt,yt.getSourceFile(),tt,nt,!(Li(yt)&&!To(nt.sourceFiles,yt)));else for(let re of nt.sourceFiles)nt.cancellationToken.throwIfCancellationRequested(),W(re,tt,nt)}function A(ke){switch(ke.kind){case 176:case 137:return 1;case 80:if(Kr(ke.parent))return x.assert(ke.parent.name===ke),2;default:return 0}}function C(ke,nt,tt,yt){let{parent:re}=nt;return Ed(re)&&yt?he(nt,ke,re,tt):ml(ke.declarations,Ce=>{if(!Ce.parent){if(ke.flags&33554432)return;x.fail(`Unexpected symbol at ${x.formatSyntaxKind(nt.kind)}: ${x.formatSymbol(ke)}`)}return ju(Ce.parent)&&dy(Ce.parent.parent)?tt.getPropertyOfType(tt.getTypeFromTypeNode(Ce.parent.parent),ke.name):void 0})}let R;(ke=>{ke[ke.None=0]="None",ke[ke.Constructor=1]="Constructor",ke[ke.Class=2]="Class"})(R||(R={}));function L(ke){if(!(ke.flags&33555968))return;let nt=ke.declarations&&Dr(ke.declarations,tt=>!Li(tt)&&!Il(tt));return nt&&nt.symbol}class G{constructor(nt,tt,yt,re,Ce,et,z,Je){this.sourceFiles=nt,this.sourceFilesSet=tt,this.specialSearchKind=yt,this.checker=re,this.cancellationToken=Ce,this.searchMeaning=et,this.options=z,this.result=Je,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=DI(),this.markSeenReExportRHS=DI(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(nt){return this.sourceFilesSet.has(nt.fileName)}getImportSearches(nt,tt){return this.importTracker||(this.importTracker=Spe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(nt,tt,this.options.use===2)}createSearch(nt,tt,yt,re={}){let{text:Ce=Sf($s(Ex(tt)||L(tt)||tt)),allSearchSymbols:et=[tt]}=re,z=Hs(Ce),Je=this.options.implementations&&nt?ln(nt,tt,this.checker):void 0;return{symbol:tt,comingFrom:yt,text:Ce,escapedText:z,parents:Je,allSearchSymbols:et,includes:_t=>To(et,_t)}}referenceAdder(nt){let tt=na(nt),yt=this.symbolIdToReferences[tt];return yt||(yt=this.symbolIdToReferences[tt]=[],this.result.push({definition:{type:0,symbol:nt},references:yt})),(re,Ce)=>yt.push(Mh(re,Ce))}addStringOrCommentReference(nt,tt){this.result.push({definition:void 0,references:[{kind:0,fileName:nt,textSpan:tt}]})}markSearchedSymbols(nt,tt){let yt=Fa(nt),re=this.sourceFileToSeenSymbols[yt]||(this.sourceFileToSeenSymbols[yt]=new Set),Ce=!1;for(let et of tt)Ce=db(re,na(et))||Ce;return Ce}}function U(ke,nt,tt,yt){let{importSearches:re,singleReferences:Ce,indirectUsers:et}=yt.getImportSearches(nt,tt);if(Ce.length){let z=yt.referenceAdder(nt);for(let Je of Ce)F(Je,yt)&&z(Je)}for(let[z,Je]of re)Oe(z.getSourceFile(),yt.createSearch(z,Je,1),yt);if(et.length){let z;switch(tt.exportKind){case 0:z=yt.createSearch(ke,nt,1);break;case 1:z=yt.options.use===2?void 0:yt.createSearch(ke,nt,1,{text:"default"});break;case 2:break}if(z)for(let Je of et)W(Je,z,yt)}}function K(ke,nt,tt,yt,re,Ce,et,z){let Je=Spe(ke,new Set(ke.map(Ct=>Ct.fileName)),nt,tt),{importSearches:_t,indirectUsers:ze,singleReferences:it}=Je(yt,{exportKind:et?1:0,exportingModuleSymbol:re},!1);for(let[Ct]of _t)z(Ct);for(let Ct of it)Me(Ct)&&Dh(Ct.parent)&&z(Ct);for(let Ct of ze)for(let on of le(Ct,et?"default":Ce)){let Qt=nt.getSymbolAtLocation(on),Zt=ct(Qt?.declarations,V=>!!Vr(V,dl));Me(on)&&!RA(on.parent)&&(Qt===yt||Zt)&&z(on)}}e.eachExportReference=K;function F(ke,nt){return be(ke,nt)?nt.options.use!==2?!0:Me(ke)?!(RA(ke.parent)&&ke.escapedText==="default"):!1:!1}function oe(ke,nt){if(ke.declarations)for(let tt of ke.declarations){let yt=tt.getSourceFile();Oe(yt,nt.createSearch(tt,ke,0),nt,nt.includesSourceFile(yt))}}function W(ke,nt,tt){WK(ke).get(nt.escapedText)!==void 0&&Oe(ke,nt,tt)}function $(ke,nt){return pv(ke.parent.parent)?nt.getPropertySymbolOfDestructuringAssignment(ke):void 0}function de(ke){let{declarations:nt,flags:tt,parent:yt,valueDeclaration:re}=ke;if(re&&(re.kind===218||re.kind===231))return re;if(!nt)return;if(tt&8196){let z=Dr(nt,Je=>zu(Je,2)||kd(Je));return z?Db(z,263):void 0}if(nt.some(Jk))return;let Ce=yt&&!(ke.flags&262144);if(Ce&&!(Uk(yt)&&!yt.globalExports))return;let et;for(let z of nt){let Je=sT(z);if(et&&et!==Je||!Je||Je.kind===312&&!sp(Je))return;if(et=Je,us(et)){let _t;for(;_t=F9(et);)et=_t}}return Ce?et.getSourceFile():et}function fe(ke,nt,tt,yt=tt){return q(ke,nt,tt,()=>!0,yt)||!1}e.isSymbolReferencedInFile=fe;function q(ke,nt,tt,yt,re=tt){let Ce=wu(ke.parent,ke.parent.parent)?Sa(nt.getSymbolsOfParameterPropertyDeclaration(ke.parent,ke.text)):nt.getSymbolAtLocation(ke);if(Ce)for(let et of le(tt,Ce.name,re)){if(!Me(et)||et===ke||et.escapedText!==ke.escapedText)continue;let z=nt.getSymbolAtLocation(et);if(z===Ce||nt.getShorthandAssignmentValueSymbol(et.parent)===Ce||Ed(et.parent)&&he(et,z,et.parent,nt)===Ce){let Je=yt(et);if(Je)return Je}}}e.eachSymbolReferenceInFile=q;function H(ke,nt){return Cr(le(nt,ke),re=>!!bC(re)).reduce((re,Ce)=>{let et=yt(Ce);return!ct(re.declarationNames)||et===re.depth?(re.declarationNames.push(Ce),re.depth=et):et<re.depth&&(re.declarationNames=[Ce],re.depth=et),re},{depth:1/0,declarationNames:[]}).declarationNames;function yt(re){let Ce=0;for(;re;)re=sT(re),Ce++;return Ce}}e.getTopMostDeclarationNamesInFile=H;function ee(ke,nt,tt,yt){if(!ke.name||!Me(ke.name))return!1;let re=x.checkDefined(tt.getSymbolAtLocation(ke.name));for(let Ce of nt)for(let et of le(Ce,re.name)){if(!Me(et)||et===ke.name||et.escapedText!==ke.name.escapedText)continue;let z=d3(et),Je=Bo(z.parent)&&z.parent.expression===z?z.parent:void 0,_t=tt.getSymbolAtLocation(et);if(_t&&tt.getRootSymbols(_t).some(ze=>ze===re)&&yt(et,Je))return!0}return!1}e.someSignatureUsage=ee;function le(ke,nt,tt=ke){return Fi(Ee(ke,nt,tt),yt=>{let re=pu(ke,yt);return re===ke?void 0:re})}function Ee(ke,nt,tt=ke){let yt=[];if(!nt||!nt.length)return yt;let re=ke.text,Ce=re.length,et=nt.length,z=re.indexOf(nt,tt.pos);for(;z>=0&&!(z>tt.end);){let Je=z+et;(z===0||!_b(re.charCodeAt(z-1),99))&&(Je===Ce||!_b(re.charCodeAt(Je),99))&&yt.push(z),z=re.indexOf(nt,z+et+1)}return yt}function ce(ke,nt){let tt=ke.getSourceFile(),yt=nt.text,re=Fi(le(tt,yt,ke),Ce=>Ce===nt||wk(Ce)&&u3(Ce,yt)===nt?Mh(Ce):void 0);return[{definition:{type:1,node:nt},references:re}]}function Z(ke,nt){switch(ke.kind){case 81:if(Ob(ke.parent))return!0;case 80:return ke.text.length===nt.length;case 15:case 11:{let tt=ke;return(p3(tt)||Uq(ke)||Ose(ke)||Bo(ke.parent)&&CS(ke.parent)&&ke.parent.arguments[1]===ke)&&tt.text.length===nt.length}case 9:return p3(ke)&&ke.text.length===nt.length;case 90:return nt.length===7;default:return!1}}function pe(ke,nt){let tt=ta(ke,yt=>(nt.throwIfCancellationRequested(),Fi(le(yt,"meta",yt),re=>{let Ce=re.parent;if(ex(Ce))return Mh(Ce)})));return tt.length?[{definition:{type:2,node:tt[0].node},references:tt}]:void 0}function Ae(ke,nt,tt,yt){let re=ta(ke,Ce=>(tt.throwIfCancellationRequested(),Fi(le(Ce,qo(nt),Ce),et=>{if(et.kind===nt&&(!yt||yt(et)))return Mh(et)})));return re.length?[{definition:{type:2,node:re[0].node},references:re}]:void 0}function Oe(ke,nt,tt,yt=!0){return tt.cancellationToken.throwIfCancellationRequested(),_e(ke,ke,nt,tt,yt)}function _e(ke,nt,tt,yt,re){if(yt.markSearchedSymbols(nt,tt.allSearchSymbols))for(let Ce of Ee(nt,tt.text,ke))Te(nt,Ce,tt,yt,re)}function be(ke,nt){return!!(aT(ke)&nt.searchMeaning)}function Te(ke,nt,tt,yt,re){let Ce=pu(ke,nt);if(!Z(Ce,tt.text)){!yt.options.implementations&&(yt.options.findInStrings&&RI(ke,nt)||yt.options.findInComments&&Xse(ke,nt))&&yt.addStringOrCommentReference(ke.fileName,qc(nt,tt.text.length));return}if(!be(Ce,yt))return;let et=yt.checker.getSymbolAtLocation(Ce);if(!et)return;let z=Ce.parent;if(Iu(z)&&z.propertyName===Ce)return;if(Ed(z)){x.assert(Ce.kind===80),ft(Ce,et,z,tt,yt,re);return}if(iC(z)&&z.isNameFirst&&z.typeExpression&&YS(z.typeExpression.type)&&z.typeExpression.type.jsDocPropertyTags&&yn(z.typeExpression.type.jsDocPropertyTags)){De(z.typeExpression.type.jsDocPropertyTags,Ce,tt,yt);return}let Je=qr(tt,et,Ce,yt);if(!Je){Dt(et,tt,yt);return}switch(yt.specialSearchKind){case 0:re&&st(Ce,Je,yt);break;case 1:Ge(Ce,ke,tt,yt);break;case 2:ot(Ce,tt,yt);break;default:x.assertNever(yt.specialSearchKind)}Jn(Ce)&&Na(Ce.parent)&&jE(Ce.parent.parent.parent)&&(et=Ce.parent.symbol,!et)||Ke(Ce,et,tt,yt)}function De(ke,nt,tt,yt){let re=yt.referenceAdder(tt.symbol);st(nt,tt.symbol,yt),an(ke,Ce=>{$d(Ce.name)&&re(Ce.name.left)})}function ft(ke,nt,tt,yt,re,Ce,et){x.assert(!et||!!re.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:z,propertyName:Je,name:_t}=tt,ze=z.parent,it=he(ke,nt,tt,re.checker);if(!et&&!yt.includes(it))return;if(Je?ke===Je?(ze.moduleSpecifier||Ct(),Ce&&re.options.use!==2&&re.markSeenReExportRHS(_t)&&st(_t,x.checkDefined(tt.symbol),re)):re.markSeenReExportRHS(ke)&&Ct():re.options.use===2&&_t.escapedText==="default"||Ct(),!Tn(re.options)||et){let Qt=ke.escapedText==="default"||tt.name.escapedText==="default"?1:0,Zt=x.checkDefined(tt.symbol),V=Tpe(Zt,Qt,re.checker);V&&U(ke,Zt,V,re)}if(yt.comingFrom!==1&&ze.moduleSpecifier&&!Je&&!Tn(re.options)){let on=re.checker.getExportSpecifierLocalTargetSymbol(tt);on&&oe(on,re)}function Ct(){Ce&&st(ke,it,re)}}function he(ke,nt,tt,yt){return Le(ke,tt)&&yt.getExportSpecifierLocalTargetSymbol(tt)||nt}function Le(ke,nt){let{parent:tt,propertyName:yt,name:re}=nt;return x.assert(yt===ke||re===ke),yt?yt===ke:!tt.parent.moduleSpecifier}function Ke(ke,nt,tt,yt){let re=GNe(ke,nt,yt.checker,tt.comingFrom===1);if(!re)return;let{symbol:Ce}=re;re.kind===0?Tn(yt.options)||oe(Ce,yt):U(ke,Ce,re.exportInfo,yt)}function Dt({flags:ke,valueDeclaration:nt},tt,yt){let re=yt.checker.getShorthandAssignmentValueSymbol(nt),Ce=nt&&mo(nt);!(ke&33554432)&&Ce&&tt.includes(re)&&st(Ce,re,yt)}function st(ke,nt,tt){let{kind:yt,symbol:re}="kind"in nt?nt:{kind:void 0,symbol:nt};if(tt.options.use===2&&ke.kind===90)return;let Ce=tt.referenceAdder(re);tt.options.implementations?zt(ke,Ce,tt):Ce(ke,yt)}function Ge(ke,nt,tt,yt){KN(ke)&&st(ke,tt.symbol,yt);let re=()=>yt.referenceAdder(tt.symbol);if(Kr(ke.parent))x.assert(ke.kind===90||ke.parent.name===ke),Vt(tt.symbol,nt,re());else{let Ce=ba(ke);Ce&&(gn(Ce,re()),en(Ce,yt))}}function ot(ke,nt,tt){st(ke,nt.symbol,tt);let yt=ke.parent;if(tt.options.use===2||!Kr(yt))return;x.assert(yt.name===ke);let re=tt.referenceAdder(nt.symbol);for(let Ce of yt.members)CA(Ce)&&zo(Ce)&&Ce.body&&Ce.body.forEachChild(function et(z){z.kind===110?re(z):!Lo(z)&&!Kr(z)&&z.forEachChild(et)})}function Vt(ke,nt,tt){let yt=jt(ke);if(yt&&yt.declarations)for(let re of yt.declarations){let Ce=Ya(re,137,nt);x.assert(re.kind===176&&!!Ce),tt(Ce)}ke.exports&&ke.exports.forEach(re=>{let Ce=re.valueDeclaration;if(Ce&&Ce.kind===174){let et=Ce.body;et&&Jo(et,110,z=>{KN(z)&&tt(z)})}})}function jt(ke){return ke.members&&ke.members.get("__constructor")}function gn(ke,nt){let tt=jt(ke.symbol);if(tt&&tt.declarations)for(let yt of tt.declarations){x.assert(yt.kind===176);let re=yt.body;re&&Jo(re,108,Ce=>{Wq(Ce)&&nt(Ce)})}}function On(ke){return!!jt(ke.symbol)}function en(ke,nt){if(On(ke))return;let tt=ke.symbol,yt=nt.createSearch(void 0,tt,void 0);S(tt,nt,yt)}function zt(ke,nt,tt){if(ng(ke)&&ki(ke.parent)){nt(ke);return}if(ke.kind!==80)return;ke.parent.kind===304&&so(ke,tt.checker,nt);let yt=Wt(ke);if(yt){nt(yt);return}let re=Rn(ke,z=>!$d(z.parent)&&!xi(z.parent)&&!bS(z.parent)),Ce=re.parent;if(K8(Ce)&&Ce.type===re&&tt.markSeenContainingTypeReference(Ce))if($v(Ce))et(Ce.initializer);else if(Lo(Ce)&&Ce.body){let z=Ce.body;z.kind===241?GE(z,Je=>{Je.expression&&et(Je.expression)}):et(z)}else ES(Ce)&&et(Ce.expression);function et(z){ei(z)&&nt(z)}}function Wt(ke){return Me(ke)||Er(ke)?Wt(ke.parent):sv(ke)?Vr(ke.parent.parent,hm(Kr,Gd)):void 0}function ei(ke){switch(ke.kind){case 217:return ei(ke.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Ki(ke,nt,tt,yt){if(ke===nt)return!0;let re=na(ke)+","+na(nt),Ce=tt.get(re);if(Ce!==void 0)return Ce;tt.set(re,!1);let et=!!ke.declarations&&ke.declarations.some(z=>EC(z).some(Je=>{let _t=yt.getTypeAtLocation(Je);return!!_t&&!!_t.symbol&&Ki(_t.symbol,nt,tt,yt)}));return tt.set(re,et),et}function gi(ke){let nt=pL(ke,!1);if(!nt)return;let tt=256;switch(nt.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:tt&=ny(nt),nt=nt.parent;break;default:return}let yt=nt.getSourceFile(),re=Fi(le(yt,"super",nt),Ce=>{if(Ce.kind!==108)return;let et=pL(Ce,!1);return et&&zo(et)===!!tt&&et.parent.symbol===nt.symbol?Mh(Ce):void 0});return[{definition:{type:0,symbol:nt.symbol},references:re}]}function io(ke){return ke.kind===80&&ke.parent.kind===169&&ke.parent.name===ke}function Gn(ke,nt,tt){let yt=lu(ke,!1,!1),re=256;switch(yt.kind){case 174:case 173:if(qf(yt)){re&=ny(yt),yt=yt.parent;break}case 172:case 171:case 176:case 177:case 178:re&=ny(yt),yt=yt.parent;break;case 312:if(wl(yt)||io(ke))return;case 262:case 218:break;default:return}let Ce=ta(yt.kind===312?nt:[yt.getSourceFile()],z=>(tt.throwIfCancellationRequested(),le(z,"this",Li(yt)?z:yt).filter(Je=>{if(!mR(Je))return!1;let _t=lu(Je,!1,!1);if(!Hm(_t))return!1;switch(yt.kind){case 218:case 262:return yt.symbol===_t.symbol;case 174:case 173:return qf(yt)&&yt.symbol===_t.symbol;case 231:case 263:case 210:return _t.parent&&Hm(_t.parent)&&yt.symbol===_t.parent.symbol&&zo(_t)===!!re;case 312:return _t.kind===312&&!wl(_t)&&!io(Je)}}))).map(z=>Mh(z));return[{definition:{type:3,node:ml(Ce,z=>ao(z.node.parent)?z.node:void 0)||ke},references:Ce}]}function Nr(ke,nt,tt,yt){let re=h3(ke,tt),Ce=ta(nt,et=>(yt.throwIfCancellationRequested(),Fi(le(et,ke.text),z=>{if(Ga(z)&&z.text===ke.text)if(re){let Je=h3(z,tt);if(re!==tt.getStringType()&&(re===Je||cr(z,tt)))return Mh(z,2)}else return eI(z)&&!WS(z,et)?void 0:Mh(z,2)})));return[{definition:{type:4,node:ke},references:Ce}]}function cr(ke,nt){if(Gu(ke.parent))return nt.getPropertyOfType(nt.getTypeAtLocation(ke.parent.parent),ke.text)}function Jt(ke,nt,tt,yt,re,Ce){let et=[];return Ue(ke,nt,tt,yt,!(yt&&re),(z,Je,_t)=>{_t&&mn(ke)!==mn(_t)&&(_t=void 0),et.push(_t||Je||z)},()=>!Ce),et}function Ue(ke,nt,tt,yt,re,Ce,et){let z=bO(nt);if(z){let Qt=tt.getShorthandAssignmentValueSymbol(nt.parent);if(Qt&&yt)return Ce(Qt,void 0,void 0,3);let Zt=tt.getContextualType(z.parent),V=Zt&&ml(Iz(z,tt,Zt,!0),te=>Ct(te,4));if(V)return V;let Re=$(nt,tt),St=Re&&Ce(Re,void 0,void 0,4);if(St)return St;let M=Qt&&Ce(Qt,void 0,void 0,3);if(M)return M}let Je=s(nt,ke,tt);if(Je){let Qt=Ce(Je,void 0,void 0,1);if(Qt)return Qt}let _t=Ct(ke);if(_t)return _t;if(ke.valueDeclaration&&wu(ke.valueDeclaration,ke.valueDeclaration.parent)){let Qt=tt.getSymbolsOfParameterPropertyDeclaration(Fo(ke.valueDeclaration,ao),ke.name);return x.assert(Qt.length===2&&!!(Qt[0].flags&1)&&!!(Qt[1].flags&4)),Ct(ke.flags&1?Qt[1]:Qt[0])}let ze=Vs(ke,281);if(!yt||ze&&!ze.propertyName){let Qt=ze&&tt.getExportSpecifierLocalTargetSymbol(ze);if(Qt){let Zt=Ce(Qt,void 0,void 0,1);if(Zt)return Zt}}if(!yt){let Qt;return re?Qt=Jk(nt.parent)?N3(tt,nt.parent):void 0:Qt=on(ke,tt),Qt&&Ct(Qt,4)}if(x.assert(yt),re){let Qt=on(ke,tt);return Qt&&Ct(Qt,4)}function Ct(Qt,Zt){return ml(tt.getRootSymbols(Qt),V=>Ce(Qt,V,void 0,Zt)||(V.parent&&V.parent.flags&96&&et(V)?Rt(V.parent,V.name,tt,Re=>Ce(Qt,V,Re,Zt)):void 0))}function on(Qt,Zt){let V=Vs(Qt,208);if(V&&Jk(V))return N3(Zt,V)}}function Rt(ke,nt,tt,yt){let re=new Map;return Ce(ke);function Ce(et){if(!(!(et.flags&96)||!Jf(re,na(et))))return ml(et.declarations,z=>ml(EC(z),Je=>{let _t=tt.getTypeAtLocation(Je),ze=_t&&_t.symbol&&tt.getPropertyOfType(_t,nt);return _t&&ze&&(ml(tt.getRootSymbols(ze),yt)||Ce(_t.symbol))}))}}function mn(ke){return ke.valueDeclaration?!!(Wd(ke.valueDeclaration)&256):!1}function qr(ke,nt,tt,yt){let{checker:re}=yt;return Ue(nt,tt,re,!1,yt.options.use!==2||!!yt.options.providePrefixAndSuffixTextForRename,(Ce,et,z,Je)=>(z&&mn(nt)!==mn(z)&&(z=void 0),ke.includes(z||et||Ce)?{symbol:et&&!(tl(Ce)&6)?et:Ce,kind:Je}:void 0),Ce=>!(ke.parents&&!ke.parents.some(et=>Ki(Ce.parent,et,yt.inheritsFromCache,re))))}function ni(ke,nt){let tt=aT(ke),{declarations:yt}=nt;if(yt){let re;do{re=tt;for(let Ce of yt){let et=Lk(Ce);et&tt&&(tt|=et)}}while(tt!==re)}return tt}e.getIntersectingMeaningFromDeclarations=ni;function ki(ke){return ke.flags&33554432?!(Gd(ke)||Xf(ke)):tx(ke)?$v(ke):_s(ke)?!!ke.body:Kr(ke)||$M(ke)}function so(ke,nt,tt){let yt=nt.getSymbolAtLocation(ke),re=nt.getShorthandAssignmentValueSymbol(yt.valueDeclaration);if(re)for(let Ce of re.getDeclarations())Lk(Ce)&1&&tt(Ce)}e.getReferenceEntriesForShorthandPropertyAssignment=so;function Jo(ke,nt,tt){Ao(ke,yt=>{yt.kind===nt&&tt(yt),Jo(yt,nt,tt)})}function ba(ke){return dV(d3(ke).parent)}function ln(ke,nt,tt){let yt=fR(ke)?ke.parent:void 0,re=yt&&tt.getTypeAtLocation(yt.expression),Ce=Fi(re&&(re.isUnionOrIntersection()?re.types:re.symbol===nt.parent?void 0:[re]),et=>et.symbol&&et.symbol.flags&96?et.symbol:void 0);return Ce.length===0?void 0:Ce}function Tn(ke){return ke.use===2&&ke.providePrefixAndSuffixTextForRename}})(zI||(zI={}))}}),ps={};Ra(ps,{Core:()=>zI,DefinitionKind:()=>Ppe,EntryKind:()=>Mpe,ExportKind:()=>Ipe,FindReferencesUse:()=>Lpe,ImportExport:()=>xpe,createImportTracker:()=>Spe,findModuleReferences:()=>FNe,findReferenceOrRenameEntries:()=>jXe,findReferencedSymbols:()=>BXe,getContextNode:()=>pT,getExportInfo:()=>Tpe,getImplementationsAtPosition:()=>VXe,getImportOrExportSymbol:()=>GNe,getReferenceEntriesForNode:()=>jNe,getTextSpanOfEntry:()=>Cpe,isContextWithStartAndEndNode:()=>Rpe,isDeclarationOfSymbol:()=>JNe,isWriteAccessForReference:()=>Npe,nodeEntry:()=>Mh,toContextSpan:()=>Dpe,toHighlightSpan:()=>YXe,toReferenceEntry:()=>qNe,toRenameLocation:()=>HXe});var kpe=pt({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";FXe(),QXe()}});function KNe(e,t,r,i,o){var s;let l=YNe(t,r,e),d=l&&[dYe(l.reference.fileName,l.fileName,l.unverified)]||je;if(l?.file)return d;let p=pu(t,r);if(p===t)return;let{parent:h}=p,m=e.getTypeChecker();if(p.kind===164||Me(p)&&S6(h)&&h.tagName===p)return eYe(m,p)||je;if(wk(p)){let R=u3(p.parent,p.text);return R?[Ope(m,R,"label",p.text,void 0)]:void 0}switch(p.kind){case 107:let R=Rn(p.parent,G=>nl(G)?"quit":_s(G));return R?[Jz(m,R)]:void 0;case 90:if(!_N(p.parent))break;case 84:let L=Rn(p.parent,pN);if(L)return[cYe(L,t)];break}if(p.kind===135){let R=Rn(p,G=>_s(G));return R&&ct(R.modifiers,G=>G.kind===134)?[Jz(m,R)]:void 0}if(p.kind===127){let R=Rn(p,G=>_s(G));return R&&R.asteriskToken?[Jz(m,R)]:void 0}if(rI(p)&&nl(p.parent)){let R=p.parent.parent,{symbol:L,failedAliasResolution:G}=kY(R,m,o),U=Cr(R.members,nl),K=L?m.symbolToString(L,R):"",F=p.getSourceFile();return nn(U,oe=>{let{pos:W}=Qm(oe);return W=ua(F.text,W),Ope(m,oe,"constructor","static {}",K,!1,G,{start:W,length:6})})}let{symbol:v,failedAliasResolution:E}=kY(p,m,o),S=p;if(i&&E){let R=an([p,...v?.declarations||je],G=>Rn(G,xte)),L=R&&sx(R);L&&({symbol:v,failedAliasResolution:E}=kY(L,m,o),S=L)}if(!v&&C3(S)){let R=(s=e.getResolvedModuleFromModuleSpecifier(S))==null?void 0:s.resolvedModule;if(R)return[{name:S.text,fileName:R.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:qc(0,0),failedAliasResolution:E,isAmbient:Yc(R.resolvedFileName),unverified:S!==p}]}if(!v)return ro(d,aYe(p,m));if(i&&ji(v.declarations,R=>R.getSourceFile().fileName===t.fileName))return;let A=pYe(m,p);if(A&&!(Od(p.parent)&&fYe(A))){let R=Jz(m,A,E);if(m.getRootSymbols(v).some(L=>ZXe(L,A)))return[R];{let L=mP(m,v,p,E,A)||je;return p.kind===108?[R,...L]:[...L,R]}}if(p.parent.kind===304){let R=m.getShorthandAssignmentValueSymbol(v.valueDeclaration),L=R?.declarations?R.declarations.map(G=>MO(G,m,R,p,!1,E)):je;return ro(L,XNe(m,p))}if(kl(p)&&Na(h)&&Rf(h.parent)&&p===(h.propertyName||h.name)){let R=qk(p),L=m.getTypeAtLocation(h.parent);return R===void 0?je:ta(L.isUnion()?L.types:[L],G=>{let U=G.getProperty(R);return U&&mP(m,U,p)})}let C=XNe(m,p);return ro(d,C.length?C:mP(m,v,p,E))}function ZXe(e,t){var r;return e===t.symbol||e===t.symbol.parent||lc(t.parent)||!WE(t.parent)&&e===((r=Vr(t.parent,Hm))==null?void 0:r.symbol)}function XNe(e,t){let r=bO(t);if(r){let i=r&&e.getContextualType(r.parent);if(i)return ta(Iz(r,e,i,!1),o=>mP(e,o,t))}return je}function eYe(e,t){let r=Rn(t,xc);if(!(r&&r.name))return;let i=Rn(r,Kr);if(!i)return;let o=Jm(i);if(!o)return;let s=Ka(o.expression),l=Dc(s)?s.symbol:e.getSymbolAtLocation(s);if(!l)return;let d=Ii($1(r.name)),p=jl(r)?e.getPropertyOfType(e.getTypeOfSymbol(l),d):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(l),d);if(p)return mP(e,p,t)}function YNe(e,t,r){var i,o;let s=_P(e.referencedFiles,t);if(s){let p=r.getSourceFileFromReference(e,s);return p&&{reference:s,fileName:p.fileName,file:p,unverified:!1}}let l=_P(e.typeReferenceDirectives,t);if(l){let p=(i=r.getResolvedTypeReferenceDirectives().get(l.fileName,l.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,h=p&&r.getSourceFile(p.resolvedFileName);return h&&{reference:l,fileName:h.fileName,file:h,unverified:!1}}let d=_P(e.libReferenceDirectives,t);if(d){let p=r.getLibFileFromReference(d);return p&&{reference:d,fileName:p.fileName,file:p,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let p=_R(e,t),h;if(C3(p)&&Ic(p.text)&&(h=r.getResolvedModuleFromModuleSpecifier(p))){let m=(o=h.resolvedModule)==null?void 0:o.resolvedFileName,v=m||jv(Ur(e.fileName),p.text);return{file:r.getSourceFile(v),fileName:v,reference:{pos:p.getStart(),end:p.getEnd(),fileName:p.text},unverified:!m}}}}function tYe(e,t){let r=t.symbol.name;if(!Wpe.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.target.symbol}function $Ne(e,t){if(!t.aliasSymbol)return!1;let r=t.aliasSymbol.name;if(!Wpe.has(r))return!1;let i=e.resolveName(r,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function nYe(e,t,r,i){var o,s;if(br(t)&4&&tYe(e,t))return PO(e.getTypeArguments(t)[0],e,r,i);if($Ne(e,t)&&t.aliasTypeArguments)return PO(t.aliasTypeArguments[0],e,r,i);if(br(t)&32&&t.target&&$Ne(e,t.target)){let l=(s=(o=t.aliasSymbol)==null?void 0:o.declarations)==null?void 0:s[0];if(l&&Xf(l)&&Yp(l.type)&&l.type.typeArguments)return PO(e.getTypeAtLocation(l.type.typeArguments[0]),e,r,i)}return[]}function rYe(e,t,r){let i=pu(t,r);if(i===t)return;if(ex(i.parent)&&i.parent.name===i)return PO(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:o,failedAliasResolution:s}=kY(i,e,!1);if(!o)return;let l=e.getTypeOfSymbolAtLocation(o,i),d=iYe(o,l,e),p=d&&PO(d,e,i,s),[h,m]=p&&p.length!==0?[d,p]:[l,PO(l,e,i,s)];return m.length?[...nYe(e,h,i,s),...m]:!(o.flags&111551)&&o.flags&788968?mP(e,Kc(o,e),i,s):void 0}function PO(e,t,r,i){return ta(e.isUnion()&&!(e.flags&32)?e.types:[e],o=>o.symbol&&mP(t,o.symbol,r,i))}function iYe(e,t,r){if(t.symbol===e||e.valueDeclaration&&t.symbol&&yi(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return r.getReturnTypeOfSignature(Sa(i))}}function oYe(e,t,r){let i=KNe(e,t,r);if(!i||i.length===0)return;let o=_P(t.referencedFiles,r)||_P(t.typeReferenceDirectives,r)||_P(t.libReferenceDirectives,r);if(o)return{definitions:i,textSpan:yy(o)};let s=pu(t,r),l=qc(s.getStart(),s.getWidth());return{definitions:i,textSpan:l}}function aYe(e,t){return Fi(t.getIndexInfosAtLocation(e),r=>r.declaration&&Jz(t,r.declaration))}function kY(e,t,r){let i=t.getSymbolAtLocation(e),o=!1;if(i?.declarations&&i.flags&2097152&&!r&&sYe(e,i.declarations[0])){let s=t.getAliasedSymbol(i);if(s.declarations)return{symbol:s};o=!0}return{symbol:i,failedAliasResolution:o}}function sYe(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function lYe(e){if(!vC(e))return!1;let t=Rn(e,r=>lc(r)?!0:vC(r)?!1:"quit");return!!t&&hl(t)===5}function mP(e,t,r,i,o){let s=Cr(t.declarations,v=>v!==o),l=Cr(s,v=>!lYe(v)),d=ct(l)?l:s;return p()||h()||nn(d,v=>MO(v,e,t,r,!1,i));function p(){if(t.flags&32&&!(t.flags&19)&&(KN(r)||r.kind===137)){let v=Dr(s,Kr)||x.fail("Expected declaration to have at least one class-like declaration");return m(v.members,!0)}}function h(){return Fq(r)||Hq(r)?m(s,!1):void 0}function m(v,E){if(!v)return;let S=v.filter(E?ll:Lo),A=S.filter(C=>!!C.body);return S.length?A.length!==0?A.map(C=>MO(C,e,t,r)):[MO(Da(S),e,t,r,!1,i)]:void 0}}function MO(e,t,r,i,o,s){let l=t.symbolToString(r),d=gv.getSymbolKind(t,r,i),p=r.parent?t.symbolToString(r.parent,i):"";return Ope(t,e,d,l,p,o,s)}function Ope(e,t,r,i,o,s,l,d){let p=t.getSourceFile();if(!d){let h=mo(t)||t;d=eu(h,p)}return{fileName:p.fileName,textSpan:d,kind:r,name:i,containerKind:void 0,containerName:o,...ps.toContextSpan(d,p,ps.getContextNode(t)),isLocal:!wpe(e,t),isAmbient:!!(t.flags&33554432),unverified:s,failedAliasResolution:l}}function cYe(e,t){let r=ps.getContextNode(e),i=eu(Rpe(r)?r.start:r,t);return{fileName:t.fileName,textSpan:i,kind:"keyword",name:"switch",containerKind:void 0,containerName:"",...ps.toContextSpan(i,t,r),isLocal:!0,isAmbient:!1,unverified:!1,failedAliasResolution:void 0}}function wpe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if($v(t.parent)&&t.parent.initializer===t)return wpe(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(zu(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return wpe(e,t.parent);default:return!1}}function Jz(e,t,r){return MO(t,e,t.symbol,t,!1,r)}function _P(e,t){return Dr(e,r=>wM(r,t))}function dYe(e,t,r){return{fileName:t,textSpan:Gl(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:r}}function uYe(e){let t=Rn(e,i=>!fR(i)),r=t?.parent;return r&&WE(r)&&vW(r)===t?r:void 0}function pYe(e,t){let r=uYe(t),i=r&&e.getResolvedSignature(r);return Vr(i&&i.declaration,o=>Lo(o)&&!B_(o))}function fYe(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var Wpe,mYe=pt({"src/services/goToDefinition.ts"(){"use strict";Hr(),kpe(),Wpe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),LR={};Ra(LR,{createDefinitionInfo:()=>MO,findReferenceInPosition:()=>_P,getDefinitionAndBoundSpan:()=>oYe,getDefinitionAtPosition:()=>KNe,getReferenceAtPosition:()=>YNe,getTypeDefinitionAtPosition:()=>rYe});var _Ye=pt({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";mYe()}});function hYe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function gYe(e){return e.includeInlayParameterNameHints==="literals"}function QNe(e){return e.interactiveInlayHints===!0}function vYe(e){let{file:t,program:r,span:i,cancellationToken:o,preferences:s}=e,l=t.text,d=r.getCompilerOptions(),p=Np(t,s),h=r.getTypeChecker(),m=[];return v(t),m;function v(ce){if(!(!ce||ce.getFullWidth()===0)){switch(ce.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:o.throwIfCancellationRequested()}if(P8(i,ce.pos,ce.getFullWidth())&&!(xi(ce)&&!sv(ce)))return s.includeInlayVariableTypeHints&&yi(ce)||s.includeInlayPropertyDeclarationTypeHints&&xo(ce)?G(ce):s.includeInlayEnumMemberValueHints&&p0(ce)?R(ce):hYe(s)&&(Bo(ce)||o0(ce))?U(ce):(s.includeInlayFunctionParameterTypeHints&&_s(ce)&&gF(ce)&&de(ce),s.includeInlayFunctionLikeReturnTypeHints&&E(ce)&&W(ce)),Ao(ce,v)}}function E(ce){return hs(ce)||us(ce)||Ql(ce)||El(ce)||Ap(ce)}function S(ce,Z,pe,Ae){let Oe=`${Ae?"...":""}${ce}`,_e;QNe(s)?(_e=[Ee(Oe,Z),{text:":"}],Oe=""):Oe+=":",m.push({text:Oe,position:pe,kind:"Parameter",whitespaceAfter:!0,displayParts:_e})}function A(ce,Z){m.push({text:typeof ce=="string"?`: ${ce}`:"",displayParts:typeof ce=="string"?void 0:[{text:": "},...ce],position:Z,kind:"Type",whitespaceBefore:!0})}function C(ce,Z){m.push({text:`= ${ce}`,position:Z,kind:"Enum",whitespaceBefore:!0})}function R(ce){if(ce.initializer)return;let Z=h.getConstantValue(ce);Z!==void 0&&C(Z.toString(),ce.end)}function L(ce){return ce.symbol&&ce.symbol.flags&1536}function G(ce){if(!ce.initializer||ko(ce.name)||yi(ce)&&!le(ce)||Jc(ce))return;let pe=h.getTypeAtLocation(ce);if(L(pe))return;let Ae=H(pe);if(Ae){let Oe=typeof Ae=="string"?Ae:Ae.map(be=>be.text).join("");if(s.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&pb(ce.name.getText(),Oe))return;A(Ae,ce.name.end)}}function U(ce){let Z=ce.arguments;if(!Z||!Z.length)return;let pe=[],Ae=h.getResolvedSignatureForSignatureHelp(ce,pe);if(!Ae||!pe.length)return;let Oe=0;for(let _e of Z){let be=Ka(_e);if(gYe(s)&&!oe(be)){Oe++;continue}let Te=0;if(bm(be)){let ft=h.getTypeAtLocation(be.expression);if(h.isTupleType(ft)){let{elementFlags:he,fixedLength:Le}=ft.target;if(Le===0)continue;let Ke=Tl(he,st=>!(st&1));(Ke<0?Le:Ke)>0&&(Te=Ke<0?Le:Ke)}}let De=h.getParameterIdentifierInfoAtPosition(Ae,Oe);if(Oe=Oe+(Te||1),De){let{parameter:ft,parameterName:he,isRestParameter:Le}=De;if(!(s.includeInlayParameterNameHintsWhenArgumentMatchesName||!K(be,he))&&!Le)continue;let Dt=Ii(he);if(F(be,Dt))continue;S(Dt,ft,_e.getStart(),Le)}}}function K(ce,Z){return Me(ce)?ce.text===Z:Er(ce)?ce.name.text===Z:!1}function F(ce,Z){if(!Sp(Z,d.target,KL(t.scriptKind)))return!1;let pe=mh(l,ce.pos);if(!pe?.length)return!1;let Ae=ZNe(Z);return ct(pe,Oe=>Ae.test(l.substring(Oe.pos,Oe.end)))}function oe(ce){switch(ce.kind){case 224:{let Z=ce.operand;return wE(Z)||Me(Z)&&XC(Z.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let Z=ce.escapedText;return ee(Z)||XC(Z)}}return wE(ce)}function W(ce){if(hs(ce)&&!Ya(ce,21,t)||Tf(ce)||!ce.body)return;let pe=h.getSignatureFromDeclaration(ce);if(!pe)return;let Ae=h.getReturnTypeOfSignature(pe);if(L(Ae))return;let Oe=H(Ae);Oe&&A(Oe,$(ce))}function $(ce){let Z=Ya(ce,22,t);return Z?Z.end:ce.parameters.end}function de(ce){let Z=h.getSignatureFromDeclaration(ce);if(Z)for(let pe=0;pe<ce.parameters.length&&pe<Z.parameters.length;++pe){let Ae=ce.parameters[pe];if(!le(Ae)||Jc(Ae))continue;let _e=fe(Z.parameters[pe]);_e&&A(_e,Ae.questionToken?Ae.questionToken.end:Ae.name.end)}}function fe(ce){let Z=ce.valueDeclaration;if(!Z||!ao(Z))return;let pe=h.getTypeOfSymbolAtLocation(ce,Z);if(!L(pe))return H(pe)}function q(ce){let pe=y0();return dC(Ae=>{let Oe=h.typeToTypeNode(ce,void 0,71286784);x.assertIsDefined(Oe,"should always get typenode"),pe.writeNode(4,Oe,t,Ae)})}function H(ce){if(!QNe(s))return q(ce);let pe=h.typeToTypeNode(ce,void 0,71286784);x.assertIsDefined(pe,"should always get typenode");let Ae=[];return Oe(pe),Ae;function Oe(De){var ft,he;if(!De)return;let Le=qo(De.kind);if(Le){Ae.push({text:Le});return}if(wE(De)){Ae.push({text:Te(De)});return}switch(De.kind){case 80:x.assertNode(De,Me);let Ke=ar(De),Dt=De.symbol&&De.symbol.declarations&&De.symbol.declarations.length&&mo(De.symbol.declarations[0]);Dt?Ae.push(Ee(Ke,Dt)):Ae.push({text:Ke});break;case 166:x.assertNode(De,$d),Oe(De.left),Ae.push({text:"."}),Oe(De.right);break;case 182:x.assertNode(De,T2),De.assertsModifier&&Ae.push({text:"asserts "}),Oe(De.parameterName),De.type&&(Ae.push({text:" is "}),Oe(De.type));break;case 183:x.assertNode(De,Yp),Oe(De.typeName),De.typeArguments&&(Ae.push({text:"<"}),be(De.typeArguments,", "),Ae.push({text:">"}));break;case 168:x.assertNode(De,qs),De.modifiers&&be(De.modifiers," "),Oe(De.name),De.constraint&&(Ae.push({text:" extends "}),Oe(De.constraint)),De.default&&(Ae.push({text:" = "}),Oe(De.default));break;case 169:x.assertNode(De,ao),De.modifiers&&be(De.modifiers," "),De.dotDotDotToken&&Ae.push({text:"..."}),Oe(De.name),De.questionToken&&Ae.push({text:"?"}),De.type&&(Ae.push({text:": "}),Oe(De.type));break;case 185:x.assertNode(De,kx),Ae.push({text:"new "}),_e(De),Ae.push({text:" => "}),Oe(De.type);break;case 186:x.assertNode(De,oI),Ae.push({text:"typeof "}),Oe(De.exprName),De.typeArguments&&(Ae.push({text:"<"}),be(De.typeArguments,", "),Ae.push({text:">"}));break;case 187:x.assertNode(De,ju),Ae.push({text:"{"}),De.members.length&&(Ae.push({text:" "}),be(De.members,"; "),Ae.push({text:" "})),Ae.push({text:"}"});break;case 188:x.assertNode(De,A2),Oe(De.elementType),Ae.push({text:"[]"});break;case 189:x.assertNode(De,aI),Ae.push({text:"["}),be(De.elements,", "),Ae.push({text:"]"});break;case 202:x.assertNode(De,Ox),De.dotDotDotToken&&Ae.push({text:"..."}),Oe(De.name),De.questionToken&&Ae.push({text:"?"}),Ae.push({text:": "}),Oe(De.type);break;case 190:x.assertNode(De,m6),Oe(De.type),Ae.push({text:"?"});break;case 191:x.assertNode(De,_6),Ae.push({text:"..."}),Oe(De.type);break;case 192:x.assertNode(De,dy),be(De.types," | ");break;case 193:x.assertNode(De,sI),be(De.types," & ");break;case 194:x.assertNode(De,lI),Oe(De.checkType),Ae.push({text:" extends "}),Oe(De.extendsType),Ae.push({text:" ? "}),Oe(De.trueType),Ae.push({text:" : "}),Oe(De.falseType);break;case 195:x.assertNode(De,GS),Ae.push({text:"infer "}),Oe(De.typeParameter);break;case 196:x.assertNode(De,VS),Ae.push({text:"("}),Oe(De.type),Ae.push({text:")"});break;case 198:x.assertNode(De,jS),Ae.push({text:`${qo(De.operator)} `}),Oe(De.type);break;case 199:x.assertNode(De,US),Oe(De.objectType),Ae.push({text:"["}),Oe(De.indexType),Ae.push({text:"]"});break;case 200:x.assertNode(De,wx),Ae.push({text:"{ "}),De.readonlyToken&&(De.readonlyToken.kind===40?Ae.push({text:"+"}):De.readonlyToken.kind===41&&Ae.push({text:"-"}),Ae.push({text:"readonly "})),Ae.push({text:"["}),Oe(De.typeParameter),De.nameType&&(Ae.push({text:" as "}),Oe(De.nameType)),Ae.push({text:"]"}),De.questionToken&&(De.questionToken.kind===40?Ae.push({text:"+"}):De.questionToken.kind===41&&Ae.push({text:"-"}),Ae.push({text:"?"})),Ae.push({text:": "}),De.type&&Oe(De.type),Ae.push({text:"; }"});break;case 201:x.assertNode(De,uy),Oe(De.literal);break;case 184:x.assertNode(De,B_),_e(De),Ae.push({text:" => "}),Oe(De.type);break;case 205:x.assertNode(De,Dh),De.isTypeOf&&Ae.push({text:"typeof "}),Ae.push({text:"import("}),Oe(De.argument),De.assertions&&(Ae.push({text:", { assert: "}),be(De.assertions.assertClause.elements,", "),Ae.push({text:" }"})),Ae.push({text:")"}),De.qualifier&&(Ae.push({text:"."}),Oe(De.qualifier)),De.typeArguments&&(Ae.push({text:"<"}),be(De.typeArguments,", "),Ae.push({text:">"}));break;case 171:x.assertNode(De,Gu),(ft=De.modifiers)!=null&&ft.length&&(be(De.modifiers," "),Ae.push({text:" "})),Oe(De.name),De.questionToken&&Ae.push({text:"?"}),De.type&&(Ae.push({text:": "}),Oe(De.type));break;case 181:x.assertNode(De,r0),Ae.push({text:"["}),be(De.parameters,", "),Ae.push({text:"]"}),De.type&&(Ae.push({text:": "}),Oe(De.type));break;case 173:x.assertNode(De,z_),(he=De.modifiers)!=null&&he.length&&(be(De.modifiers," "),Ae.push({text:" "})),Oe(De.name),De.questionToken&&Ae.push({text:"?"}),_e(De),De.type&&(Ae.push({text:": "}),Oe(De.type));break;case 179:x.assertNode(De,iI),_e(De),De.type&&(Ae.push({text:": "}),Oe(De.type));break;case 207:x.assertNode(De,i0),Ae.push({text:"["}),be(De.elements,", "),Ae.push({text:"]"});break;case 206:x.assertNode(De,Rf),Ae.push({text:"{"}),De.elements.length&&(Ae.push({text:" "}),be(De.elements,", "),Ae.push({text:" "})),Ae.push({text:"}"});break;case 208:x.assertNode(De,Na),Oe(De.name);break;case 224:x.assertNode(De,fy),Ae.push({text:qo(De.operator)}),Oe(De.operand);break;case 203:x.assertNode(De,Kre),Oe(De.head),De.templateSpans.forEach(Oe);break;case 16:x.assertNode(De,tI),Ae.push({text:Te(De)});break;case 204:x.assertNode(De,bj),Oe(De.type),Oe(De.literal);break;case 17:x.assertNode(De,hj),Ae.push({text:Te(De)});break;case 18:x.assertNode(De,d6),Ae.push({text:Te(De)});break;case 197:x.assertNode(De,I2),Ae.push({text:"this"});break;default:x.failBadSyntaxKind(De)}}function _e(De){De.typeParameters&&(Ae.push({text:"<"}),be(De.typeParameters,", "),Ae.push({text:">"})),Ae.push({text:"("}),be(De.parameters,", "),Ae.push({text:")"})}function be(De,ft){De.forEach((he,Le)=>{Le>0&&Ae.push({text:ft}),Oe(he)})}function Te(De){switch(De.kind){case 11:return p===0?`'${Th(De.text,39)}'`:`"${Th(De.text,34)}"`;case 16:case 17:case 18:{let ft=De.rawText??Z9(Th(De.text,96));switch(De.kind){case 16:return"`"+ft+"${";case 17:return"}"+ft+"${";case 18:return"}"+ft+"`"}}}return De.text}}function ee(ce){return ce==="undefined"}function le(ce){if((JE(ce)||yi(ce)&&Z1(ce))&&ce.initializer){let Z=Ka(ce.initializer);return!(oe(Z)||o0(Z)||fa(Z)||ES(Z))}return!0}function Ee(ce,Z){let pe=Z.getSourceFile();return{text:ce,span:eu(Z,pe),file:pe.fileName}}}var ZNe,yYe=pt({"src/services/inlayHints.ts"(){"use strict";Hr(),ZNe=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),OY={};Ra(OY,{provideInlayHints:()=>vYe});var bYe=pt({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";yYe()}});function EYe(e,t){let r=[];return mJ(e,i=>{for(let o of TYe(i)){let s=Sm(o)&&o.tags&&Dr(o.tags,d=>d.kind===334&&(d.tagName.escapedText==="inheritDoc"||d.tagName.escapedText==="inheritdoc"));if(o.comment===void 0&&!s||Sm(o)&&i.kind!==353&&i.kind!==345&&o.tags&&o.tags.some(d=>d.kind===353||d.kind===345)&&!o.tags.some(d=>d.kind===348||d.kind===349))continue;let l=o.comment?kR(o.comment,t):[];s&&s.comment&&(l=l.concat(kR(s.comment,t))),To(r,l,SYe)||r.push(l)}}),Ff(K5(r,[yR()]))}function SYe(e,t){return dM(e,t,(r,i)=>r.kind===i.kind&&r.text===i.text)}function TYe(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(Vx(e.parent))return[e.parent.parent];default:return W9(e)}}function AYe(e,t){let r=[];return mJ(e,i=>{let o=Eb(i);if(!(o.some(s=>s.kind===353||s.kind===345)&&!o.some(s=>s.kind===348||s.kind===349)))for(let s of o)r.push({name:s.tagName.text,text:nPe(s,t)}),r.push(...ePe(tPe(s),t))}),r}function ePe(e,t){return ta(e,r=>ro([{name:r.tagName.text,text:nPe(r,t)}],ePe(tPe(r),t)))}function tPe(e){return iC(e)&&e.isNameFirst&&e.typeExpression&&YS(e.typeExpression.type)?e.typeExpression.type.jsDocPropertyTags:void 0}function kR(e,t){return typeof e=="string"?[Pp(e)]:ta(e,r=>r.kind===328?[Pp(r.text)]:ale(r,t))}function nPe(e,t){let{comment:r,kind:i}=e,o=IYe(i);switch(i){case 356:let d=e.typeExpression;return d?s(d):r===void 0?void 0:kR(r,t);case 336:return s(e.class);case 335:return s(e.class);case 352:let p=e,h=[];if(p.constraint&&h.push(Pp(p.constraint.getText())),yn(p.typeParameters)){yn(h)&&h.push(ul());let v=p.typeParameters[p.typeParameters.length-1];an(p.typeParameters,E=>{h.push(o(E.getText())),v!==E&&h.push(Ad(28),ul())})}return r&&h.push(ul(),...kR(r,t)),h;case 351:case 357:return s(e.typeExpression);case 353:case 345:case 355:case 348:case 354:let{name:m}=e;return m?s(m):r===void 0?void 0:kR(r,t);default:return r===void 0?void 0:kR(r,t)}function s(d){return l(d.getText())}function l(d){return r?d.match(/^https?$/)?[Pp(d),...kR(r,t)]:[o(d),ul(),...kR(r,t)]:[Pp(d)]}}function IYe(e){switch(e){case 348:return tle;case 355:return nle;case 352:return ile;case 353:case 345:return rle;default:return Pp}}function xYe(){return iPe||(iPe=nn(zpe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:FI.SortText.LocationPriority})))}function RYe(){return oPe||(oPe=nn(zpe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:FI.SortText.LocationPriority})))}function rPe(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Pp(e)],documentation:je,tags:void 0,codeActions:void 0}}function DYe(e){if(!Me(e.name))return je;let t=e.name.text,r=e.parent,i=r.parent;return Lo(i)?Fi(i.parameters,o=>{if(!Me(o.name))return;let s=o.name.text;if(!(r.tags.some(l=>l!==e&&Tm(l)&&Me(l.name)&&l.name.escapedText===s)||t!==void 0&&!Ui(s,t)))return{name:s,kind:"parameter",kindModifiers:"",sortText:FI.SortText.LocationPriority}}):[]}function CYe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Pp(e)],documentation:je,tags:void 0,codeActions:void 0}}function NYe(e,t,r,i){let o=Hi(t,r),s=Rn(o,Sm);if(s&&(s.comment!==void 0||yn(s.tags)))return;let l=o.getStart(t);if(!s&&l<r)return;let d=kYe(o,i);if(!d)return;let{commentOwner:p,parameters:h,hasReturn:m}=d,v=ap(p)&&p.jsDoc?p.jsDoc:void 0,E=Ns(v);if(p.getStart(t)<r||E&&s&&E!==s)return;let S=PYe(t,r),A=QE(t.fileName),C=(h?MYe(h||[],A,S,e):"")+(m?LYe(S,e):""),R="/**",L=" */",G=yn(Eb(p))>0;if(C&&!G){let U=R+e+S+" * ",K=l===r?e+S:"";return{newText:U+e+C+S+L+K,caretOffset:U.length}}return{newText:R+L,caretOffset:3}}function PYe(e,t){let{text:r}=e,i=Cf(t,e),o=i;for(;o<=t&&jm(r.charCodeAt(o));o++);return r.slice(i,o)}function MYe(e,t,r,i){return e.map(({name:o,dotDotDotToken:s},l)=>{let d=o.kind===80?o.text:"param"+l;return`${r} * @param ${t?s?"{...any} ":"{any} ":""}${d}${i}`}).join("")}function LYe(e,t){return`${e} * @returns${t}`}function kYe(e,t){return _te(e,r=>Fpe(r,t))}function Fpe(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let r=e;return{commentOwner:e,parameters:r.parameters,hasReturn:Kz(r,t)};case 303:return Fpe(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let o=e;return o.type&&B_(o.type)?{commentOwner:e,parameters:o.type.parameters,hasReturn:Kz(o.type,t)}:{commentOwner:e}}case 243:{let s=e.declarationList.declarations,l=s.length===1&&s[0].initializer?OYe(s[0].initializer):void 0;return l?{commentOwner:e,parameters:l.parameters,hasReturn:Kz(l,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return Fpe(e.expression,t);case 226:{let o=e;return hl(o)===0?"quit":Lo(o.right)?{commentOwner:e,parameters:o.right.parameters,hasReturn:Kz(o.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(us(i)||hs(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:Kz(i,t)}}}function Kz(e,t){return!!t?.generateReturnInDocTemplate&&(B_(e)||hs(e)&<(e.body)||_s(e)&&e.body&&Do(e.body)&&!!GE(e.body,r=>r))}function OYe(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return Dr(e.members,ll)}}var zpe,iPe,oPe,aPe,wYe=pt({"src/services/jsDoc.ts"(){"use strict";Hr(),zpe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],aPe=rPe}}),Xb={};Ra(Xb,{getDocCommentTemplateAtPosition:()=>NYe,getJSDocParameterNameCompletionDetails:()=>CYe,getJSDocParameterNameCompletions:()=>DYe,getJSDocTagCompletionDetails:()=>rPe,getJSDocTagCompletions:()=>RYe,getJSDocTagNameCompletionDetails:()=>aPe,getJSDocTagNameCompletions:()=>xYe,getJsDocCommentsFromDeclarations:()=>EYe,getJsDocTagsFromDeclarations:()=>AYe});var WYe=pt({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";wYe()}});function FYe(e,t,r,i,o,s){let l=er.ChangeTracker.fromContext({host:r,formatContext:t,preferences:o}),d=s==="SortAndCombine"||s==="All",p=d,h=s==="RemoveUnused"||s==="All",m=wY(e,e.statements.filter(cc)),v=t$e(o,d?()=>cPe(m,o)===2:void 0),E=A=>(h&&(A=BYe(A,e,i)),p&&(A=sPe(A,v,e,o)),d&&(A=Gg(A,(C,R)=>Upe(C,R,v))),A);m.forEach(A=>S(A,E)),s!=="RemoveUnused"&&n$e(e).forEach(A=>S(A,C=>Bpe(C,v,o)));for(let A of e.statements.filter(sd)){if(!A.body)continue;if(wY(e,A.body.statements.filter(cc)).forEach(R=>S(R,E)),s!=="RemoveUnused"){let R=A.body.statements.filter(xl);S(R,L=>Bpe(L,v,o))}}return l.getChanges();function S(A,C){if(yn(A)===0)return;$n(A[0],1024);let R=p?GD(A,U=>Xz(U.moduleSpecifier)):[A],L=d?Gg(R,(U,K)=>Vpe(U[0].moduleSpecifier,K[0].moduleSpecifier,v)):R,G=ta(L,U=>Xz(U[0].moduleSpecifier)||U[0].moduleSpecifier===void 0?C(U):U);if(G.length===0)l.deleteNodes(e,A,{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Include},!0);else{let U={leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Include,suffix:mv(r,t.options)};l.replaceNodeWithNodes(e,A[0],G,U);let K=l.nodeHasTrailingComment(e,A[0],U);l.deleteNodes(e,A.slice(1),{trailingTriviaOption:er.TrailingTriviaOption.Include},K)}}}function wY(e,t){let r=Kg(e.languageVersion,!1,e.languageVariant),i=[],o=0;for(let s of t)i[o]&&zYe(e,s,r)&&o++,i[o]||(i[o]=[]),i[o].push(s);return i}function zYe(e,t,r){let i=t.getFullStart(),o=t.getStart();r.setText(e.text,i,o-i);let s=0;for(;r.getTokenStart()<o;)if(r.scan()===4&&(s++,s>=2))return!0;return!1}function BYe(e,t,r){let i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(t),l=i.getJsxFragmentFactory(t),d=!!(t.transformFlags&2),p=[];for(let m of e){let{importClause:v,moduleSpecifier:E}=m;if(!v){p.push(m);continue}let{name:S,namedBindings:A}=v;if(S&&!h(S)&&(S=void 0),A)if(my(A))h(A.name)||(A=void 0);else{let C=A.elements.filter(R=>h(R.name));C.length<A.elements.length&&(A=C.length?P.updateNamedImports(A,C):void 0)}S||A?p.push(LO(m,S,A)):GYe(t,E)&&(t.isDeclarationFile?p.push(P.createImportDeclaration(m.modifiers,void 0,E,void 0)):p.push(m))}return p;function h(m){return d&&(m.text===s||l&&m.text===l)&&kJ(o.jsx)||ps.Core.isSymbolReferencedInFile(m,i,t)}}function GYe(e,t){let r=ca(t)&&t.text;return fo(r)&&ct(e.moduleAugmentations,i=>ca(i)&&i.text===r)}function Xz(e){return e!==void 0&&Ga(e)?e.text:void 0}function VYe(e,t,r,i){let o=WY(t);return sPe(e,o,r,i)}function sPe(e,t,r,i){if(e.length===0)return e;let o=Kw(e,l=>{if(l.attributes){let d=l.attributes.token+" ";for(let p of uS(l.attributes.elements,(h,m)=>gd(h.name.text,m.name.text)))d+=p.name.text+":",d+=Ga(p.value)?`"${p.value.text}"`:p.value.getText()+" ";return d}return""}),s=[];for(let l in o){let d=o[l],{importWithoutClause:p,typeOnlyImports:h,regularImports:m}=jYe(d);p&&s.push(p);for(let v of[m,h]){let E=v===h,{defaultImports:S,namespaceImports:A,namedImports:C}=v;if(!E&&S.length===1&&A.length===1&&C.length===0){let $=S[0];s.push(LO($,$.importClause.name,A[0].importClause.namedBindings));continue}let R=Gg(A,($,de)=>t($.importClause.namedBindings.name.text,de.importClause.namedBindings.name.text));for(let $ of R)s.push(LO($,void 0,$.importClause.namedBindings));let L=Ac(S),G=Ac(C),U=L??G;if(!U)continue;let K,F=[];if(S.length===1)K=S[0].importClause.name;else for(let $ of S)F.push(P.createImportSpecifier(!1,P.createIdentifier("default"),$.importClause.name));F.push(...$Ye(C));let oe=P.createNodeArray(lPe(F,t,i),G?.importClause.namedBindings.elements.hasTrailingComma),W=oe.length===0?K?void 0:P.createNamedImports(je):G?P.updateNamedImports(G.importClause.namedBindings,oe):P.createNamedImports(oe);r&&W&&G?.importClause.namedBindings&&!WS(G.importClause.namedBindings,r)&&$n(W,2),E&&K&&W?(s.push(LO(U,K,void 0)),s.push(LO(G??U,void 0,W))):s.push(LO(U,K,W))}}return s}function jYe(e){let t,r={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let o of e){if(o.importClause===void 0){t=t||o;continue}let s=o.importClause.isTypeOnly?r:i,{name:l,namedBindings:d}=o.importClause;l&&s.defaultImports.push(o),d&&(my(d)?s.namespaceImports.push(o):s.namedImports.push(o))}return{importWithoutClause:t,typeOnlyImports:r,regularImports:i}}function UYe(e,t,r){let i=WY(t);return Bpe(e,i,r)}function Bpe(e,t,r){if(e.length===0)return e;let{exportWithoutClause:i,namedExports:o,typeOnlyExports:s}=d(e),l=[];i&&l.push(i);for(let p of[o,s]){if(p.length===0)continue;let h=[];h.push(...ta(p,E=>E.exportClause&&$p(E.exportClause)?E.exportClause.elements:je));let m=lPe(h,t,r),v=p[0];l.push(P.updateExportDeclaration(v,v.modifiers,v.isTypeOnly,v.exportClause&&($p(v.exportClause)?P.updateNamedExports(v.exportClause,m):P.updateNamespaceExport(v.exportClause,v.exportClause.name)),v.moduleSpecifier,v.attributes))}return l;function d(p){let h,m=[],v=[];for(let E of p)E.exportClause===void 0?h=h||E:E.isTypeOnly?v.push(E):m.push(E);return{exportWithoutClause:h,namedExports:m,typeOnlyExports:v}}}function LO(e,t,r){return P.updateImportDeclaration(e,e.modifiers,P.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,r),e.moduleSpecifier,e.attributes)}function lPe(e,t,r){return Gg(e,(i,o)=>Gpe(i,o,t,r))}function Gpe(e,t,r,i){switch(i?.organizeImportsTypeOrder){case"first":return zv(t.isTypeOnly,e.isTypeOnly)||r(e.name.text,t.name.text);case"inline":return r(e.name.text,t.name.text);default:return zv(e.isTypeOnly,t.isTypeOnly)||r(e.name.text,t.name.text)}}function HYe(e,t,r){let i=WY(!!r);return Vpe(e,t,i)}function Vpe(e,t,r){let i=e===void 0?void 0:Xz(e),o=t===void 0?void 0:Xz(t);return zv(i===void 0,o===void 0)||zv(Ic(i),Ic(o))||r(i,o)}function jpe(e){var t;switch(e.kind){case 271:return(t=Vr(e.moduleReference,j_))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function qYe(e,t){return cPe(wY(e,e.statements.filter(cc)),t)}function cPe(e,t){let r=OR(t,!1),i=OR(t,!0),o=3,s=!1;for(let l of e){if(l.length>1){let p=BD(l,h=>{var m;return((m=Vr(h.moduleSpecifier,ca))==null?void 0:m.text)??""},r,i);if(p&&(o&=p,s=!0),!o)return o}let d=Dr(l,p=>{var h,m;return((m=Vr((h=p.importClause)==null?void 0:h.namedBindings,sg))==null?void 0:m.elements.length)>1});if(d){let p=Hpe(d.importClause.namedBindings.elements,t);if(p&&(o&=p,s=!0),!o)return o}if(o!==3)return o}return s?0:o}function JYe(e,t){let r=OR(t,!1),i=OR(t,!0);return BD(e,o=>Xz(jpe(o))||"",r,i)}function KYe(e,t,r){let i=Vg(e,t,Ps,(o,s)=>Upe(o,s,r));return i<0?~i:i}function XYe(e,t,r,i){let o=Vg(e,t,Ps,(s,l)=>Gpe(s,l,r,i));return o<0?~o:o}function Upe(e,t,r){return Vpe(jpe(e),jpe(t),r)||YYe(e,t)}function YYe(e,t){return Ms(dPe(e),dPe(t))}function dPe(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function $Ye(e){return ta(e,t=>nn(QYe(t),r=>r.name&&r.propertyName&&r.name.escapedText===r.propertyName.escapedText?P.updateImportSpecifier(r,r.isTypeOnly,void 0,r.name):r))}function QYe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&sg(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function WY(e){return e?BZ:gd}function ZYe(e,t){let r=e$e(t),i=t.organizeImportsCaseFirst??!1,o=t.organizeImportsNumericCollation??!1,s=t.organizeImportsAccentCollation??!0,l=e?s?"accent":"base":s?"variant":"case";return new Intl.Collator(r,{usage:"sort",caseFirst:i||"false",sensitivity:l,numeric:o}).compare}function e$e(e){let t=e.organizeImportsLocale;t==="auto"&&(t=GZ()),t===void 0&&(t="en");let r=Intl.Collator.supportedLocalesOf(t);return r.length?r[0]:"en"}function OR(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?ZYe(t,e):WY(t)}function t$e(e,t){let r=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return OR(e,r)}function n$e(e){let t=[],r=e.statements,i=yn(r),o=0,s=0;for(;o<i;)if(xl(r[o])){t[s]===void 0&&(t[s]=[]);let l=r[o];if(l.moduleSpecifier)t[s].push(l),o++;else{for(;o<i&&xl(r[o]);)t[s].push(r[o++]);s++}}else o++;return ta(t,l=>wY(e,l))}var uPe,Hpe,r$e=pt({"src/services/organizeImports.ts"(){"use strict";Hr(),uPe=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],r){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,r)}},Hpe=zZ((e,t)=>{switch(t.organizeImportsTypeOrder){case"first":if(!Hw(e,(o,s)=>zv(s.isTypeOnly,o.isTypeOnly)))return 0;break;case"inline":if(!Hw(e,(o,s)=>D1(!0)(o.name.text,s.name.text)))return 0;break;default:if(!Hw(e,(o,s)=>zv(o.isTypeOnly,s.isTypeOnly)))return 0;break}let r=OR(t,!1),i=OR(t,!0);if(t.organizeImportsTypeOrder!=="inline"){let{type:o,regular:s}=Kw(e,p=>p.isTypeOnly?"type":"regular"),l=o?.length?BD(o,p=>p.name.text,r,i):void 0,d=s?.length?BD(s,p=>p.name.text??"",r,i):void 0;return l===void 0?d??0:d===void 0?l:l===0||d===0?0:d&l}return BD(e,o=>o.name.text,r,i)},new uPe)}}),Zf={};Ra(Zf,{coalesceExports:()=>UYe,coalesceImports:()=>VYe,compareImportOrExportSpecifiers:()=>Gpe,compareImportsOrRequireStatements:()=>Upe,compareModuleSpecifiers:()=>HYe,detectImportDeclarationSorting:()=>JYe,detectImportSpecifierSorting:()=>Hpe,detectSorting:()=>qYe,getImportDeclarationInsertionIndex:()=>KYe,getImportSpecifierInsertionIndex:()=>XYe,getOrganizeImportsComparer:()=>OR,organizeImports:()=>FYe});var i$e=pt({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";r$e()}});function o$e(e,t){let r=[];return a$e(e,t,r),s$e(e,r),r.sort((i,o)=>i.textSpan.start-o.textSpan.start)}function a$e(e,t,r){let i=40,o=0,s=[...e.statements,e.endOfFileToken],l=s.length;for(;o<l;){for(;o<l&&!AS(s[o]);)d(s[o]),o++;if(o===l)break;let p=o;for(;o<l&&AS(s[o]);)d(s[o]),o++;let h=o-1;h!==p&&r.push(Yz(Ya(s[p],102,e).getStart(e),s[h].getEnd(),"imports"))}function d(p){var h;if(i===0)return;t.throwIfCancellationRequested(),(bd(p)||cl(p)||Kf(p)||Um(p)||p.kind===1)&&fPe(p,e,t,r),Lo(p)&&Zn(p.parent)&&Er(p.parent.left)&&fPe(p.parent.left,e,t,r),(Do(p)||t_(p))&&qpe(p.statements.end,e,t,r),(Kr(p)||Gd(p))&&qpe(p.members.end,e,t,r);let m=l$e(p,e);m&&r.push(m),i--,Bo(p)?(i++,d(p.expression),i--,p.arguments.forEach(d),(h=p.typeArguments)==null||h.forEach(d)):HS(p)&&p.elseStatement&&HS(p.elseStatement)?(d(p.expression),d(p.thenStatement),i++,d(p.elseStatement),i--):p.forEachChild(d),i++}}function s$e(e,t){let r=[],i=e.getLineStarts();for(let o of i){let s=e.getLineEndOfPosition(o),l=e.text.substring(o,s),d=pPe(l);if(!(!d||uv(e,o)))if(d[1]){let p=r.pop();p&&(p.textSpan.length=s-p.textSpan.start,p.hintSpan.length=s-p.textSpan.start,t.push(p))}else{let p=Gl(e.text.indexOf("//",o),s);r.push(BI(p,"region",p,!1,d[2]||"#region"))}}}function pPe(e){return e=e.trimStart(),Ui(e,"//")?(e=e.slice(2).trim(),mPe.exec(e)):null}function qpe(e,t,r,i){let o=mh(t.text,e);if(!o)return;let s=-1,l=-1,d=0,p=t.getFullText();for(let{kind:m,pos:v,end:E}of o)switch(r.throwIfCancellationRequested(),m){case 2:let S=p.slice(v,E);if(pPe(S)){h(),d=0;break}d===0&&(s=v),l=E,d++;break;case 3:h(),i.push(Yz(v,E,"comment")),d=0;break;default:x.assertNever(m)}h();function h(){d>1&&i.push(Yz(s,l,"comment"))}}function fPe(e,t,r,i){ZA(e)||qpe(e.pos,t,r,i)}function Yz(e,t,r){return BI(Gl(e,t),r)}function l$e(e,t){switch(e.kind){case 241:if(Lo(e.parent))return c$e(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return m(e.parent);case 258:let S=e.parent;if(S.tryBlock===e)return m(e.parent);if(S.finallyBlock===e){let A=Ya(S,98,t);if(A)return m(A)}default:return BI(eu(e,t),"code")}case 268:return m(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return m(e);case 189:return m(e,!1,!aI(e.parent),23);case 296:case 297:return v(e.statements);case 210:return h(e);case 209:return h(e,23);case 284:return s(e);case 288:return l(e);case 285:case 286:return d(e.attributes);case 228:case 15:return p(e);case 207:return m(e,!1,!Na(e.parent),23);case 219:return o(e);case 213:return i(e);case 217:return E(e);case 275:case 279:case 300:return r(e)}function r(S){if(!S.elements.length)return;let A=Ya(S,19,t),C=Ya(S,20,t);if(!(!A||!C||Jp(A.pos,C.pos,t)))return FY(A,C,S,t,!1,!1)}function i(S){if(!S.arguments.length)return;let A=Ya(S,21,t),C=Ya(S,22,t);if(!(!A||!C||Jp(A.pos,C.pos,t)))return FY(A,C,S,t,!1,!0)}function o(S){if(Do(S.body)||uu(S.body)||Jp(S.body.getFullStart(),S.body.getEnd(),t))return;let A=Gl(S.body.getFullStart(),S.body.getEnd());return BI(A,"code",eu(S))}function s(S){let A=Gl(S.openingElement.getStart(t),S.closingElement.getEnd()),C=S.openingElement.tagName.getText(t),R="<"+C+">...</"+C+">";return BI(A,"code",A,!1,R)}function l(S){let A=Gl(S.openingFragment.getStart(t),S.closingFragment.getEnd());return BI(A,"code",A,!1,"<>...</>")}function d(S){if(S.properties.length!==0)return Yz(S.getStart(t),S.getEnd(),"code")}function p(S){if(!(S.kind===15&&S.text.length===0))return Yz(S.getStart(t),S.getEnd(),"code")}function h(S,A=19){return m(S,!1,!Bd(S.parent)&&!Bo(S.parent),A)}function m(S,A=!1,C=!0,R=19,L=R===19?20:24){let G=Ya(e,R,t),U=Ya(e,L,t);return G&&U&&FY(G,U,S,t,A,C)}function v(S){return S.length?BI(yy(S),"code"):void 0}function E(S){if(Jp(S.getStart(),S.getEnd(),t))return;let A=Gl(S.getStart(),S.getEnd());return BI(A,"code",eu(S))}}function c$e(e,t,r){let i=d$e(e,t,r),o=Ya(t,20,r);return i&&o&&FY(i,o,e,r,e.kind!==219)}function FY(e,t,r,i,o=!1,s=!0){let l=Gl(s?e.getFullStart():e.getStart(i),t.getEnd());return BI(l,"code",eu(r,i),o)}function BI(e,t,r=e,i=!1,o="..."){return{textSpan:e,kind:t,hintSpan:r,bannerText:o,autoCollapse:i}}function d$e(e,t,r){if(kne(e.parameters,r)){let i=Ya(e,21,r);if(i)return i}return Ya(t,19,r)}var mPe,u$e=pt({"src/services/outliningElementsCollector.ts"(){"use strict";Hr(),mPe=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),zY={};Ra(zY,{collectElements:()=>o$e});var p$e=pt({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";u$e()}});function f$e(e,t,r,i){let o=g3(pu(t,r));if(hPe(o)){let s=m$e(o,e.getTypeChecker(),t,e,i);if(s)return s}return BY(f.You_cannot_rename_this_element)}function m$e(e,t,r,i,o){let s=t.getSymbolAtLocation(e);if(!s){if(Ga(e)){let E=h3(e,t);if(E&&(E.flags&128||E.flags&1048576&&ji(E.types,S=>!!(S.flags&128))))return Jpe(e.text,e.text,"string","",e,r)}else if(Gq(e)){let E=Vl(e);return Jpe(E,E,"label","",e,r)}return}let{declarations:l}=s;if(!l||l.length===0)return;if(l.some(E=>_$e(i,E)))return BY(f.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Me(e)&&e.escapedText==="default"&&s.parent&&s.parent.flags&1536)return;if(Ga(e)&&xL(e))return o.allowRenameOfImportPath?g$e(e,r,s):void 0;let d=h$e(r,s,t,o);if(d)return BY(d);let p=gv.getSymbolKind(t,s,e),h=sle(e)||Tp(e)&&e.parent.kind===167?Sf(Ef(e)):void 0,m=h||t.symbolToString(s),v=h||t.getFullyQualifiedName(s);return Jpe(m,v,p,gv.getSymbolModifiers(t,s),e,r)}function _$e(e,t){let r=t.getSourceFile();return e.isSourceFileDefaultLibrary(r)&&el(r.fileName,".d.ts")}function h$e(e,t,r,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let l=t.declarations&&Dr(t.declarations,d=>Iu(d));l&&!l.propertyName&&(t=r.getAliasedSymbol(t))}let{declarations:o}=t;if(!o)return;let s=_Pe(e.path);if(s===void 0)return ct(o,l=>tO(l.getSourceFile().path))?f.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let l of o){let d=_Pe(l.getSourceFile().path);if(d){let p=Math.min(s.length,d.length);for(let h=0;h<=p;h++)if(gd(s[h],d[h])!==0)return f.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function _Pe(e){let t=mc(e),r=t.lastIndexOf("node_modules");if(r!==-1)return t.slice(0,r+2)}function g$e(e,t,r){if(!Ic(e.text))return BY(f.You_cannot_rename_a_module_via_a_global_import);let i=r.declarations&&Dr(r.declarations,Li);if(!i)return;let o=Zs(e.text,"/index")||Zs(e.text,"/index.js")?void 0:UZ(Yd(i.fileName),"/index"),s=o===void 0?i.fileName:o,l=o===void 0?"module":"directory",d=e.text.lastIndexOf("/")+1,p=qc(e.getStart(t)+1+d,e.text.length-d);return{canRename:!0,fileToRename:s,kind:l,displayName:s,fullDisplayName:e.text,kindModifiers:"",triggerSpan:p}}function Jpe(e,t,r,i,o,s){return{canRename:!0,fileToRename:void 0,kind:r,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:v$e(o,s)}}function BY(e){return{canRename:!1,localizedErrorMessage:vo(e)}}function v$e(e,t){let r=e.getStart(t),i=e.getWidth(t);return Ga(e)&&(r+=1,i-=2),qc(r,i)}function hPe(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return p3(e);default:return!1}}var y$e=pt({"src/services/rename.ts"(){"use strict";Hr()}}),$z={};Ra($z,{getRenameInfo:()=>f$e,nodeIsEligibleForRename:()=>hPe});var b$e=pt({"src/services/_namespaces/ts.Rename.ts"(){"use strict";y$e()}});function E$e(e,t,r,i,o){let s=e.getTypeChecker(),l=v3(t,r);if(!l)return;let d=!!i&&i.kind==="characterTyped";if(d&&(RI(t,r,l)||uv(t,r)))return;let p=!!i&&i.kind==="invoked",h=F$e(l,r,t,s,p);if(!h)return;o.throwIfCancellationRequested();let m=S$e(h,s,t,l,d);return o.throwIfCancellationRequested(),m?s.runWithCancellationToken(o,v=>m.kind===0?APe(m.candidates,m.resolvedSignature,h,t,v):B$e(m.symbol,h,t,v)):wd(t)?A$e(h,e,o):void 0}function S$e({invocation:e,argumentCount:t},r,i,o,s){switch(e.kind){case 0:{if(s&&!T$e(o,e.node,i))return;let l=[],d=r.getResolvedSignatureForSignatureHelp(e.node,l,t);return l.length===0?void 0:{kind:0,candidates:l,resolvedSignature:d}}case 1:{let{called:l}=e;if(s&&!gPe(o,i,Me(l)?l.parent:l))return;let d=$q(l,t,r);if(d.length!==0)return{kind:0,candidates:d,resolvedSignature:Sa(d)};let p=r.getSymbolAtLocation(l);return p&&{kind:1,symbol:p}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return x.assertNever(e)}}function T$e(e,t,r){if(!Um(t))return!1;let i=t.getChildren(r);switch(e.kind){case 21:return To(i,e);case 28:{let o=_3(e);return!!o&&To(i,o)}case 30:return gPe(e,r,t.expression);default:return!1}}function A$e(e,t,r){if(e.invocation.kind===2)return;let i=SPe(e.invocation),o=Er(i)?i.name.text:void 0,s=t.getTypeChecker();return o===void 0?void 0:ml(t.getSourceFiles(),l=>ml(l.getNamedDeclarations().get(o),d=>{let p=d.symbol&&s.getTypeOfSymbolAtLocation(d.symbol,d),h=p&&p.getCallSignatures();if(h&&h.length)return s.runWithCancellationToken(r,m=>APe(h,h[0],e,l,m,!0))}))}function gPe(e,t,r){let i=e.getFullStart(),o=e.parent;for(;o;){let s=ec(i,t,o,!0);if(s)return Cp(r,s);o=o.parent}return x.fail("Could not find preceding token")}function I$e(e,t,r,i){let o=yPe(e,t,r,i);return!o||o.isTypeParameterList||o.invocation.kind!==0?void 0:{invocation:o.invocation.node,argumentCount:o.argumentCount,argumentIndex:o.argumentIndex}}function vPe(e,t,r,i){let o=x$e(e,r,i);if(!o)return;let{list:s,argumentIndex:l}=o,d=k$e(i,s);l!==0&&x.assertLessThan(l,d);let p=w$e(s,r);return{list:s,argumentIndex:l,argumentCount:d,argumentsSpan:p}}function x$e(e,t,r){if(e.kind===30||e.kind===21)return{list:z$e(e.parent,e,t),argumentIndex:0};{let i=_3(e);return i&&{list:i,argumentIndex:L$e(r,i,e)}}}function yPe(e,t,r,i){let{parent:o}=e;if(Um(o)){let s=o,l=vPe(e,t,r,i);if(!l)return;let{list:d,argumentIndex:p,argumentCount:h,argumentsSpan:m}=l;return{isTypeParameterList:!!o.typeArguments&&o.typeArguments.pos===d.pos,invocation:{kind:0,node:s},argumentsSpan:m,argumentIndex:p,argumentCount:h}}else{if(eI(e)&&a0(o))return Vk(e,t,r)?Xpe(o,0,r):void 0;if(tI(e)&&o.parent.kind===215){let s=o,l=s.parent;x.assert(s.kind===228);let d=Vk(e,t,r)?0:1;return Xpe(l,d,r)}else if(uN(o)&&a0(o.parent.parent)){let s=o,l=o.parent.parent;if(d6(e)&&!Vk(e,t,r))return;let d=s.parent.templateSpans.indexOf(s),p=O$e(d,e,t,r);return Xpe(l,p,r)}else if(Od(o)){let s=o.attributes.pos,l=ua(r.text,o.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:o},argumentsSpan:qc(s,l-s),argumentIndex:0,argumentCount:1}}else{let s=Qq(e,r);if(s){let{called:l,nTypeArguments:d}=s,p={kind:1,called:l},h=Gl(l.getStart(r),e.end);return{isTypeParameterList:!0,invocation:p,argumentsSpan:h,argumentIndex:d,argumentCount:d+1}}return}}}function R$e(e,t,r,i){return D$e(e,t,r,i)||yPe(e,t,r,i)}function bPe(e){return Zn(e.parent)?bPe(e.parent):e}function Kpe(e){return Zn(e.left)?Kpe(e.left)+1:2}function D$e(e,t,r,i){let o=C$e(e);if(o===void 0)return;let s=N$e(o,r,t,i);if(s===void 0)return;let{contextualType:l,argumentIndex:d,argumentCount:p,argumentsSpan:h}=s,m=l.getNonNullableType(),v=m.symbol;if(v===void 0)return;let E=Ns(m.getCallSignatures());return E===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:E,node:e,symbol:P$e(v)},argumentsSpan:h,argumentIndex:d,argumentCount:p}}function C$e(e){switch(e.kind){case 21:case 28:return e;default:return Rn(e.parent,t=>ao(t)?!0:Na(t)||Rf(t)||i0(t)?!1:"quit")}}function N$e(e,t,r,i){let{parent:o}=e;switch(o.kind){case 217:case 174:case 218:case 219:let s=vPe(e,r,t,i);if(!s)return;let{argumentIndex:l,argumentCount:d,argumentsSpan:p}=s,h=El(o)?i.getContextualTypeForObjectLiteralElement(o):i.getContextualType(o);return h&&{contextualType:h,argumentIndex:l,argumentCount:d,argumentsSpan:p};case 226:{let m=bPe(o),v=i.getContextualType(m),E=e.kind===21?0:Kpe(o)-1,S=Kpe(m);return v&&{contextualType:v,argumentIndex:E,argumentCount:S,argumentsSpan:eu(o)}}default:return}}function P$e(e){return e.name==="__type"&&ml(e.declarations,t=>{var r;return B_(t)?(r=Vr(t.parent,Hm))==null?void 0:r.symbol:void 0})||e}function M$e(e,t){let r=t.getTypeAtLocation(e.expression);if(t.isTupleType(r)){let{elementFlags:i,fixedLength:o}=r.target;if(o===0)return 0;let s=Tl(i,l=>!(l&1));return s<0?o:s}return 0}function L$e(e,t,r){return EPe(e,t,r)}function k$e(e,t){return EPe(e,t,void 0)}function EPe(e,t,r){let i=t.getChildren(),o=0,s=!1;for(let l of i){if(r&&l===r)return!s&&l.kind===28&&o++,o;if(bm(l)){o+=M$e(l,e),s=!0;continue}if(l.kind!==28){o++,s=!0;continue}if(s){s=!1;continue}o++}return r?o:i.length&&Da(i).kind===28?o+1:o}function O$e(e,t,r,i){return x.assert(r>=t.getStart(),"Assumed 'position' could not occur before node."),Hee(t)?Vk(t,r,i)?0:e+2:e+1}function Xpe(e,t,r){let i=eI(e.template)?1:e.template.templateSpans.length+1;return t!==0&&x.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:W$e(e,r),argumentIndex:t,argumentCount:i}}function w$e(e,t){let r=e.getFullStart(),i=ua(t.text,e.getEnd(),!1);return qc(r,i-r)}function W$e(e,t){let r=e.template,i=r.getStart(),o=r.getEnd();return r.kind===228&&Da(r.templateSpans).literal.getFullWidth()===0&&(o=ua(t.text,o,!1)),qc(i,o-i)}function F$e(e,t,r,i,o){for(let s=e;!Li(s)&&(o||!Do(s));s=s.parent){x.assert(Cp(s.parent,s),"Not a subspan",()=>`Child: ${x.formatSyntaxKind(s.kind)}, parent: ${x.formatSyntaxKind(s.parent.kind)}`);let l=R$e(s,t,r,i);if(l)return l}}function z$e(e,t,r){let i=e.getChildren(r),o=i.indexOf(t);return x.assert(o>=0&&i.length>o+1),i[o+1]}function SPe(e){return e.kind===0?vW(e.node):e.called}function TPe(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function APe(e,t,{isTypeParameterList:r,argumentCount:i,argumentsSpan:o,invocation:s,argumentIndex:l},d,p,h){var m;let v=TPe(s),E=s.kind===2?s.symbol:p.getSymbolAtLocation(SPe(s))||h&&((m=t.declaration)==null?void 0:m.symbol),S=E?tP(p,E,h?d:void 0,void 0):je,A=nn(e,U=>V$e(U,S,r,p,v,d));l!==0&&x.assertLessThan(l,i);let C=0,R=0;for(let U=0;U<A.length;U++){let K=A[U];if(e[U]===t&&(C=R,K.length>1)){let F=0;for(let oe of K){if(oe.isVariadic||oe.parameters.length>=i){C=R+F;break}F++}}R+=K.length}x.assert(C!==-1);let L={items:wD(A,Ps),applicableSpan:o,selectedItemIndex:C,argumentIndex:l,argumentCount:i},G=L.items[C];if(G.isVariadic){let U=Tl(G.parameters,K=>!!K.isRest);-1<U&&U<G.parameters.length-1?L.argumentIndex=G.parameters.length:L.argumentIndex=Math.min(L.argumentIndex,G.parameters.length-1)}return L}function B$e(e,{argumentCount:t,argumentsSpan:r,invocation:i,argumentIndex:o},s,l){let d=l.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);return d?{items:[G$e(e,d,l,TPe(i),s)],applicableSpan:r,selectedItemIndex:0,argumentIndex:o,argumentCount:t}:void 0}function G$e(e,t,r,i,o){let s=tP(r,e),l=y0(),d=t.map(v=>IPe(v,r,i,o,l)),p=e.getDocumentationComment(r),h=e.getJsDocTags(r);return{isVariadic:!1,prefixDisplayParts:[...s,Ad(30)],suffixDisplayParts:[Ad(32)],separatorDisplayParts:Ype,parameters:d,documentation:p,tags:h}}function V$e(e,t,r,i,o,s){let l=(r?U$e:H$e)(e,i,o,s);return nn(l,({isVariadic:d,parameters:p,prefix:h,suffix:m})=>{let v=[...t,...h],E=[...m,...j$e(e,o,i)],S=e.getDocumentationComment(i),A=e.getJsDocTags();return{isVariadic:d,prefixDisplayParts:v,suffixDisplayParts:E,separatorDisplayParts:Ype,parameters:p,documentation:S,tags:A}})}function j$e(e,t,r){return by(i=>{i.writePunctuation(":"),i.writeSpace(" ");let o=r.getTypePredicateOfSignature(e);o?r.writeTypePredicate(o,t,void 0,i):r.writeType(r.getReturnTypeOfSignature(e),t,void 0,i)})}function U$e(e,t,r,i){let o=(e.target||e).typeParameters,s=y0(),l=(o||je).map(p=>IPe(p,t,r,i,s)),d=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,r,kO)]:[];return t.getExpandedParameters(e).map(p=>{let h=P.createNodeArray([...d,...nn(p,v=>t.symbolToParameterDeclaration(v,r,kO))]),m=by(v=>{s.writeList(2576,h,i,v)});return{isVariadic:!1,parameters:l,prefix:[Ad(30)],suffix:[Ad(32),...m]}})}function H$e(e,t,r,i){let o=y0(),s=by(p=>{if(e.typeParameters&&e.typeParameters.length){let h=P.createNodeArray(e.typeParameters.map(m=>t.typeParameterToDeclaration(m,r,kO)));o.writeList(53776,h,i,p)}}),l=t.getExpandedParameters(e),d=t.hasEffectiveRestParameter(e)?l.length===1?p=>!0:p=>{var h;return!!(p.length&&((h=Vr(p[p.length-1],L_))==null?void 0:h.links.checkFlags)&32768)}:p=>!1;return l.map(p=>({isVariadic:d(p),parameters:p.map(h=>q$e(h,t,r,i,o)),prefix:[...s,Ad(21)],suffix:[Ad(22)]}))}function q$e(e,t,r,i,o){let s=by(p=>{let h=t.symbolToParameterDeclaration(e,r,kO);o.writeNode(4,h,i,p)}),l=t.isOptionalParameter(e.valueDeclaration),d=L_(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:s,isOptional:l,isRest:d}}function IPe(e,t,r,i,o){let s=by(l=>{let d=t.typeParameterToDeclaration(e,r,kO);o.writeNode(4,d,i,l)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:s,isOptional:!1,isRest:!1}}var kO,Ype,J$e=pt({"src/services/signatureHelp.ts"(){"use strict";Hr(),kO=70246400,Ype=[Ad(28),ul()]}}),OO={};Ra(OO,{getArgumentInfoForCompletions:()=>I$e,getSignatureHelpItems:()=>E$e});var K$e=pt({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";J$e()}});function X$e(e,t){var r,i;let o={textSpan:Gl(t.getFullStart(),t.getEnd())},s=t;e:for(;;){let p=$$e(s);if(!p.length)break;for(let h=0;h<p.length;h++){let m=p[h-1],v=p[h],E=p[h+1];if(Tb(v,t,!0)>e)break e;let S=x_(mb(t.text,v.end));if(S&&S.kind===2&&d(S.pos,S.end),Y$e(t,e,v)){if(t9(v)&&_s(s)&&!Jp(v.getStart(t),v.getEnd(),t)&&l(v.getStart(t),v.getEnd()),Do(v)||uN(v)||tI(v)||d6(v)||m&&tI(m)||yc(v)&&cl(s)||jx(v)&&yc(s)||yi(v)&&jx(s)&&p.length===1||f0(v)||wb(v)||YS(v)){s=v;break}if(uN(s)&&E&&B8(E)){let L=v.getFullStart()-2,G=E.getStart()+1;l(L,G)}let A=jx(v)&&Q$e(m)&&Z$e(E)&&!Jp(m.getStart(),E.getStart(),t),C=A?m.getEnd():v.getStart(),R=A?E.getStart():eQe(t,v);if(ap(v)&&((r=v.jsDoc)!=null&&r.length)&&l(Sa(v.jsDoc).getStart(),R),jx(v)){let L=v.getChildren()[0];L&&ap(L)&&((i=L.jsDoc)!=null&&i.length)&&L.getStart()!==v.pos&&(C=Math.min(C,Sa(L.jsDoc).getStart()))}l(C,R),(ca(v)||NA(v))&&l(C+1,R-1),s=v;break}if(h===p.length-1)break e}}return o;function l(p,h){if(p!==h){let m=Gl(p,h);(!o||!vR(m,o.textSpan)&&Tee(m,e))&&(o={textSpan:m,...o&&{parent:o}})}}function d(p,h){l(p,h);let m=p;for(;t.text.charCodeAt(m)===47;)m++;l(m,h)}}function Y$e(e,t,r){return x.assert(r.pos<=t),t<r.end?!0:r.getEnd()===t?pu(e,t).pos<r.end:!1}function $$e(e){var t;if(Li(e))return wO(e.getChildAt(0).getChildren(),xPe);if(wx(e)){let[r,...i]=e.getChildren(),o=x.checkDefined(i.pop());x.assertEqual(r.kind,19),x.assertEqual(o.kind,20);let s=wO(i,d=>d===e.readonlyToken||d.kind===148||d===e.questionToken||d.kind===58),l=wO(s,({kind:d})=>d===23||d===168||d===24);return[r,WO(GY(l,({kind:d})=>d===59)),o]}if(Gu(e)){let r=wO(e.getChildren(),l=>l===e.name||To(e.modifiers,l)),i=((t=r[0])==null?void 0:t.kind)===327?r[0]:void 0,o=i?r.slice(1):r,s=GY(o,({kind:l})=>l===59);return i?[i,WO(s)]:s}if(ao(e)){let r=wO(e.getChildren(),o=>o===e.dotDotDotToken||o===e.name),i=wO(r,o=>o===r[0]||o===e.questionToken);return GY(i,({kind:o})=>o===64)}return Na(e)?GY(e.getChildren(),({kind:r})=>r===64):e.getChildren()}function wO(e,t){let r=[],i;for(let o of e)t(o)?(i=i||[],i.push(o)):(i&&(r.push(WO(i)),i=void 0),r.push(o));return i&&r.push(WO(i)),r}function GY(e,t,r=!0){if(e.length<2)return e;let i=Tl(e,t);if(i===-1)return e;let o=e.slice(0,i),s=e[i],l=Da(e),d=r&&l.kind===27,p=e.slice(i+1,d?e.length-1:void 0),h=pM([o.length?WO(o):void 0,s,p.length?WO(p):void 0]);return d?h.concat(l):h}function WO(e){return x.assertGreaterThanOrEqual(e.length,1),W_(U_.createSyntaxList(e),e[0].pos,Da(e).end)}function Q$e(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function Z$e(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function eQe(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var xPe,tQe=pt({"src/services/smartSelection.ts"(){"use strict";Hr(),xPe=hm(cc,Nc)}}),VY={};Ra(VY,{getSmartSelectionRange:()=>X$e});var nQe=pt({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";tQe()}});function RPe(e,t,r){let i=DPe(e,t,r);if(i!=="")return i;let o=Sx(t);return o&32?Vs(t,231)?"local class":"class":o&384?"enum":o&524288?"type":o&64?"interface":o&262144?"type parameter":o&8?"enum member":o&2097152?"alias":o&1536?"module":i}function DPe(e,t,r){let i=e.getRootSymbols(t);if(i.length===1&&Sa(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,r).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(r.kind===110&<(r)||zA(r))return"parameter";let o=Sx(t);if(o&3)return hJ(t)?"parameter":t.valueDeclaration&&Z1(t.valueDeclaration)?"const":t.valueDeclaration&&cL(t.valueDeclaration)?"using":t.valueDeclaration&&lL(t.valueDeclaration)?"await using":an(t.declarations,lW)?"let":PPe(t)?"local var":"var";if(o&16)return PPe(t)?"local function":"function";if(o&32768)return"getter";if(o&65536)return"setter";if(o&8192)return"method";if(o&16384)return"constructor";if(o&131072)return"index";if(o&4){if(o&33554432&&t.links.checkFlags&6){let s=an(e.getRootSymbols(t),l=>{if(l.getFlags()&98311)return"property"});return s||(e.getTypeOfSymbolAtLocation(t,r).getCallSignatures().length?"method":"property")}return"property"}return""}function CPe(e){if(e.declarations&&e.declarations.length){let[t,...r]=e.declarations,i=yn(r)&&H3(t)&&ct(r,s=>!H3(s))?65536:0,o=YN(t,i);if(o)return o.split(",")}return[]}function rQe(e,t){if(!t)return"";let r=new Set(CPe(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&an(CPe(i),o=>{r.add(o)})}return t.flags&16777216&&r.add("optional"),r.size>0?bo(r.values()).join(","):""}function NPe(e,t,r,i,o,s,l,d){var p;let h=[],m=[],v=[],E=Sx(t),S=l&1?DPe(e,t,o):"",A=!1,C=o.kind===110&&bW(o)||zA(o),R,L,G=!1;if(o.kind===110&&!C)return{displayParts:[Hu(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(S!==""||E&32||E&2097152){if(S==="getter"||S==="setter"){let le=Dr(t.declarations,Ee=>Ee.name===o);if(le)switch(le.kind){case 177:S="getter";break;case 178:S="setter";break;case 172:S="accessor";break;default:x.assertNever(le)}else S="property"}let H;if(s??(s=C?e.getTypeAtLocation(o):e.getTypeOfSymbolAtLocation(t,o)),o.parent&&o.parent.kind===211){let le=o.parent.name;(le===o||le&&le.getFullWidth()===0)&&(o=o.parent)}let ee;if(Um(o)?ee=o:(Wq(o)||KN(o)||o.parent&&(Od(o.parent)||a0(o.parent))&&Lo(t.valueDeclaration))&&(ee=o.parent),ee){H=e.getResolvedSignature(ee);let le=ee.kind===214||Bo(ee)&&ee.expression.kind===108,Ee=le?s.getConstructSignatures():s.getCallSignatures();if(H&&!To(Ee,H.target)&&!To(Ee,H)&&(H=Ee.length?Ee[0]:void 0),H){switch(le&&E&32?(S="constructor",$(s.symbol,S)):E&2097152?(S="alias",de(S),h.push(ul()),le&&(H.flags&4&&(h.push(Hu(128)),h.push(ul())),h.push(Hu(105)),h.push(ul())),W(t)):$(t,S),S){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":h.push(Ad(59)),h.push(ul()),!(br(s)&16)&&s.symbol&&(Pr(h,tP(e,s.symbol,i,void 0,5)),h.push(yR())),le&&(H.flags&4&&(h.push(Hu(128)),h.push(ul())),h.push(Hu(105)),h.push(ul())),fe(H,Ee,262144);break;default:fe(H,Ee)}A=!0,G=Ee.length>1}}else if(Hq(o)&&!(E&98304)||o.kind===137&&o.parent.kind===176){let le=o.parent;if(t.declarations&&Dr(t.declarations,ce=>ce===(o.kind===137?le.parent:le))){let ce=le.kind===176?s.getNonNullableType().getConstructSignatures():s.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(le)?H=ce[0]:H=e.getSignatureFromDeclaration(le),le.kind===176?(S="constructor",$(s.symbol,S)):$(le.kind===179&&!(s.symbol.flags&2048||s.symbol.flags&4096)?s.symbol:t,S),H&&fe(H,ce),A=!0,G=ce.length>1}}}if(E&32&&!A&&!C&&(F(),Vs(t,231)?de("local class"):h.push(Hu(86)),h.push(ul()),W(t),q(t,r)),E&64&&l&2&&(K(),h.push(Hu(120)),h.push(ul()),W(t),q(t,r)),E&524288&&l&2&&(K(),h.push(Hu(156)),h.push(ul()),W(t),q(t,r),h.push(ul()),h.push(eP(64)),h.push(ul()),Pr(h,Xk(e,o.parent&&Qh(o.parent)?e.getTypeAtLocation(o.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),E&384&&(K(),ct(t.declarations,H=>kb(H)&&BE(H))&&(h.push(Hu(87)),h.push(ul())),h.push(Hu(94)),h.push(ul()),W(t)),E&1536&&!C){K();let H=Vs(t,267),ee=H&&H.name&&H.name.kind===80;h.push(Hu(ee?145:144)),h.push(ul()),W(t)}if(E&262144&&l&2)if(K(),h.push(Ad(21)),h.push(Pp("type parameter")),h.push(Ad(22)),h.push(ul()),W(t),t.parent)oe(),W(t.parent,i),q(t.parent,i);else{let H=Vs(t,168);if(H===void 0)return x.fail();let ee=H.parent;if(ee)if(Lo(ee)){oe();let le=e.getSignatureFromDeclaration(ee);ee.kind===180?(h.push(Hu(105)),h.push(ul())):ee.kind!==179&&ee.name&&W(ee.symbol),Pr(h,yJ(e,le,r,32))}else Xf(ee)&&(oe(),h.push(Hu(156)),h.push(ul()),W(ee.symbol),q(ee.symbol,r))}if(E&8){S="enum member",$(t,"enum member");let H=(p=t.declarations)==null?void 0:p[0];if(H?.kind===306){let ee=e.getConstantValue(H);ee!==void 0&&(h.push(ul()),h.push(eP(64)),h.push(ul()),h.push(Ru(Ste(ee),typeof ee=="number"?7:8)))}}if(t.flags&2097152){if(K(),!A||m.length===0&&v.length===0){let H=e.getAliasedSymbol(t);if(H!==t&&H.declarations&&H.declarations.length>0){let ee=H.declarations[0],le=mo(ee);if(le&&!A){let Ee=iW(ee)&&Wr(ee,128),ce=t.name!=="default"&&!Ee,Z=NPe(e,H,Nn(ee),ee,le,s,l,ce?t:H);h.push(...Z.displayParts),h.push(yR()),R=Z.documentation,L=Z.tags}else R=H.getContextualDocumentationComment(ee,e),L=H.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:h.push(Hu(95)),h.push(ul()),h.push(Hu(145));break;case 277:h.push(Hu(95)),h.push(ul()),h.push(Hu(t.declarations[0].isExportEquals?64:90));break;case 281:h.push(Hu(95));break;default:h.push(Hu(102))}h.push(ul()),W(t),an(t.declarations,H=>{if(H.kind===271){let ee=H;if(Ab(ee))h.push(ul()),h.push(eP(64)),h.push(ul()),h.push(Hu(149)),h.push(Ad(21)),h.push(Ru(Vl(gC(ee)),8)),h.push(Ad(22));else{let le=e.getSymbolAtLocation(ee.moduleReference);le&&(h.push(ul()),h.push(eP(64)),h.push(ul()),W(le,i))}return!0}})}if(!A)if(S!==""){if(s){if(C?(K(),h.push(Hu(110))):$(t,S),S==="property"||S==="accessor"||S==="getter"||S==="setter"||S==="JSX attribute"||E&3||S==="local var"||S==="index"||S==="using"||S==="await using"||C){if(h.push(Ad(59)),h.push(ul()),s.symbol&&s.symbol.flags&262144&&S!=="index"){let H=by(ee=>{let le=e.typeParameterToDeclaration(s,i,$pe);U().writeNode(4,le,Nn(uo(i)),ee)});Pr(h,H)}else Pr(h,Xk(e,s,i));if(L_(t)&&t.links.target&&L_(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let H=t.links.target.links.tupleLabelDeclaration;x.assertNode(H.name,Me),h.push(ul()),h.push(Ad(21)),h.push(Pp(ar(H.name))),h.push(Ad(22))}}else if(E&16||E&8192||E&16384||E&131072||E&98304||S==="method"){let H=s.getNonNullableType().getCallSignatures();H.length&&(fe(H[0],H),G=H.length>1)}}}else S=RPe(e,t,o);if(m.length===0&&!G&&(m=t.getContextualDocumentationComment(i,e)),m.length===0&&E&4&&t.parent&&t.declarations&&an(t.parent.declarations,H=>H.kind===312))for(let H of t.declarations){if(!H.parent||H.parent.kind!==226)continue;let ee=e.getSymbolAtLocation(H.parent.right);if(ee&&(m=ee.getDocumentationComment(e),v=ee.getJsDocTags(e),m.length>0))break}if(m.length===0&&Me(o)&&t.valueDeclaration&&Na(t.valueDeclaration)){let H=t.valueDeclaration,ee=H.parent,le=H.propertyName||H.name;if(Me(le)&&Rf(ee)){let Ee=Ef(le),ce=e.getTypeAtLocation(ee);m=ml(ce.isUnion()?ce.types:[ce],Z=>{let pe=Z.getProperty(Ee);return pe?pe.getDocumentationComment(e):void 0})||je}}return v.length===0&&!G&&(v=t.getContextualJsDocTags(i,e)),m.length===0&&R&&(m=R),v.length===0&&L&&(v=L),{displayParts:h,documentation:m,symbolKind:S,tags:v.length===0?void 0:v};function U(){return y0()}function K(){h.length&&h.push(yR()),F()}function F(){d&&(de("alias"),h.push(ul()))}function oe(){h.push(ul()),h.push(Hu(103)),h.push(ul())}function W(H,ee){let le;d&&H===t&&(H=d),S==="index"&&(le=e.getIndexInfosOfIndexSymbol(H));let Ee=[];H.flags&131072&&le?(H.parent&&(Ee=tP(e,H.parent)),Ee.push(Ad(23)),le.forEach((ce,Z)=>{Ee.push(...Xk(e,ce.keyType)),Z!==le.length-1&&(Ee.push(ul()),Ee.push(Ad(52)),Ee.push(ul()))}),Ee.push(Ad(24))):Ee=tP(e,H,ee||r,void 0,7),Pr(h,Ee),t.flags&16777216&&h.push(Ad(58))}function $(H,ee){K(),ee&&(de(ee),H&&!ct(H.declarations,le=>hs(le)||(us(le)||Dc(le))&&!le.name)&&(h.push(ul()),W(H)))}function de(H){switch(H){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":h.push(gJ(H));return;default:h.push(Ad(21)),h.push(gJ(H)),h.push(Ad(22));return}}function fe(H,ee,le=0){Pr(h,yJ(e,H,i,le|32)),ee.length>1&&(h.push(ul()),h.push(Ad(21)),h.push(eP(40)),h.push(Ru((ee.length-1).toString(),7)),h.push(ul()),h.push(Pp(ee.length===2?"overload":"overloads")),h.push(Ad(22))),m=H.getDocumentationComment(e),v=H.getJsDocTags(),ee.length>1&&m.length===0&&v.length===0&&(m=ee[0].getDocumentationComment(e),v=ee[0].getJsDocTags().filter(Ee=>Ee.name!=="deprecated"))}function q(H,ee){let le=by(Ee=>{let ce=e.symbolToTypeParameterDeclarations(H,ee,$pe);U().writeList(53776,ce,Nn(uo(ee)),Ee)});Pr(h,le)}}function iQe(e,t,r,i,o,s=aT(o),l){return NPe(e,t,r,i,o,void 0,s,l)}function PPe(e){return e.parent?!1:an(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let r=t.parent;!VE(r);r=r.parent)if(r.kind===312||r.kind===268)return!1;return!0})}var $pe,oQe=pt({"src/services/symbolDisplay.ts"(){"use strict";Hr(),$pe=70246400}}),gv={};Ra(gv,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>iQe,getSymbolKind:()=>RPe,getSymbolModifiers:()=>rQe});var aQe=pt({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";oQe()}});function MPe(e){let t=e.__pos;return x.assert(typeof t=="number"),t}function Qpe(e,t){x.assert(typeof t=="number"),e.__pos=t}function LPe(e){let t=e.__end;return x.assert(typeof t=="number"),t}function Zpe(e,t){x.assert(typeof t=="number"),e.__end=t}function kPe(e,t){return ua(e,t,!1,!0)}function sQe(e,t){let r=t;for(;r<e.length;){let i=e.charCodeAt(r);if(jm(i)){r++;continue}return i===47}return!1}function FO(e,t,r,i){return{pos:fT(e,t,i),end:wR(e,r,i)}}function fT(e,t,r,i=!1){var o,s;let{leadingTriviaOption:l}=r;if(l===0)return t.getStart(e);if(l===3){let S=t.getStart(e),A=Cf(S,e);return Wk(t,A)?A:S}if(l===2){let S=I9(t,e.text);if(S?.length)return Cf(S[0].pos,e)}let d=t.getFullStart(),p=t.getStart(e);if(d===p)return p;let h=Cf(d,e);if(Cf(p,e)===h)return l===1?d:p;if(i){let S=((o=mh(e.text,d))==null?void 0:o[0])||((s=mb(e.text,d))==null?void 0:s[0]);if(S)return ua(e.text,S.end,!0,!0)}let v=d>0?1:0,E=Zv(DC(e,h)+v,e);return E=kPe(e.text,E),Zv(DC(e,E),e)}function efe(e,t,r){let{end:i}=t,{trailingTriviaOption:o}=r;if(o===2){let s=mb(e.text,i);if(s){let l=DC(e,t.end);for(let d of s){if(d.kind===2||DC(e,d.pos)>l)break;if(DC(e,d.end)>l)return ua(e.text,d.end,!0,!0)}}}}function wR(e,t,r){var i;let{end:o}=t,{trailingTriviaOption:s}=r;if(s===0)return o;if(s===1){let p=ro(mb(e.text,o),mh(e.text,o)),h=(i=p?.[p.length-1])==null?void 0:i.end;return h||o}let l=efe(e,t,r);if(l)return l;let d=ua(e.text,o,!0);return d!==o&&(s===2||vd(e.text.charCodeAt(d-1)))?d:o}function jY(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function lQe(e){return us(e)||Ql(e)}function cQe(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function dQe(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{let r=e,i=t;return Me(r.name)&&Me(i.name)&&r.name.escapedText===i.name.escapedText?P.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,r.comment):void 0}case 349:return P.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return P.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function tfe(e,t){return ua(e.text,fT(e,t,{leadingTriviaOption:1}),!1,!0)}function uQe(e,t,r,i){let o=tfe(e,i);if(r===void 0||Jp(wR(e,t,{}),o,e))return o;let s=ec(i.getStart(e),e);if(jY(t,s)){let l=ec(t.getStart(e),e);if(jY(r,l)){let d=ua(e.text,s.getEnd(),!0,!0);if(Jp(l.getStart(e),s.getStart(e),e))return vd(e.text.charCodeAt(d-1))?d-1:d;if(vd(e.text.charCodeAt(d)))return d}}return o}function pQe(e,t){let r=Ya(e,19,t),i=Ya(e,20,t);return[r?.end,i?.end]}function UY(e){return fa(e)?e.properties:e.members}function nfe(e,t){for(let r=t.length-1;r>=0;r--){let{span:i,newText:o}=t[r];e=`${e.substring(0,i.start)}${o}${e.substring(Al(i))}`}return e}function fQe(e){return ua(e,0)===e.length}function HY(e){let t=un(e,HY,FPe,mQe,HY),r=xs(t)?t:Object.create(t);return W_(r,MPe(e),LPe(e)),r}function mQe(e,t,r,i,o){let s=Dn(e,t,r,i,o);if(!s)return s;x.assert(e);let l=s===e?P.createNodeArray(s.slice(0)):s;return W_(l,MPe(e),LPe(e)),l}function OPe(e){let t=0,r=GL(e),i=Z=>{Z&&Qpe(Z,t)},o=Z=>{Z&&Zpe(Z,t)},s=Z=>{Z&&Qpe(Z,t)},l=Z=>{Z&&Zpe(Z,t)},d=Z=>{Z&&Qpe(Z,t)},p=Z=>{Z&&Zpe(Z,t)};function h(Z,pe){if(pe||!fQe(Z)){t=r.getTextPos();let Ae=0;for(;$h(Z.charCodeAt(Z.length-Ae-1));)Ae++;t-=Ae}}function m(Z){r.write(Z),h(Z,!1)}function v(Z){r.writeComment(Z)}function E(Z){r.writeKeyword(Z),h(Z,!1)}function S(Z){r.writeOperator(Z),h(Z,!1)}function A(Z){r.writePunctuation(Z),h(Z,!1)}function C(Z){r.writeTrailingSemicolon(Z),h(Z,!1)}function R(Z){r.writeParameter(Z),h(Z,!1)}function L(Z){r.writeProperty(Z),h(Z,!1)}function G(Z){r.writeSpace(Z),h(Z,!1)}function U(Z){r.writeStringLiteral(Z),h(Z,!1)}function K(Z,pe){r.writeSymbol(Z,pe),h(Z,!1)}function F(Z){r.writeLine(Z)}function oe(){r.increaseIndent()}function W(){r.decreaseIndent()}function $(){return r.getText()}function de(Z){r.rawWrite(Z),h(Z,!1)}function fe(Z){r.writeLiteral(Z),h(Z,!0)}function q(){return r.getTextPos()}function H(){return r.getLine()}function ee(){return r.getColumn()}function le(){return r.getIndent()}function Ee(){return r.isAtStartOfLine()}function ce(){r.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:o,onBeforeEmitNodeArray:s,onAfterEmitNodeArray:l,onBeforeEmitToken:d,onAfterEmitToken:p,write:m,writeComment:v,writeKeyword:E,writeOperator:S,writePunctuation:A,writeTrailingSemicolon:C,writeParameter:R,writeProperty:L,writeSpace:G,writeStringLiteral:U,writeSymbol:K,writeLine:F,increaseIndent:oe,decreaseIndent:W,getText:$,rawWrite:de,writeLiteral:fe,getTextPos:q,getLine:H,getColumn:ee,getIndent:le,isAtStartOfLine:Ee,hasTrailingComment:()=>r.hasTrailingComment(),hasTrailingWhitespace:()=>r.hasTrailingWhitespace(),clear:ce}}function _Qe(e){let t;for(let h of e.statements)if(Hf(h))t=h;else break;let r=0,i=e.text;if(t)return r=t.end,p(),r;let o=C8(i);o!==void 0&&(r=o.length,p());let s=mh(i,r);if(!s)return r;let l,d;for(let h of s){if(h.kind===3){if(nW(i,h.pos)){l={range:h,pinnedOrTripleSlash:!0};continue}}else if(d9(i,h.pos,h.end)){l={range:h,pinnedOrTripleSlash:!0};continue}if(l){if(l.pinnedOrTripleSlash)break;let m=e.getLineAndCharacterOfPosition(h.pos).line,v=e.getLineAndCharacterOfPosition(l.range.end).line;if(m>=v+2)break}if(e.statements.length){d===void 0&&(d=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let m=e.getLineAndCharacterOfPosition(h.end).line;if(d<m+2)break}l={range:h,pinnedOrTripleSlash:!1}}return l&&(r=l.range.end,p()),r;function p(){if(r<i.length){let h=i.charCodeAt(r);vd(h)&&(r++,r<i.length&&h===13&&i.charCodeAt(r)===10&&r++)}}}function wPe(e,t){return!uv(e,t)&&!RI(e,t)&&!Yq(e,t)&&!Vse(e,t)}function hQe(e,t){return(Gu(e)||xo(e))&&G8(t)&&t.name.kind===167||QM(e)&&QM(t)}function pg(e,t,r,i={leadingTriviaOption:1}){let o=fT(t,r,i),s=wR(t,r,i);e.deleteRange(t,{pos:o,end:s})}function zO(e,t,r,i){let o=x.checkDefined(uc.SmartIndenter.getContainingList(i,r)),s=Y1(o,i);if(x.assert(s!==-1),o.length===1){pg(e,r,i);return}x.assert(!t.has(i),"Deleting a node twice"),t.add(i),e.deleteRange(r,{pos:tfe(r,i),end:s===o.length-1?wR(r,i,{}):uQe(r,i,o[s-1],o[s+1])})}var rfe,ife,hP,WPe,qY,FPe,ofe,gQe=pt({"src/services/textChanges.ts"(){"use strict";Hr(),rfe=(e=>(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(rfe||{}),ife=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(ife||{}),hP={leadingTriviaOption:0,trailingTriviaOption:0},WPe=class Qge{constructor(t,r){this.newLineCharacter=t,this.formatContext=r,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new Qge(mv(t.host,t.formatContext.options),t.formatContext)}static with(t,r){let i=Qge.fromContext(t);return r(i),i.getChanges()}pushRaw(t,r){x.assertEqual(t.fileName,r.fileName);for(let i of r.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:T3(i.span)})}deleteRange(t,r){this.changes.push({kind:0,sourceFile:t,range:r})}delete(t,r){this.deletedNodes.push({sourceFile:t,node:r})}deleteNode(t,r,i={leadingTriviaOption:1}){this.deleteRange(t,FO(t,r,r,i))}deleteNodes(t,r,i={leadingTriviaOption:1},o){for(let s of r){let l=fT(t,s,i,o),d=wR(t,s,i);this.deleteRange(t,{pos:l,end:d}),o=!!efe(t,s,i)}}deleteModifier(t,r){this.deleteRange(t,{pos:r.getStart(t),end:ua(t.text,r.end,!0)})}deleteNodeRange(t,r,i,o={leadingTriviaOption:1}){let s=fT(t,r,o),l=wR(t,i,o);this.deleteRange(t,{pos:s,end:l})}deleteNodeRangeExcludingEnd(t,r,i,o={leadingTriviaOption:1}){let s=fT(t,r,o),l=i===void 0?t.text.length:fT(t,i,o);this.deleteRange(t,{pos:s,end:l})}replaceRange(t,r,i,o={}){this.changes.push({kind:1,sourceFile:t,range:r,options:o,node:i})}replaceNode(t,r,i,o=hP){this.replaceRange(t,FO(t,r,r,o),i,o)}replaceNodeRange(t,r,i,o,s=hP){this.replaceRange(t,FO(t,r,i,s),o,s)}replaceRangeWithNodes(t,r,i,o={}){this.changes.push({kind:2,sourceFile:t,range:r,options:o,nodes:i})}replaceNodeWithNodes(t,r,i,o=hP){this.replaceRangeWithNodes(t,FO(t,r,r,o),i,o)}replaceNodeWithText(t,r,i){this.replaceRangeWithText(t,FO(t,r,r,hP),i)}replaceNodeRangeWithNodes(t,r,i,o,s=hP){this.replaceRangeWithNodes(t,FO(t,r,i,s),o,s)}nodeHasTrailingComment(t,r,i=hP){return!!efe(t,r,i)}nextCommaToken(t,r){let i=S0(r,r.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,r,i){let o=this.nextCommaToken(t,r)?"":","+this.newLineCharacter;this.replaceNode(t,r,i,{suffix:o})}insertNodeAt(t,r,i,o={}){this.replaceRange(t,qp(r),i,o)}insertNodesAt(t,r,i,o={}){this.replaceRangeWithNodes(t,qp(r),i,o)}insertNodeAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertNodesAtTopOfFile(t,r,i){this.insertAtTopOfFile(t,r,i)}insertAtTopOfFile(t,r,i){let o=_Qe(t),s={prefix:o===0?void 0:this.newLineCharacter,suffix:(vd(t.text.charCodeAt(o))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};oo(r)?this.insertNodesAt(t,o,r,s):this.insertNodeAt(t,o,r,s)}insertNodesAtEndOfFile(t,r,i){this.insertAtEndOfFile(t,r,i)}insertAtEndOfFile(t,r,i){let o=t.end+1,s={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,o,r,s)}insertStatementsInNewFile(t,r,i){this.newFileChanges||(this.newFileChanges=bp()),this.newFileChanges.add(t,{oldFile:i,statements:r})}insertFirstParameter(t,r,i){let o=Ac(r);o?this.insertNodeBefore(t,o,i):this.insertNodeAt(t,r.pos,i)}insertNodeBefore(t,r,i,o=!1,s={}){this.insertNodeAt(t,fT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,i,o))}insertNodesBefore(t,r,i,o=!1,s={}){this.insertNodesAt(t,fT(t,r,s),i,this.getOptionsForInsertNodeBefore(r,Sa(i),o))}insertModifierAt(t,r,i,o={}){this.insertNodeAt(t,r,P.createToken(i),o)}insertModifierBefore(t,r,i){return this.insertModifierAt(t,i.getStart(t),r,{suffix:" "})}insertCommentBeforeLine(t,r,i,o){let s=Zv(r,t),l=cle(t.text,s),d=wPe(t,l),p=_R(t,d?l:i),h=t.text.slice(s,l),m=`${d?"":this.newLineCharacter}//${o}${this.newLineCharacter}${h}`;this.insertText(t,p.getStart(t),m)}insertJsdocCommentBefore(t,r,i){let o=r.getStart(t);if(r.jsDoc)for(let d of r.jsDoc)this.deleteRange(t,{pos:Cf(d.getStart(t),t),end:wR(t,d,{})});let s=L3(t.text,o-1),l=t.text.slice(s,o);this.insertNodeAt(t,o,i,{suffix:this.newLineCharacter+l})}createJSDocText(t,r){let i=ta(r.jsDoc,s=>fo(s.comment)?P.createJSDocText(s.comment):s.comment),o=x_(r.jsDoc);return o&&Jp(o.pos,o.end,t)&&yn(i)===0?void 0:P.createNodeArray(K5(i,P.createJSDocText(`
`)))}replaceJSDocComment(t,r,i){this.insertJsdocCommentBefore(t,cQe(r),P.createJSDocComment(this.createJSDocText(t,r),P.createNodeArray(i)))}addJSDocTags(t,r,i){let o=wD(r.jsDoc,l=>l.tags),s=i.filter(l=>!o.some((d,p)=>{let h=dQe(d,l);return h&&(o[p]=h),!!h}));this.replaceJSDocComment(t,r,[...o,...s])}filterJSDocTags(t,r,i){this.replaceJSDocComment(t,r,Cr(wD(r.jsDoc,o=>o.tags),i))}replaceRangeWithText(t,r,i){this.changes.push({kind:3,sourceFile:t,range:r,text:i})}insertText(t,r,i){this.replaceRangeWithText(t,qp(r),i)}tryInsertTypeAnnotation(t,r,i){let o;if(Lo(r)){if(o=Ya(r,22,t),!o){if(!hs(r))return!1;o=Sa(r.parameters)}}else o=(r.kind===260?r.exclamationToken:r.questionToken)??r.name;return this.insertNodeAt(t,o.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,r,i){let o=Ya(r,21,t).getStart(t)+1,s=r.parameters.length?", ":"";this.insertNodeAt(t,o,i,{prefix:"this: ",suffix:s})}insertTypeParameters(t,r,i){let o=(Ya(r,21,t)||Sa(r.parameters)).getStart(t);this.insertNodesAt(t,o,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,r,i){return Di(t)||xc(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:yi(t)?{suffix:", "}:ao(t)?ao(r)?{suffix:", "}:{}:ca(t)&&cc(t.parent)||sg(t)?{suffix:", "}:Iu(t)?{suffix:","+(i?this.newLineCharacter:" ")}:x.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,r,i){let o=Ac(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[i,...r.body.statements]):this.insertNodeBefore(t,o,i)}insertNodeAtConstructorStartAfterSuperCall(t,r,i){let o=Dr(r.body.statements,s=>Cc(s)&&xS(s.expression));!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}insertNodeAtConstructorEnd(t,r,i){let o=Ns(r.body.statements);!o||!r.body.multiLine?this.replaceConstructorBody(t,r,[...r.body.statements,i]):this.insertNodeAfter(t,o,i)}replaceConstructorBody(t,r,i){this.replaceNode(t,r.body,P.createBlock(i,!0))}insertNodeAtEndOfScope(t,r,i){let o=fT(t,r.getLastToken(),{});this.insertNodeAt(t,o,i,{prefix:vd(t.text.charCodeAt(r.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtObjectStart(t,r,i){this.insertNodeAtStartWorker(t,r,i)}insertNodeAtStartWorker(t,r,i){let o=this.guessIndentationFromExistingMembers(t,r)??this.computeIndentationForNewMember(t,r);this.insertNodeAt(t,UY(r).pos,i,this.getInsertNodeAtStartInsertOptions(t,r,o))}guessIndentationFromExistingMembers(t,r){let i,o=r;for(let s of UY(r)){if(YW(o,s,t))return;let l=s.getStart(t),d=uc.SmartIndenter.findFirstNonWhitespaceColumn(Cf(l,t),l,t,this.formatContext.options);if(i===void 0)i=d;else if(d!==i)return;o=s}return i}computeIndentationForNewMember(t,r){let i=r.getStart(t);return uc.SmartIndenter.findFirstNonWhitespaceColumn(Cf(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,r,i){let s=UY(r).length===0,l=Jf(this.classesWithNodesInsertedAtStart,Fa(r),{node:r,sourceFile:t}),d=fa(r)&&(!yf(t)||!s),p=fa(r)&&yf(t)&&s&&!l;return{indentation:i,prefix:(p?",":"")+this.newLineCharacter,suffix:d?",":Gd(r)&&s?";":""}}insertNodeAfterComma(t,r,i){let o=this.insertNodeAfterWorker(t,this.nextCommaToken(t,r)||r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,i);this.insertNodeAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAtEndOfList(t,r,i){this.insertNodeAt(t,r.end,i,{prefix:", "})}insertNodesAfter(t,r,i){let o=this.insertNodeAfterWorker(t,r,Sa(i));this.insertNodesAt(t,o,i,this.getInsertNodeAfterOptions(t,r))}insertNodeAfterWorker(t,r,i){return hQe(r,i)&&t.text.charCodeAt(r.end-1)!==59&&this.replaceRange(t,qp(r.end),P.createToken(27)),wR(t,r,{})}getInsertNodeAfterOptions(t,r){let i=this.getInsertNodeAfterOptionsWorker(r);return{...i,prefix:r.end===t.end&&Di(r)?i.prefix?`
${i.prefix}`:`
`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return x.assert(Di(t)||G8(t)),{suffix:this.newLineCharacter}}}insertName(t,r,i){if(x.assert(!r.name),r.kind===219){let o=Ya(r,39,t),s=Ya(r,21,t);s?(this.insertNodesAt(t,s.getStart(t),[P.createToken(100),P.createIdentifier(i)],{joiner:" "}),pg(this,t,o)):(this.insertText(t,Sa(r.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,o,P.createToken(22))),r.body.kind!==241&&(this.insertNodesAt(t,r.body.getStart(t),[P.createToken(19),P.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,r.body.end,[P.createToken(27),P.createToken(20)],{joiner:" "}))}else{let o=Ya(r,r.kind===218?100:86,t).end;this.insertNodeAt(t,o,P.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,r){this.insertText(t,r.getStart(t),"export ")}insertImportSpecifierAtIndex(t,r,i,o){let s=i.elements[o-1];s?this.insertNodeInListAfter(t,s,r):this.insertNodeBefore(t,i.elements[0],r,!Jp(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,r,i,o=uc.SmartIndenter.getContainingList(r,t)){if(!o){x.fail("node is not a list element");return}let s=Y1(o,r);if(s<0)return;let l=r.getEnd();if(s!==o.length-1){let d=Hi(t,r.end);if(d&&jY(r,d)){let p=o[s+1],h=kPe(t.text,p.getFullStart()),m=`${qo(d.kind)}${t.text.substring(d.end,h)}`;this.insertNodesAt(t,h,[i],{suffix:m})}}else{let d=r.getStart(t),p=Cf(d,t),h,m=!1;if(o.length===1)h=28;else{let v=ec(r.pos,t);h=jY(r,v)?v.kind:28,m=Cf(o[s-1].getStart(t),t)!==p}if((sQe(t.text,r.end)||!Jp(o.pos,o.end,t))&&(m=!0),m){this.replaceRange(t,qp(l),P.createToken(h));let v=uc.SmartIndenter.findFirstNonWhitespaceColumn(p,d,t,this.formatContext.options),E=ua(t.text,l,!0,!1);for(;E!==l&&vd(t.text.charCodeAt(E-1));)E--;this.replaceRange(t,qp(E),i,{indentation:v,prefix:this.newLineCharacter})}else this.replaceRange(t,qp(l),i,{prefix:`${qo(h)} `})}}parenthesizeExpression(t,r){this.replaceRange(t,PV(r),P.createParenthesizedExpression(r))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:r})=>{let[i,o]=pQe(t,r);if(i!==void 0&&o!==void 0){let s=UY(t).length===0,l=Jp(i,o,r);s&&l&&i!==o-1&&this.deleteRange(r,qp(i,o-1)),l&&this.insertText(r,o-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:r,node:i}of this.deletedNodes)this.deletedNodes.some(o=>o.sourceFile===r&&wse(o.node,i))||(oo(i)?this.deleteRange(r,MV(r,i)):ofe.deleteDeclaration(this,t,r,i));t.forEach(r=>{let i=r.getSourceFile(),o=uc.SmartIndenter.getContainingList(r,i);if(r!==Da(o))return;let s=Uw(o,l=>!t.has(l),o.length-2);s!==-1&&this.deleteRange(i,{pos:o[s].end,end:tfe(i,o[s+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let r=qY.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,o)=>{r.push(qY.newFileChanges(o,i,this.newLineCharacter,this.formatContext))}),r}createNewFile(t,r,i){this.insertStatementsInNewFile(r,i,t)}},(e=>{function t(d,p,h,m){return Fi(GD(d,v=>v.sourceFile.path),v=>{let E=v[0].sourceFile,S=Gg(v,(C,R)=>C.range.pos-R.range.pos||C.range.end-R.range.end);for(let C=0;C<S.length-1;C++)x.assert(S[C].range.end<=S[C+1].range.pos,"Changes overlap",()=>`${JSON.stringify(S[C].range)} and ${JSON.stringify(S[C+1].range)}`);let A=Fi(S,C=>{let R=yy(C.range),L=C.kind===1?Nn(sl(C.node))??C.sourceFile:C.kind===2?Nn(sl(C.nodes[0]))??C.sourceFile:C.sourceFile,G=o(C,L,E,p,h,m);if(!(R.length===G.length&&Ele(L.text,G,R.start)))return jk(R,G)});return A.length>0?{fileName:E.fileName,textChanges:A}:void 0})}e.getTextChangesFromChanges=t;function r(d,p,h,m){let v=i(pF(d),p,h,m);return{fileName:d,textChanges:[jk(qc(0,0),v)],isNewFile:!0}}e.newFileChanges=r;function i(d,p,h,m){let v=ta(p,A=>A.statements.map(C=>C===4?"":l(C,A.oldFile,h).text)).join(h),E=B2("any file name",v,{languageVersion:99,jsDocParsingMode:1},!0,d),S=uc.formatDocument(E,m);return nfe(v,S)+h}e.newFileChangesWorker=i;function o(d,p,h,m,v,E){var S;if(d.kind===0)return"";if(d.kind===3)return d.text;let{options:A={},range:{pos:C}}=d,R=U=>s(U,p,h,C,A,m,v,E),L=d.kind===2?d.nodes.map(U=>C1(R(U),m)).join(((S=d.options)==null?void 0:S.joiner)||m):R(d.node),G=A.indentation!==void 0||Cf(C,p)===C?L:L.replace(/^\s+/,"");return(A.prefix||"")+G+(!A.suffix||Zs(G,A.suffix)?"":A.suffix)}function s(d,p,h,m,{indentation:v,prefix:E,delta:S},A,C,R){let{node:L,text:G}=l(d,p,A);R&&R(L,G);let U=J3(C,p),K=v!==void 0?v:uc.SmartIndenter.getIndentation(m,h,U,E===A||Cf(m,p)===m);S===void 0&&(S=uc.SmartIndenter.shouldIndentChildNode(U,d)&&U.indentSize||0);let F={text:G,getLineAndCharacterOfPosition(W){return $a(this,W)}},oe=uc.formatNodeGivenIndentation(L,F,p.languageVariant,K,S,{...C,options:U});return nfe(G,oe)}function l(d,p,h){let m=OPe(h),v=nO(h);return Vb({newLine:v,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},m).writeNode(4,d,p,m),{text:m.getText(),node:HY(d)}}e.getNonformattedText=l})(qY||(qY={})),FPe={...FN,factory:d2(FN.factory.flags|1,FN.factory.baseFactory)},(e=>{function t(s,l,d,p){switch(p.kind){case 169:{let S=p.parent;hs(S)&&S.parameters.length===1&&!Ya(S,21,d)?s.replaceNodeWithText(d,p,"()"):zO(s,l,d,p);break}case 272:case 271:let h=d.imports.length&&p===Sa(d.imports).parent||p===Dr(d.statements,AS);pg(s,d,p,{leadingTriviaOption:h?0:ap(p)?2:3});break;case 208:let m=p.parent;m.kind===207&&p!==Da(m.elements)?pg(s,d,p):zO(s,l,d,p);break;case 260:o(s,l,d,p);break;case 168:zO(s,l,d,p);break;case 276:let E=p.parent;E.elements.length===1?i(s,d,E):zO(s,l,d,p);break;case 274:i(s,d,p);break;case 27:pg(s,d,p,{trailingTriviaOption:0});break;case 100:pg(s,d,p,{leadingTriviaOption:0});break;case 263:case 262:pg(s,d,p,{leadingTriviaOption:ap(p)?2:3});break;default:p.parent?G_(p.parent)&&p.parent.name===p?r(s,d,p.parent):Bo(p.parent)&&To(p.parent.arguments,p)?zO(s,l,d,p):pg(s,d,p):pg(s,d,p)}}e.deleteDeclaration=t;function r(s,l,d){if(!d.namedBindings)pg(s,l,d.parent);else{let p=d.name.getStart(l),h=Hi(l,d.name.end);if(h&&h.kind===28){let m=ua(l.text,h.end,!1,!0);s.deleteRange(l,{pos:p,end:m})}else pg(s,l,d.name)}}function i(s,l,d){if(d.parent.name){let p=x.checkDefined(Hi(l,d.pos-1));s.deleteRange(l,{pos:p.getStart(l),end:d.end})}else{let p=Db(d,272);pg(s,l,p)}}function o(s,l,d,p){let{parent:h}=p;if(h.kind===299){s.deleteNodeRange(d,Ya(h,21,d),Ya(h,22,d));return}if(h.declarations.length!==1){zO(s,l,d,p);return}let m=h.parent;switch(m.kind){case 250:case 249:s.replaceNode(d,p,P.createObjectLiteralExpression());break;case 248:pg(s,d,h);break;case 243:pg(s,d,m,{leadingTriviaOption:ap(m)?2:3});break;default:x.assertNever(m)}}})(ofe||(ofe={}))}}),er={};Ra(er,{ChangeTracker:()=>WPe,LeadingTriviaOption:()=>rfe,TrailingTriviaOption:()=>ife,applyChanges:()=>nfe,assignPositionsToNode:()=>HY,createWriter:()=>OPe,deleteNode:()=>pg,isThisTypeAnnotatable:()=>lQe,isValidLocationToAddComment:()=>wPe});var vQe=pt({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";gQe()}}),afe,sfe,yQe=pt({"src/services/formatting/formattingContext.ts"(){"use strict";Hr(),afe=(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))(afe||{}),sfe=class{constructor(e,t,r){this.sourceFile=e,this.formattingRequestKind=t,this.options=r}updateContext(e,t,r,i,o){this.currentTokenSpan=x.checkDefined(e),this.currentTokenParent=x.checkDefined(t),this.nextTokenSpan=x.checkDefined(r),this.nextTokenParent=x.checkDefined(i),this.contextNode=x.checkDefined(o),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,r=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===r}BlockIsOnOneLine(e){let t=Ya(e,19,this.sourceFile),r=Ya(e,20,this.sourceFile);if(t&&r){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,o=this.sourceFile.getLineAndCharacterOfPosition(r.getStart(this.sourceFile)).line;return i===o}return!1}}}});function lfe(e,t,r,i,o){let s=t===1?BPe:zPe;s.setText(e),s.resetTokenState(r);let l=!0,d,p,h,m,v,E=o({advance:S,readTokenInfo:F,readEOFTokenRange:W,isOnToken:$,isOnEOF:de,getCurrentLeadingTrivia:()=>d,lastTrailingTriviaWasNewLine:()=>l,skipToEndOf:q,skipToStartOf:H,getTokenFullStart:()=>v?.token.pos??s.getTokenStart(),getStartPos:()=>v?.token.pos??s.getTokenStart()});return v=void 0,s.setText(void 0),E;function S(){v=void 0,s.getTokenFullStart()!==r?l=!!p&&Da(p).kind===4:s.scan(),d=void 0,p=void 0;let le=s.getTokenFullStart();for(;le<i;){let Ee=s.getToken();if(!mx(Ee))break;s.scan();let ce={pos:le,end:s.getTokenFullStart(),kind:Ee};le=s.getTokenFullStart(),d=pn(d,ce)}h=s.getTokenFullStart()}function A(ee){switch(ee.kind){case 34:case 72:case 73:case 50:case 49:return!0}return!1}function C(ee){if(ee.parent)switch(ee.parent.kind){case 291:case 286:case 287:case 285:return du(ee.kind)||ee.kind===80}return!1}function R(ee){return ZA(ee)||Ch(ee)&&v?.token.kind===12}function L(ee){return ee.kind===14}function G(ee){return ee.kind===17||ee.kind===18}function U(ee){return ee.parent&&r_(ee.parent)&&ee.parent.initializer===ee}function K(ee){return ee===44||ee===69}function F(ee){x.assert($());let le=A(ee)?1:L(ee)?2:G(ee)?3:C(ee)?4:R(ee)?5:U(ee)?6:0;if(v&&le===m)return fe(v,ee);s.getTokenFullStart()!==h&&(x.assert(v!==void 0),s.resetTokenState(h),s.scan());let Ee=oe(ee,le),ce=YY(s.getTokenFullStart(),s.getTokenEnd(),Ee);for(p&&(p=void 0);s.getTokenFullStart()<i&&(Ee=s.scan(),!!mx(Ee));){let Z=YY(s.getTokenFullStart(),s.getTokenEnd(),Ee);if(p||(p=[]),p.push(Z),Ee===4){s.scan();break}}return v={leadingTrivia:d,trailingTrivia:p,token:ce},fe(v,ee)}function oe(ee,le){let Ee=s.getToken();switch(m=0,le){case 1:if(Ee===32){m=1;let ce=s.reScanGreaterToken();return x.assert(ee.kind===ce),ce}break;case 2:if(K(Ee)){m=2;let ce=s.reScanSlashToken();return x.assert(ee.kind===ce),ce}break;case 3:if(Ee===20)return m=3,s.reScanTemplateToken(!1);break;case 4:return m=4,s.scanJsxIdentifier();case 5:return m=5,s.reScanJsxToken(!1);case 6:return m=6,s.reScanJsxAttributeValue();case 0:break;default:x.assertNever(le)}return Ee}function W(){return x.assert(de()),YY(s.getTokenFullStart(),s.getTokenEnd(),1)}function $(){let ee=v?v.token.kind:s.getToken();return ee!==1&&!mx(ee)}function de(){return(v?v.token.kind:s.getToken())===1}function fe(ee,le){return xA(le)&&ee.token.kind!==le.kind&&(ee.token.kind=le.kind),ee}function q(ee){s.resetTokenState(ee.end),h=s.getTokenFullStart(),m=void 0,v=void 0,l=!1,d=void 0,p=void 0}function H(ee){s.resetTokenState(ee.pos),h=s.getTokenFullStart(),m=void 0,v=void 0,l=!1,d=void 0,p=void 0}}var zPe,BPe,bQe=pt({"src/services/formatting/formattingScanner.ts"(){"use strict";Hr(),VO(),zPe=Kg(99,!1,0),BPe=Kg(99,!1,1)}}),Qz,cfe,dfe,EQe=pt({"src/services/formatting/rule.ts"(){"use strict";Hr(),Qz=je,cfe=(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))(cfe||{}),dfe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(dfe||{})}});function GPe(){let e=[];for(let oe=0;oe<=165;oe++)oe!==1&&e.push(oe);function t(...oe){return{tokens:e.filter(W=>!oe.some($=>$===W)),isSpecific:!1}}let r={tokens:e,isSpecific:!1},i=gP([...e,3]),o=gP([...e,1]),s=jPe(83,165),l=jPe(30,79),d=[103,104,165,130,142,152],p=[46,47,55,54],h=[9,10,80,21,23,19,110,105],m=[80,21,110,105],v=[80,22,24,105],E=[80,21,110,105],S=[80,22,24,105],A=[2,3],C=[80,...X3],R=i,L=gP([80,32,3,86,95,102]),G=gP([22,3,92,113,98,93,85]),U=[kr("IgnoreBeforeComment",r,A,Qz,1),kr("IgnoreAfterLineComment",2,r,Qz,1),kr("NotSpaceBeforeColon",r,59,[Ni,Zz,qPe],16),kr("SpaceAfterColon",59,r,[Ni,Zz,FQe],4),kr("NoSpaceBeforeQuestionMark",r,58,[Ni,Zz,qPe],16),kr("SpaceAfterQuestionMarkInConditionalOperator",58,r,[Ni,IQe],4),kr("NoSpaceAfterQuestionMark",58,r,[Ni,AQe],16),kr("NoSpaceBeforeDot",r,[25,29],[Ni,$Qe],16),kr("NoSpaceAfterDot",[25,29],r,[Ni],16),kr("NoSpaceBetweenImportParenInImportType",102,21,[Ni,wQe],16),kr("NoSpaceAfterUnaryPrefixOperator",p,h,[Ni,Zz],16),kr("NoSpaceAfterUnaryPreincrementOperator",46,m,[Ni],16),kr("NoSpaceAfterUnaryPredecrementOperator",47,E,[Ni],16),kr("NoSpaceBeforeUnaryPostincrementOperator",v,46,[Ni,lMe],16),kr("NoSpaceBeforeUnaryPostdecrementOperator",S,47,[Ni,lMe],16),kr("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Ni,Sy],4),kr("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Ni,Sy],4),kr("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Ni,Sy],4),kr("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Ni,Sy],4),kr("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Ni,Sy],4),kr("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Ni,Sy],4),kr("NoSpaceAfterCloseBrace",20,[28,27],[Ni],16),kr("NewLineBeforeCloseBraceInBlockContext",i,20,[KPe],8),kr("SpaceAfterCloseBrace",20,t(22),[Ni,DQe],4),kr("SpaceBetweenCloseBraceAndElse",20,93,[Ni],4),kr("SpaceBetweenCloseBraceAndWhile",20,117,[Ni],4),kr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ni,eMe],16),kr("SpaceAfterConditionalClosingParen",22,23,[e7],4),kr("NoSpaceBetweenFunctionKeywordAndStar",100,42,[$Pe],16),kr("SpaceAfterStarInGeneratorDeclaration",42,80,[$Pe],4),kr("SpaceAfterFunctionInFuncDecl",100,r,[mT],4),kr("NewLineAfterOpenBraceInBlockContext",19,r,[KPe],8),kr("SpaceAfterGetSetInMember",[139,153],80,[mT],4),kr("NoSpaceBetweenYieldKeywordAndStar",127,42,[Ni,sMe],16),kr("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],r,[Ni,sMe],4),kr("NoSpaceBetweenReturnAndSemicolon",107,27,[Ni],16),kr("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],r,[Ni],4),kr("SpaceAfterLetConstInVariableDeclaration",[121,87],r,[Ni,GQe],4),kr("NoSpaceBeforeOpenParenInFuncCall",r,21,[Ni,PQe,MQe],16),kr("SpaceBeforeBinaryKeywordOperator",r,d,[Ni,Sy],4),kr("SpaceAfterBinaryKeywordOperator",d,r,[Ni,Sy],4),kr("SpaceAfterVoidOperator",116,r,[Ni,qQe],4),kr("SpaceBetweenAsyncAndOpenParen",134,21,[OQe,Ni],4),kr("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Ni],4),kr("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Ni],16),kr("SpaceBeforeJsxAttribute",r,80,[WQe,Ni],4),kr("SpaceBeforeSlashInJsxOpeningElement",r,44,[iMe,Ni],4),kr("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[iMe,Ni],16),kr("NoSpaceBeforeEqualInJsxAttribute",r,64,[nMe,Ni],16),kr("NoSpaceAfterEqualInJsxAttribute",64,r,[nMe,Ni],16),kr("NoSpaceBeforeJsxNamespaceColon",80,59,[rMe],16),kr("NoSpaceAfterJsxNamespaceColon",59,80,[rMe],16),kr("NoSpaceAfterModuleImport",[144,149],21,[Ni],16),kr("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],r,[Ni],4),kr("SpaceBeforeCertainTypeScriptKeywords",r,[96,119,161],[Ni],4),kr("SpaceAfterModuleName",11,19,[VQe],4),kr("SpaceBeforeArrow",r,39,[Ni],4),kr("SpaceAfterArrow",39,r,[Ni],4),kr("NoSpaceAfterEllipsis",26,80,[Ni],16),kr("NoSpaceAfterOptionalParameters",58,[22,28],[Ni,Zz],16),kr("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Ni,jQe],16),kr("NoSpaceBeforeOpenAngularBracket",C,30,[Ni,t7],16),kr("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Ni,t7],16),kr("NoSpaceAfterOpenAngularBracket",30,r,[Ni,t7],16),kr("NoSpaceBeforeCloseAngularBracket",r,32,[Ni,t7],16),kr("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Ni,t7,RQe,HQe],16),kr("SpaceBeforeAt",[22,80],60,[Ni],4),kr("NoSpaceAfterAt",60,r,[Ni],16),kr("SpaceAfterDecorator",r,[128,80,95,90,86,126,125,123,124,139,153,23,42],[BQe],4),kr("NoSpaceBeforeNonNullAssertionOperator",r,54,[Ni,JQe],16),kr("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Ni,UQe],16),kr("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Ni],4)],K=[kr("SpaceAfterConstructor",137,21,[Mp("insertSpaceAfterConstructor"),Ni],4),kr("NoSpaceAfterConstructor",137,21,[l_("insertSpaceAfterConstructor"),Ni],16),kr("SpaceAfterComma",28,r,[Mp("insertSpaceAfterCommaDelimiter"),Ni,gfe,LQe,kQe],4),kr("NoSpaceAfterComma",28,r,[l_("insertSpaceAfterCommaDelimiter"),Ni,gfe],16),kr("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Mp("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),mT],4),kr("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[l_("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),mT],16),kr("SpaceAfterKeywordInControl",s,21,[Mp("insertSpaceAfterKeywordsInControlFlowStatements"),e7],4),kr("NoSpaceAfterKeywordInControl",s,21,[l_("insertSpaceAfterKeywordsInControlFlowStatements"),e7],16),kr("SpaceAfterOpenParen",21,r,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],4),kr("SpaceBeforeCloseParen",r,22,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],4),kr("SpaceBetweenOpenParens",21,21,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],4),kr("NoSpaceBetweenParens",21,22,[Ni],16),kr("NoSpaceAfterOpenParen",21,r,[l_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],16),kr("NoSpaceBeforeCloseParen",r,22,[l_("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Ni],16),kr("SpaceAfterOpenBracket",23,r,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ni],4),kr("SpaceBeforeCloseBracket",r,24,[Mp("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ni],4),kr("NoSpaceBetweenBrackets",23,24,[Ni],16),kr("NoSpaceAfterOpenBracket",23,r,[l_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ni],16),kr("NoSpaceBeforeCloseBracket",r,24,[l_("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Ni],16),kr("SpaceAfterOpenBrace",19,r,[HPe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),JPe],4),kr("SpaceBeforeCloseBrace",r,20,[HPe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),JPe],4),kr("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ni,eMe],16),kr("NoSpaceAfterOpenBrace",19,r,[ufe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ni],16),kr("NoSpaceBeforeCloseBrace",r,20,[ufe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Ni],16),kr("SpaceBetweenEmptyBraceBrackets",19,20,[Mp("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),kr("NoSpaceBetweenEmptyBraceBrackets",19,20,[ufe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Ni],16),kr("SpaceAfterTemplateHeadAndMiddle",[16,17],r,[Mp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),tMe],4,1),kr("SpaceBeforeTemplateMiddleAndTail",r,[17,18],[Mp("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ni],4),kr("NoSpaceAfterTemplateHeadAndMiddle",[16,17],r,[l_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),tMe],16,1),kr("NoSpaceBeforeTemplateMiddleAndTail",r,[17,18],[l_("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Ni],16),kr("SpaceAfterOpenBraceInJsxExpression",19,r,[Mp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ni,KY],4),kr("SpaceBeforeCloseBraceInJsxExpression",r,20,[Mp("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ni,KY],4),kr("NoSpaceAfterOpenBraceInJsxExpression",19,r,[l_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ni,KY],16),kr("NoSpaceBeforeCloseBraceInJsxExpression",r,20,[l_("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Ni,KY],16),kr("SpaceAfterSemicolonInFor",27,r,[Mp("insertSpaceAfterSemicolonInForStatements"),Ni,ffe],4),kr("NoSpaceAfterSemicolonInFor",27,r,[l_("insertSpaceAfterSemicolonInForStatements"),Ni,ffe],16),kr("SpaceBeforeBinaryOperator",r,l,[Mp("insertSpaceBeforeAndAfterBinaryOperators"),Ni,Sy],4),kr("SpaceAfterBinaryOperator",l,r,[Mp("insertSpaceBeforeAndAfterBinaryOperators"),Ni,Sy],4),kr("NoSpaceBeforeBinaryOperator",r,l,[l_("insertSpaceBeforeAndAfterBinaryOperators"),Ni,Sy],16),kr("NoSpaceAfterBinaryOperator",l,r,[l_("insertSpaceBeforeAndAfterBinaryOperators"),Ni,Sy],16),kr("SpaceBeforeOpenParenInFuncDecl",r,21,[Mp("insertSpaceBeforeFunctionParenthesis"),Ni,mT],4),kr("NoSpaceBeforeOpenParenInFuncDecl",r,21,[l_("insertSpaceBeforeFunctionParenthesis"),Ni,mT],16),kr("NewLineBeforeOpenBraceInControl",G,19,[Mp("placeOpenBraceOnNewLineForControlBlocks"),e7,hfe],8,1),kr("NewLineBeforeOpenBraceInFunction",R,19,[Mp("placeOpenBraceOnNewLineForFunctions"),mT,hfe],8,1),kr("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",L,19,[Mp("placeOpenBraceOnNewLineForFunctions"),QPe,hfe],8,1),kr("SpaceAfterTypeAssertion",32,r,[Mp("insertSpaceAfterTypeAssertion"),Ni,yfe],4),kr("NoSpaceAfterTypeAssertion",32,r,[l_("insertSpaceAfterTypeAssertion"),Ni,yfe],16),kr("SpaceBeforeTypeAnnotation",r,[58,59],[Mp("insertSpaceBeforeTypeAnnotation"),Ni,mfe],4),kr("NoSpaceBeforeTypeAnnotation",r,[58,59],[l_("insertSpaceBeforeTypeAnnotation"),Ni,mfe],16),kr("NoOptionalSemicolon",27,o,[UPe("semicolons","remove"),XQe],32),kr("OptionalSemicolon",r,o,[UPe("semicolons","insert"),YQe],64)],F=[kr("NoSpaceBeforeSemicolon",r,27,[Ni],16),kr("SpaceBeforeOpenBraceInControl",G,19,[pfe("placeOpenBraceOnNewLineForControlBlocks"),e7,vfe,_fe],4,1),kr("SpaceBeforeOpenBraceInFunction",R,19,[pfe("placeOpenBraceOnNewLineForFunctions"),mT,JY,vfe,_fe],4,1),kr("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",L,19,[pfe("placeOpenBraceOnNewLineForFunctions"),QPe,vfe,_fe],4,1),kr("NoSpaceBeforeComma",r,28,[Ni],16),kr("NoSpaceBeforeOpenBracket",t(134,84),23,[Ni],16),kr("NoSpaceAfterCloseBracket",24,r,[Ni,zQe],16),kr("SpaceAfterSemicolon",27,r,[Ni],4),kr("SpaceBetweenForAndAwaitKeyword",99,135,[Ni],4),kr("SpaceBetweenStatements",[22,92,93,84],r,[Ni,gfe,SQe],4),kr("SpaceAfterTryCatchFinally",[113,85,98],19,[Ni],4)];return[...U,...K,...F]}function kr(e,t,r,i,o,s=0){return{leftTokenRange:VPe(t),rightTokenRange:VPe(r),rule:{debugName:e,context:i,action:o,flags:s}}}function gP(e){return{tokens:e,isSpecific:!0}}function VPe(e){return typeof e=="number"?gP([e]):oo(e)?gP(e):e}function jPe(e,t,r=[]){let i=[];for(let o=e;o<=t;o++)To(r,o)||i.push(o);return gP(i)}function UPe(e,t){return r=>r.options&&r.options[e]===t}function Mp(e){return t=>t.options&&rs(t.options,e)&&!!t.options[e]}function ufe(e){return t=>t.options&&rs(t.options,e)&&!t.options[e]}function l_(e){return t=>!t.options||!rs(t.options,e)||!t.options[e]}function pfe(e){return t=>!t.options||!rs(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function HPe(e){return t=>!t.options||!rs(t.options,e)||!!t.options[e]}function ffe(e){return e.contextNode.kind===248}function SQe(e){return!ffe(e)}function Sy(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function Zz(e){return!Sy(e)}function qPe(e){return!mfe(e)}function mfe(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||DA(t)}function TQe(e){return xo(e.contextNode)&&e.contextNode.questionToken}function AQe(e){return!TQe(e)}function IQe(e){return e.contextNode.kind===227||e.contextNode.kind===194}function _fe(e){return e.TokensAreOnSameLine()||JY(e)}function JPe(e){return e.contextNode.kind===206||e.contextNode.kind===200||xQe(e)}function hfe(e){return JY(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function KPe(e){return XPe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function xQe(e){return XPe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function XPe(e){return YPe(e.contextNode)}function JY(e){return YPe(e.nextTokenParent)}function YPe(e){if(ZPe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function mT(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 RQe(e){return!mT(e)}function $Pe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function QPe(e){return ZPe(e.contextNode)}function ZPe(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 DQe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function e7(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 eMe(e){return e.contextNode.kind===210}function CQe(e){return e.contextNode.kind===213}function NQe(e){return e.contextNode.kind===214}function PQe(e){return CQe(e)||NQe(e)}function MQe(e){return e.currentTokenSpan.kind!==28}function LQe(e){return e.nextTokenSpan.kind!==24}function kQe(e){return e.nextTokenSpan.kind!==22}function OQe(e){return e.contextNode.kind===219}function wQe(e){return e.contextNode.kind===205}function Ni(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function tMe(e){return e.contextNode.kind!==12}function gfe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function KY(e){return e.contextNode.kind===294||e.contextNode.kind===293}function WQe(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function nMe(e){return e.contextNode.kind===291}function FQe(e){return e.nextTokenParent.kind!==295}function rMe(e){return e.nextTokenParent.kind===295}function iMe(e){return e.contextNode.kind===285}function zQe(e){return!mT(e)&&!JY(e)}function BQe(e){return e.TokensAreOnSameLine()&&Hp(e.contextNode)&&oMe(e.currentTokenParent)&&!oMe(e.nextTokenParent)}function oMe(e){for(;e&<(e);)e=e.parent;return e&&e.kind===170}function GQe(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function vfe(e){return e.formattingRequestKind!==2}function VQe(e){return e.contextNode.kind===267}function jQe(e){return e.contextNode.kind===187}function UQe(e){return e.contextNode.kind===180}function aMe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function t7(e){return aMe(e.currentTokenSpan,e.currentTokenParent)||aMe(e.nextTokenSpan,e.nextTokenParent)}function yfe(e){return e.contextNode.kind===216}function HQe(e){return!yfe(e)}function qQe(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function sMe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function JQe(e){return e.contextNode.kind===235}function lMe(e){return!KQe(e)}function KQe(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function XQe(e){let t=e.nextTokenSpan.kind,r=e.nextTokenSpan.pos;if(mx(t)){let s=e.nextTokenParent===e.currentTokenParent?S0(e.currentTokenParent,Rn(e.currentTokenParent,l=>!l.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!s)return!0;t=s.kind,r=s.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,o=e.sourceFile.getLineAndCharacterOfPosition(r).line;return i===o?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!Gu(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:xo(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function YQe(e){return F3(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function $Qe(e){return!Er(e.contextNode)||!Bu(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var QQe=pt({"src/services/formatting/rules.ts"(){"use strict";Hr(),VO()}});function ZQe(e,t){return{options:e,getRules:eZe(),host:t}}function eZe(){return bfe===void 0&&(bfe=nZe(GPe())),bfe}function tZe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function nZe(e){let t=rZe(e);return r=>{let i=t[cMe(r.currentTokenSpan.kind,r.nextTokenSpan.kind)];if(i){let o=[],s=0;for(let l of i){let d=~tZe(s);l.action&d&&ji(l.context,p=>p(r))&&(o.push(l),s|=l.action)}if(o.length)return o}}}function rZe(e){let t=new Array(XY*XY),r=new Array(t.length);for(let i of e){let o=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let s of i.leftTokenRange.tokens)for(let l of i.rightTokenRange.tokens){let d=cMe(s,l),p=t[d];p===void 0&&(p=t[d]=[]),iZe(p,i.rule,o,r,d)}}return t}function cMe(e,t){return x.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*XY+t}function iZe(e,t,r,i,o){let s=t.action&3?r?0:vP.StopRulesAny:t.context!==Qz?r?vP.ContextRulesSpecific:vP.ContextRulesAny:r?vP.NoContextRulesSpecific:vP.NoContextRulesAny,l=i[o]||0;e.splice(oZe(l,s),0,t),i[o]=aZe(l,s)}function oZe(e,t){let r=0;for(let i=0;i<=t;i+=WR)r+=e&n7,e>>=WR;return r}function aZe(e,t){let r=(e>>t&n7)+1;return x.assert((r&n7)===r,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(n7<<t)|r<<t}var bfe,WR,n7,XY,vP,sZe=pt({"src/services/formatting/rulesMap.ts"(){"use strict";Hr(),VO(),WR=5,n7=31,XY=166,vP=(e=>(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=WR*1]="StopRulesAny",e[e.ContextRulesSpecific=WR*2]="ContextRulesSpecific",e[e.ContextRulesAny=WR*3]="ContextRulesAny",e[e.NoContextRulesSpecific=WR*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=WR*5]="NoContextRulesAny",e))(vP||{})}});function YY(e,t,r){let i={pos:e,end:t,kind:r};return x.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>x.formatSyntaxKind(r)}),i}function lZe(e,t,r){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let o=rL(i,t);for(;jm(t.text.charCodeAt(o));)o--;vd(t.text.charCodeAt(o))&&o--;let s={pos:Zv(i-1,t),end:o+1};return r7(s,t,r,2)}function cZe(e,t,r){let i=Efe(e,27,t);return dMe(Sfe(i),t,r,3)}function dZe(e,t,r){let i=Efe(e,19,t);if(!i)return[];let o=i.parent,s=Sfe(o),l={pos:Cf(s.getStart(t),t),end:e};return r7(l,t,r,4)}function uZe(e,t,r){let i=Efe(e,20,t);return dMe(Sfe(i),t,r,5)}function pZe(e,t){let r={pos:0,end:e.text.length};return r7(r,e,t,0)}function fZe(e,t,r,i){let o={pos:Cf(e,r),end:t};return r7(o,r,i,1)}function Efe(e,t,r){let i=ec(e,r);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function Sfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!mZe(t.parent,t);)t=t.parent;return t}function mZe(e,t){switch(e.kind){case 263:case 264:return Cp(e.members,t);case 267:let r=e.body;return!!r&&r.kind===268&&Cp(r.statements,t);case 312:case 241:case 268:return Cp(e.statements,t);case 299:return Cp(e.block.statements,t)}return!1}function _Ze(e,t){return r(t);function r(i){let o=Ao(i,s=>qq(s.getStart(t),s.end,e)&&s);if(o){let s=r(o);if(s)return s}return i}}function hZe(e,t){if(!e.length)return o;let r=e.filter(s=>XN(t,s.start,s.start+s.length)).sort((s,l)=>s.start-l.start);if(!r.length)return o;let i=0;return s=>{for(;;){if(i>=r.length)return!1;let l=r[i];if(s.end<=l.start)return!1;if(m3(s.pos,s.end,l.start,l.start+l.length))return!0;i++}};function o(){return!1}}function gZe(e,t,r){let i=e.getStart(r);if(i===t.pos&&e.end===t.end)return i;let o=ec(t.pos,r);return!o||o.end>=t.pos?e.pos:o.end}function vZe(e,t,r){let i=-1,o;for(;e;){let s=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(i!==-1&&s!==i)break;if(c_.shouldIndentChildNode(t,e,o,r))return t.indentSize;i=s,o=e,e=e.parent}return 0}function yZe(e,t,r,i,o,s){let l={pos:e.pos,end:e.end};return lfe(t.text,r,l.pos,l.end,d=>uMe(l,e,i,o,d,s,1,p=>!1,t))}function dMe(e,t,r,i){if(!e)return[];let o={pos:Cf(e.getStart(t),t),end:e.end};return r7(o,t,r,i)}function r7(e,t,r,i){let o=_Ze(e,t);return lfe(t.text,t.languageVariant,gZe(o,e,t),e.end,s=>uMe(e,o,c_.getIndentationForNode(o,e,t,r.options),vZe(o,r.options,t),s,r,i,hZe(t.parseDiagnostics,e),t))}function uMe(e,t,r,i,o,{options:s,getRules:l,host:d},p,h,m){var v;let E=new sfe(m,p,s),S,A,C,R,L,G=-1,U=[];if(o.advance(),o.isOnToken()){let he=m.getLineAndCharacterOfPosition(t.getStart(m)).line,Le=he;Hp(t)&&(Le=m.getLineAndCharacterOfPosition(u9(t,m)).line),de(t,t,he,Le,r,i)}let K=o.getCurrentLeadingTrivia();if(K){let he=c_.nodeWillIndentChild(s,t,void 0,m,!1)?r+s.indentSize:r;fe(K,he,!0,Le=>{H(Le,m.getLineAndCharacterOfPosition(Le.pos),t,t,void 0),le(Le.pos,he,!1)}),s.trimTrailingWhitespace!==!1&&Oe(K)}if(A&&o.getTokenFullStart()>=e.end){let he=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(t).token:void 0;if(he&&he.pos===S){let Le=((v=ec(he.end,m,t))==null?void 0:v.parent)||C;ee(he,m.getLineAndCharacterOfPosition(he.pos).line,Le,A,R,C,Le,void 0)}}return U;function F(he,Le,Ke,Dt,st){if(XN(Dt,he,Le)||zk(Dt,he,Le)){if(st!==-1)return st}else{let Ge=m.getLineAndCharacterOfPosition(he).line,ot=Cf(he,m),Vt=c_.findFirstNonWhitespaceColumn(ot,he,m,s);if(Ge!==Ke||he===Vt){let jt=c_.getBaseIndentation(s);return jt>Vt?jt:Vt}}return-1}function oe(he,Le,Ke,Dt,st,Ge){let ot=c_.shouldIndentChildNode(s,he)?s.indentSize:0;return Ge===Le?{indentation:Le===L?G:st.getIndentation(),delta:Math.min(s.indentSize,st.getDelta(he)+ot)}:Ke===-1?he.kind===21&&Le===L?{indentation:G,delta:st.getDelta(he)}:c_.childStartsOnTheSameLineWithElseInIfStatement(Dt,he,Le,m)||c_.childIsUnindentedBranchOfConditionalExpression(Dt,he,Le,m)||c_.argumentStartsOnSameLineAsPreviousArgument(Dt,he,Le,m)?{indentation:st.getIndentation(),delta:ot}:{indentation:st.getIndentation()+st.getDelta(he),delta:ot}:{indentation:Ke,delta:ot}}function W(he){if(Yf(he)){let Le=Dr(he.modifiers,ia,Tl(he.modifiers,Xc));if(Le)return Le.kind}switch(he.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(he.asteriskToken)return 42;case 172:case 169:let Le=mo(he);if(Le)return Le.kind}}function $(he,Le,Ke,Dt){return{getIndentationForComment:(ot,Vt,jt)=>{switch(ot){case 20:case 24:case 22:return Ke+Ge(jt)}return Vt!==-1?Vt:Ke},getIndentationForToken:(ot,Vt,jt,gn)=>!gn&&st(ot,Vt,jt)?Ke+Ge(jt):Ke,getIndentation:()=>Ke,getDelta:Ge,recomputeIndentation:(ot,Vt)=>{c_.shouldIndentChildNode(s,Vt,he,m)&&(Ke+=ot?s.indentSize:-s.indentSize,Dt=c_.shouldIndentChildNode(s,he)?s.indentSize:0)}};function st(ot,Vt,jt){switch(Vt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(jt.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(jt.kind!==200)return!1;break}return Le!==ot&&!(Hp(he)&&Vt===W(he))}function Ge(ot){return c_.nodeWillIndentChild(s,he,ot,m,!0)?Dt:0}}function de(he,Le,Ke,Dt,st,Ge){if(!XN(e,he.getStart(m),he.getEnd()))return;let ot=$(he,Ke,st,Ge),Vt=Le;for(Ao(he,en=>{jt(en,-1,he,ot,Ke,Dt,!1)},en=>{gn(en,he,Ke,ot)});o.isOnToken()&&o.getTokenFullStart()<e.end;){let en=o.readTokenInfo(he);if(en.token.end>Math.min(he.end,e.end))break;On(en,he,ot,he)}function jt(en,zt,Wt,ei,Ki,gi,io,Gn){if(x.assert(!xs(en)),_l(en)||yte(Wt,en))return zt;let Nr=en.getStart(m),cr=m.getLineAndCharacterOfPosition(Nr).line,Jt=cr;Hp(en)&&(Jt=m.getLineAndCharacterOfPosition(u9(en,m)).line);let Ue=-1;if(io&&Cp(e,Wt)&&(Ue=F(Nr,en.end,Ki,e,zt),Ue!==-1&&(zt=Ue)),!XN(e,en.pos,en.end))return en.end<e.pos&&o.skipToEndOf(en),zt;if(en.getFullWidth()===0)return zt;for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){let qr=o.readTokenInfo(he);if(qr.token.end>e.end)return zt;if(qr.token.end>Nr){qr.token.pos>Nr&&o.skipToStartOf(en);break}On(qr,he,ei,he)}if(!o.isOnToken()||o.getTokenFullStart()>=e.end)return zt;if(xA(en)){let qr=o.readTokenInfo(en);if(en.kind!==12)return x.assert(qr.token.end===en.end,"Token end is child end"),On(qr,he,ei,en),zt}let Rt=en.kind===170?cr:gi,mn=oe(en,cr,Ue,he,ei,Rt);return de(en,Vt,cr,Jt,mn.indentation,mn.delta),Vt=he,Gn&&Wt.kind===209&&zt===-1&&(zt=mn.indentation),zt}function gn(en,zt,Wt,ei){x.assert(OE(en)),x.assert(!xs(en));let Ki=bZe(zt,en),gi=ei,io=Wt;if(!XN(e,en.pos,en.end)){en.end<e.pos&&o.skipToEndOf(en);return}if(Ki!==0)for(;o.isOnToken()&&o.getTokenFullStart()<e.end;){let cr=o.readTokenInfo(zt);if(cr.token.end>en.pos)break;if(cr.token.kind===Ki){io=m.getLineAndCharacterOfPosition(cr.token.pos).line,On(cr,zt,ei,zt);let Jt;if(G!==-1)Jt=G;else{let Ue=Cf(cr.token.pos,m);Jt=c_.findFirstNonWhitespaceColumn(Ue,cr.token.pos,m,s)}gi=$(zt,Wt,Jt,s.indentSize)}else On(cr,zt,ei,zt)}let Gn=-1;for(let cr=0;cr<en.length;cr++){let Jt=en[cr];Gn=jt(Jt,Gn,he,gi,io,io,!0,cr===0)}let Nr=EZe(Ki);if(Nr!==0&&o.isOnToken()&&o.getTokenFullStart()<e.end){let cr=o.readTokenInfo(zt);cr.token.kind===28&&(On(cr,zt,gi,zt),cr=o.isOnToken()?o.readTokenInfo(zt):void 0),cr&&cr.token.kind===Nr&&Cp(zt,cr.token)&&On(cr,zt,gi,zt,!0)}}function On(en,zt,Wt,ei,Ki){x.assert(Cp(zt,en.token));let gi=o.lastTrailingTriviaWasNewLine(),io=!1;en.leadingTrivia&&q(en.leadingTrivia,zt,Vt,Wt);let Gn=0,Nr=Cp(e,en.token),cr=m.getLineAndCharacterOfPosition(en.token.pos);if(Nr){let Jt=h(en.token),Ue=A;if(Gn=H(en.token,cr,zt,Vt,Wt),!Jt)if(Gn===0){let Rt=Ue&&m.getLineAndCharacterOfPosition(Ue.end).line;io=gi&&cr.line!==Rt}else io=Gn===1}if(en.trailingTrivia&&(S=Da(en.trailingTrivia).end,q(en.trailingTrivia,zt,Vt,Wt)),io){let Jt=Nr&&!h(en.token)?Wt.getIndentationForToken(cr.line,en.token.kind,ei,!!Ki):-1,Ue=!0;if(en.leadingTrivia){let Rt=Wt.getIndentationForComment(en.token.kind,Jt,ei);Ue=fe(en.leadingTrivia,Rt,Ue,mn=>le(mn.pos,Rt,!1))}Jt!==-1&&Ue&&(le(en.token.pos,Jt,Gn===1),L=cr.line,G=Jt)}o.advance(),Vt=zt}}function fe(he,Le,Ke,Dt){for(let st of he){let Ge=Cp(e,st);switch(st.kind){case 3:Ge&&Z(st,Le,!Ke),Ke=!1;break;case 2:Ke&&Ge&&Dt(st),Ke=!1;break;case 4:Ke=!0;break}}return Ke}function q(he,Le,Ke,Dt){for(let st of he)if(S3(st.kind)&&Cp(e,st)){let Ge=m.getLineAndCharacterOfPosition(st.pos);H(st,Ge,Le,Ke,Dt)}}function H(he,Le,Ke,Dt,st){let Ge=h(he),ot=0;if(!Ge)if(A)ot=ee(he,Le.line,Ke,A,R,C,Dt,st);else{let Vt=m.getLineAndCharacterOfPosition(e.pos);pe(Vt.line,Le.line)}return A=he,S=he.end,C=Ke,R=Le.line,ot}function ee(he,Le,Ke,Dt,st,Ge,ot,Vt){E.updateContext(Dt,Ge,he,Ke,ot);let jt=l(E),gn=E.options.trimTrailingWhitespace!==!1,On=0;return jt?RZ(jt,en=>{if(On=ft(en,Dt,st,he,Le),Vt)switch(On){case 2:Ke.getStart(m)===he.pos&&Vt.recomputeIndentation(!1,ot);break;case 1:Ke.getStart(m)===he.pos&&Vt.recomputeIndentation(!0,ot);break;default:x.assert(On===0)}gn=gn&&!(en.action&16)&&en.flags!==1}):gn=gn&&he.kind!==1,Le!==st&&gn&&pe(st,Le,Dt),On}function le(he,Le,Ke){let Dt=Tfe(Le,s);if(Ke)Te(he,0,Dt);else{let st=m.getLineAndCharacterOfPosition(he),Ge=Zv(st.line,m);(Le!==Ee(Ge,st.character)||ce(Dt,Ge))&&Te(Ge,st.character,Dt)}}function Ee(he,Le){let Ke=0;for(let Dt=0;Dt<Le;Dt++)m.text.charCodeAt(he+Dt)===9?Ke+=s.tabSize-Ke%s.tabSize:Ke++;return Ke}function ce(he,Le){return he!==m.text.substr(Le,he.length)}function Z(he,Le,Ke,Dt=!0){let st=m.getLineAndCharacterOfPosition(he.pos).line,Ge=m.getLineAndCharacterOfPosition(he.end).line;if(st===Ge){Ke||le(he.pos,Le,!1);return}let ot=[],Vt=he.pos;for(let zt=st;zt<Ge;zt++){let Wt=rL(zt,m);ot.push({pos:Vt,end:Wt}),Vt=Zv(zt+1,m)}if(Dt&&ot.push({pos:Vt,end:he.end}),ot.length===0)return;let jt=Zv(st,m),gn=c_.findFirstNonWhitespaceCharacterAndColumn(jt,ot[0].pos,m,s),On=0;Ke&&(On=1,st++);let en=Le-gn.column;for(let zt=On;zt<ot.length;zt++,st++){let Wt=Zv(st,m),ei=zt===0?gn:c_.findFirstNonWhitespaceCharacterAndColumn(ot[zt].pos,ot[zt].end,m,s),Ki=ei.column+en;if(Ki>0){let gi=Tfe(Ki,s);Te(Wt,ei.character,gi)}else be(Wt,ei.character)}}function pe(he,Le,Ke){for(let Dt=he;Dt<Le;Dt++){let st=Zv(Dt,m),Ge=rL(Dt,m);if(Ke&&(S3(Ke.kind)||Zq(Ke.kind))&&Ke.pos<=Ge&&Ke.end>Ge)continue;let ot=Ae(st,Ge);ot!==-1&&(x.assert(ot===st||!jm(m.text.charCodeAt(ot-1))),be(ot,Ge+1-ot))}}function Ae(he,Le){let Ke=Le;for(;Ke>=he&&jm(m.text.charCodeAt(Ke));)Ke--;return Ke!==Le?Ke+1:-1}function Oe(he){let Le=A?A.end:e.pos;for(let Ke of he)S3(Ke.kind)&&(Le<Ke.pos&&_e(Le,Ke.pos-1,A),Le=Ke.end+1);Le<e.end&&_e(Le,e.end,A)}function _e(he,Le,Ke){let Dt=m.getLineAndCharacterOfPosition(he).line,st=m.getLineAndCharacterOfPosition(Le).line;pe(Dt,st+1,Ke)}function be(he,Le){Le&&U.push(A3(he,Le,""))}function Te(he,Le,Ke){(Le||Ke)&&U.push(A3(he,Le,Ke))}function De(he,Le){Le&&U.push(A3(he,0,Le))}function ft(he,Le,Ke,Dt,st){let Ge=st!==Ke;switch(he.action){case 1:return 0;case 16:if(Le.end!==Dt.pos)return be(Le.end,Dt.pos-Le.end),Ge?2:0;break;case 32:be(Le.pos,Le.end-Le.pos);break;case 8:if(he.flags!==1&&Ke!==st)return 0;if(st-Ke!==1)return Te(Le.end,Dt.pos-Le.end,mv(d,s)),Ge?0:1;break;case 4:if(he.flags!==1&&Ke!==st)return 0;if(Dt.pos-Le.end!==1||m.text.charCodeAt(Le.end)!==32)return Te(Le.end,Dt.pos-Le.end," "),Ge?2:0;break;case 64:De(Le.end,";")}return 0}}function pMe(e,t,r,i=Hi(e,t)){let o=Rn(i,Sm);if(o&&(i=o.parent),i.getStart(e)<=t&&t<i.getEnd())return;r=r===null?void 0:r===void 0?ec(t,e):r;let l=r&&mb(e.text,r.end),d=A9(i,e),p=ro(l,d);return p&&Dr(p,h=>Fk(h,t)||t===h.end&&(h.kind===2||t===e.getFullWidth()))}function bZe(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function EZe(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function Tfe(e,t){if((!$Y||$Y.tabSize!==t.tabSize||$Y.indentSize!==t.indentSize)&&($Y={tabSize:t.tabSize,indentSize:t.indentSize},BO=GO=void 0),t.convertTabsToSpaces){let i,o=Math.floor(e/t.indentSize),s=e%t.indentSize;return GO||(GO=[]),GO[o]===void 0?(i=Hk(" ",t.indentSize*o),GO[o]=i):i=GO[o],s?i+Hk(" ",s):i}else{let i=Math.floor(e/t.tabSize),o=e-i*t.tabSize,s;return BO||(BO=[]),BO[i]===void 0?BO[i]=s=Hk(" ",i):s=BO[i],o?s+Hk(" ",o):s}}var $Y,BO,GO,SZe=pt({"src/services/formatting/formatting.ts"(){"use strict";Hr(),VO()}}),c_,TZe=pt({"src/services/formatting/smartIndenter.ts"(){"use strict";Hr(),VO(),(e=>{let t;(Z=>{Z[Z.Unknown=-1]="Unknown"})(t||(t={}));function r(Z,pe,Ae,Oe=!1){if(Z>pe.text.length)return d(Ae);if(Ae.indentStyle===0)return 0;let _e=ec(Z,pe,void 0,!0),be=pMe(pe,Z,_e||null);if(be&&be.kind===3)return i(pe,Z,Ae,be);if(!_e)return d(Ae);if(Zq(_e.kind)&&_e.getStart(pe)<=Z&&Z<_e.end)return 0;let De=pe.getLineAndCharacterOfPosition(Z).line,ft=Hi(pe,Z),he=ft.kind===19&&ft.parent.kind===210;if(Ae.indentStyle===1||he)return o(pe,Z,Ae);if(_e.kind===28&&_e.parent.kind!==226){let Ke=m(_e,pe,Ae);if(Ke!==-1)return Ke}let Le=K(Z,_e.parent,pe);if(Le&&!Cp(Le,_e)){let Dt=[218,219].includes(ft.parent.kind)?0:Ae.indentSize;return W(Le,pe,Ae)+Dt}return s(pe,Z,_e,De,Oe,Ae)}e.getIndentation=r;function i(Z,pe,Ae,Oe){let _e=$a(Z,pe).line-1,be=$a(Z,Oe.pos).line;if(x.assert(be>=0),_e<=be)return H(Zv(be,Z),pe,Z,Ae);let Te=Zv(_e,Z),{column:De,character:ft}=q(Te,pe,Z,Ae);return De===0?De:Z.text.charCodeAt(Te+ft)===42?De-1:De}function o(Z,pe,Ae){let Oe=pe;for(;Oe>0;){let be=Z.text.charCodeAt(Oe);if(!$h(be))break;Oe--}let _e=Cf(Oe,Z);return H(_e,Oe,Z,Ae)}function s(Z,pe,Ae,Oe,_e,be){let Te,De=Ae;for(;De;){if(Jq(De,pe,Z)&&Ee(be,De,Te,Z,!0)){let he=A(De,Z),Le=S(Ae,De,Oe,Z),Ke=Le!==0?_e&&Le===2?be.indentSize:0:Oe!==he.line?be.indentSize:0;return p(De,he,void 0,Ke,Z,!0,be)}let ft=$(De,Z,be,!0);if(ft!==-1)return ft;Te=De,De=De.parent}return d(be)}function l(Z,pe,Ae,Oe){let _e=Ae.getLineAndCharacterOfPosition(Z.getStart(Ae));return p(Z,_e,pe,0,Ae,!1,Oe)}e.getIndentationForNode=l;function d(Z){return Z.baseIndentSize||0}e.getBaseIndentation=d;function p(Z,pe,Ae,Oe,_e,be,Te){var De;let ft=Z.parent;for(;ft;){let he=!0;if(Ae){let st=Z.getStart(_e);he=st<Ae.pos||st>Ae.end}let Le=h(ft,Z,_e),Ke=Le.line===pe.line||R(ft,Z,pe.line,_e);if(he){let st=(De=U(Z,_e))==null?void 0:De[0],Ge=!!st&&A(st,_e).line>Le.line,ot=$(Z,_e,Te,Ge);if(ot!==-1||(ot=v(Z,ft,pe,Ke,_e,Te),ot!==-1))return ot+Oe}Ee(Te,ft,Z,_e,be)&&!Ke&&(Oe+=Te.indentSize);let Dt=C(ft,Z,pe.line,_e);Z=ft,ft=Z.parent,pe=Dt?_e.getLineAndCharacterOfPosition(Z.getStart(_e)):Le}return Oe+d(Te)}function h(Z,pe,Ae){let Oe=U(pe,Ae),_e=Oe?Oe.pos:Z.getStart(Ae);return Ae.getLineAndCharacterOfPosition(_e)}function m(Z,pe,Ae){let Oe=Wse(Z);return Oe&&Oe.listItemIndex>0?de(Oe.list.getChildren(),Oe.listItemIndex-1,pe,Ae):-1}function v(Z,pe,Ae,Oe,_e,be){return(bd(Z)||QM(Z))&&(pe.kind===312||!Oe)?fe(Ae,_e,be):-1}let E;(Z=>{Z[Z.Unknown=0]="Unknown",Z[Z.OpenBrace=1]="OpenBrace",Z[Z.CloseBrace=2]="CloseBrace"})(E||(E={}));function S(Z,pe,Ae,Oe){let _e=S0(Z,pe,Oe);if(!_e)return 0;if(_e.kind===19)return 1;if(_e.kind===20){let be=A(_e,Oe).line;return Ae===be?2:0}return 0}function A(Z,pe){return pe.getLineAndCharacterOfPosition(Z.getStart(pe))}function C(Z,pe,Ae,Oe){if(!(Bo(Z)&&To(Z.arguments,pe)))return!1;let _e=Z.expression.getEnd();return $a(Oe,_e).line===Ae}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=C;function R(Z,pe,Ae,Oe){if(Z.kind===245&&Z.elseStatement===pe){let _e=Ya(Z,93,Oe);return x.assert(_e!==void 0),A(_e,Oe).line===Ae}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=R;function L(Z,pe,Ae,Oe){if(Fx(Z)&&(pe===Z.whenTrue||pe===Z.whenFalse)){let _e=$a(Oe,Z.condition.end).line;if(pe===Z.whenTrue)return Ae===_e;{let be=A(Z.whenTrue,Oe).line,Te=$a(Oe,Z.whenTrue.end).line;return _e===be&&Te===Ae}}return!1}e.childIsUnindentedBranchOfConditionalExpression=L;function G(Z,pe,Ae,Oe){if(Um(Z)){if(!Z.arguments)return!1;let _e=Dr(Z.arguments,ft=>ft.pos===pe.pos);if(!_e)return!1;let be=Z.arguments.indexOf(_e);if(be===0)return!1;let Te=Z.arguments[be-1],De=$a(Oe,Te.getEnd()).line;if(Ae===De)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=G;function U(Z,pe){return Z.parent&&F(Z.getStart(pe),Z.getEnd(),Z.parent,pe)}e.getContainingList=U;function K(Z,pe,Ae){return pe&&F(Z,Z,pe,Ae)}function F(Z,pe,Ae,Oe){switch(Ae.kind){case 183:return _e(Ae.typeArguments);case 210:return _e(Ae.properties);case 209:return _e(Ae.elements);case 187:return _e(Ae.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return _e(Ae.typeParameters)||_e(Ae.parameters);case 177:return _e(Ae.parameters);case 263:case 231:case 264:case 265:case 352:return _e(Ae.typeParameters);case 214:case 213:return _e(Ae.typeArguments)||_e(Ae.arguments);case 261:return _e(Ae.declarations);case 275:case 279:return _e(Ae.elements);case 206:case 207:return _e(Ae.elements)}function _e(be){return be&&zk(oe(Ae,be,Oe),Z,pe)?be:void 0}}function oe(Z,pe,Ae){let Oe=Z.getChildren(Ae);for(let _e=1;_e<Oe.length-1;_e++)if(Oe[_e].pos===pe.pos&&Oe[_e].end===pe.end)return{pos:Oe[_e-1].end,end:Oe[_e+1].getStart(Ae)};return pe}function W(Z,pe,Ae){return Z?fe(pe.getLineAndCharacterOfPosition(Z.pos),pe,Ae):-1}function $(Z,pe,Ae,Oe){if(Z.parent&&Z.parent.kind===261)return-1;let _e=U(Z,pe);if(_e){let be=_e.indexOf(Z);if(be!==-1){let Te=de(_e,be,pe,Ae);if(Te!==-1)return Te}return W(_e,pe,Ae)+(Oe?Ae.indentSize:0)}return-1}function de(Z,pe,Ae,Oe){x.assert(pe>=0&&pe<Z.length);let _e=Z[pe],be=A(_e,Ae);for(let Te=pe-1;Te>=0;Te--){if(Z[Te].kind===28)continue;if(Ae.getLineAndCharacterOfPosition(Z[Te].end).line!==be.line)return fe(be,Ae,Oe);be=A(Z[Te],Ae)}return-1}function fe(Z,pe,Ae){let Oe=pe.getPositionOfLineAndCharacter(Z.line,0);return H(Oe,Oe+Z.character,pe,Ae)}function q(Z,pe,Ae,Oe){let _e=0,be=0;for(let Te=Z;Te<pe;Te++){let De=Ae.text.charCodeAt(Te);if(!jm(De))break;De===9?be+=Oe.tabSize+be%Oe.tabSize:be++,_e++}return{column:be,character:_e}}e.findFirstNonWhitespaceCharacterAndColumn=q;function H(Z,pe,Ae,Oe){return q(Z,pe,Ae,Oe).column}e.findFirstNonWhitespaceColumn=H;function ee(Z,pe,Ae,Oe,_e){let be=Ae?Ae.kind:0;switch(pe.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 Z.indentSwitchCase??!0;case 260:case 303:case 226:if(!Z.indentMultiLineObjectLiteralBeginningOnBlankLine&&Oe&&be===210)return ce(Oe,Ae);if(pe.kind===226&&Oe&&Ae&&be===284){let Te=Oe.getLineAndCharacterOfPosition(ua(Oe.text,pe.pos)).line,De=Oe.getLineAndCharacterOfPosition(ua(Oe.text,Ae.pos)).line;return Te!==De}if(pe.kind!==226)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 be!==241;case 219:return Oe&&be===217?ce(Oe,Ae):be!==241;case 278:return be!==279;case 272:return be!==273||!!Ae.namedBindings&&Ae.namedBindings.kind!==275;case 284:return be!==287;case 288:return be!==290;case 193:case 192:if(be===187||be===189)return!1;break}return _e}e.nodeWillIndentChild=ee;function le(Z,pe){switch(Z){case 253:case 257:case 251:case 252:return pe.kind!==241;default:return!1}}function Ee(Z,pe,Ae,Oe,_e=!1){return ee(Z,pe,Ae,Oe,!1)&&!(_e&&Ae&&le(Ae.kind,pe))}e.shouldIndentChildNode=Ee;function ce(Z,pe){let Ae=ua(Z.text,pe.pos),Oe=Z.getLineAndCharacterOfPosition(Ae).line,_e=Z.getLineAndCharacterOfPosition(pe.end).line;return Oe===_e}})(c_||(c_={}))}}),uc={};Ra(uc,{FormattingContext:()=>sfe,FormattingRequestKind:()=>afe,RuleAction:()=>cfe,RuleFlags:()=>dfe,SmartIndenter:()=>c_,anyContext:()=>Qz,createTextRangeWithKind:()=>YY,formatDocument:()=>pZe,formatNodeGivenIndentation:()=>yZe,formatOnClosingCurly:()=>uZe,formatOnEnter:()=>lZe,formatOnOpeningCurly:()=>dZe,formatOnSemicolon:()=>cZe,formatSelection:()=>fZe,getAllRules:()=>GPe,getFormatContext:()=>ZQe,getFormattingScanner:()=>lfe,getIndentationString:()=>Tfe,getRangeOfEnclosingComment:()=>pMe});var VO=pt({"src/services/_namespaces/ts.formatting.ts"(){"use strict";yQe(),bQe(),EQe(),QQe(),sZe(),SZe(),TZe()}}),Hr=pt({"src/services/_namespaces/ts.ts"(){"use strict";wo(),Pk(),M5e(),nBe(),aBe(),BAe(),vBe(),yBe(),xBe(),wBe(),WBe(),zBe(),JBe(),KBe(),_je(),hje(),yje(),zje(),Gje(),oa(),Epe(),kpe(),_Ye(),bYe(),WYe(),dIe(),PIe(),i$e(),p$e(),q_(),b$e(),K$e(),nQe(),aQe(),vQe(),VO()}});function AZe(){return _Me??(_Me=new zf(yp))}function fMe(e,t,r,i,o){let s=t?"DeprecationError: ":"DeprecationWarning: ";return s+=`'${e}' `,s+=i?`has been deprecated since v${i}`:"is deprecated",s+=t?" and can no longer be used.":r?` and will no longer be usable after v${r}.`:".",s+=o?` ${xh(o,[e])}`:"",s}function IZe(e,t,r,i){let o=fMe(e,!0,t,r,i);return()=>{throw new TypeError(o)}}function xZe(e,t,r,i){let o=!1;return()=>{mMe&&!o&&(x.log.warn(fMe(e,!1,t,r,i)),o=!0)}}function RZe(e,t={}){let r=typeof t.typeScriptVersion=="string"?new zf(t.typeScriptVersion):t.typeScriptVersion??AZe(),i=typeof t.errorAfter=="string"?new zf(t.errorAfter):t.errorAfter,o=typeof t.warnAfter=="string"?new zf(t.warnAfter):t.warnAfter,s=typeof t.since=="string"?new zf(t.since):t.since??o,l=t.error||i&&r.compareTo(i)>=0,d=!o||r.compareTo(o)>=0;return l?IZe(e,i,s,t.message):d?xZe(e,i,s,t.message):Ca}function DZe(e,t){return function(){return e(),t.apply(this,arguments)}}function Afe(e,t){let r=RZe(t?.name??x.getFunctionName(e),t);return DZe(r,e)}var mMe,_Me,hMe=pt({"src/deprecatedCompat/deprecate.ts"(){"use strict";ZY(),mMe=!0}});function QY(e,t,r,i){if(Object.defineProperty(s,"name",{...Object.getOwnPropertyDescriptor(s,"name"),value:e}),i)for(let l of Object.keys(i)){let d=+l;!isNaN(d)&&rs(t,`${d}`)&&(t[d]=Afe(t[d],{...i[d],name:e}))}let o=CZe(t,r);return s;function s(...l){let d=o(l),p=d!==void 0?t[d]:void 0;if(typeof p=="function")return p(...l);throw new TypeError("Invalid arguments")}}function CZe(e,t){return r=>{for(let i=0;rs(e,`${i}`)&&rs(t,`${i}`);i++){let o=t[i];if(o(r))return i}}}function gMe(e){return{overload:t=>({bind:r=>({finish:()=>QY(e,t,r),deprecate:i=>({finish:()=>QY(e,t,r,i)})})})}}var NZe=pt({"src/deprecatedCompat/deprecations.ts"(){"use strict";ZY(),hMe()}}),PZe=pt({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";ZY(),hMe(),Vne(e=>{let t=e.getIdentifierConstructor();rs(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Afe(function(){return vb(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),rs(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Afe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),ZY=pt({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";wo(),NZe(),PZe()}}),MZe=pt({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";wo(),Pk(),xfe()}});function vMe(e,t,r,i){try{let o=Zx(t,wr(e,"index.d.ts"),{moduleResolution:2},r);return o.resolvedModule&&o.resolvedModule.resolvedFileName}catch(o){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${o.message}`);return}}function LZe(e,t,r,i){let o=!1;for(let s=r.length;s>0;){let l=yMe(e,t,r,s);s=l.remaining,o=i(l.command)||o}return o}function yMe(e,t,r,i){let o=r.length-i,s,l=i;for(;s=`${e} install --ignore-scripts ${(l===r.length?r:r.slice(o,o+l)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(s.length<8e3);)l=l-Math.floor(l/2);return{command:s,remaining:i-l}}function bMe(e){return`@types/${e}@ts${uh}`}var EMe,SMe,kZe=pt({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";MZe(),xfe(),EMe={isEnabled:()=>!1,writeLine:Ca},SMe=class{constructor(e,t,r,i,o,s=EMe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=r,this.typesMapLocation=i,this.throttleLimit=o,this.log=s,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${r}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}handleRequest(e){switch(e.kind){case"discover":this.install(e);break;case"closeProject":this.closeProject(e);break;case"typesRegistry":{let t={};this.typesRegistry.forEach((i,o)=>{t[o]=i});let r={kind:r3,typesRegistry:t};this.sendResponse(r);break}case"installPackage":{this.installPackage(e);break}default:x.assertNever(e)}}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:JN,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${Ub(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=s_.discoverTypings(this.installTypingHost,this.log.isEnabled()?r=>this.log.writeLine(r):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}installPackage(e){let{fileName:t,packageName:r,projectName:i,projectRootPath:o,id:s}=e,l=Vf(Ur(t),d=>{if(this.installTypingHost.fileExists(wr(d,"package.json")))return d})||o;if(l)this.installWorker(-1,[r],l,d=>{let p=d?`Package ${r} installed.`:`There was an error installing ${r}.`,h={kind:Nk,projectName:i,id:s,success:d,message:p};this.sendResponse(h)});else{let d={kind:Nk,projectName:i,id:s,success:!1,message:"Could not determine a project root path."};this.sendResponse(d)}}initializeSafeList(){if(this.typesMapLocation){let e=s_.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=s_.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=wr(e,"package.json"),r=wr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(r)){let i=JSON.parse(this.installTypingHost.readFile(t)),o=JSON.parse(this.installTypingHost.readFile(r));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${Ub(i)}`),this.log.writeLine(`Loaded content of '${r}':${Ub(o)}`)),i.devDependencies&&o.dependencies)for(let s in i.devDependencies){if(!rs(o.dependencies,s))continue;let l=Ll(s);if(!l)continue;let d=vMe(e,l,this.installTypingHost,this.log);if(!d){this.missingTypingsSet.add(l);continue}let p=this.packageNameToTypingLocation.get(l);if(p){if(p.typingLocation===d)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${l} from '${d}' conflicts with existing typing file '${p}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${l}' => '${d}'`);let h=Jw(o.dependencies,s),m=h&&h.version;if(!m)continue;let v={typingLocation:d,version:new zf(m)};this.packageNameToTypingLocation.set(l,v)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Fi(e,t=>{let r=tR(t);if(this.missingTypingsSet.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' is in missingTypingsSet - skipping...`);return}let i=s_.validatePackageName(t);if(i!==s_.NameValidationResult.Ok){this.missingTypingsSet.add(r),this.log.isEnabled()&&this.log.writeLine(s_.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(r)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${r}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(r)&&s_.isTypingUpToDate(this.packageNameToTypingLocation.get(r),this.typesRegistry.get(r))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${r}' already has an up-to-date typing - skipping...`);return}return r})}ensurePackageDirectoryExists(e){let t=wr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,r,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let o=this.filterTypings(i);if(o.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,r));return}this.ensurePackageDirectoryExists(t);let s=this.installRunCount;this.installRunCount++,this.sendResponse({kind:i3,eventId:s,typingsInstallerVersion:yp,projectName:e.projectName});let l=o.map(bMe);this.installTypingsAsync(s,l,t,d=>{try{if(!d){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(o)}`);for(let h of o)this.missingTypingsSet.add(h);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(l)}`);let p=[];for(let h of o){let m=vMe(t,h,this.installTypingHost,this.log);if(!m){this.missingTypingsSet.add(h);continue}let v=this.typesRegistry.get(h),E=new zf(v[`ts${uh}`]||v[this.latestDistTag]),S={typingLocation:m,version:E};this.packageNameToTypingLocation.set(h,S),p.push(m)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(p)}`),this.sendResponse(this.createSetTypings(e,r.concat(p)))}finally{let p={kind:o3,eventId:s,projectName:e.projectName,packagesToInstall:l,installSuccess:d,typingsInstallerVersion:yp};this.sendResponse(p)}})}ensureDirectoryExists(e,t){let r=Ur(e);t.directoryExists(r)||this.ensureDirectoryExists(r,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let r=this.projectWatchers.get(e),i=new Set(t);!r||k_(i,o=>!r.has(o))||k_(r,o=>!i.has(o))?(this.projectWatchers.set(e,i),this.sendResponse({kind:JN,projectName:e,files:t})):this.sendResponse({kind:JN,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:Dk}}installTypingsAsync(e,t,r,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:r,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount<this.throttleLimit&&this.pendingRunRequests.length;){this.inFlightRequestCount++;let e=this.pendingRunRequests.pop();this.installWorker(e.requestId,e.packageNames,e.cwd,t=>{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),Ife={};Ra(Ife,{TypingsInstaller:()=>SMe,getNpmCommandForInstallation:()=>yMe,installNpmPackages:()=>LZe,typingsName:()=>bMe});var OZe=pt({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";kZe()}}),xfe=pt({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";a3(),OZe()}}),wZe=pt({"src/server/types.ts"(){"use strict"}});function Rfe(e,t,r,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:r,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function js(e){return Yo(e)}function jO(e,t,r){let i=Ou(e)?e:Qi(e,t);return r(i)}function TMe(e){return e}function AMe(){let e=new Map;return{get(t){return e.get(t)},set(t,r){e.set(t,r)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function Dfe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Cfe(e){return`/dev/null/inferredProject${e}*`}function Nfe(e){return`/dev/null/autoImportProviderProject${e}*`}function Pfe(e){return`/dev/null/auxiliaryProject${e}*`}function Mfe(){return[]}var e$,ql,t$,vv,WZe=pt({"src/server/utilitiesPublic.ts"(){"use strict";Ty(),e$=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(e$||{}),ql=Mfe(),t$=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(t$||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function r(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=r;function i(o,s){throw new Error(`Project '${s.getProjectName()}' does not contain document '${o}'`)}e.ThrowProjectDoesNotContainDocument=i})(vv||(vv={}))}});function n$(e){let t=Ll(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function IMe(e,t,r){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=Vg(e,t,Ps,r);i>=0&&e.splice(i,1)}var r$,i$,FZe=pt({"src/server/utilities.ts"(){"use strict";Ty(),hT(),r$=class yWe{constructor(t,r){this.host=t,this.pendingTimeouts=new Map,this.logger=r.hasLevel(3)?r:void 0}schedule(t,r,i){let o=this.pendingTimeouts.get(t);o&&this.host.clearTimeout(o),this.pendingTimeouts.set(t,this.host.setTimeout(yWe.run,r,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${o?", Cancelled earlier one":""}`)}cancel(t){let r=this.pendingTimeouts.get(t);return r?(this.host.clearTimeout(r),this.pendingTimeouts.delete(t)):!1}static run(t,r,i){var o,s;(o=Pd)==null||o.logStartScheduledOperation(t),r.pendingTimeouts.delete(t),r.logger&&r.logger.info(`Running: ${t}`),i(),(s=Pd)==null||s.logStopScheduledOperation()}},i$=class bWe{constructor(t,r,i){this.host=t,this.delay=r,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(bWe.run,this.delay,this))}static run(t){var r,i;t.timerId=void 0,(r=Pd)==null||r.logStartScheduledOperation("GC collect");let o=t.logger.hasLevel(2),s=o&&t.host.getMemoryUsage();if(t.host.gc(),o){let l=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${s}, after ${l}`)}(i=Pd)==null||i.logStopScheduledOperation()}}}}),o$,Lfe,kfe,Ofe,wfe,Wfe,Ffe,zfe,Bfe,Gfe,Vfe,jfe,Ufe,Hfe,qfe=pt({"src/server/protocol.ts"(){"use strict";o$=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(o$||{}),Lfe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(Lfe||{}),kfe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(kfe||{}),Ofe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(Ofe||{}),wfe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(wfe||{}),Wfe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Wfe||{}),Ffe=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(Ffe||{}),zfe=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(zfe||{}),Bfe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(Bfe||{}),Gfe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e.Node16="Node16",e.NodeNext="NodeNext",e.Preserve="Preserve",e))(Gfe||{}),Vfe=(e=>(e.Classic="Classic",e.Node="Node",e.Node10="Node10",e.Node16="Node16",e.NodeNext="NodeNext",e.Bundler="Bundler",e))(Vfe||{}),jfe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(jfe||{}),Ufe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(Ufe||{}),Hfe=(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))(Hfe||{})}}),Jfe={};Ra(Jfe,{ClassificationType:()=>Hfe,CommandTypes:()=>o$,CompletionTriggerKind:()=>Wfe,IndentStyle:()=>Ffe,JsxEmit:()=>Bfe,ModuleKind:()=>Gfe,ModuleResolutionKind:()=>Vfe,NewLineKind:()=>jfe,OrganizeImportsMode:()=>Lfe,PollingWatchKind:()=>wfe,ScriptTarget:()=>Ufe,SemicolonPreference:()=>zfe,WatchDirectoryKind:()=>Ofe,WatchFileKind:()=>kfe});var zZe=pt({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";qfe()}});function UO(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&Ll(e)[0]==="^"||e.includes(":^")&&!e.includes(Os)}function xMe(e){return!e||qO(e)?vv.ThrowNoProject():e}function BZe(e){x.assert(typeof e=="number",`Expected position ${e} to be a number.`),x.assert(e>=0,"Expected position to be non-negative.")}function GZe(e){x.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),x.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),x.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),x.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var a$,s$,VZe=pt({"src/server/scriptInfo.ts"(){"use strict";Ty(),hT(),a$=class{constructor(e,t,r){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=r||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,r){this.switchToScriptVersionCache().edit(e,t-e,r),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return x.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=hR(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:r}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=r,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=l3.fromString(x.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let r=this.getLineMap();return e<=r.length?{absolutePosition:r[e-1],lineText:this.text.substring(r[e-1],r[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let r=this.getLineMap(),i=r[e],o=e+1<r.length?r[e+1]:this.text.length;return Gl(i,o)}lineOffsetToPosition(e,t,r){let i=this.tryUseScriptVersionCache();return i?i.lineOffsetToPosition(e,t):R8(this.getLineMap(),e-1,t-1,this.text,r)}positionToLineOffset(e){let t=this.tryUseScriptVersionCache();if(t)return t.positionToLineOffset(e);let{line:r,character:i}=W1(this.getLineMap(),e);return{line:r+1,offset:i+1}}getFileTextAndSize(e){let t,r=e||this.info.fileName,i=()=>t===void 0?t=this.host.readFile(r)||"":t;if(!qA(this.info.fileName)){let o=this.host.getFileSize?this.host.getFileSize(r):i().length;if(o>l7)return x.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${r} for info ${this.info.fileName}: fileSize: ${o}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(r,o),{text:"",fileSize:o}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=E7.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=E7.fromString(x.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(x.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return x.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=IA(x.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:r=>e.getAbsolutePositionAndLineText(r+1).lineText};let t=this.getLineMap();return UU(this.text,t)}},s$=class{constructor(e,t,r,i,o,s){this.host=e,this.fileName=t,this.scriptKind=r,this.hasMixedContent=i,this.path=o,this.containingProjects=[],this.isDynamic=UO(t),this.textStorage=new a$(e,this,s),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=r||pF(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){x.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return To(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:N1(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){Yb(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!FR(e)&&e.addMissingFileRoot(t.fileName)}ph(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return vv.ThrowNoProject();case 1:return xMe(this.containingProjects[0]);default:let e,t,r,i,o;for(let s=0;s<this.containingProjects.length;s++){let l=this.containingProjects[s];if(Yb(l)){if(!l.isSourceOfProjectReferenceRedirect(this.fileName)){if(o===void 0&&s!==this.containingProjects.length-1&&(o=l.projectService.findDefaultConfiguredProject(this)||!1),o===l)return l;i||(i=l)}t||(t=l)}else!e&&c$(l)?e=l:!r&&FR(l)&&(r=l)}return xMe(o||i||t||e||r)}}registerFileUpdate(){for(let e of this.containingProjects)e.registerFileUpdate(this.path)}setOptions(e,t){e&&(this.formatSettings?this.formatSettings={...this.formatSettings,...e}:(this.formatSettings=s3(this.host.newLine),R1(this.formatSettings,e))),t&&(this.preferences||(this.preferences=ef),this.preferences={...this.preferences,...t})}getLatestVersion(){return this.textStorage.getSnapshot(),this.textStorage.getVersion()}saveTo(e){this.host.writeFile(e,hR(this.textStorage.getSnapshot()))}delayReloadNonMixedContentFile(){x.assert(!this.isDynamicOrHasMixedContent()),this.textStorage.delayReloadFromFileIntoText(),this.markContainingProjectsAsDirty()}reloadFromFile(e){return this.textStorage.reloadWithFileText(e)?(this.markContainingProjectsAsDirty(),!0):!1}editContent(e,t,r){this.textStorage.edit(e,t,r),this.markContainingProjectsAsDirty()}markContainingProjectsAsDirty(){for(let e of this.containingProjects)e.markFileAsDirty(this.path)}isOrphan(){return!an(this.containingProjects,e=>!e.isOrphan())}isContainedByBackgroundProject(){return ct(this.containingProjects,qO)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,r){return this.textStorage.lineOffsetToPosition(e,t,r)}positionToLineOffset(e){BZe(e);let t=this.textStorage.positionToLineOffset(e);return GZe(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!fo(this.sourceMapFilePath)&&(Qp(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function RMe(e,t){if(e===t||(e||ql).length===0&&(t||ql).length===0)return!0;let r=new Map,i=0;for(let o of e)r.get(o)!==!0&&(r.set(o,!0),i++);for(let o of t){let s=r.get(o);if(s===void 0)return!1;s===!0&&(r.set(o,!1),i--)}return i===0}function jZe(e,t){return e.enable!==t.enable||!RMe(e.include,t.include)||!RMe(e.exclude,t.exclude)}function UZe(e,t){return sy(e)!==sy(t)}function HZe(e,t){return e===t?!1:!mm(e,t)}var i7,l$,qZe=pt({"src/server/typingsCache.ts"(){"use strict";Ty(),hT(),i7={isKnownTypesPackageName:_m,installPackage:Ro,enqueueInstallTypingsRequest:Ca,attach:Ca,onProjectClosed:Ca,globalTypingsCacheLocation:void 0},l$=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,r){let i=e.getTypeAcquisition();if(!i||!i.enable)return;let o=this.perProjectCache.get(e.getProjectName());(r||!o||jZe(i,o.typeAcquisition)||UZe(e.getCompilationSettings(),o.compilerOptions)||HZe(t,o.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:o?o.typings:ql,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,r,i,o){let s=uS(o);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:r,typings:s,unresolvedImports:i,poisoned:!1}),!r||!r.enable?ql:s}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName())&&this.installer.onProjectClosed(e)}}}});function HO(e,t=!1){let r={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let o=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:r.js+=1,r.jsSize+=o;break;case 2:r.jsx+=1,r.jsxSize+=o;break;case 3:Yc(i.fileName)?(r.dts+=1,r.dtsSize+=o):(r.ts+=1,r.tsSize+=o);break;case 4:r.tsx+=1,r.tsxSize+=o;break;case 7:r.deferred+=1,r.deferredSize+=o;break}}return r}function JZe(e){let t=HO(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function Kfe(e){let t=HO(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function Xfe(e){let t=HO(e.getScriptInfos());return t.ts===0&&t.tsx===0}function Yfe(e){return!e.some(t=>el(t,".ts")&&!Yc(t)||el(t,".tsx"))}function $fe(e){return e.generatedFilePath!==void 0}function KZe(e,t){var r,i;let o=e.getSourceFiles();(r=qn)==null||r.push(qn.Phase.Session,"getUnresolvedImports",{count:o.length});let s=e.getTypeChecker().getAmbientModules().map(d=>Sf(d.getName())),l=zD(ta(o,d=>XZe(e,d,s,t)));return(i=qn)==null||i.pop(),l}function XZe(e,t,r,i){return FD(i,t.path,()=>{let o;return e.forEachResolvedModule(({resolvedModule:s},l)=>{(!s||!VC(s.extension))&&!Ic(l)&&!r.some(d=>d===l)&&(o=pn(o,ik(l).packageName))},t),o||ql})}function FR(e){return e.projectKind===0}function Yb(e){return e.projectKind===1}function c$(e){return e.projectKind===2}function qO(e){return e.projectKind===3||e.projectKind===4}var yP,_T,d$,u$,p$,f$,m$,o7,YZe=pt({"src/server/project.ts"(){"use strict";Ty(),Ty(),hT(),yP=(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))(yP||{}),_T=class EWe{constructor(t,r,i,o,s,l,d,p,h,m,v){switch(this.projectKind=r,this.projectService=i,this.documentRegistry=o,this.compilerOptions=d,this.compileOnSaveEnabled=p,this.watchOptions=h,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=_m,this.dirty=!1,this.typingFiles=ql,this.moduleSpecifierCache=cme(this),this.createHash=Wo(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=s_.nonRelativeModuleNameForTypingCache,this.updateFromProjectInProgress=!1,this.projectName=t,this.directoryStructureHost=m,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(v),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new VK(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(s||sy(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=Tz(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:x.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let E=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=S=>this.writeLog(S):E.trace&&(this.trace=S=>E.trace(S)),this.realpath=Wo(E,E.realpath),this.resolutionCache=$H(this,this.currentDirectory,!0),this.languageService=Vce(this,this.documentRegistry,this.projectService.serverMode),l&&this.disableLanguageService(l),this.markAsDirty(),qO(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return up(this),Xfe(this)}isJsOnlyProject(){return up(this),JZe(this)}static resolveModule(t,r,i,o){return EWe.importServicePluginSync({name:t},[r],i,o).resolvedModule}static importServicePluginSync(t,r,i,o){x.assertIsDefined(i.require);let s,l;for(let d of r){let p=ad(i.resolvePath(wr(d,"node_modules")));o(`Loading ${t.name} from ${d} (resolved to ${p})`);let h=i.require(p,t.name);if(!h.error){l=h.module;break}let m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to load module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}static async importServicePluginAsync(t,r,i,o){x.assertIsDefined(i.importPlugin);let s,l;for(let d of r){let p=wr(d,"node_modules");o(`Dynamically importing ${t.name} from ${d} (resolved to ${p})`);let h;try{h=await i.importPlugin(p,t.name)}catch(v){h={module:void 0,error:v}}if(!h.error){l=h.module;break}let m=h.error.stack||h.error.message||JSON.stringify(h.error);(s??(s=[])).push(`Failed to dynamically import module '${t.name}' from ${p}: ${m}`)}return{pluginConfigEntry:t,resolvedModule:l,errorLogs:s}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=IV(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return je;let t;return this.rootFilesMap.forEach(r=>{(this.languageServiceEnabled||r.info&&r.info.isScriptOpen())&&(t||(t=[])).push(r.fileName)}),Pr(t,this.typingFiles)||je}getOrCreateScriptInfoAndAttachToProject(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(r){let i=this.rootFilesMap.get(r.path);i&&i.info!==r&&(this.rootFiles.push(r),i.info=r),r.attachToProject(this)}return r}getScriptKind(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&r.scriptKind}getScriptVersion(t){let r=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return r&&r.getLatestVersion()}getScriptSnapshot(t){let r=this.getOrCreateScriptInfoAndAttachToProject(t);if(r)return r.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=Ur(Yo(this.projectService.getExecutingFilePath()));return wr(t,OM(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,r,i,o,s){return this.directoryStructureHost.readDirectory(t,r,i,o,s)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,r){return this.projectService.host.writeFile(t,r)}fileExists(t){let r=this.toPath(t);return!this.isWatchedMissingFile(r)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,r,i,o,s,l){return this.resolutionCache.resolveModuleNameLiterals(t,r,i,o,s,l)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,r,i,o,s,l)}resolveLibrary(t,r,i,o){return this.resolutionCache.resolveLibrary(t,r,i,o)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return ks(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),dc.FailedLookupLocations,this)}watchAffectingFileLocation(t,r){return this.projectService.watchFactory.watchFile(t,r,2e3,this.projectService.getWatchOptions(this),dc.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,r,i){return this.projectService.watchFactory.watchDirectory(t,r,i,this.projectService.getWatchOptions(this),dc.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Cr(this.projectErrors,t=>!t.file)||ql}getAllProjectErrors(){return this.projectErrors||ql}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&up(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,r){return this.projectService.getDocumentPositionMapper(this,t,r)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(up(this),this.builderState=Qf.create(this.program,this.builderState,!0),Fi(Qf.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),r=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(r.path))?r.fileName:void 0)):[]}emitFile(t,r){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:ql};let{emitSkipped:i,diagnostics:o,outputFiles:s}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let l of s){let d=Qi(l.name,this.currentDirectory);r(d,l.text,l.writeByteOrderMark)}if(this.builderState&&Xp(this.compilerOptions)){let l=s.filter(d=>Yc(d.name));if(l.length===1){let d=this.program.getSourceFile(t.fileName),p=this.projectService.host.createHash?this.projectService.host.createHash(l[0].text):qD(l[0].text);Qf.updateSignatureOfFile(this.builderState,p,d.resolvedPath)}}}return{emitSkipped:i,diagnostics:o}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(x.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return uS(ta(this.plugins,r=>{if(typeof r.module.getExternalFiles=="function")try{return r.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let r=this.program.getCompilerOptions();return t===r.configFilePath?r.configFile:this.getSourceFile(t)}close(){var t;this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),an(this.externalFiles,r=>this.detachScriptInfoIfNotRoot(r));for(let r of this.rootFiles)r.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,(t=this.packageJsonWatches)==null||t.forEach(r=>{r.projects.delete(this),r.close()}),this.packageJsonWatches=void 0,this.moduleSpecifierCache.clear(),this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(Au(this.missingFilesMap,vm),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let r=this.projectService.getScriptInfo(t);r&&!this.isRoot(r)&&r.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?nn(this.program.getSourceFiles(),t=>{let r=this.projectService.getScriptInfoForPath(t.resolvedPath);return x.assert(!!r,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),r}):this.rootFiles}getExcludedFiles(){return ql}getFileNames(t,r){if(!this.program)return[];if(!this.languageServiceEnabled){let o=this.getRootFiles();if(this.compilerOptions){let s=jce(this.compilerOptions);s&&(o||(o=[])).push(s)}return o}let i=[];for(let o of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(o)||i.push(o.fileName);if(!r){let o=this.program.getCompilerOptions().configFile;if(o&&(i.push(o.fileName),o.extendedSourceFiles))for(let s of o.extendedSourceFiles)i.push(s)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(r=>({fileName:r,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(r)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let r=this.program.getCompilerOptions().configFile;if(r){if(t===r.fileName)return!0;if(r.extendedSourceFiles){for(let i of r.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let r=this.program.getSourceFileByPath(t.path);return!!r&&r.resolvedPath===t.path}containsFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!r)?this.containsScriptInfo(i):!1}isRoot(t){var r;return this.rootFilesMap&&((r=this.rootFilesMap.get(t.path))==null?void 0:r.info)===t}addRoot(t,r){x.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:r||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let r=this.projectService.toPath(t);this.rootFilesMap.set(r,{fileName:t}),this.markAsDirty()}removeFile(t,r,i){this.isRoot(t)&&this.removeRoot(t),r?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(){this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty()}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateFromProject(){up(this)}updateGraph(){var t,r,i,o,s;(t=qn)==null||t.push(qn.Phase.Session,"updateGraph",{name:this.projectName,kind:yP[this.projectKind]}),(r=Pd)==null||r.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let l=this.updateGraphWorker(),d=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let p=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||ql;for(let m of p)this.cachedUnresolvedImportsPerFile.delete(m);this.languageServiceEnabled&&this.projectService.serverMode===0&&!this.isOrphan()?((l||p.length)&&(this.lastCachedUnresolvedImportsList=KZe(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,d)):this.lastCachedUnresolvedImportsList=void 0;let h=this.projectProgramVersion===0&&l;return l&&this.projectProgramVersion++,d&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),h&&this.getPackageJsonAutoImportProvider(),(o=Pd)==null||o.logStopUpdateGraph(),(s=qn)==null||s.pop(),!l}updateTypingFiles(t){t8(t,this.typingFiles,D1(!this.useCaseSensitiveFileNames()),Ca,r=>this.detachScriptInfoFromProject(r))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&Au(this.typingWatchers,vm),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:Ck})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let r=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(o,s)=>{let l=this.toPath(o);r.delete(l),this.typingWatchers.has(l)||this.typingWatchers.set(l,s==="FileWatcher"?this.projectService.watchFactory.watchFile(o,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),dc.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(o,d=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!el(d,".json"))return this.writeLog("Ignoring files that are not *.json");if(Xh(d,wr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),dc.TypingInstallerLocationDirectory,this))};for(let o of t){let s=Ll(o);if(s==="package.json"||s==="bower.json"){i(o,"FileWatcher");continue}if(Bf(this.currentDirectory,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){let l=o.indexOf(Os,this.currentDirectory.length+1);i(l!==-1?o.substr(0,l):o,"DirectoryWatcher");continue}if(Bf(this.projectService.typingsInstaller.globalTypingsCacheLocation,o,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(o,"DirectoryWatcher")}r.forEach((o,s)=>{o.close(),this.typingWatchers.delete(s)})}getCurrentProgram(){return this.program}removeExistingTypings(t){let r=Y6(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!r.includes(i))}updateGraphWorker(){var t,r;let i=this.languageService.getCurrentProgram();x.assert(i===this.program),x.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let o=Is(),{hasInvalidatedResolutions:s,hasInvalidatedLibResolutions:l}=this.resolutionCache.createHasInvalidatedResolutions(_m,_m);this.hasInvalidatedResolutions=s,this.hasInvalidatedLibResolutions=l,this.resolutionCache.startCachingPerDirectoryResolution(),this.dirty=!1,this.updateFromProjectInProgress=!0,this.program=this.languageService.getProgram(),this.updateFromProjectInProgress=!1,(t=qn)==null||t.push(qn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(r=qn)==null||r.pop(),x.assert(i===void 0||this.program!==void 0);let d=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(d=!0,i){for(let m of i.getSourceFiles()){let v=this.program.getSourceFileByPath(m.resolvedPath);(!v||m.resolvedPath===m.path&&v.resolvedPath!==m.path)&&this.detachScriptInfoFromProject(m.fileName,!!this.program.getSourceFileByPath(m.path),!0)}i.forEachResolvedProjectReference(m=>{this.program.getResolvedProjectReferenceByPath(m.sourceFile.path)||this.detachScriptInfoFromProject(m.sourceFile.fileName,void 0,!0)})}if(vH(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),(m,v)=>this.addMissingFileWatcher(m,v)),this.generatedFilesMap){let m=ss(this.compilerOptions);$fe(this.generatedFilesMap)?(!m||!this.isValidGeneratedFileWatcher(Yd(m)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():m?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((v,E)=>{let S=this.program.getSourceFileByPath(E);(!S||S.resolvedPath!==E||!this.isValidGeneratedFileWatcher(WW(S.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),v))&&(Qp(v),this.generatedFilesMap.delete(E))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&k_(this.changedFilesForExportMapCache,m=>{let v=i.getSourceFileByPath(m),E=this.program.getSourceFileByPath(m);return!v||!E?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(v,E,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let p=this.externalFiles||ql;this.externalFiles=this.getExternalFiles(),t8(this.externalFiles,p,D1(!this.useCaseSensitiveFileNames()),m=>{let v=this.projectService.getOrCreateScriptInfoNotOpenedByClient(m,this.currentDirectory,this.directoryStructureHost);v?.attachToProject(this)},m=>this.detachScriptInfoFromProject(m));let h=Is()-o;return this.sendPerformanceEvent("UpdateGraph",h),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} projectStateVersion: ${this.projectStateVersion} projectProgramVersion: ${this.projectProgramVersion} structureChanged: ${d}${this.program?` structureIsReused:: ${u8[this.program.structureIsReused]}`:""} Elapsed: ${h}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),d}sendPerformanceEvent(t,r){this.projectService.sendPerformanceEvent(t,r)}detachScriptInfoFromProject(t,r,i){let o=this.projectService.getScriptInfo(t);o&&(o.detachFromProject(this),r||this.resolutionCache.removeResolutionsOfFile(o.path,i))}addMissingFileWatcher(t,r){var i;if(Yb(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((i=s?.config)!=null&&i.projects.has(this.canonicalConfigFilePath))return uR}let o=this.projectService.watchFactory.watchFile(Qi(r,this.currentDirectory),(s,l)=>{Yb(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,l),l===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),o.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),dc.MissingFile,this);return o}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,r){if(ss(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(r);if(this.generatedFilesMap){if($fe(this.generatedFilesMap)){x.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),dc.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,r){return this.toPath(t)===r.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&($fe(this.generatedFilesMap)?Qp(this.generatedFilesMap):Au(this.generatedFilesMap,Qp),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let r=this.projectService.getScriptInfoForPath(this.toPath(t));return r&&!r.isAttached(this)?vv.ThrowProjectDoesNotContainDocument(t,this):r}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,r,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending
`;if(!this.program)return` Files (0) NoProgram
`;let o=this.program.getSourceFiles(),s=` Files (${o.length})
`;if(t){for(let l of o)s+=` ${l.fileName}${i?` ${l.version} ${JSON.stringify(l.text)}`:""}
`;r&&(s+=`
`,eq(this.program,l=>s+=` ${l}
`))}return s}print(t,r,i){var o;this.writeLog(`Project '${this.projectName}' (${yP[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),r&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1),(o=this.noDtsResolutionProject)==null||o.print(!1,!1,!1)}setCompilerOptions(t){var r;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(r=this.noDtsResolutionProject)==null||r.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),Y8(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,r){var i,o;let s=r?p=>bo(p.entries(),([h,m])=>({fileName:h,isSourceOfProjectReferenceRedirect:m})):p=>bo(p.keys());this.isInitialLoadPending()||up(this);let l={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:FR(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},d=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!d)return{info:l,projectErrors:this.getGlobalProjectErrors()};let p=this.lastReportedFileNames,h=((i=this.externalFiles)==null?void 0:i.map(C=>({fileName:js(C),isSourceOfProjectReferenceRedirect:!1})))||ql,m=PE(this.getFileNamesWithRedirectInfo(!!r).concat(h),C=>C.fileName,C=>C.isSourceOfProjectReferenceRedirect),v=new Map,E=new Map,S=d?bo(d.keys()):[],A=[];return hc(m,(C,R)=>{p.has(R)?r&&C!==p.get(R)&&A.push({fileName:R,isSourceOfProjectReferenceRedirect:C}):v.set(R,C)}),hc(p,(C,R)=>{m.has(R)||E.set(R,C)}),this.lastReportedFileNames=m,this.lastReportedVersion=this.projectProgramVersion,{info:l,changes:{added:s(v),removed:s(E),updated:r?S.map(C=>({fileName:C,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(C)})):S,updatedRedirects:r?A:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let p=this.getFileNamesWithRedirectInfo(!!r),h=((o=this.externalFiles)==null?void 0:o.map(v=>({fileName:js(v),isSourceOfProjectReferenceRedirect:!1})))||ql,m=p.concat(h);return this.lastReportedFileNames=PE(m,v=>v.fileName,v=>v.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:l,files:r?m:m.map(v=>v.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){N1(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,wr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let o of this.projectService.globalPlugins)o&&(t.plugins&&t.plugins.some(s=>s.name===o)||(this.projectService.logger.info(`Loading global plugin ${o}`),this.enablePlugin({name:o,global:!0},i)))}enablePlugin(t,r){this.projectService.requestEnablePlugin(this,t,r)}enableProxy(t,r){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${r.name} because it did not expose a proper factory function`);return}let i={config:r,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},o=t({typescript:XMe}),s=o.create(i);for(let l of Object.keys(this.languageService))l in s||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${l} in created LS. Patching.`),s[l]=this.languageService[l]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=s,this.plugins.push({name:r.name,module:o})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,r){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(r)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,r){return this.projectService.serverMode!==0?ql:this.projectService.getPackageJsonsVisibleToFile(t,this,r)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){return this.getPackageJsonsVisibleToFile(wr(this.currentDirectory,lR),t)}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=BJ(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||tO(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,r;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(r=this.projectService.host.trace)==null?void 0:r.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,r,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(up(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let o=this.includePackageJsonAutoImports();if(o){(t=qn)==null||t.push(qn.Phase.Session,"getPackageJsonAutoImportProvider");let s=Is();if(this.autoImportProviderHost=f$.create(o,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return up(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",Is()-s),(r=qn)==null||r.pop(),this.autoImportProviderHost.getCurrentProgram();(i=qn)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!hc(this.projectService.openFiles,(t,r)=>this.projectService.tryGetDefaultProjectForFile(js(r))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(t,this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return x.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new u$(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:je,lib:je,noLib:!0}}},d$=class extends _T{constructor(e,t,r,i,o,s,l){super(e.newInferredProjectName(),0,e,t,void 0,void 0,r,!1,i,e.host,s),this._isJsInferredProject=!1,this.typeAcquisition=l,this.projectRootPath=o&&e.toCanonicalFileName(o),!o&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=tJ(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){x.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&ji(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){an(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:Kfe(this),include:je,exclude:je}}},u$=class extends _T{constructor(e,t,r,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,r,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},p$=class Zge extends _T{constructor(t,r,i,o){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,o,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=r,this.useSourceOfProjectReferenceRedirect=Wo(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Wo(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,r,i,o){var s,l;if(!t)return je;let d=r.getCurrentProgram();if(!d)return je;let p=Is(),h,m,v=wr(r.currentDirectory,lR),E=r.getPackageJsonsForAutoImport(wr(r.currentDirectory,v));for(let R of E)(s=R.dependencies)==null||s.forEach((L,G)=>A(G)),(l=R.peerDependencies)==null||l.forEach((L,G)=>A(G));let S=0;if(h){let R=r.getSymlinkCache();for(let L of bo(h.keys())){if(t===2&&S>this.maxDependencies)return r.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),je;let G=bU(L,r.currentDirectory,o,i,d.getModuleResolutionCache());if(G){let K=C(G,d,R);if(K){m=ro(m,K),S+=K.length?1:0;continue}}if(!an([r.currentDirectory,r.getGlobalTypingsCacheLocation()],K=>{if(K){let F=bU(`@types/${L}`,K,o,i,d.getModuleResolutionCache());if(F){let oe=C(F,d,R);return m=ro(m,oe),S+=oe?.length?1:0,!0}}})&&G&&o.allowJs&&o.maxNodeModuleJsDepth){let K=C(G,d,R,!0);m=ro(m,K),S+=K?.length?1:0}}}return m?.length&&r.log(`AutoImportProviderProject: found ${m.length} root files in ${S} dependencies in ${Is()-p} ms`),m||je;function A(R){Ui(R,"@types/")||(h||(h=new Set)).add(R)}function C(R,L,G,U){var K;let F=RU(R,o,i,L.getModuleResolutionCache(),U);if(F){let oe=(K=i.realpath)==null?void 0:K.call(i,R.packageDirectory),W=oe?r.toPath(oe):void 0,$=W&&W!==r.toPath(R.packageDirectory);return $&&G.setSymlinkedDirectory(R.packageDirectory,{real:_c(oe),realPath:_c(W)}),Fi(F,de=>{let fe=$?de.replace(R.packageDirectory,oe):de;if(!L.getSourceFile(fe)&&!($&&L.getSourceFile(de)))return fe})}}}static create(t,r,i,o){if(t===0)return;let s={...r.getCompilerOptions(),...this.compilerOptionsOverrides},l=this.getRootFileNames(t,r,i,s);if(l.length)return new Zge(r,l,o,s)}isEmpty(){return!ct(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=Zge.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let r=this.getCurrentProgram(),i=super.updateGraph();return r&&r!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||je}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},p$.maxDependencies=10,p$.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:je,lib:je,noLib:!0},f$=p$,m$=class extends _T{constructor(e,t,r,i,o){super(e,1,r,i,!1,void 0,{},!1,void 0,o,Ur(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Ug,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=Yo(e),r=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(r);return i||this.projectService.configFileExistenceInfoCache.set(r,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,r,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Yo(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){let e=this.isInitialLoadPending();this.isInitialLoadPending=_m;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let r;switch(t){case 1:this.openFileWatchTriggered.clear(),r=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=x.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),r=!0;break;default:r=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),r}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){x.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let r=this.projectService.host;if(!r.require&&!r.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let o=Ur(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${o} to search paths`),i.unshift(o)}if(e.plugins)for(let o of e.plugins)this.enablePlugin(o,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Cr(this.projectErrors,e=>!e.file)||ql}getAllProjectErrors(){return this.projectErrors||ql}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return BR(this,e.path,t=>GI(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;let t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&hc(t.openFilesImpactedByConfigFile,(r,i)=>{let o=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(o)||!!BR(this,o.path,s=>s.containsScriptInfo(o),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return RN(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){z6(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},o7=class extends _T{constructor(e,t,r,i,o,s,l,d){super(e,2,t,r,!0,o,i,s,d,t.host,Ur(l||ad(e))),this.externalProjectName=e,this.compileOnSaveEnabled=s,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function DMe(e){let t=new Map;for(let r of e)if(typeof r.type=="object"){let i=r.type;i.forEach(o=>{x.assert(typeof o=="number")}),t.set(r.name,i)}return t}function zR(e){return fo(e.indentStyle)&&(e.indentStyle=wMe.get(e.indentStyle.toLowerCase()),x.assert(e.indentStyle!==void 0)),e}function a7(e){return kMe.forEach((t,r)=>{let i=e[r];fo(i)&&(e[r]=t.get(i.toLowerCase()))}),e}function JO(e,t){let r,i;return Yx.forEach(o=>{let s=e[o.name];if(s===void 0)return;let l=OMe.get(o.name);(r||(r={}))[o.name]=l?fo(s)?l.get(s.toLowerCase()):s:eT(o,s,t||"",i||(i=[]))}),r&&{watchOptions:r,errors:i}}function Qfe(e){let t;return $2.forEach(r=>{let i=e[r.name];i!==void 0&&((t||(t={}))[r.name]=i)}),t}function _$(e){return fo(e)?h$(e):e}function h$(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Zfe(e){let{lazyConfiguredProjectsFromExternalProject:t,...r}=e;return r}function CMe(e,t){for(let r of t)if(r.getProjectName()===e)return r}function g$(e){return!!e.containingProjects}function NMe(e){return!!e.configFileInfo}function BR(e,t,r,i,o){var s;let l=(s=e.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(!l)return;let d,p=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(p){let m=js(p.sourceFile.fileName),v=e.projectService.findConfiguredProjectByProjectName(m);if(v){let E=r(v);if(E)return E}else if(i!==0){d=new Map;let E=eme(l,e.getCompilerOptions(),(S,A)=>p===S?h(S,A):void 0,i,e.projectService,d);if(E)return E;d.clear()}}return eme(l,e.getCompilerOptions(),(m,v)=>p!==m?h(m,v):void 0,i,e.projectService,d);function h(m,v){let E=js(m.sourceFile.fileName),S=e.projectService.findConfiguredProjectByProjectName(E)||(v===0?void 0:v===1?e.projectService.createConfiguredProject(E):v===2?e.projectService.createAndLoadConfiguredProject(E,o):x.assertNever(v));return S&&r(S)}}function eme(e,t,r,i,o,s){let l=t.disableReferencedProjectLoad?0:i;return an(e,d=>{if(!d)return;let p=js(d.sourceFile.fileName),h=o.toCanonicalFileName(p),m=s?.get(h);if(m!==void 0&&m>=l)return;let v=r(d,l);return v||((s||(s=new Map)).set(h,l),d.references&&eme(d.references,d.commandLine.options,r,l,o,s))})}function PMe(e,t){return e.potentialProjectReferences&&k_(e.potentialProjectReferences,t)}function $Ze(e,t,r,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?PMe(e,i):an(e.getProjectReferences(),r)}function tme(e,t,r){let i=r&&e.projectService.configuredProjects.get(r);return i&&t(i)}function MMe(e,t){return $Ze(e,r=>tme(e,t,r.sourceFile.path),r=>tme(e,t,e.toPath(sR(r))),r=>tme(e,t,r))}function QZe(e,t){return`${fo(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function LMe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function GI(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function up(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function nme(e){Yb(e)&&(e.projectOptions=!0)}function rme(e){let t=1;return()=>e(t++)}function ime(){return{idToCallbacks:new Map,pathToId:new Map}}function ZZe(e,t){if(!t||!e.eventHandler||!e.session)return;let r=ime(),i=ime(),o=ime(),s=1;return e.session.addProtocolHandler("watchChange",S=>(h(S.arguments),{responseRequired:!1})),{watchFile:l,watchDirectory:d,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function l(S,A){return p(r,S,A,C=>({eventName:_7,data:{id:C,path:S}}))}function d(S,A,C){return p(C?o:i,S,A,R=>({eventName:h7,data:{id:R,path:S,recursive:!!C,ignoreUpdate:S.endsWith("/node_modules")?void 0:!0}}))}function p({pathToId:S,idToCallbacks:A},C,R,L){let G=e.toPath(C),U=S.get(G);U||S.set(G,U=s++);let K=A.get(U);return K||(A.set(U,K=new Set),e.eventHandler(L(U))),K.add(R),{close(){let F=A.get(U);F?.delete(R)&&(F.size||(A.delete(U),S.delete(G),e.eventHandler({eventName:g7,data:{id:U}})))}}}function h(S){oo(S)?S.forEach(m):m(S)}function m({id:S,created:A,deleted:C,updated:R}){v(S,A,0),v(S,C,2),v(S,R,1)}function v(S,A,C){A?.length&&(E(r,S,A,(R,L)=>R(L,C)),E(i,S,A,(R,L)=>R(L)),E(o,S,A,(R,L)=>R(L)))}function E(S,A,C,R){var L;(L=S.idToCallbacks.get(A))==null||L.forEach(G=>{C.forEach(U=>R(G,ad(U)))})}}function eet(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function ome(e){return e.kind!==void 0}function ame(e){e.print(!1,!1,!1)}var s7,l7,KO,c7,d7,u7,p7,f7,m7,v$,_7,h7,g7,sme,kMe,OMe,wMe,y$,v7,y7,b$,E$,lme,S$,tet=pt({"src/server/editorServices.ts"(){"use strict";Ty(),hT(),qfe(),s7=20*1024*1024,l7=4*1024*1024,KO="projectsUpdatedInBackground",c7="projectLoadingStart",d7="projectLoadingFinish",u7="largeFileReferenced",p7="configFileDiag",f7="projectLanguageServiceState",m7="projectInfo",v$="openFileInfo",_7="createFileWatcher",h7="createDirectoryWatcher",g7="closeFileWatcher",sme="*ensureProjectForOpenFiles*",kMe=DMe(Nh),OMe=DMe(Yx),wMe=new Map(Object.entries({none:0,block:1,smart:2})),y$={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,"$"]]}},v7={getFileName:e=>e,getScriptKind:(e,t)=>{let r;if(t){let i=w1(e);i&&ct(t,o=>o.extension===i?(r=o.scriptKind,!0):!1)}return r},hasMixedContent:(e,t)=>ct(t,r=>r.isMixedContent&&el(e,r.extension))},y7={getFileName:e=>e.fileName,getScriptKind:e=>_$(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},b$={close:Ca},E$=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(E$||{}),lme=class eve{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=rme(Cfe),this.newAutoImportProviderProjectName=rme(Nfe),this.newAuxiliaryProjectName=rme(Pfe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=y$,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.baseline=Ca,this.verifyDocumentRegistry=Ca,this.verifyProgram=Ca,this.onProjectCreation=Ca;var r;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||i7,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||ql,this.pluginProbeLocations=t.pluginProbeLocations||ql,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?wr(Ur(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=bp()),this.currentDirectory=js(this.host.getCurrentDirectory()),this.toCanonicalFileName=od(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?_c(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new r$(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 l$(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:s3(this.host.newLine),preferences:ef,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=JJ(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,o=i!==0?s=>this.logger.info(s):Ca;this.packageJsonCache=dme(this),this.watchFactory=this.serverMode!==0?{watchFile:pR,watchDirectory:pR}:yH(ZZe(this,t.canUseWatchEvents)||this.host,i,o,QZe),(r=t.incrementalVerifier)==null||r.call(t,this)}toPath(t){return ks(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return Qi(t,this.host.getCurrentDirectory())}setDocument(t,r,i){let o=x.checkDefined(this.getScriptInfoForPath(r));o.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,r){let i=this.getScriptInfoForPath(r);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,r){if(!this.eventHandler)return;let i={eventName:f7,data:{project:t,languageServiceEnabled:r}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let r=JSON.parse(t);for(let i of Object.keys(r.typesMap))r.typesMap[i].match=new RegExp(r.typesMap[i].match,"i");this.safelist=r.typesMap;for(let i in r.simpleMap)rs(r.simpleMap,i)&&this.legacySafelist.set(i,r.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=y$,this.legacySafelist.clear()}}updateTypingsForProject(t){let r=this.findProject(t.projectName);if(r)switch(t.kind){case Dk:r.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case Ck:this.typingsCache.enqueueInstallTypingsForProject(r,r.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var r;(r=this.findProject(t.projectName))==null||r.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(sme,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),qO(t))return;let r=t.getProjectName();this.pendingProjectUpdates.set(r,t),this.throttledOperations.schedule(r,250,()=>{this.pendingProjectUpdates.delete(r)&&up(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:KO,data:{openFiles:bo(this.openFiles.keys(),r=>this.getScriptInfoForPath(r).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,r){if(!this.eventHandler)return;let i={eventName:u7,data:{file:t,fileSize:r,maxFileSize:l7}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,r){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:c7,data:{project:t,reason:r}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let r={eventName:d7,data:{project:t}};this.eventHandler(r)}sendPerformanceEvent(t,r){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:r})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,r){if(t.length){for(let i of t)r&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,r){x.assert(r===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=a7(t),o=JO(t,r),s=Qfe(t);i.allowNonTsExtensions=!0;let l=r&&this.toCanonicalFileName(r);l?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(l,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(l,o||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(l,s)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=o,this.typeAcquisitionForInferredProjects=s);for(let d of this.inferredProjects)(l?d.projectRootPath===l:!d.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(d.projectRootPath))&&(d.setCompilerOptions(i),d.setTypeAcquisition(s),d.setWatchOptions(o?.watchOptions),d.setProjectErrors(o?.errors),d.compileOnSaveEnabled=i.compileOnSave,d.markAsDirty(),this.delayUpdateProjectGraph(d));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return Dfe(t)?CMe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(js(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(r=>{!r.isOrphan()&&r.languageServiceEnabled&&t(r)})}getDefaultProjectForFile(t,r){return r?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let r=fo(t)?this.getScriptInfoForNormalizedPath(t):t;return r&&!r.isOrphan()?r.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let r=fo(t)?this.getScriptInfoForNormalizedPath(t):t;return r?r.getDefaultProject():(this.logErrorForScriptInfoNotFound(fo(t)?t:t.fileName),vv.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let r=i=>{t=up(i)||t};this.externalProjects.forEach(r),this.configuredProjects.forEach(r),this.inferredProjects.forEach(r),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let r=this.getScriptInfoForNormalizedPath(t);return r&&r.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let r=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...r&&r.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,r){r===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(fo(t.sourceMapFilePath)){let r=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(r&&r.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((r,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let r=this.getScriptInfoForPath(t);r&&this.delayUpdateProjectGraphs(r.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);let r=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(r,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){let i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,r,i,o){let s=this.watchFactory.watchDirectory(t,d=>{let p=this.toPath(d),h=o.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(d,p);if(Ll(p)==="package.json"&&!tO(p)&&(h&&h.fileExists||!h&&this.host.fileExists(d))){let v=this.getNormalizedAbsolutePath(d);this.logger.info(`Config: ${i} Detected new package.json: ${v}`),this.packageJsonCache.addOrUpdate(v,p),this.watchPackageJsonFile(v,p,l)}let m=this.findConfiguredProjectByProjectName(i);vk({watchedDirPath:this.toPath(t),fileOrDirectory:d,fileOrDirectoryPath:p,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:o.parsedCommandLine.options,program:m?.getCurrentProgram()||o.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:v=>this.logger.info(v),toPath:v=>this.toPath(v),getScriptKind:m?v=>m.getScriptKind(v):void 0})||(o.updateLevel!==2&&(o.updateLevel=1),o.projects.forEach((v,E)=>{if(!v)return;let S=this.getConfiguredProjectByCanonicalConfigFilePath(E);if(!S)return;let A=m===S?1:0;if(!(S.pendingUpdateLevel!==void 0&&S.pendingUpdateLevel>A))if(this.openFiles.has(p))if(x.checkDefined(this.getScriptInfoForPath(p)).isAttached(S)){let R=Math.max(A,S.openFileWatchTriggered.get(p)||0);S.openFileWatchTriggered.set(p,R)}else S.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S);else S.pendingUpdateLevel=A,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(S)}))},r,this.getWatchOptionsFromProjectWatchOptions(o.parsedCommandLine.watchOptions),dc.WildcardDirectory,i),l={packageJsonWatches:void 0,close(){var d;s&&(s.close(),s=void 0,(d=l.packageJsonWatches)==null||d.forEach(p=>{p.projects.delete(l),p.close()}),l.packageJsonWatches=void 0)}};return l}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,r){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let o=!1;return i.config.updateLevel=2,i.config.projects.forEach((s,l)=>{let d=this.getConfiguredProjectByCanonicalConfigFilePath(l);if(d)if(o=!0,l===t){if(d.isInitialLoadPending())return;d.pendingUpdateLevel=2,d.pendingUpdateReason=r,this.delayUpdateProjectGraph(d)}else d.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(d)}),o}onConfigFileChanged(t,r){var i;let o=this.configFileExistenceInfoCache.get(t);if(r===2){o.exists=!1;let s=(i=o.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;s&&this.removeProject(s)}else o.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(o.openFilesImpactedByConfigFile,!1,!0,r!==2?Ps:Ug,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),x.shouldAssert(1)&&this.filenameToScriptInfo.forEach(r=>x.assert(!r.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(bo(WD(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(o=>o.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:bA(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:bA(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,r){x.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?r||this.currentDirectory:Ur(Ou(t.fileName)?t.fileName:Qi(t.fileName,r?this.getNormalizedAbsolutePath(r):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(N1(t.containingProjects,i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let o of this.inferredProjects){if(o===i||o.isOrphan())continue;let s=o.getRootScriptInfos();x.assert(s.length===1||!!o.projectRootPath),s.length===1&&an(s[0].containingProjects,l=>l!==s[0].containingProjects[0]&&!l.isOrphan())&&o.removeFile(s[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,r){let i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);let o=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(o)===t&&this.openFilesWithNonRootedDiskPath.delete(o);let s=!1;for(let l of t.containingProjects){if(Yb(l)){t.hasMixedContent&&t.registerFileUpdate();let d=l.openFileWatchTriggered.get(t.path);d!==void 0&&(l.openFileWatchTriggered.delete(t.path),l.pendingUpdateLevel!==void 0&&l.pendingUpdateLevel<d&&(l.pendingUpdateLevel=d,l.markFileAsDirty(t.path)))}else FR(l)&&l.isRoot(t)&&(l.isProjectWithSingleRoot()&&(s=!0),l.removeFile(t,i,!0));l.languageServiceEnabled||l.markAsDirty()}return this.openFiles.delete(t.path),this.configFileForOpenFiles.delete(t.path),!r&&s&&this.assignOrphanScriptInfosToInferredProject(),i?this.watchClosedScriptInfo(t):this.handleDeletedFile(t),s}deleteScriptInfo(t){this.filenameToScriptInfo.delete(t.path),this.filenameToScriptInfoVersion.set(t.path,t.textStorage.version);let r=t.getRealpathIfDifferent();r&&this.realpathToScriptInfos.remove(r,t)}configFileExists(t,r,i){var o;let s=this.configFileExistenceInfoCache.get(r);if(s)return g$(i)&&!((o=s.openFilesImpactedByConfigFile)!=null&&o.has(i.path))&&(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(i.path,!1),s.exists;let l=this.host.fileExists(t),d;return g$(i)&&(d||(d=new Map)).set(i.path,!1),s={exists:l,openFilesImpactedByConfigFile:d},this.configFileExistenceInfoCache.set(r,s),l}createConfigFileWatcherForParsedConfig(t,r,i){var o,s;let l=this.configFileExistenceInfoCache.get(r);(!l.watcher||l.watcher===b$)&&(l.watcher=this.watchFactory.watchFile(t,(p,h)=>this.onConfigFileChanged(r,h),2e3,this.getWatchOptionsFromProjectWatchOptions((s=(o=l?.config)==null?void 0:o.parsedCommandLine)==null?void 0:s.watchOptions),dc.ConfigFile,i));let d=l.config.projects;d.set(i.canonicalConfigFilePath,d.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&hc(t.openFilesImpactedByConfigFile,Ps)}releaseParsedConfig(t,r){var i,o,s;let l=this.configFileExistenceInfoCache.get(t);(i=l.config)!=null&&i.projects.delete(r.canonicalConfigFilePath)&&((o=l.config)!=null&&o.projects.size||(l.config=void 0,gH(t,this.sharedExtendedConfigFileWatchers),x.checkDefined(l.watcher),(s=l.openFilesImpactedByConfigFile)!=null&&s.size?this.configFileExistenceImpactsRootOfInferredProject(l)?U4(mc(Ur(t)))||(l.watcher.close(),l.watcher=b$):(l.watcher.close(),l.watcher=void 0):(l.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){x.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,r=>{var i,o,s;let l=this.configFileExistenceInfoCache.get(r);if(l){let d=(i=l.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(o=l.openFilesImpactedByConfigFile)==null||o.delete(t.path),d&&this.closeConfigFileWatcherOnReleaseOfOpenFile(l),!((s=l.openFilesImpactedByConfigFile)!=null&&s.size)&&!l.config&&(x.assert(!l.watcher),this.configFileExistenceInfoCache.delete(r))}})}startWatchingConfigFilesForInferredProjectRoot(t){x.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(r,i)=>{let o=this.configFileExistenceInfoCache.get(r);o||(o={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(r,o)),(o.openFilesImpactedByConfigFile||(o.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),o.watcher||(o.watcher=U4(mc(Ur(r)))?this.watchFactory.watchFile(i,(s,l)=>this.onConfigFileChanged(r,l),2e3,this.hostConfiguration.watchOptions,dc.ConfigFileForInferredRoot):b$)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,r=>{var i;let o=this.configFileExistenceInfoCache.get(r);(i=o?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(x.assert(t.isScriptOpen()),o.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(o))})}forEachConfigFileLocation(t,r){if(this.serverMode!==0)return;x.assert(!g$(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(x.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let s=Ur(t.fileName),l=()=>Bf(i,s,this.currentDirectory,!this.host.useCaseSensitiveFileNames),d=!i||!l(),p=!NMe(t);do{if(p){let m=jO(s,this.currentDirectory,this.toCanonicalFileName),v=wr(s,"tsconfig.json"),E=r(wr(m,"tsconfig.json"),v);if(E)return v;let S=wr(s,"jsconfig.json");if(E=r(wr(m,"jsconfig.json"),S),E)return S;if(A8(m))break}let h=Ur(s);if(h===s)break;s=h,p=!0}while(d||l())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;let r=this.getConfigFileNameForFile(t),i=r&&this.findConfiguredProjectByProjectName(r);return i&&GI(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(!NMe(t)){let i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${Ur(t.fileName)}`);let r=this.forEachConfigFileLocation(t,(i,o)=>this.configFileExists(o,i,t));return r?this.logger.info(`For info: ${t.fileName} :: Config file name: ${r}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),g$(t)&&this.configFileForOpenFiles.set(t.path,r||!1),r}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(ame),this.configuredProjects.forEach(ame),this.inferredProjects.forEach(ame),this.logger.info("Open files: "),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(o=>o.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){let r=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(r)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return CMe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,r,i,o){if(r&&r.disableSizeLimit||!this.host.getFileSize)return;let s=s7;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(d=>s-=d||0);let l=0;for(let d of i){let p=o.getFileName(d);if(!qA(p)&&(l+=this.host.getFileSize(p),l>s7||l>s)){let h=i.map(m=>o.getFileName(m)).filter(m=>!qA(m)).map(m=>({name:m,size:this.host.getFileSize(m)})).sort((m,v)=>v.size-m.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${l}). Largest files: ${h.map(m=>`${m.name}:${m.size}`).join(", ")}`),p}}this.projectToSizeMap.set(t,l)}createExternalProject(t,r,i,o,s){let l=a7(i),d=JO(i,Ur(ad(t))),p=new o7(t,this,this.documentRegistry,l,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,l,r,y7),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,d?.watchOptions);return p.setProjectErrors(d?.errors),p.excludedFiles=s,this.addFilesToNonInferredProject(p,r,y7,o),this.externalProjects.push(p),p}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){nme(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){nme(t);return}let r=Yb(t)?t.projectOptions:void 0;nme(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:HO(t.getScriptInfos(),!0),compilerOptions:Vie(t.getCompilationSettings()),typeAcquisition:s(t.getTypeAcquisition()),extends:r&&r.configHasExtendsProperty,files:r&&r.configHasFilesProperty,include:r&&r.configHasIncludeProperty,exclude:r&&r.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:o(),projectType:t instanceof o7?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:yp};this.eventHandler({eventName:m7,data:i});function o(){return Yb(t)&&n$(t.getConfigFilePath())||"other"}function s({enable:l,include:d,exclude:p}){return{enable:l,include:d!==void 0&&d.length!==0,exclude:p!==void 0&&p.length!==0}}}addFilesToNonInferredProject(t,r,i,o){this.updateNonInferredProjectFiles(t,r,i),t.setTypeAcquisition(o),t.markAsDirty()}createConfiguredProject(t){var r;(r=qn)==null||r.instant(qn.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let i=this.toCanonicalFileName(t),o=this.configFileExistenceInfoCache.get(i);o?o.exists=!0:this.configFileExistenceInfoCache.set(i,o={exists:!0}),o.config||(o.config={cachedDirectoryStructureHost:C4(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let s=new m$(t,i,this,this.documentRegistry,o.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,s),this.createConfigFileWatcherForParsedConfig(t,i,s),s}createConfiguredProjectWithDelayLoad(t,r){let i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=r,i}createAndLoadConfiguredProject(t,r){let i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,r),i}createLoadAndUpdateConfiguredProject(t,r){let i=this.createAndLoadConfiguredProject(t,r);return i.updateGraph(),i}loadConfiguredProject(t,r){var i,o;(i=qn)==null||i.push(qn.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,r);let s=Yo(t.getConfigFilePath()),l=this.ensureParsedConfigUptoDate(s,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),d=l.config.parsedCommandLine;x.assert(!!d.fileNames);let p=d.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:d.raw.extends!==void 0,configHasFilesProperty:d.raw.files!==void 0,configHasIncludeProperty:d.raw.include!==void 0,configHasExcludeProperty:d.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=TN(d.raw),t.setProjectErrors(d.options.configFile.parseDiagnostics),t.updateReferences(d.projectReferences);let h=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,p,d.fileNames,v7);h?(t.disableLanguageService(h),this.configFileExistenceInfoCache.forEach((v,E)=>this.stopWatchingWildCards(E,t))):(t.setCompilerOptions(p),t.setWatchOptions(d.watchOptions),t.enableLanguageService(),this.watchWildcards(s,l,t)),t.enablePluginsWithOptions(p);let m=d.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,m,v7,p,d.typeAcquisition,d.compileOnSave,d.watchOptions),(o=qn)==null||o.pop()}ensureParsedConfigUptoDate(t,r,i,o){var s,l,d;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}let p=((s=i.config)==null?void 0:s.cachedDirectoryStructureHost)||C4(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),h=SN(t,A=>this.host.readFile(A)),m=G2(t,fo(h)?h:""),v=m.parseDiagnostics;fo(h)||v.push(h);let E=H2(m,p,Ur(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);E.errors.length&&v.push(...E.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:E.fileNames,options:E.options,watchOptions:E.watchOptions,projectReferences:E.projectReferences},void 0," ")}`);let S=(l=i.config)==null?void 0:l.parsedCommandLine;return i.config?(i.config.parsedCommandLine=E,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:E,cachedDirectoryStructureHost:p,projects:new Map},!S&&!_F(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(E.watchOptions))&&((d=i.watcher)==null||d.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,r,o),N4(r,E.options,this.sharedExtendedConfigFileWatchers,(A,C)=>this.watchFactory.watchFile(A,()=>{var R;P4(this.extendedConfigCache,C,G=>this.toPath(G));let L=!1;(R=this.sharedExtendedConfigFileWatchers.get(C))==null||R.projects.forEach(G=>{L=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(G,`Change in extended config file ${A} detected`)||L}),L&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,dc.ExtendedConfigFile,t),A=>this.toPath(A)),i}watchWildcards(t,{exists:r,config:i},o){if(i.projects.set(o.canonicalConfigFilePath,!0),r){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,gk(i.watchedDirectories||(i.watchedDirectories=new Map),i.parsedCommandLine.wildcardDirectories,(s,l)=>this.watchWildcardDirectory(s,l,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;Au(i.watchedDirectories,Qp),i.watchedDirectories=void 0}}stopWatchingWildCards(t,r){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(r.canonicalConfigFilePath)||(i.config.projects.set(r.canonicalConfigFilePath,!1),!hc(i.config.projects,Ps)&&(i.config.watchedDirectories&&(Au(i.config.watchedDirectories,Qp),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,r,i){let o=t.getRootFilesMap(),s=new Map;for(let l of r){let d=i.getFileName(l),p=js(d),h=UO(p),m;if(!h&&!t.fileExists(d)){m=jO(p,this.currentDirectory,this.toCanonicalFileName);let v=o.get(m);v?(v.info&&(t.removeFile(v.info,!1,!0),v.info=void 0),v.fileName=p):o.set(m,{fileName:p})}else{let v=i.getScriptKind(l,this.hostConfiguration.extraFileExtensions),E=i.hasMixedContent(l,this.hostConfiguration.extraFileExtensions),S=x.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(p,t.currentDirectory,v,E,t.directoryStructureHost));m=S.path;let A=o.get(m);!A||A.info!==S?(t.addRoot(S,p),S.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(S)):A.fileName=p}s.set(m,!0)}o.size>s.size&&o.forEach((l,d)=>{s.has(d)||(l.info?t.removeFile(l.info,t.fileExists(l.info.fileName),!0):o.delete(d))})}updateRootAndOptionsOfNonInferredProject(t,r,i,o,s,l,d){t.setCompilerOptions(o),t.setWatchOptions(d),l!==void 0&&(t.compileOnSaveEnabled=l),this.addFilesToNonInferredProject(t,r,i,s)}reloadFileNamesOfConfiguredProject(t){let r=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(r),this.updateNonInferredProjectFiles(t,r.concat(t.getExternalFiles(1)),v7),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,r){if(r.updateLevel===void 0)return r.parsedCommandLine.fileNames;x.assert(r.updateLevel===1);let i=r.parsedCommandLine.options.configFile.configFileSpecs,o=AN(i,Ur(t),r.parsedCommandLine.options,r.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return r.parsedCommandLine={...r.parsedCommandLine,fileNames:o},o}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,r){this.updateNonInferredProjectFiles(t,r,v7)}reloadConfiguredProject(t,r,i,o){let s=t.getCachedDirectoryStructureHost();o&&this.clearSemanticCache(t),s.clearCache();let l=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${l}`),this.loadConfiguredProject(t,r),t.updateGraph(),this.sendConfigFileDiagEvent(t,l)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,r){if(!this.eventHandler||this.suppressDiagnosticEvents)return;let i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:p7,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:r}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,r){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&r===void 0)return;if(r){let o=this.toCanonicalFileName(r);for(let s of this.inferredProjects)if(s.projectRootPath===o)return s;return this.createInferredProject(r,!1,r)}let i;for(let o of this.inferredProjects)o.projectRootPath&&Bf(o.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>o.projectRootPath.length||(i=o));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){x.assert(!this.useSingleInferredProject);let r=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===r)return i;return this.createInferredProject(t)}createInferredProject(t,r,i){let o=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,s,l;i&&(s=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),l=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),s===void 0&&(s=this.watchOptionsForInferredProjects),l===void 0&&(l=this.typeAcquisitionForInferredProjects),s=s||void 0;let d=new d$(this,this.documentRegistry,o,s?.watchOptions,i,t,l);return d.setProjectErrors(s?.errors),r?this.inferredProjects.unshift(d):this.inferredProjects.push(d),d}getOrCreateScriptInfoNotOpenedByClient(t,r,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(js(t),r,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(js(t))}getScriptInfoOrConfig(t){let r=js(t),i=this.getScriptInfoForNormalizedPath(r);if(i)return i;let o=this.configuredProjects.get(this.toPath(t));return o&&o.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let r=bo(this.filenameToScriptInfo.entries(),([i,o])=>({path:i,fileName:o.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}.
All files are: ${JSON.stringify(r)}`,"Err")}getSymlinkedProjects(t){let r;if(this.realpathToScriptInfos){let o=t.getRealpathIfDifferent();o&&an(this.realpathToScriptInfos.get(o),i),an(this.realpathToScriptInfos.get(t.path),i)}return r;function i(o){if(o!==t)for(let s of o.containingProjects)s.languageServiceEnabled&&!s.isOrphan()&&!s.getCompilerOptions().preserveSymlinks&&!t.isAttached(s)&&(r?hc(r,(l,d)=>d===o.path?!1:To(l,s))||r.add(o.path,s):(r=bp(),r.add(o.path,s)))}}watchClosedScriptInfo(t){if(x.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Ui(t.path,this.globalCacheLocationDirectoryPath))){let r=t.fileName.indexOf("/node_modules/");!this.host.getModifiedTime||r===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,o)=>this.onSourceFileChanged(t,o),500,this.hostConfiguration.watchOptions,dc.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.fileName.substring(0,r)))}}createNodeModulesWatcher(t,r){let i=this.watchFactory.watchDirectory(t,s=>{var l;let d=j4(this.toPath(s));if(!d)return;let p=Ll(d);if((l=o.affectedModuleSpecifierCacheProjects)!=null&&l.size&&(p==="package.json"||p==="node_modules")&&o.affectedModuleSpecifierCacheProjects.forEach(h=>{var m;(m=h.getModuleSpecifierCache())==null||m.clear()}),o.refreshScriptInfoRefCount)if(r===d)this.refreshScriptInfosInDirectory(r);else{let h=this.getScriptInfoForPath(d);h?LMe(h)&&this.refreshScriptInfo(h):TA(d)||this.refreshScriptInfosInDirectory(d)}},1,this.hostConfiguration.watchOptions,dc.NodeModules),o={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;i&&!o.refreshScriptInfoRefCount&&!((s=o.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(i.close(),i=void 0,this.nodeModulesWatchers.delete(r))}};return this.nodeModulesWatchers.set(r,o),o}watchPackageJsonsInNodeModules(t,r){var i;let o=this.toPath(t),s=this.nodeModulesWatchers.get(o)||this.createNodeModulesWatcher(t,o);return x.assert(!((i=s.affectedModuleSpecifierCacheProjects)!=null&&i.has(r))),(s.affectedModuleSpecifierCacheProjects||(s.affectedModuleSpecifierCacheProjects=new Set)).add(r),{close:()=>{var l;(l=s.affectedModuleSpecifierCacheProjects)==null||l.delete(r),s.close()}}}watchClosedScriptInfoInNodeModules(t){let r=t+"/node_modules",i=this.toPath(r),o=this.nodeModulesWatchers.get(i)||this.createNodeModulesWatcher(r,i);return o.refreshScriptInfoRefCount++,{close:()=>{o.refreshScriptInfoRefCount--,o.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.fileName)||ip).getTime()}refreshScriptInfo(t){let r=this.getModifiedTime(t);if(r!==t.mTime){let i=SG(t.mTime,r);t.mTime=r,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Os,this.filenameToScriptInfo.forEach(r=>{LMe(r)&&Ui(r.path,t)&&this.refreshScriptInfo(r)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,r,i,o,s){if(Ou(t)||UO(t))return this.getOrCreateScriptInfoWorker(t,r,!1,void 0,i,o,s);let l=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(l)return l}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,r,i,o,s){return this.getOrCreateScriptInfoWorker(t,r,!0,i,o,s)}getOrCreateScriptInfoForNormalizedPath(t,r,i,o,s,l){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,r,i,o,s,l)}getOrCreateScriptInfoWorker(t,r,i,o,s,l,d){x.assert(o===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let p=jO(t,r,this.toCanonicalFileName),h=this.getScriptInfoForPath(p);if(!h){let m=UO(t);if(x.assert(Ou(t)||m||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:bo(this.openFilesWithNonRootedDiskPath.keys())})}
Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),x.assert(!Ou(t)||this.currentDirectory===r||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:bo(this.openFilesWithNonRootedDiskPath.keys())})}
Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),x.assert(!m||this.currentDirectory===r||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:r,hostCurrentDirectory:this.currentDirectory,openKeys:bo(this.openFilesWithNonRootedDiskPath.keys())})}
Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!m&&!(d||this.host).fileExists(t))return;h=new s$(this.host,t,s,!!l,p,this.filenameToScriptInfoVersion.get(p)),this.filenameToScriptInfo.set(h.path,h),this.filenameToScriptInfoVersion.delete(h.path),i?!Ou(t)&&(!m||this.currentDirectory!==r)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),h):this.watchClosedScriptInfo(h)}return i&&(this.stopWatchingScriptInfo(h),h.open(o),l&&h.registerFileUpdate()),h}getScriptInfoForNormalizedPath(t){return!Ou(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(jO(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,r,i){let o=this.getOrCreateScriptInfoNotOpenedByClient(r,t.currentDirectory,this.host);if(!o){i&&t.addGeneratedFileWatch(r,i);return}if(o.getSnapshot(),fo(o.sourceMapFilePath)){let m=this.getScriptInfoForPath(o.sourceMapFilePath);if(m&&(m.getSnapshot(),m.documentPositionMapper!==void 0))return m.sourceInfos=this.addSourceInfoToSourceMap(i,t,m.sourceInfos),m.documentPositionMapper?m.documentPositionMapper:void 0;o.sourceMapFilePath=void 0}else if(o.sourceMapFilePath){o.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceMapFilePath.sourceInfos);return}else if(o.sourceMapFilePath!==void 0)return;let s,l,d=(m,v)=>{let E=this.getOrCreateScriptInfoNotOpenedByClient(m,t.currentDirectory,this.host);if(!E){l=v;return}s=E;let S=E.getSnapshot();return E.documentPositionMapper!==void 0?E.documentPositionMapper:hR(S)},p=t.projectName,h=$J({getCanonicalFileName:this.toCanonicalFileName,log:m=>this.logger.info(m),getSourceFileLike:m=>this.getSourceFileLike(m,p,o)},o.fileName,o.textStorage.getLineInfo(),d);return d=void 0,s?(o.sourceMapFilePath=s.path,s.declarationInfoPath=o.path,s.documentPositionMapper=h||!1,s.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceInfos)):l?o.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?l:Qi(l,t.currentDirectory),o.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:o.sourceMapFilePath=!1,h}addSourceInfoToSourceMap(t,r,i){if(t){let o=this.getOrCreateScriptInfoNotOpenedByClient(t,r.currentDirectory,r.directoryStructureHost);(i||(i=new Set)).add(o.path)}return i}addMissingSourceMapFile(t,r){return this.watchFactory.watchFile(t,()=>{let o=this.getScriptInfoForPath(r);o&&o.sourceMapFilePath&&!fo(o.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(o.containingProjects,!0),this.delayUpdateSourceInfoProjects(o.sourceMapFilePath.sourceInfos),o.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,dc.MissingSourceMapFile)}getSourceFileLike(t,r,i){let o=r.projectName?r:this.findProject(r);if(o){let l=o.toPath(t),d=o.getSourceFile(l);if(d&&d.resolvedPath===l)return d}let s=this.getOrCreateScriptInfoNotOpenedByClient(t,(o||this).currentDirectory,o?o.directoryStructureHost:this.host);if(s){if(i&&fo(i.sourceMapFilePath)&&s!==i){let l=this.getScriptInfoForPath(i.sourceMapFilePath);l&&(l.sourceInfos||(l.sourceInfos=new Set)).add(s.path)}return s.cacheSourceFile?s.cacheSourceFile.sourceFile:(s.sourceFileLike||(s.sourceFileLike={get text(){return x.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:l=>{let d=s.positionToLineOffset(l);return{line:d.line-1,character:d.offset-1}},getPositionOfLineAndCharacter:(l,d,p)=>s.lineOffsetToPosition(l+1,d+1,p)}),s.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var r;if(t.file){let i=this.getScriptInfoForNormalizedPath(js(t.file));i&&(i.setOptions(zR(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...zR(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:o}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.externalProjectToConfiguredProjectMap.forEach(s=>s.forEach(l=>{!l.isClosed()&&l.hasExternalProjectRef()&&l.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(l.getProjectName())&&l.updateGraph()})),o!==t.preferences.includePackageJsonAutoImports&&this.forEachProject(s=>{s.onAutoImportProviderSettingsChanged()})}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(r=JO(t.watchOptions))==null?void 0:r.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,r)=>{this.throttledOperations.cancel(r),this.pendingProjectUpdates.delete(r)}),this.throttledOperations.cancel(sme),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Ug,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles(),this.logger.info("After reloading projects.."),this.printProjects()}reloadConfiguredProjectForFiles(t,r,i,o,s){let l=new Map,d=p=>{l.has(p.canonicalConfigFilePath)||(l.set(p.canonicalConfigFilePath,!0),this.reloadConfiguredProject(p,s,!1,r))};t?.forEach((p,h)=>{if(this.configFileForOpenFiles.delete(h),!o(p))return;let m=this.getScriptInfoForPath(h);x.assert(m.isScriptOpen());let v=this.getConfigFileNameForFile(m);if(v){let E=this.findConfiguredProjectByProjectName(v)||this.createConfiguredProject(v);l.has(E.canonicalConfigFilePath)||(l.set(E.canonicalConfigFilePath,!0),i?(E.pendingUpdateLevel=2,E.pendingUpdateReason=s,r&&this.clearSemanticCache(E),this.delayUpdateProjectGraph(E)):(this.reloadConfiguredProject(E,s,!1,r),GI(E,m)||BR(E,m.path,A=>(d(A),GI(A,m)),1)&&BR(E,void 0,d,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){x.assert(t.containingProjects.length>0);let r=t.containingProjects[0];!r.isOrphan()&&FR(r)&&r.isRoot(t)&&an(t.containingProjects,i=>i!==r&&!i.isOrphan())&&r.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,r)=>{let i=this.getScriptInfoForPath(r);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(up),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,r,i,o){return this.openClientFileWithNormalizedPath(js(t),r,i,!1,o?js(o):void 0)}getOriginalLocationEnsuringConfiguredProject(t,r){let i=t.isSourceOfProjectReferenceRedirect(r.fileName),o=i?r:t.getSourceMapper().tryGetSourcePosition(r);if(!o)return;let{fileName:s}=o,l=this.getScriptInfo(s);if(!l&&!this.host.fileExists(s))return;let d={fileName:js(s),path:this.toPath(s)},p=this.getConfigFileNameForFile(d);if(!p)return;let h=this.findConfiguredProjectByProjectName(p);if(!h){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?r:l?.containingProjects.length?o:r;h=this.createAndLoadConfiguredProject(p,`Creating project for original file: ${d.fileName}${r!==o?" for location: "+r.fileName:""}`)}up(h);let m=S=>{let A=this.getScriptInfo(s);return A&&GI(S,A)};if(h.isSolution()||!m(h)){if(h=BR(h,s,S=>(up(S),m(S)?S:void 0),2,`Creating project referenced in solution ${h.projectName} to find possible configured project for original file: ${d.fileName}${r!==o?" for location: "+r.fileName:""}`),!h)return;if(h===t)return o}E(h);let v=this.getScriptInfo(s);if(!v||!v.containingProjects.length)return;return v.containingProjects.forEach(S=>{Yb(S)&&E(S)}),o;function E(S){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(S.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return Dr(this.externalProjects,r=>(up(r),r.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,r,i,o,s){let l=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,s?this.getNormalizedAbsolutePath(s):this.currentDirectory,r,i,o);return this.openFiles.set(l.path,s),l}assignProjectToOpenedScriptInfo(t){let r,i,o=this.findExternalProjectContainingOpenScriptInfo(t),s,l,d=!1;return!o&&this.serverMode===0&&(r=this.getConfigFileNameForFile(t),r&&(o=this.findConfiguredProjectByProjectName(r),o?up(o):(o=this.createLoadAndUpdateConfiguredProject(r,`Creating possible configured project for ${t.fileName} to open`),d=!0),l=o.containsScriptInfo(t)?o:void 0,s=o,GI(o,t)||BR(o,t.path,p=>{if(up(p),oo(s)?s.push(p):s=[o,p],GI(p,t))return l=p,p;!l&&p.containsScriptInfo(t)&&(l=p)},2,`Creating project referenced in solution ${o.projectName} to find possible configured project for ${t.fileName} to open`),l?(r=l.getConfigFilePath(),(l!==o||d)&&(i=l.getAllProjectErrors(),this.sendConfigFileDiagEvent(l,t.fileName))):r=void 0,this.createAncestorProjects(t,o))),t.containingProjects.forEach(up),t.isOrphan()&&(oo(s)?s.forEach(p=>this.sendConfigFileDiagEvent(p,t.fileName)):s&&this.sendConfigFileDiagEvent(s,t.fileName),x.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),x.assert(!t.isOrphan()),{configFileName:r,configFileErrors:i,retainProjects:s}}createAncestorProjects(t,r){if(t.isAttached(r))for(;;){if(!r.isInitialLoadPending()&&(!r.getCompilerOptions().composite||r.getCompilerOptions().disableSolutionSearching))return;let i=this.getConfigFileNameForFile({fileName:r.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;let o=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${r.getProjectName()} of open file ${t.fileName}`);o.isInitialLoadPending()&&o.setPotentialProjectReference(r.canonicalConfigFilePath),r=o}}loadAncestorProjectTree(t){t=t||NZ(this.configuredProjects,(i,o)=>o.isInitialLoadPending()?void 0:[i,!0]);let r=new Set;for(let i of bo(this.configuredProjects.values()))PMe(i,o=>t.has(o))&&up(i),this.ensureProjectChildren(i,t,r)}ensureProjectChildren(t,r,i){var o;if(!db(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let s=(o=t.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(s)for(let l of s){if(!l)continue;let d=MH(l.references,m=>r.has(m.sourceFile.path)?m:void 0);if(!d)continue;let p=js(l.sourceFile.fileName),h=t.projectService.findConfiguredProjectByProjectName(p)||t.projectService.createAndLoadConfiguredProject(p,`Creating project referenced by : ${t.projectName} as it references project ${d.sourceFile.fileName}`);up(h),this.ensureProjectChildren(h,r,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(let r of this.inferredProjects.slice())r.isOrphan()&&this.removeProject(r);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,r,i,o,s){let l=this.getOrCreateOpenScriptInfo(t,r,i,o,s),{retainProjects:d,...p}=this.assignProjectToOpenedScriptInfo(l);return this.cleanupAfterOpeningFile(d),this.telemetryOnOpenFile(l),this.printProjects(),p}removeOrphanConfiguredProjects(t){let r=new Map(this.configuredProjects),i=l=>{!l.isOrphan()&&l.originalConfiguredProjects&&l.originalConfiguredProjects.forEach((d,p)=>{let h=this.getConfiguredProjectByCanonicalConfigFilePath(p);return h&&s(h)})};t&&(oo(t)?t.forEach(s):s(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(l=>{l.hasOpenRef()?s(l):r.has(l.canonicalConfigFilePath)&&MMe(l,d=>o(d)&&s(l))}),r.forEach(l=>this.removeProject(l));function o(l){return l.hasOpenRef()||!r.has(l.canonicalConfigFilePath)}function s(l){r.delete(l.canonicalConfigFilePath)&&(i(l),MMe(l,s))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(r=>{if(!r.isScriptOpen()&&r.isOrphan()&&!r.isContainedByBackgroundProject()){if(!r.sourceMapFilePath)return;let i;if(fo(r.sourceMapFilePath)){let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;if(!i||!k_(i,o=>{let s=this.getScriptInfoForPath(o);return!!s&&(s.isScriptOpen()||!s.isOrphan())}))return}if(t.delete(r.path),r.sourceMapFilePath){let i;if(fo(r.sourceMapFilePath)){t.delete(r.sourceMapFilePath);let o=this.getScriptInfoForPath(r.sourceMapFilePath);i=o&&o.sourceInfos}else i=r.sourceMapFilePath.sourceInfos;i&&i.forEach((o,s)=>t.delete(s))}}),t.forEach(r=>{this.stopWatchingScriptInfo(r),this.deleteScriptInfo(r),r.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Jf(this.allJsFilesForOpenFileTelemetry,t.path))return;let r=this.ensureDefaultProjectForFile(t);if(!r.languageServiceEnabled)return;let i=r.getSourceFile(t.path),o=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:v$,data:{info:{checkJs:o}}})}closeClientFile(t,r){let i=this.getScriptInfoForNormalizedPath(js(t)),o=i?this.closeOpenFile(i,r):!1;return r||this.printProjects(),o}collectChanges(t,r,i,o){for(let s of r){let l=Dr(t,d=>d.projectName===s.getProjectName());o.push(s.getChangesSinceVersion(l&&l.version,i))}}synchronizeProjectList(t,r){let i=[];return this.collectChanges(t,this.externalProjects,r,i),this.collectChanges(t,this.configuredProjects.values(),r,i),this.collectChanges(t,this.inferredProjects,r,i),i}applyChangesInOpenFiles(t,r,i){let o,s=!1;if(t)for(let d of t){let p=this.getOrCreateOpenScriptInfo(js(d.fileName),d.content,_$(d.scriptKind),d.hasMixedContent,d.projectRootPath?js(d.projectRootPath):void 0);(o||(o=[])).push(p)}if(r)for(let d of r){let p=this.getScriptInfo(d.fileName);x.assert(!!p),this.applyChangesToFile(p,d.changes)}if(i)for(let d of i)s=this.closeClientFile(d,!0)||s;let l;o&&(l=ta(o,d=>this.assignProjectToOpenedScriptInfo(d).retainProjects)),s&&this.assignOrphanScriptInfosToInferredProject(),o?(this.cleanupAfterOpeningFile(l),o.forEach(d=>this.telemetryOnOpenFile(d)),this.printProjects()):yn(i)&&this.printProjects()}applyChangesToFile(t,r){for(let i of r)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){t?.forEach(r=>{r.isClosed()||(r.deleteExternalProjectReference(),r.hasOpenRef()||this.removeProject(r))})}closeExternalProject(t,r){let i=js(t),o=this.externalProjectToConfiguredProjectMap.get(i);if(o)this.closeConfiguredProjectReferencedFromExternalProject(o),this.externalProjectToConfiguredProjectMap.delete(i);else{let s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}r&&this.printProjects()}openExternalProjects(t){let r=PE(this.externalProjects,i=>i.getProjectName(),i=>!0);k_(this.externalProjectToConfiguredProjectMap,i=>{r.set(i,!0)});for(let i of t)this.openExternalProject(i,!1),r.delete(i.projectFileName);k_(r,i=>{this.closeExternalProject(i,!1)}),this.printProjects()}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=y$}applySafeList(t){let r=t.typeAcquisition;x.assert(!!r,"proj.typeAcquisition should be set by now");let i=this.applySafeListWorker(t,t.rootFiles,r);return i?.excludedFiles??[]}applySafeListWorker(t,r,i){if(i.enable===!1||i.disableFilenameBasedTypeAcquisition)return;let o=i.include||(i.include=[]),s=[],l=r.map(v=>ad(v.fileName));for(let v of Object.keys(this.safelist)){let E=this.safelist[v];for(let S of l)if(E.match.test(S)){if(this.logger.info(`Excluding files based on rule ${v} matching file '${S}'`),E.types)for(let A of E.types)o.includes(A)||o.push(A);if(E.exclude)for(let A of E.exclude){let C=S.replace(E.match,(...R)=>A.map(L=>typeof L=="number"?fo(R[L])?eve.escapeFilenameForRegex(R[L]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${v} - not enough groups`),"\\*"):L).join(""));s.includes(C)||s.push(C)}else{let A=eve.escapeFilenameForRegex(S);s.includes(A)||s.push(A)}}}let d=s.map(v=>new RegExp(v,"i")),p,h;for(let v=0;v<r.length;v++)if(d.some(E=>E.test(l[v])))m(v);else{if(i.enable){let E=Ll(D_(l[v]));if(el(E,"js")){let S=Yd(E),A=dB(S),C=this.legacySafelist.get(A);if(C!==void 0){this.logger.info(`Excluded '${l[v]}' because it matched ${A} from the legacy safelist`),m(v),o.includes(C)||o.push(C);continue}}}/^.+[.-]min\.js$/.test(l[v])?m(v):p?.push(r[v])}return h?{rootFiles:p,excludedFiles:h}:void 0;function m(v){h||(x.assert(!p),p=r.slice(0,v),h=[]),h.push(l[v])}}openExternalProject(t,r){let i=this.findExternalProjectByProjectName(t.projectFileName),o=this.externalProjectToConfiguredProjectMap.get(t.projectFileName),s,l=[];for(let d of t.rootFiles){let p=js(d.fileName);if(n$(p)){if(this.serverMode===0&&this.host.fileExists(p)){let h=this.findConfiguredProjectByProjectName(p);h||(h=this.getHostPreferences().lazyConfiguredProjectsFromExternalProject?this.createConfiguredProjectWithDelayLoad(p,`Creating configured project in external project: ${t.projectFileName}`):this.createLoadAndUpdateConfiguredProject(p,`Creating configured project in external project: ${t.projectFileName}`)),o?.has(h)||h.addExternalProjectReference(),(s??(s=new Set)).add(h),o?.delete(h)}}else l.push(d)}if(s)this.externalProjectToConfiguredProjectMap.set(t.projectFileName,s),i&&this.removeProject(i);else{this.externalProjectToConfiguredProjectMap.delete(t.projectFileName);let d=t.typeAcquisition||{};d.include=d.include||[],d.exclude=d.exclude||[],d.enable===void 0&&(d.enable=Yfe(l.map(m=>m.fileName)));let p=this.applySafeListWorker(t,l,d),h=p?.excludedFiles??[];if(l=p?.rootFiles??l,i){i.excludedFiles=h;let m=a7(t.options),v=JO(t.options,i.getCurrentDirectory()),E=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,m,l,y7);E?i.disableLanguageService(E):i.enableLanguageService(),i.setProjectErrors(v?.errors),this.updateRootAndOptionsOfNonInferredProject(i,l,y7,m,d,t.options.compileOnSave,v?.watchOptions),i.updateGraph()}else this.createExternalProject(t.projectFileName,l,t.options,d,h).updateGraph()}this.closeConfiguredProjectReferencedFromExternalProject(o),r&&this.printProjects()}hasDeferredExtension(){for(let t of this.hostConfiguration.extraFileExtensions)if(t.scriptKind===7)return!0;return!1}requestEnablePlugin(t,r,i){if(!this.host.importPlugin&&!this.host.require){this.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}if(this.logger.info(`Enabling plugin ${r.name} from candidate paths: ${i.join(",")}`),!r.name||ik(r.name).rest){this.logger.info(`Skipped loading plugin ${r.name||JSON.stringify(r)} because only package name is allowed plugin name`);return}if(this.host.importPlugin){let o=_T.importServicePluginAsync(r,i,this.host,l=>this.logger.info(l));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let s=this.pendingPluginEnablements.get(t);s||this.pendingPluginEnablements.set(t,s=[]),s.push(o);return}this.endEnablePlugin(t,_T.importServicePluginSync(r,i,this.host,o=>this.logger.info(o)))}endEnablePlugin(t,{pluginConfigEntry:r,resolvedModule:i,errorLogs:o}){var s;if(i){let l=(s=this.currentPluginConfigOverrides)==null?void 0:s.get(r.name);if(l){let d=r.name;r=l,r.name=d}t.enableProxy(i,r)}else an(o,l=>this.logger.info(l)),this.logger.info(`Couldn't find ${r.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=bo(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){x.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(nn(t,([r,i])=>this.enableRequestedPluginsForProjectAsync(r,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,r){let i=await Promise.all(r);if(!t.isClosed()){for(let o of i)this.endEnablePlugin(t,o);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(r=>r.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,r,i){let o=this.packageJsonCache,s=i&&this.toPath(i),l=[],d=p=>{switch(o.directoryHasPackageJson(p)){case 3:return o.searchDirectoryAndAncestors(p),d(p);case-1:let h=wr(p,"package.json");this.watchPackageJsonFile(h,this.toPath(h),r);let m=o.getInDirectory(p);m&&l.push(m)}if(s&&s===p)return!0};return Vf(Ur(t),d),l}getNearestAncestorDirectoryWithPackageJson(t){return Vf(t,r=>{switch(this.packageJsonCache.directoryHasPackageJson(r)){case-1:return r;case 0:return;case 3:return this.host.fileExists(wr(r,"package.json"))?r:void 0}})}watchPackageJsonFile(t,r,i){x.assert(i!==void 0);let o=(this.packageJsonFilesMap??(this.packageJsonFilesMap=new Map)).get(r);if(!o){let s=this.watchFactory.watchFile(t,(l,d)=>{switch(d){case 0:return x.fail();case 1:this.packageJsonCache.addOrUpdate(l,r),this.onPackageJsonChange(o);break;case 2:this.packageJsonCache.delete(r),this.onPackageJsonChange(o),o.projects.clear(),o.close()}},250,this.hostConfiguration.watchOptions,dc.PackageJson);o={projects:new Set,close:()=>{var l;o.projects.size||!s||(s.close(),s=void 0,(l=this.packageJsonFilesMap)==null||l.delete(r),this.packageJsonCache.invalidate(r))}},this.packageJsonFilesMap.set(r,o)}o.projects.add(i),(i.packageJsonWatches??(i.packageJsonWatches=new Set)).add(o)}onPackageJsonChange(t){t.projects.forEach(r=>{var i;return(i=r.onPackageJsonChange)==null?void 0:i.call(r)})}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=eet())}},lme.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,S$=lme}});function cme(e){let t,r,i,o={get(p,h,m,v){if(!(!r||i!==l(p,m,v)))return r.get(h)},set(p,h,m,v,E,S){if(s(p,m,v).set(h,d(E,S,!1)),S){for(let A of E)if(A.isInNodeModules){let C=A.path.substring(0,A.path.indexOf(H_)+H_.length-1),R=e.toPath(C);t?.has(R)||(t||(t=new Map)).set(R,e.watchNodeModulesForPackageJsonChanges(C))}}},setModulePaths(p,h,m,v,E){let S=s(p,m,v),A=S.get(h);A?A.modulePaths=E:S.set(h,d(E,void 0,void 0))},setBlockedByPackageJsonDependencies(p,h,m,v,E){let S=s(p,m,v),A=S.get(h);A?A.isBlockedByPackageJsonDependencies=E:S.set(h,d(void 0,void 0,E))},clear(){t?.forEach(vm),r?.clear(),t?.clear(),i=void 0},count(){return r?r.size:0}};return x.isDebugging&&Object.defineProperty(o,"__cache",{get:()=>r}),o;function s(p,h,m){let v=l(p,h,m);return r&&i!==v&&o.clear(),i=v,r||(r=new Map)}function l(p,h,m){return`${p},${h.importModuleSpecifierEnding},${h.importModuleSpecifierPreference},${m.overrideImportMode}`}function d(p,h,m){return{modulePaths:p,moduleSpecifiers:h,isBlockedByPackageJsonDependencies:m}}}var net=pt({"src/server/moduleSpecifierCache.ts"(){"use strict";Ty()}});function dme(e){let t=new Map,r=new Map;return{addOrUpdate:i,invalidate:o,delete:l=>{t.delete(l),r.set(Ur(l),!0)},getInDirectory:l=>t.get(e.toPath(wr(l,"package.json")))||void 0,directoryHasPackageJson:l=>s(e.toPath(l)),searchDirectoryAndAncestors:l=>{Vf(l,d=>{let p=e.toPath(d);if(s(p)!==3)return!0;let h=wr(d,"package.json");eO(e,h)?i(h,wr(p,"package.json")):r.set(p,!0)})}};function i(l,d){let p=x.checkDefined(DJ(l,e.host));t.set(d,p),r.delete(Ur(d))}function o(l){t.delete(l),r.delete(Ur(l))}function s(l){return t.has(wr(l,"package.json"))?-1:r.has(l)?0:3}}var ret=pt({"src/server/packageJsonCache.ts"(){"use strict";Ty()}});function iet(e){let t=e[0],r=e[1];return(1e9*t+r)/1e6}function WMe(e,t){if((FR(e)||c$(e))&&e.isJsOnlyProject()){let r=e.getScriptInfoForNormalizedPath(t);return r&&!r.isJavaScript()}return!1}function oet(e){return Xp(e)||!!e.emitDecoratorMetadata}function FMe(e,t,r){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(r.start),end:i.positionToLineOffset(r.start+r.length),text:o_(r.messageText,`
`),code:r.code,category:_S(r),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,source:r.source,relatedInformation:nn(r.relatedInformation,T$)}}function T$(e){return e.file?{span:{start:XO($a(e.file,e.start)),end:XO($a(e.file,e.start+e.length)),file:e.file.fileName},message:o_(e.messageText,`
`),category:_S(e),code:e.code}:{message:o_(e.messageText,`
`),category:_S(e),code:e.code}}function XO(e){return{line:e.line+1,offset:e.character+1}}function YO(e,t){let r=e.file&&XO($a(e.file,e.start)),i=e.file&&XO($a(e.file,e.start+e.length)),o=o_(e.messageText,`
`),{code:s,source:l}=e,d=_S(e),p={start:r,end:i,text:o,code:s,category:d,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:l,relatedInformation:nn(e.relatedInformation,T$)};return t?{...p,fileName:e.file&&e.file.fileName}:p}function aet(e,t){return e.every(r=>Al(r.span)<t)}function ume(e,t,r,i){let o=t.hasLevel(3),s=JSON.stringify(e);return o&&t.info(`${e.type}:${Ub(e)}`),`Content-Length: ${1+r(s,"utf8")}\r
\r
${s}${i}`}function pme(e,t){return{seq:0,type:"event",event:e,body:t}}function set(e,t,r,i){let o=wD(oo(r)?r:r.projects,s=>i(s,e));return!oo(r)&&r.symLinkedProjects&&r.symLinkedProjects.forEach((s,l)=>{let d=t(l);o.push(...ta(s,p=>i(p,d)))}),NE(o,Hg)}function A$(e){return lB(({textSpan:t})=>t.start+100003*t.length,fJ(e))}function cet(e,t,r,i,o,s,l){let d=zMe(e,t,r,!0,(m,v)=>m.getLanguageService().findRenameLocations(v.fileName,v.pos,i,o,s),(m,v)=>v(bP(m)));if(oo(d))return d;let p=[],h=A$(l);return d.forEach((m,v)=>{for(let E of m)!h.has(E)&&!I$(bP(E),v)&&(p.push(E),h.add(E))}),p}function det(e,t,r){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,r),o=i&&Ac(i);return o&&!o.isLocal?{fileName:o.fileName,pos:o.textSpan.start}:void 0}function uet(e,t,r,i,o){var s,l;let d=zMe(e,t,r,!1,(v,E)=>(o.info(`Finding references to ${E.fileName} position ${E.pos} in project ${v.getProjectName()}`),v.getLanguageService().findReferences(E.fileName,E.pos)),(v,E)=>{E(bP(v.definition));for(let S of v.references)E(bP(S))});if(oo(d))return d;let p=d.get(t);if(((l=(s=p?.[0])==null?void 0:s.references[0])==null?void 0:l.isDefinition)===void 0)d.forEach(v=>{for(let E of v)for(let S of E.references)delete S.isDefinition});else{let v=A$(i);for(let S of p)for(let A of S.references)if(A.isDefinition){v.add(A);break}let E=new Set;for(;;){let S=!1;if(d.forEach((A,C)=>{if(E.has(C))return;C.getLanguageService().updateIsDefinitionOfReferencedSymbols(A,v)&&(E.add(C),S=!0)}),!S)break}d.forEach((S,A)=>{if(!E.has(A))for(let C of S)for(let R of C.references)R.isDefinition=!1})}let h=[],m=A$(i);return d.forEach((v,E)=>{for(let S of v){let A=I$(bP(S.definition),E),C=A===void 0?S.definition:{...S.definition,textSpan:qc(A.pos,S.definition.textSpan.length),fileName:A.fileName,contextSpan:met(S.definition,E)},R=Dr(h,L=>pJ(L.definition,C,i));R||(R={definition:C,references:[]},h.push(R));for(let L of S.references)!m.has(L)&&!I$(bP(L),E)&&(m.add(L),R.references.push(L))}}),h.filter(v=>v.references.length!==0)}function fme(e,t,r){for(let i of oo(e)?e:e.projects)r(i,t);!oo(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,o)=>{for(let s of i)r(s,o)})}function zMe(e,t,r,i,o,s){let l=new Map,d=mM();d.enqueue({project:t,location:r}),fme(e,r.fileName,(C,R)=>{let L={fileName:R,pos:r.pos};d.enqueue({project:C,location:L})});let p=t.projectService,h=t.getCancellationToken(),m=det(t,r,i),v=Kd(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(m)),E=Kd(()=>t.isSourceOfProjectReferenceRedirect(m.fileName)?m:t.getLanguageService().getSourceMapper().tryGetSourcePosition(m)),S=new Set;e:for(;!d.isEmpty();){for(;!d.isEmpty();){if(h.isCancellationRequested())break e;let{project:C,location:R}=d.dequeue();if(l.has(C)||BMe(C,R)||(up(C),!C.containsFile(js(R.fileName))))continue;let L=A(C,R);l.set(C,L??ql),S.add(fet(C))}m&&(p.loadAncestorProjectTree(S),p.forEachEnabledProject(C=>{if(h.isCancellationRequested()||l.has(C))return;let R=pet(m,C,v,E);R&&d.enqueue({project:C,location:R})}))}if(l.size===1)return rB(l.values());return l;function A(C,R){let L=o(C,R);if(L){for(let G of L)s(G,U=>{let K=p.getOriginalLocationEnsuringConfiguredProject(C,U);if(!K)return;let F=p.getScriptInfo(K.fileName);for(let W of F.containingProjects)!W.isOrphan()&&!l.has(W)&&d.enqueue({project:W,location:K});let oe=p.getSymlinkedProjects(F);oe&&oe.forEach((W,$)=>{for(let de of W)!de.isOrphan()&&!l.has(de)&&d.enqueue({project:de,location:{fileName:$,pos:K.pos}})})});return L}}}function pet(e,t,r,i){if(t.containsFile(js(e.fileName))&&!BMe(t,e))return e;let o=r();if(o&&t.containsFile(js(o.fileName)))return o;let s=i();return s&&t.containsFile(js(s.fileName))?s:void 0}function BMe(e,t){if(!t)return!1;let r=e.getLanguageService().getProgram();if(!r)return!1;let i=r.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function fet(e){return Yb(e)?e.canonicalConfigFilePath:e.getProjectName()}function bP({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function I$(e,t){return ZN(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function GMe(e,t){return P3(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function met(e,t){return _J(e,t.getSourceMapper(),r=>t.projectService.fileExists(r))}function J_(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Al(e))}}function mme(e,t,r){let i=J_(e,r),o=t&&J_(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function _et(e,t){return{start:VMe(t,e.span.start),end:VMe(t,Al(e.span)),newText:e.newText}}function VMe(e,t){return ome(e)?get(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function het(e,t){let r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function get(e){return{line:e.line+1,offset:e.character+1}}function vet(e){x.assert(e.textChanges.length===1);let t=Sa(e.textChanges);return x.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function _me(e,t,r,i){let o=yet(e,t,i),{line:s,character:l}=W1(IA(o),r);return{line:s+1,offset:l+1}}function yet(e,t,r){for(let{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){let{newText:l,span:{start:d,length:p}}=o[s];e=e.slice(0,d)+l+e.slice(d+p)}return e}function jMe(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:l}){let d=x.checkDefined(e.getScriptInfo(t)),p=mme(r,i,d),h=l?void 0:bet(d,p);return{file:t,...p,lineText:h,isWriteAccess:o,isDefinition:s}}function bet(e,t){let r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Al(r)).replace(/\r|\n/g,"")}function Eet(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var hme,gme,UMe,vme,HMe,yme,Tet=pt({"src/server/session.ts"(){"use strict";Ty(),hT(),qfe(),hme={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},gme=o$,UMe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){let r=this.requestId;x.assert(r===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(r,()=>this.executeAction(t))},e))}delay(e,t,r){let i=this.requestId;x.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(r))},t,e))}executeAction(e){var t,r,i,o,s,l;let d=!1;try{this.operationHost.isCancellationRequested()?(d=!0,(t=qn)==null||t.instant(qn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((r=qn)==null||r.push(qn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=qn)==null||i.pop())}catch(p){(o=qn)==null||o.popAll(),d=!0,p instanceof k1?(s=qn)==null||s.instant(qn.Phase.Session,"stepCanceled",{seq:this.requestId}):((l=qn)==null||l.instant(qn.Phase.Session,"stepError",{seq:this.requestId,message:p.message}),this.operationHost.logError(p,`delayed processing of request ${this.requestId}`))}(d||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},vme=["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"],HMe=[...vme,"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"],yme=class xZ{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let s={version:yp};return this.requiredResponse(s)},openExternalProject:s=>(this.projectService.openExternalProject(s.arguments,!0),this.requiredResponse(!0)),openExternalProjects:s=>(this.projectService.openExternalProjects(s.arguments.projects),this.requiredResponse(!0)),closeExternalProject:s=>(this.projectService.closeExternalProject(s.arguments.projectFileName,!0),this.requiredResponse(!0)),synchronizeProjectList:s=>{let l=this.projectService.synchronizeProjectList(s.arguments.knownProjects,s.arguments.includeProjectReferenceRedirectInfo);if(!l.some(p=>p.projectErrors&&p.projectErrors.length!==0))return this.requiredResponse(l);let d=nn(l,p=>!p.projectErrors||p.projectErrors.length===0?p:{info:p.info,changes:p.changes,files:p.files,projectErrors:this.convertToDiagnosticsWithLinePosition(p.projectErrors,void 0)});return this.requiredResponse(d)},updateOpen:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles&&OD(s.arguments.openFiles,l=>({fileName:l.file,content:l.fileContent,scriptKind:l.scriptKindName,projectRootPath:l.projectRootPath})),s.arguments.changedFiles&&OD(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:WD(tB(l.textChanges),d=>{let p=x.checkDefined(this.projectService.getScriptInfo(l.fileName)),h=p.lineOffsetToPosition(d.start.line,d.start.offset),m=p.lineOffsetToPosition(d.end.line,d.end.offset);return h>=0?{span:{start:h,length:m-h},newText:d.newText}:void 0})})),s.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:s=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(s.arguments.openFiles,s.arguments.changedFiles&&OD(s.arguments.changedFiles,l=>({fileName:l.fileName,changes:tB(l.changes)})),s.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:s=>this.requiredResponse(this.getDefinition(s.arguments,!0)),"definition-full":s=>this.requiredResponse(this.getDefinition(s.arguments,!1)),definitionAndBoundSpan:s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!0)),"definitionAndBoundSpan-full":s=>this.requiredResponse(this.getDefinitionAndBoundSpan(s.arguments,!1)),findSourceDefinition:s=>this.requiredResponse(this.findSourceDefinition(s.arguments)),"emit-output":s=>this.requiredResponse(this.getEmitOutput(s.arguments)),typeDefinition:s=>this.requiredResponse(this.getTypeDefinition(s.arguments)),implementation:s=>this.requiredResponse(this.getImplementation(s.arguments,!0)),"implementation-full":s=>this.requiredResponse(this.getImplementation(s.arguments,!1)),references:s=>this.requiredResponse(this.getReferences(s.arguments,!0)),"references-full":s=>this.requiredResponse(this.getReferences(s.arguments,!1)),rename:s=>this.requiredResponse(this.getRenameLocations(s.arguments,!0)),"renameLocations-full":s=>this.requiredResponse(this.getRenameLocations(s.arguments,!1)),"rename-full":s=>this.requiredResponse(this.getRenameInfo(s.arguments)),open:s=>(this.openClientFile(js(s.arguments.file),s.arguments.fileContent,h$(s.arguments.scriptKindName),s.arguments.projectRootPath?js(s.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!0)),"quickinfo-full":s=>this.requiredResponse(this.getQuickInfoWorker(s.arguments,!1)),getOutliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!0)),outliningSpans:s=>this.requiredResponse(this.getOutliningSpans(s.arguments,!1)),todoComments:s=>this.requiredResponse(this.getTodoComments(s.arguments)),indentation:s=>this.requiredResponse(this.getIndentation(s.arguments)),nameOrDottedNameSpan:s=>this.requiredResponse(this.getNameOrDottedNameSpan(s.arguments)),breakpointStatement:s=>this.requiredResponse(this.getBreakpointStatement(s.arguments)),braceCompletion:s=>this.requiredResponse(this.isValidBraceCompletion(s.arguments)),docCommentTemplate:s=>this.requiredResponse(this.getDocCommentTemplate(s.arguments)),getSpanOfEnclosingComment:s=>this.requiredResponse(this.getSpanOfEnclosingComment(s.arguments)),fileReferences:s=>this.requiredResponse(this.getFileReferences(s.arguments,!0)),"fileReferences-full":s=>this.requiredResponse(this.getFileReferences(s.arguments,!1)),format:s=>this.requiredResponse(this.getFormattingEditsForRange(s.arguments)),formatonkey:s=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(s.arguments)),"format-full":s=>this.requiredResponse(this.getFormattingEditsForDocumentFull(s.arguments)),"formatonkey-full":s=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(s.arguments)),"formatRange-full":s=>this.requiredResponse(this.getFormattingEditsForRangeFull(s.arguments)),completionInfo:s=>this.requiredResponse(this.getCompletions(s.arguments,"completionInfo")),completions:s=>this.requiredResponse(this.getCompletions(s.arguments,"completions")),"completions-full":s=>this.requiredResponse(this.getCompletions(s.arguments,"completions-full")),completionEntryDetails:s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!1)),"completionEntryDetails-full":s=>this.requiredResponse(this.getCompletionEntryDetails(s.arguments,!0)),compileOnSaveAffectedFileList:s=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(s.arguments)),compileOnSaveEmitFile:s=>this.requiredResponse(this.emitFile(s.arguments)),signatureHelp:s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!0)),"signatureHelp-full":s=>this.requiredResponse(this.getSignatureHelpItems(s.arguments,!1)),"compilerOptionsDiagnostics-full":s=>this.requiredResponse(this.getCompilerOptionsDiagnostics(s.arguments)),"encodedSyntacticClassifications-full":s=>this.requiredResponse(this.getEncodedSyntacticClassifications(s.arguments)),"encodedSemanticClassifications-full":s=>this.requiredResponse(this.getEncodedSemanticClassifications(s.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:s=>this.requiredResponse(this.getSemanticDiagnosticsSync(s.arguments)),syntacticDiagnosticsSync:s=>this.requiredResponse(this.getSyntacticDiagnosticsSync(s.arguments)),suggestionDiagnosticsSync:s=>this.requiredResponse(this.getSuggestionDiagnosticsSync(s.arguments)),geterr:s=>(this.errorCheck.startNew(l=>this.getDiagnostics(l,s.arguments.delay,s.arguments.files)),this.notRequired()),geterrForProject:s=>(this.errorCheck.startNew(l=>this.getDiagnosticsForProject(l,s.arguments.delay,s.arguments.file)),this.notRequired()),change:s=>(this.change(s.arguments),this.notRequired()),configure:s=>(this.projectService.setHostConfiguration(s.arguments),this.doOutput(void 0,"configure",s.seq,!0),this.notRequired()),reload:s=>(this.reload(s.arguments,s.seq),this.requiredResponse({reloadFinished:!0})),saveto:s=>{let l=s.arguments;return this.saveToTmp(l.file,l.tmpfile),this.notRequired()},close:s=>{let l=s.arguments;return this.closeClientFile(l.file),this.notRequired()},navto:s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!0)),"navto-full":s=>this.requiredResponse(this.getNavigateToItems(s.arguments,!1)),brace:s=>this.requiredResponse(this.getBraceMatching(s.arguments,!0)),"brace-full":s=>this.requiredResponse(this.getBraceMatching(s.arguments,!1)),navbar:s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!0)),"navbar-full":s=>this.requiredResponse(this.getNavigationBarItems(s.arguments,!1)),navtree:s=>this.requiredResponse(this.getNavigationTree(s.arguments,!0)),"navtree-full":s=>this.requiredResponse(this.getNavigationTree(s.arguments,!1)),documentHighlights:s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!0)),"documentHighlights-full":s=>this.requiredResponse(this.getDocumentHighlights(s.arguments,!1)),compilerOptionsForInferredProjects:s=>(this.setCompilerOptionsForInferredProjects(s.arguments),this.requiredResponse(!0)),projectInfo:s=>this.requiredResponse(this.getProjectInfo(s.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:s=>this.requiredResponse(this.getJsxClosingTag(s.arguments)),linkedEditingRange:s=>this.requiredResponse(this.getLinkedEditingRange(s.arguments)),getCodeFixes:s=>this.requiredResponse(this.getCodeFixes(s.arguments,!0)),"getCodeFixes-full":s=>this.requiredResponse(this.getCodeFixes(s.arguments,!1)),getCombinedCodeFix:s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!0)),"getCombinedCodeFix-full":s=>this.requiredResponse(this.getCombinedCodeFix(s.arguments,!1)),applyCodeActionCommand:s=>this.requiredResponse(this.applyCodeActionCommand(s.arguments)),getSupportedCodeFixes:s=>this.requiredResponse(this.getSupportedCodeFixes(s.arguments)),getApplicableRefactors:s=>this.requiredResponse(this.getApplicableRefactors(s.arguments)),getEditsForRefactor:s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!0)),getMoveToRefactoringFileSuggestions:s=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(s.arguments)),"getEditsForRefactor-full":s=>this.requiredResponse(this.getEditsForRefactor(s.arguments,!1)),organizeImports:s=>this.requiredResponse(this.organizeImports(s.arguments,!0)),"organizeImports-full":s=>this.requiredResponse(this.organizeImports(s.arguments,!1)),getEditsForFileRename:s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!0)),"getEditsForFileRename-full":s=>this.requiredResponse(this.getEditsForFileRename(s.arguments,!1)),configurePlugin:s=>(this.configurePlugin(s.arguments),this.doOutput(void 0,"configurePlugin",s.seq,!0),this.notRequired()),selectionRange:s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!0)),"selectionRange-full":s=>this.requiredResponse(this.getSmartSelectionRange(s.arguments,!1)),prepareCallHierarchy:s=>this.requiredResponse(this.prepareCallHierarchy(s.arguments)),provideCallHierarchyIncomingCalls:s=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(s.arguments)),provideCallHierarchyOutgoingCalls:s=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(s.arguments)),toggleLineComment:s=>this.requiredResponse(this.toggleLineComment(s.arguments,!0)),"toggleLineComment-full":s=>this.requiredResponse(this.toggleLineComment(s.arguments,!1)),toggleMultilineComment:s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!0)),"toggleMultilineComment-full":s=>this.requiredResponse(this.toggleMultilineComment(s.arguments,!1)),commentSelection:s=>this.requiredResponse(this.commentSelection(s.arguments,!0)),"commentSelection-full":s=>this.requiredResponse(this.commentSelection(s.arguments,!1)),uncommentSelection:s=>this.requiredResponse(this.uncommentSelection(s.arguments,!0)),"uncommentSelection-full":s=>this.requiredResponse(this.uncommentSelection(s.arguments,!1)),provideInlayHints:s=>this.requiredResponse(this.provideInlayHints(s.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||i7,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:r}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(s=>this.defaultEventHandler(s)):void 0;let i={executeWithRequestId:(s,l)=>this.executeWithRequestId(s,l),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(s,l)=>this.logError(s,l),sendRequestCompletedEvent:s=>this.sendRequestCompletedEvent(s),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new UMe(i);let o={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:r,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new S$(o),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new i$(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:vme.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:HMe.forEach(s=>this.handlers.set(s,l=>{throw new Error(`Request: ${l.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:x.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,r){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+r}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case KO:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case c7:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case d7:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case u7:case _7:case h7:case g7:this.event(t.data,t.eventName);break;case p7:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:nn(t.data.diagnostics,r=>YO(r,!0))},t.eventName);break;case f7:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case m7:{this.event({telemetryEventName:t.eventName,payload:t.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&(this.projectService.logger.info(`Queueing diagnostics update for ${t}`),this.errorCheck.startNew(r=>this.updateErrorCheck(r,t,100,!0))),this.event({openFiles:t},KO))}logError(t,r){this.logErrorWorker(t,r)}logErrorWorker(t,r,i){let o="Exception on executing command "+r;if(t.message&&(o+=`:
`+qN(t.message),t.stack&&(o+=`
`+qN(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:s,project:l}=this.getFileAndProject(i),d=l.getScriptInfoForNormalizedPath(s);if(d){let p=hR(d.getSnapshot());o+=`
File text of ${i.file}:${qN(p)}
`}}catch{}if(t.ProgramFiles){o+=`
Program files: ${JSON.stringify(t.ProgramFiles)}
`,o+=`
Projects::
`;let s=0,l=d=>{o+=`
Project '${d.projectName}' (${yP[d.projectKind]}) ${s}
`,o+=d.filesToString(!0),o+=`
-----------------------------------------------
`,s++};this.projectService.externalProjects.forEach(l),this.projectService.configuredProjects.forEach(l),this.projectService.inferredProjects.forEach(l)}}this.logger.msg(o,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${Ub(t)}`);return}this.writeMessage(t)}writeMessage(t){var r;let i=ume(t,this.logger,this.byteLength,this.host.newLine);(r=Pd)==null||r.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,r){this.send(pme(r,t))}doOutput(t,r,i,o,s){let l={seq:0,type:"response",command:r,request_seq:i,success:o,performanceData:this.performanceData};if(o){let d;if(oo(t))l.body=t,d=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:p,...h}=t;l.body=h,d=p}else l.body=t;else l.body=t;d&&(l.metadata=d)}else x.assert(t===void 0);s&&(l.message=s),this.send(l)}semanticCheck(t,r){var i,o;(i=qn)==null||i.push(qn.Phase.Session,"semanticCheck",{file:t,configFilePath:r.canonicalConfigFilePath});let s=WMe(r,t)?ql:r.getLanguageService().getSemanticDiagnostics(t).filter(l=>!!l.file);this.sendDiagnosticsEvent(t,r,s,"semanticDiag"),(o=qn)==null||o.pop()}syntacticCheck(t,r){var i,o;(i=qn)==null||i.push(qn.Phase.Session,"syntacticCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(o=qn)==null||o.pop()}suggestionCheck(t,r){var i,o;(i=qn)==null||i.push(qn.Phase.Session,"suggestionCheck",{file:t,configFilePath:r.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,r,r.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(o=qn)==null||o.pop()}sendDiagnosticsEvent(t,r,i,o){try{this.event({file:t,diagnostics:i.map(s=>FMe(t,r,s))},o)}catch(s){this.logError(s,o)}}updateErrorCheck(t,r,i,o=!0){x.assert(!this.suppressDiagnosticEvents);let s=this.changeSeq,l=Math.min(i,200),d=0,p=()=>{d++,r.length>d&&t.delay("checkOne",l,h)},h=()=>{if(this.changeSeq!==s)return;let m=r[d];if(fo(m)&&(m=this.toPendingErrorCheck(m),!m)){p();return}let{fileName:v,project:E}=m;if(up(E),!!E.containsFile(v,o)&&(this.syntacticCheck(v,E),this.changeSeq===s)){if(E.projectService.serverMode!==0){p();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(v,E),this.changeSeq===s){if(this.getPreferences(v).disableSuggestions){p();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(v,E),p()})}})}};r.length>d&&this.changeSeq===s&&t.delay("checkOne",i,h)}cleanProjects(t,r){if(r){this.logger.info(`cleaning ${t}`);for(let i of r)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",bo(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(r,t)}getEncodedSemanticClassifications(t){let{file:r,project:i}=this.getFileAndProject(t),o=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(r,t,o)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let r=this.getProject(t.projectFileName),i=js(t.file);return{configFile:r&&r.hasConfigFile(i)?i:void 0,project:r}}getConfigFileDiagnostics(t,r,i){let o=r.getAllProjectErrors(),s=r.getLanguageService().getCompilerOptionsDiagnostics(),l=Cr(ro(o,s),d=>!!d.file&&d.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):nn(l,d=>YO(d,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(r=>({message:o_(r.messageText,this.host.newLine),start:r.start,length:r.length,category:_S(r),code:r.code,source:r.source,startLocation:r.file&&XO($a(r.file,r.start)),endLocation:r.file&&XO($a(r.file,r.start+r.length)),reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated,relatedInformation:nn(r.relatedInformation,T$)}))}getCompilerOptionsDiagnostics(t){let r=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Cr(r.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,r){return t.map(i=>({message:o_(i.messageText,this.host.newLine),start:i.start,length:i.length,category:_S(i),code:i.code,source:i.source,startLocation:r&&r.positionToLineOffset(i.start),endLocation:r&&r.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:nn(i.relatedInformation,T$)}))}getDiagnosticsWorker(t,r,i,o){let{project:s,file:l}=this.getFileAndProject(t);if(r&&WMe(s,l))return ql;let d=s.getScriptInfoForNormalizedPath(l),p=i(s,l);return o?this.convertToDiagnosticsWithLinePosition(p,d):p.map(h=>FMe(l,s,h))}getDefinition(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapDefinitionInfoLocations(o.getLanguageService().getDefinitionAtPosition(i,s)||ql,o);return r?this.mapDefinitionInfo(l,o):l.map(xZ.mapToOriginalLocation)}mapDefinitionInfoLocations(t,r){return t.map(i=>{let o=GMe(i,r);return o?{...o,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=x.checkDefined(o.getScriptInfo(i)),d=o.getLanguageService().getDefinitionAndBoundSpan(i,s);if(!d||!d.definitions)return{definitions:ql,textSpan:void 0};let p=this.mapDefinitionInfoLocations(d.definitions,o),{textSpan:h}=d;return r?{definitions:this.mapDefinitionInfo(p,o),textSpan:J_(h,l)}:{definitions:p.map(xZ.mapToOriginalLocation),textSpan:h}}findSourceDefinition(t){var r;let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDefinitionAtPosition(i,s),d=this.mapDefinitionInfoLocations(l||ql,o).slice();if(this.projectService.serverMode===0&&(!ct(d,S=>js(S.fileName)!==i&&!S.isAmbient)||ct(d,S=>!!S.failedAliasResolution))){let S=lB(L=>L.textSpan.start,fJ(this.host.useCaseSensitiveFileNames));d?.forEach(L=>S.add(L));let A=o.getNoDtsResolutionProject(i),C=A.getLanguageService(),R=(r=C.getDefinitionAtPosition(i,s,!0,!1))==null?void 0:r.filter(L=>js(L.fileName)!==i);if(ct(R))for(let L of R){if(L.unverified){let G=v(L,o.getLanguageService().getProgram(),C.getProgram());if(ct(G)){for(let U of G)S.add(U);continue}}S.add(L)}else{let L=d.filter(G=>js(G.fileName)!==i&&G.isAmbient);for(let G of ct(L)?L:m()){let U=h(G.fileName,i,A);if(!U)continue;let K=this.projectService.getOrCreateScriptInfoNotOpenedByClient(U,A.currentDirectory,A.directoryStructureHost);if(!K)continue;A.containsScriptInfo(K)||(A.addRoot(K),A.updateGraph());let F=C.getProgram(),oe=x.checkDefined(F.getSourceFile(U));for(let W of E(G.name,oe,F))S.add(W)}}d=bo(S.values())}return d=d.filter(S=>!S.isAmbient&&!S.failedAliasResolution),this.mapDefinitionInfo(d,o);function h(S,A,C){var R,L,G;let U=yF(S);if(U&&S.lastIndexOf(H_)===U.topLevelNodeModulesIndex){let K=S.substring(0,U.packageRootIndex),F=(R=o.getModuleResolutionCache())==null?void 0:R.getPackageJsonInfoCache(),oe=o.getCompilationSettings(),W=rk(Qi(K+"/package.json",o.getCurrentDirectory()),nk(F,o,oe));if(!W)return;let $=RU(W,{moduleResolution:2},o,o.getModuleResolutionCache()),de=S.substring(U.topLevelPackageNameIndex+1,U.packageRootIndex),fe=CN(ak(de)),q=o.toPath(S);if($&&ct($,H=>o.toPath(H)===q))return(L=C.resolutionCache.resolveSingleModuleNameWithoutWatching(fe,A).resolvedModule)==null?void 0:L.resolvedFileName;{let H=S.substring(U.packageRootIndex+1),ee=`${fe}/${Yd(H)}`;return(G=C.resolutionCache.resolveSingleModuleNameWithoutWatching(ee,A).resolvedModule)==null?void 0:G.resolvedFileName}}}function m(){let S=o.getLanguageService(),A=S.getProgram(),C=pu(A.getSourceFile(i),s);return(Ga(C)||Me(C))&&ds(C.parent)&&Bne(C,R=>{var L;if(R===C)return;let G=(L=S.getDefinitionAtPosition(i,R.getStart(),!0,!1))==null?void 0:L.filter(U=>js(U.fileName)!==i&&U.isAmbient).map(U=>({fileName:U.fileName,name:Ef(C)}));if(ct(G))return G})||ql}function v(S,A,C){var R;let L=C.getSourceFile(S.fileName);if(!L)return;let G=pu(A.getSourceFile(i),s),U=A.getTypeChecker().getSymbolAtLocation(G),K=U&&Vs(U,276);if(!K)return;let F=((R=K.propertyName)==null?void 0:R.text)||K.name.text;return E(F,L,C)}function E(S,A,C){let R=ps.Core.getTopMostDeclarationNamesInFile(S,A);return Fi(R,L=>{let G=C.getTypeChecker().getSymbolAtLocation(L),U=bC(L);if(G&&U)return LR.createDefinitionInfo(U,C.getTypeChecker(),G,U,!0)})}}getEmitOutput(t){let{file:r,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(r)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let o=i.getLanguageService().getEmitOutput(r);return t.richResponse?{...o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(o.diagnostics):o.diagnostics.map(s=>YO(s,!0))}:o}mapJSDocTagInfo(t,r,i){return t?t.map(o=>{var s;return{...o,text:i?this.mapDisplayParts(o.text,r):(s=o.text)==null?void 0:s.map(l=>l.text).join("")}}):[]}mapDisplayParts(t,r){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,r)}):[]}mapSignatureHelpItems(t,r,i){return t.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,r),parameters:o.parameters.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,r)})),tags:this.mapJSDocTagInfo(o.tags,r,i)}))}mapDefinitionInfo(t,r){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,r),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(x.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,r,i){let o=i.getLanguageService(),s=o.toLineColumnOffset(t,r.start),l=o.toLineColumnOffset(t,Al(r));return{file:t,start:{line:s.line+1,offset:s.character+1},end:{line:l.line+1,offset:l.character+1}}}toFileSpanWithContext(t,r,i,o){let s=this.toFileSpan(t,r,o),l=i&&this.toFileSpan(t,i,o);return l?{...s,contextStart:l.start,contextEnd:l.end}:s}getTypeDefinition(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(r,o)||ql,i);return this.mapDefinitionInfo(s,i)}mapImplementationLocations(t,r){return t.map(i=>{let o=GMe(i,r);return o?{...o,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=this.mapImplementationLocations(o.getLanguageService().getImplementationAtPosition(i,s)||ql,o);return r?l.map(({fileName:d,textSpan:p,contextSpan:h})=>this.toFileSpanWithContext(d,p,h,o)):l.map(xZ.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?ql:this.getDiagnosticsWorker(t,!1,(i,o)=>i.getLanguageService().getSyntacticDiagnostics(o),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:r,project:i}=this.getConfigFileAndProject(t);return r?this.getConfigFileDiagnostics(r,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(o,s)=>o.getLanguageService().getSemanticDiagnostics(s).filter(l=>!!l.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:r}=this.getConfigFileAndProject(t);return r?ql:this.getDiagnosticsWorker(t,!0,(i,o)=>i.getLanguageService().getSuggestionDiagnostics(o),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getJsxClosingTagAtPosition(r,o);return s===void 0?void 0:{newText:s.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=i.getLinkedEditingRangeAtPosition(r,o),l=this.projectService.getScriptInfoForNormalizedPath(r);if(!(l===void 0||s===void 0))return het(s,l)}getDocumentHighlights(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.getPositionInFile(t,i),l=o.getLanguageService().getDocumentHighlights(i,s,t.filesToSearch);return l?r?l.map(({fileName:d,highlightSpans:p})=>{let h=o.getScriptInfo(d);return{file:d,highlightSpans:p.map(({textSpan:m,kind:v,contextSpan:E})=>({...mme(m,E,h),kind:v}))}}):l:ql}provideInlayHints(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);return i.getLanguageService().provideInlayHints(r,t,this.getPreferences(r)).map(l=>{let{position:d,displayParts:p}=l;return{...l,position:o.positionToLineOffset(d),displayParts:p?.map(({text:h,span:m,file:v})=>{if(m){x.assertIsDefined(v,"Target file should be defined together with its span.");let E=this.projectService.getScriptInfo(v);return{text:h,span:{start:E.positionToLineOffset(m.start),end:E.positionToLineOffset(m.start+m.length),file:v}}}else return{text:h}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,r,i,o){let{project:s}=this.getFileAndProjectWorker(t,r);return up(s),{configFileName:s.getProjectName(),languageServiceDisabled:!s.languageServiceEnabled,fileNames:i?s.getFileNames(!1,o):void 0}}getRenameInfo(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getPositionInFile(t,r),s=this.getPreferences(r);return i.getLanguageService().getRenameInfo(r,o,s)}getProjects(t,r,i){let o,s;if(t.projectFileName){let l=this.getProject(t.projectFileName);l&&(o=[l])}else{let l=r?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(l)r||this.projectService.ensureDefaultProjectForFile(l);else return i?ql:(this.projectService.logErrorForScriptInfoNotFound(t.file),vv.ThrowNoProject());o=l.containingProjects,s=this.projectService.getSymlinkedProjects(l)}return o=Cr(o,l=>l.languageServiceEnabled&&!l.isOrphan()),!i&&(!o||!o.length)&&!s?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),vv.ThrowNoProject()):s?{projects:o,symLinkedProjects:s}:o}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return vv.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,r){let i=js(t.file),o=this.getPositionInFile(t,i),s=this.getProjects(t),l=this.getDefaultProject(t),d=this.getPreferences(i),p=this.mapRenameInfo(l.getLanguageService().getRenameInfo(i,o,d),x.checkDefined(this.projectService.getScriptInfo(i)));if(!p.canRename)return r?{info:p,locs:[]}:[];let h=cet(s,l,{fileName:t.file,pos:o},!!t.findInStrings,!!t.findInComments,d,this.host.useCaseSensitiveFileNames);return r?{info:p,locs:this.toSpanGroups(h)}:h}mapRenameInfo(t,r){if(t.canRename){let{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:d,kindModifiers:p,triggerSpan:h}=t;return{canRename:i,fileToRename:o,displayName:s,fullDisplayName:l,kind:d,kindModifiers:p,triggerSpan:J_(h,r)}}else return t}toSpanGroups(t){let r=new Map;for(let{fileName:i,textSpan:o,contextSpan:s,originalContextSpan:l,originalTextSpan:d,originalFileName:p,...h}of t){let m=r.get(i);m||r.set(i,m={file:i,locs:[]});let v=x.checkDefined(this.projectService.getScriptInfo(i));m.locs.push({...mme(o,s,v),...h})}return bo(r.values())}getReferences(t,r){let i=js(t.file),o=this.getProjects(t),s=this.getPositionInFile(t,i),l=uet(o,this.getDefaultProject(t),{fileName:t.file,pos:s},this.host.useCaseSensitiveFileNames,this.logger);if(!r)return l;let d=this.getPreferences(i),p=this.getDefaultProject(t),h=p.getScriptInfoForNormalizedPath(i),m=p.getLanguageService().getQuickInfoAtPosition(i,s),v=m?yO(m.displayParts):"",E=m&&m.textSpan,S=E?h.positionToLineOffset(E.start).offset:0,A=E?h.getSnapshot().getText(E.start,Al(E)):"";return{refs:ta(l,R=>R.references.map(L=>jMe(this.projectService,L,d))),symbolName:A,symbolStartOffset:S,symbolDisplayString:v}}getFileReferences(t,r){let i=this.getProjects(t),o=t.file,s=this.getPreferences(js(o)),l=[],d=A$(this.host.useCaseSensitiveFileNames);return fme(i,void 0,h=>{if(h.getCancellationToken().isCancellationRequested())return;let m=h.getLanguageService().getFileReferences(o);if(m)for(let v of m)d.has(v)||(l.push(v),d.add(v))}),r?{refs:l.map(h=>jMe(this.projectService,h,s)),symbolName:`"${t.file}"`}:l}openClientFile(t,r,i,o){this.projectService.openClientFileWithNormalizedPath(t,r,i,!1,o)}getPosition(t,r){return t.position!==void 0?t.position:r.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,r){let i=this.projectService.getScriptInfoForNormalizedPath(r);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:r,project:i}=this.getFileAndProject(t);return{file:r,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,r){let i=js(t),o=this.getProject(r)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:o}}getOutliningSpans(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getOutliningSpans(i);if(r){let l=this.projectService.getScriptInfoForNormalizedPath(i);return s.map(d=>({textSpan:J_(d.textSpan,l),hintSpan:J_(d.hintSpan,l),bannerText:d.bannerText,autoCollapse:d.autoCollapse,kind:d.kind}))}else return s}getTodoComments(t){let{file:r,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(r,t.descriptors)}getDocCommentTemplate(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getDocCommentTemplateAtPosition(r,o,this.getPreferences(r),this.getFormatOptions(r))}getSpanOfEnclosingComment(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.onlyMultiLine,s=this.getPositionInFile(t,r);return i.getSpanOfEnclosingComment(r,s,o)}getIndentation(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r),s=t.options?zR(t.options):this.getFormatOptions(r),l=i.getIndentationAtPosition(r,o,s);return{position:o,indentation:l}}getBreakpointStatement(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getBreakpointStatementAtPosition(r,o)}getNameOrDottedNameSpan(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.getNameOrDottedNameSpan(r,o,o)}isValidBraceCompletion(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.getPositionInFile(t,r);return i.isValidBraceCompletionAtPosition(r,o,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,s));if(!l)return;let d=!!this.getPreferences(i).displayPartsForJSDoc;if(r){let p=yO(l.displayParts);return{kind:l.kind,kindModifiers:l.kindModifiers,start:s.positionToLineOffset(l.textSpan.start),end:s.positionToLineOffset(Al(l.textSpan)),displayString:p,documentation:d?this.mapDisplayParts(l.documentation,o):yO(l.documentation),tags:this.mapJSDocTagInfo(l.tags,o,d)}}else return d?l:{...l,tags:this.mapJSDocTagInfo(l.tags,o,!1)}}getFormattingEditsForRange(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=o.lineOffsetToPosition(t.endLine,t.endOffset),d=i.getFormattingEditsForRange(r,s,l,this.getFormatOptions(r));if(d)return d.map(p=>this.convertTextChangeToCodeEdit(p,o))}getFormattingEditsForRangeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?zR(t.options):this.getFormatOptions(r);return i.getFormattingEditsForRange(r,t.position,t.endPosition,o)}getFormattingEditsForDocumentFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?zR(t.options):this.getFormatOptions(r);return i.getFormattingEditsForDocument(r,o)}getFormattingEditsAfterKeystrokeFull(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=t.options?zR(t.options):this.getFormatOptions(r);return i.getFormattingEditsAfterKeystroke(r,t.position,t.key,o)}getFormattingEditsAfterKeystroke(t){let{file:r,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(r),s=o.lineOffsetToPosition(t.line,t.offset),l=this.getFormatOptions(r),d=i.getFormattingEditsAfterKeystroke(r,s,t.key,l);if(t.key===`
`&&(!d||d.length===0||aet(d,s))){let{lineText:p,absolutePosition:h}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(p&&p.search("\\S")<0){let m=i.getIndentationAtPosition(r,s,l),v=0,E,S;for(E=0,S=p.length;E<S;E++)if(p.charAt(E)===" ")v++;else if(p.charAt(E)===" ")v+=l.tabSize;else break;if(m!==v){let A=h+E;d.push({span:Gl(h,A),newText:uc.getIndentationString(m,l)})}}}if(d)return d.map(p=>({start:o.positionToLineOffset(p.span.start),end:o.positionToLineOffset(Al(p.span)),newText:p.newText?p.newText:""}))}getCompletions(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getLanguageService().getCompletionsAtPosition(i,l,{...Zfe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(d===void 0)return;if(r==="completions-full")return d;let p=t.prefix||"",h=Fi(d.entries,v=>{if(d.isMemberCompletion||Ui(v.name.toLowerCase(),p.toLowerCase())){let{name:E,kind:S,kindModifiers:A,sortText:C,insertText:R,filterText:L,replacementSpan:G,hasAction:U,source:K,sourceDisplay:F,labelDetails:oe,isSnippet:W,isRecommended:$,isPackageJsonImport:de,isImportStatementCompletion:fe,data:q}=v,H=G?J_(G,s):void 0;return{name:E,kind:S,kindModifiers:A,sortText:C,insertText:R,filterText:L,replacementSpan:H,isSnippet:W,hasAction:U||void 0,source:K,sourceDisplay:F,labelDetails:oe,isRecommended:$,isPackageJsonImport:de,isImportStatementCompletion:fe,data:q}}});return r==="completions"?(d.metadata&&(h.metadata=d.metadata),h):{...d,optionalReplacementSpan:d.optionalReplacementSpan&&J_(d.optionalReplacementSpan,s),entries:h}}getCompletionEntryDetails(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.projectService.getFormatCodeOptions(i),p=!!this.getPreferences(i).displayPartsForJSDoc,h=Fi(t.entryNames,m=>{let{name:v,source:E,data:S}=typeof m=="string"?{name:m,source:void 0,data:void 0}:m;return o.getLanguageService().getCompletionEntryDetails(i,l,v,d,E,this.getPreferences(i),S?Fo(S,Eet):void 0)});return r?p?h:h.map(m=>({...m,tags:this.mapJSDocTagInfo(m.tags,o,!1)})):h.map(m=>({...m,codeActions:nn(m.codeActions,v=>this.mapCodeAction(v)),documentation:this.mapDisplayParts(m.documentation,o),tags:this.mapJSDocTagInfo(m.tags,o,p)}))}getCompileOnSaveAffectedFileList(t){let r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?set(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;let l=o.getCompilationSettings();if(!(l.noEmit||Yc(s.fileName)&&!oet(l)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!ss(l)}}):ql}emitFile(t){let{file:r,project:i}=this.getFileAndProject(t);if(i||vv.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:l}=i.emitFile(o,(d,p,h)=>this.host.writeFile(d,p,h));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(l):l.map(d=>YO(d,!0))}:!s}getSignatureHelpItems(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getLanguageService().getSignatureHelpItems(i,l,t),p=!!this.getPreferences(i).displayPartsForJSDoc;if(d&&r){let h=d.applicableSpan;return{...d,applicableSpan:{start:s.positionToLineOffset(h.start),end:s.positionToLineOffset(h.start+h.length)},items:this.mapSignatureHelpItems(d.items,o,p)}}else return p||!d?d:{...d,items:d.items.map(h=>({...h,tags:this.mapJSDocTagInfo(h.tags,o,!1)}))}}toPendingErrorCheck(t){let r=js(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){let r=this.projectService.getScriptInfo(t.file);x.assert(!!r),r.textStorage.switchToScriptVersionCache();let i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,PZ({span:{start:i,length:o-i},newText:t.insertString})))}reload(t,r){let i=js(t.file),o=t.tmpfile===void 0?void 0:js(t.tmpfile),s=this.projectService.getScriptInfoForNormalizedPath(i);s&&(this.changeSeq++,s.reloadFromFile(o)&&this.doOutput(void 0,"reload",r,!0))}saveToTmp(t,r){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;let r=Yo(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return nn(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>J_(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>J_(i,r)),nameSpan:t.nameSpan&&J_(t.nameSpan,r),childItems:nn(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){let i=this.getFullNavigateToItems(t);return r?ta(i,({project:o,navigateToItems:s})=>s.map(l=>{let d=o.getScriptInfo(l.fileName),p={name:l.name,kind:l.kind,kindModifiers:l.kindModifiers,isCaseSensitive:l.isCaseSensitive,matchKind:l.matchKind,file:l.fileName,start:d.positionToLineOffset(l.textSpan.start),end:d.positionToLineOffset(Al(l.textSpan))};return l.kindModifiers&&l.kindModifiers!==""&&(p.kindModifiers=l.kindModifiers),l.containerName&&l.containerName.length>0&&(p.containerName=l.containerName),l.containerKind&&l.containerKind.length>0&&(p.containerKind=l.containerKind),p})):ta(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){let{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){x.assertIsDefined(t.file);let{file:E,project:S}=this.getFileAndProject(t);return[{project:S,navigateToItems:S.getLanguageService().getNavigateToItems(i,o,E)}]}let l=this.getHostPreferences(),d=[],p=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(E=>h(E));else{let E=this.getProjects(t);fme(E,void 0,S=>h(S))}return d;function h(E){let S=E.getLanguageService().getNavigateToItems(i,o,void 0,E.isNonTsProject(),l.excludeLibrarySymbolsInNavTo),A=Cr(S,C=>m(C)&&!I$(bP(C),E));A.length&&d.push({project:E,navigateToItems:A})}function m(E){let S=E.name;if(!p.has(S))return p.set(S,[E]),!0;let A=p.get(S);for(let C of A)if(v(C,E))return!1;return A.push(E),!0}function v(E,S){return E===S?!0:!E||!S?!1:E.containerKind===S.containerKind&&E.containerName===S.containerName&&E.fileName===S.fileName&&E.isCaseSensitive===S.isCaseSensitive&&E.kind===S.kind&&E.kindModifiers===S.kindModifiers&&E.matchKind===S.matchKind&&E.name===S.name&&E.textSpan.start===S.textSpan.start&&E.textSpan.length===S.textSpan.length}}getSupportedCodeFixes(t){if(!t)return OK();if(t.file){let{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}let r=this.getProject(t.projectFileName);return r||vv.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),x.checkDefined(i===void 0?o:i);function s(l){return l.position!==void 0?l.position:r.lineOffsetToPosition(l.line,l.offset)}}getRange(t,r){let{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),l=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(l===void 0)return{edits:[]};if(r){let{renameFilename:d,renameLocation:p,edits:h}=l,m;if(d!==void 0&&p!==void 0){let v=o.getScriptInfoForNormalizedPath(js(d));m=_me(hR(v.getSnapshot()),d,p,h)}return{renameLocation:m,renameFilename:d,edits:this.mapTextChangesToCodeEdits(h),notApplicableReason:l.notApplicableReason}}return l}getMoveToRefactoringFileSuggestions(t){let{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}organizeImports(t,r){x.assert(t.scope.type==="file");let{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){let i=js(t.oldFilePath),o=js(t.newFilePath),s=this.getHostFormatOptions(),l=this.getHostPreferences(),d=new Set,p=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(h=>{let m=h.getLanguageService().getEditsForFileRename(i,o,s,l),v=[];for(let E of m)d.has(E.fileName)||(p.push(E),v.push(E.fileName));for(let E of v)d.add(E)}),r?p.map(h=>this.mapTextChangeToCodeEdit(h)):p}getCodeFixes(t,r){let{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:l,endPosition:d}=this.getStartAndEndPosition(t,s),p;try{p=o.getLanguageService().getCodeFixesAtPosition(i,l,d,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(h){let m=o.getLanguageService(),v=[...m.getSyntacticDiagnostics(i),...m.getSemanticDiagnostics(i),...m.getSuggestionDiagnostics(i)].map(S=>WM(l,d-l,S.start,S.length)&&S.code),E=t.errorCodes.find(S=>!v.includes(S));throw E!==void 0&&(h.message=`BADCLIENT: Bad error code, ${E} not found in range ${l}..${d} (found: ${v.join(", ")}); could have caused this error:
${h.message}`),h}return r?p.map(h=>this.mapCodeFixAction(h)):p}getCombinedCodeFix({scope:t,fixId:r},i){x.assert(t.type==="file");let{file:o,project:s}=this.getFileAndProject(t.args),l=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(l.changes),commands:l.commands}:l}applyCodeActionCommand(t){let r=t.command;for(let i of yA(r)){let{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(l=>{},l=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:l}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:l}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){let r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),x.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>_et(i,r))}:vet(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getPosition(t,s),d=o.getBraceMatchingAtPosition(i,l);return d?r?d.map(p=>J_(p,s)):d:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;let{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;let l=o.filter(C=>!C.includes("lib.d.ts"));if(l.length===0)return;let d=[],p=[],h=[],m=[],v=js(i),E=this.projectService.ensureDefaultProjectForFile(v);for(let C of l)this.getCanonicalFileName(C)===this.getCanonicalFileName(i)?d.push(C):this.projectService.getScriptInfo(C).isScriptOpen()?p.push(C):Yc(C)?m.push(C):h.push(C);let A=[...d,...p,...h,...m].map(C=>({fileName:C,project:E}));this.updateErrorCheck(t,A,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){let{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),l=x.checkDefined(this.projectService.getScriptInfo(o));return nn(i,d=>{let p=this.getPosition(d,l),h=s.getSmartSelectionRange(o,p);return r?this.mapSelectionRange(h,l):h})}toggleLineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),l=this.getRange(t,s),d=o.toggleLineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}toggleMultilineComment(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.toggleMultilineComment(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}commentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.commentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}uncommentSelection(t,r){let{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),l=this.getRange(t,s),d=o.uncommentSelection(i,l);if(r){let p=this.projectService.getScriptInfoForNormalizedPath(i);return d.map(h=>this.convertTextChangeToCodeEdit(h,p))}return d}mapSelectionRange(t,r){let i={textSpan:J_(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){let r=js(t),i=this.projectService.getScriptInfoForNormalizedPath(r);return i||(this.projectService.logErrorForScriptInfoNotFound(r),vv.ThrowNoProject())}toProtocolCallHierarchyItem(t){let r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:J_(t.span,r),selectionSpan:J_(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){let r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>J_(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>J_(i,r))}}prepareCallHierarchy(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){let s=this.getPosition(t,o),l=i.getLanguageService().prepareCallHierarchy(r,s);return l&&PJ(l,d=>this.toProtocolCallHierarchyItem(d))}}provideCallHierarchyIncomingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyIncomingCall(l))}provideCallHierarchyOutgoingCalls(t){let{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(l=>this.toProtocolCallHierarchyOutgoingCall(l,o))}getCanonicalFileName(t){let r=this.host.useCaseSensitiveFileNames?t:D_(t);return Yo(r)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){x.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){x.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r){try{return this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t)}}executeCommand(t){let r=this.handlers.get(t.command);if(r){let i=this.executeWithRequestId(t.seq,()=>r(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${Ub(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,l,d,p,h,m,v,E;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let S;this.logger.hasLevel(2)&&(S=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${qN(this.toStringMessage(t))}`));let A,C;try{A=this.parseMessage(t),C=A.arguments&&A.arguments.file?A.arguments:void 0,(r=qn)==null||r.instant(qn.Phase.Session,"request",{seq:A.seq,command:A.command}),(i=Pd)==null||i.logStartCommand(""+A.command,this.toStringMessage(t).substring(0,100)),(o=qn)==null||o.push(qn.Phase.Session,"executeCommand",{seq:A.seq,command:A.command},!0);let{response:R,responseRequired:L}=this.executeCommand(A);if((s=qn)==null||s.pop(),this.logger.hasLevel(2)){let G=iet(this.hrtime(S)).toFixed(4);L?this.logger.perftrc(`${A.seq}::${A.command}: elapsed time (in milliseconds) ${G}`):this.logger.perftrc(`${A.seq}::${A.command}: async elapsed time (in milliseconds) ${G}`)}(l=Pd)==null||l.logStopCommand(""+A.command,"Success"),(d=qn)==null||d.instant(qn.Phase.Session,"response",{seq:A.seq,command:A.command,success:!!R}),R?this.doOutput(R,A.command,A.seq,!0):L&&this.doOutput(void 0,A.command,A.seq,!1,"No content available.")}catch(R){if((p=qn)==null||p.popAll(),R instanceof k1){(h=Pd)==null||h.logStopCommand(""+(A&&A.command),"Canceled: "+R),(m=qn)==null||m.instant(qn.Phase.Session,"commandCanceled",{seq:A?.seq,command:A?.command}),this.doOutput({canceled:!0},A.command,A.seq,!0);return}this.logErrorWorker(R,this.toStringMessage(t),C),(v=Pd)==null||v.logStopCommand(""+(A&&A.command),"Error: "+R),(E=qn)==null||E.instant(qn.Phase.Session,"commandError",{seq:A?.seq,command:A?.command,message:R.message}),this.doOutput(void 0,A?A.command:"unknown",A?A.seq:0,!1,"Error processing request. "+R.message+`
`+R.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),VI,x$,qMe,JMe,b7,E7,bme,EP,jI,$O,Aet=pt({"src/server/scriptVersionCache.ts"(){"use strict";Ty(),hT(),VI=4,x$=(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))(x$||{}),qMe=class{constructor(){this.goSubtree=!0,this.lineIndex=new EP,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new jI,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=EP.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let o,s;for(let d=this.endBranch.length-1;d>=0;d--)this.endBranch[d].updateCounts(),this.endBranch[d].charCount()===0&&(s=this.endBranch[d],d>0?o=this.endBranch[d-1]:o=this.branchNode);s&&o.remove(s);let l=this.startPath[this.startPath.length-1];if(i.length>0)if(l.text=i[0],i.length>1){let d=new Array(i.length-1),p=l;for(let v=1;v<i.length;v++)d[v-1]=new $O(i[v]);let h=this.startPath.length-2;for(;h>=0;){let v=this.startPath[h];d=v.insertAt(p,d),h--,p=v}let m=d.length;for(;m>0;){let v=new jI;v.add(this.lineIndex.root),d=v.insertAt(this.lineIndex.root,d),m=d.length,this.lineIndex.root=v}this.lineIndex.root.updateCounts()}else for(let d=this.startPath.length-2;d>=0;d--)this.startPath[d].updateCounts();else{this.startPath[this.startPath.length-2].remove(l);for(let p=this.startPath.length-2;p>=0;p--)this.startPath[p].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){let s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let l;function d(p){return p.isLeaf()?new $O(""):new jI}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(l=d(r),s.add(l),this.startPath.push(l));break;case 2:this.state!==4?(l=d(r),s.add(l),this.startPath.push(l)):r.isLeaf()||(l=d(r),s.add(l),this.endBranch.push(l));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(l=d(r),s.add(l),this.endBranch.push(l));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(l)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},JMe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return FM(qc(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},b7=class _A{constructor(){this.changes=[],this.versions=new Array(_A.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%_A.maxVersions}currentVersionToIndex(){return this.currentVersion%_A.maxVersions}edit(t,r,i){this.changes.push(new JMe(t,r,i)),(this.changes.length>_A.changeNumberThreshold||r>_A.changeLengthThreshold||i&&i.length>_A.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(let i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new bme(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=_A.maxVersions&&(this.minVersion=this.currentVersion-_A.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return qc(o,s)}getTextChangesBetweenVersions(t,r){if(t<r)if(t>=this.minVersion){let i=[];for(let o=t+1;o<=r;o++){let s=this.versions[this.versionToIndex(o)];for(let l of s.changesSincePreviousVersion)i.push(l.getTextChangeRange())}return xee(i)}else return;else return eL}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let r=new _A,i=new bme(0,r,new EP);r.versions[r.currentVersion]=i;let o=EP.linesFromText(t);return i.index.load(o.lines),r}},b7.changeNumberThreshold=8,b7.changeLengthThreshold=256,b7.maxVersions=8,E7=b7,bme=class SWe{constructor(t,r,i,o=ql){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof SWe&&this.cache===t.cache)return this.version<=t.version?eL:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},EP=class tve{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let r=this.getLineCount();if(t<=r){let{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let r=[];for(let i=0;i<t.length;i++)r[i]=new $O(t[i]);this.root=tve.buildTreeFromBottom(r)}else this.root=new jI}walk(t,r,i){this.root.walk(t,r,i)}getText(t,r){let i="";return r>0&&t<this.root.charCount()&&this.walk(t,r,{goSubtree:!0,done:!1,leaf:(o,s,l)=>{i=i.concat(l.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());let o={goSubtree:!0,done:!1,leaf(s,l,d){t(d,s,l)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return x.assert(r===0),i!==void 0?(this.load(tve.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){let d=this.getText(0,this.root.charCount());o=d.slice(0,t)+i+d.slice(t+r)}let s=new qMe,l=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let d=this.getText(t,1);i?i=d+i:i=d,r=0,l=!0}else if(r>0){let d=t+r,{zeroBasedColumn:p,lineText:h}=this.positionToColumnAndLineText(d);p===0&&(r+=h.length,i=i?i+h:h)}if(this.root.walk(t,r,s),s.insertLines(i,l),this.checkEdits){let d=s.lineIndex.getText(0,s.lineIndex.getLength());x.assert(o===d,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length<VI)return new jI(t);let r=new Array(Math.ceil(t.length/VI)),i=0;for(let o=0;o<r.length;o++){let s=Math.min(i+VI,t.length);r[o]=new jI(t.slice(i,s)),i=s}return this.buildTreeFromBottom(r)}static linesFromText(t){let r=IA(t);if(r.length===0)return{lines:[],lineMap:r};let i=new Array(r.length),o=r.length-1;for(let l=0;l<o;l++)i[l]=t.substring(r[l],r[l+1]);let s=t.substring(r[o]);return s.length>0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},jI=class nve{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),l=t;for(;l>=s;)this.skipChild(l,r,o,i,0),l-=s,o++,s=this.children[o].charCount();if(l+r<=s){if(this.execWalk(l,r,i,o,2))return}else{if(this.execWalk(l,s-l,i,o,1))return;let d=r-(s-l);for(o++,s=this.children[o].charCount();d>s;){if(this.execWalk(0,s,i,o,3))return;d-=s,o++,s=this.children[o].charCount()}if(d>0&&this.execWalk(0,d,i,o,4))return}if(i.pre){let d=this.children.length;if(o<d-1)for(let p=o+1;p<d;p++)this.skipChild(0,0,p,i,5)}}charOffsetToLineInfo(t,r){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:r,lineText:void 0};for(let s of this.children){if(s.charCount()>r)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let o=x.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(let i of this.children){let o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r,i=this.children.length;t++;let o=t;if(t<i){for(r=new nve;t<i;)r.add(this.children[t]),t++;r.updateCounts()}return this.children.length=o,r}remove(t){let r=this.findChildIndex(t),i=this.children.length;if(r<i-1)for(let o=r;o<i-1;o++)this.children[o]=this.children[o+1];this.children.pop()}findChildIndex(t){let r=this.children.indexOf(t);return x.assert(r!==-1),r}insertAt(t,r){let i=this.findChildIndex(t),o=this.children.length,s=r.length;if(o<VI&&i===o-1&&s===1)return this.add(r[0]),this.updateCounts(),[];{let l=this.splitAfter(i),d=0;for(i++;i<VI&&d<s;)this.children[i]=r[d],i++,d++;let p=[],h=0;if(d<s){h=Math.ceil((s-d)/VI),p=new Array(h);let m=0;for(let E=0;E<h;E++)p[E]=new nve;let v=p[0];for(;d<s;)v.add(r[d]),d++,v.children.length===VI&&(m++,v=p[m]);for(let E=p.length-1;E>=0;E--)p[E].children.length===0&&p.pop()}l&&p.push(l),this.updateCounts();for(let m=0;m<h;m++)p[m].updateCounts();return p}}add(t){this.children.push(t),x.assert(this.children.length<=VI)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},$O=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,r){r.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}}}}),Eme,Sme,Iet=pt({"src/server/typingInstallerAdapter.ts"(){"use strict";Ty(),hT(),Eme=class TWe{constructor(t,r,i,o,s,l){this.telemetryEnabled=t,this.logger=r,this.host=i,this.globalTypingsCacheLocation=o,this.event=s,this.maxActiveRequestCount=l,this.activeRequestCount=0,this.requestQueue=mM(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var r;return s_.validatePackageName(t)!==s_.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((r=this.typesRegistryCache)!=null&&r.has(t)))}installPackage(t){this.packageInstallId++;let r={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((o,s)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){let o=Rfe(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${Ub(o)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(o):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${o.projectName}`),this.requestQueue.enqueue(o),this.requestMap.set(o.projectName,o))}handleMessage(t){var r,i;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${Ub(t)}`),t.kind){case r3:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case Nk:{let o=(r=this.packageInstalledPromise)==null?void 0:r.get(t.id);x.assertIsDefined(o,"Should find the promise for package install"),(i=this.packageInstalledPromise)==null||i.delete(t.id),t.success?o.resolve({successMessage:t.message}):o.reject(t.message),this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case hq:{let o={message:t.message};this.event(o,"typesInstallerInitializationFailed");break}case i3:{let o={eventId:t.eventId,packages:t.packagesToInstall};this.event(o,"beginInstallTypes");break}case o3:{if(this.telemetryEnabled){let l={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}};this.event(l,"telemetry")}let o={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess};this.event(o,"endInstallTypes");break}case Ck:{this.projectService.updateTypingsForProject(t);break}case Dk:{for(this.activeRequestCount>0?this.activeRequestCount--:x.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){let o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case JN:this.projectService.watchTypingLocations(t);break;default:}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${Ub(t)}`),this.installer.send(t)},TWe.requestDelayMillis,`${t.projectName}::${t.kind}`)}},Eme.requestDelayMillis=100,Sme=Eme}}),KMe={};Ra(KMe,{ActionInvalidate:()=>Ck,ActionPackageInstalled:()=>Nk,ActionSet:()=>Dk,ActionWatchTypingLocations:()=>JN,Arguments:()=>gq,AutoImportProviderProject:()=>f$,AuxiliaryProject:()=>u$,CharRangeSection:()=>x$,CloseFileWatcherEvent:()=>g7,CommandNames:()=>gme,ConfigFileDiagEvent:()=>p7,ConfiguredProject:()=>m$,CreateDirectoryWatcherEvent:()=>h7,CreateFileWatcherEvent:()=>_7,Errors:()=>vv,EventBeginInstallTypes:()=>i3,EventEndInstallTypes:()=>o3,EventInitializationFailed:()=>hq,EventTypesRegistry:()=>r3,ExternalProject:()=>o7,GcTimer:()=>i$,InferredProject:()=>d$,LargeFileReferencedEvent:()=>u7,LineIndex:()=>EP,LineLeaf:()=>$O,LineNode:()=>jI,LogLevel:()=>e$,Msg:()=>t$,OpenFileInfoTelemetryEvent:()=>v$,Project:()=>_T,ProjectInfoTelemetryEvent:()=>m7,ProjectKind:()=>yP,ProjectLanguageServiceStateEvent:()=>f7,ProjectLoadingFinishEvent:()=>d7,ProjectLoadingStartEvent:()=>c7,ProjectReferenceProjectLoadKind:()=>E$,ProjectService:()=>S$,ProjectsUpdatedInBackgroundEvent:()=>KO,ScriptInfo:()=>s$,ScriptVersionCache:()=>E7,Session:()=>yme,TextStorage:()=>a$,ThrottledOperations:()=>r$,TypingsCache:()=>l$,TypingsInstallerAdapter:()=>Sme,allFilesAreJsOrDts:()=>Xfe,allRootFilesAreJsOrDts:()=>Kfe,asNormalizedPath:()=>TMe,convertCompilerOptions:()=>a7,convertFormatOptions:()=>zR,convertScriptKindName:()=>h$,convertTypeAcquisition:()=>Qfe,convertUserPreferences:()=>Zfe,convertWatchOptions:()=>JO,countEachFileTypes:()=>HO,createInstallTypingsRequest:()=>Rfe,createModuleSpecifierCache:()=>cme,createNormalizedPathMap:()=>AMe,createPackageJsonCache:()=>dme,createSortedArray:()=>Mfe,emptyArray:()=>ql,findArgument:()=>uAe,forEachResolvedProjectReferenceProject:()=>BR,formatDiagnosticToProtocol:()=>YO,formatMessage:()=>ume,getBaseConfigFileName:()=>n$,getLocationInNewDocument:()=>_me,hasArgument:()=>dAe,hasNoTypeScriptSource:()=>Yfe,indent:()=>qN,isBackgroundProject:()=>qO,isConfigFile:()=>ome,isConfiguredProject:()=>Yb,isDynamicFileName:()=>UO,isExternalProject:()=>c$,isInferredProject:()=>FR,isInferredProjectName:()=>Dfe,makeAutoImportProviderProjectName:()=>Nfe,makeAuxiliaryProjectName:()=>Pfe,makeInferredProjectName:()=>Cfe,maxFileSize:()=>l7,maxProgramSizeForNonTsFiles:()=>s7,normalizedPathToPath:()=>jO,nowString:()=>pAe,nullCancellationToken:()=>hme,nullTypingsInstaller:()=>i7,projectContainsInfoDirectly:()=>GI,protocol:()=>Jfe,removeSorted:()=>IMe,stringifyIndented:()=>Ub,toEvent:()=>pme,toNormalizedPath:()=>js,tryConvertScriptKindName:()=>_$,typingsInstaller:()=>Ife,updateProjectIfDirty:()=>up});var hT=pt({"src/server/_namespaces/ts.server.ts"(){"use strict";a3(),xfe(),wZe(),WZe(),FZe(),zZe(),VZe(),qZe(),YZe(),tet(),net(),ret(),Tet(),Aet(),Iet()}}),XMe={};Ra(XMe,{ANONYMOUS:()=>Y3,AccessFlags:()=>HB,AssertionLevel:()=>hB,AssignmentDeclarationKind:()=>eG,AssignmentKind:()=>VV,Associativity:()=>UV,BreakpointResolver:()=>jK,BuilderFileEmit:()=>JH,BuilderProgramKind:()=>KH,BuilderState:()=>Qf,BundleFileSectionKind:()=>vG,CallHierarchy:()=>LI,CharacterCodes:()=>uG,CheckFlags:()=>BB,CheckMode:()=>c4,ClassificationType:()=>wq,ClassificationTypeNames:()=>Oq,CommentDirectiveType:()=>IB,Comparison:()=>q5,CompletionInfoFlags:()=>Dq,CompletionTriggerKind:()=>Tq,Completions:()=>FI,ContainerFlags:()=>wU,ContextFlags:()=>PB,Debug:()=>x,DiagnosticCategory:()=>bM,Diagnostics:()=>f,DocumentHighlights:()=>Z3,ElementFlags:()=>UB,EmitFlags:()=>y8,EmitHint:()=>_G,EmitOnly:()=>RB,EndOfLineState:()=>Pq,EnumKind:()=>zB,ExitStatus:()=>DB,ExportKind:()=>UJ,Extension:()=>pG,ExternalEmitHelpers:()=>mG,FileIncludeKind:()=>d8,FilePreprocessingDiagnosticsKind:()=>xB,FileSystemEntryKind:()=>AG,FileWatcherEventKind:()=>TG,FindAllReferences:()=>ps,FlattenLevel:()=>eH,FlowFlags:()=>yM,ForegroundColorEscapeSequences:()=>zH,FunctionFlags:()=>jV,GeneratedIdentifierFlags:()=>c8,GetLiteralTextFlags:()=>zV,GoToDefinition:()=>LR,HighlightSpanKind:()=>Iq,IdentifierNameMap:()=>SI,IdentifierNameMultiMap:()=>ZU,ImportKind:()=>jJ,ImportsNotUsedAsValues:()=>aG,IndentStyle:()=>xq,IndexFlags:()=>qB,IndexKind:()=>XB,InferenceFlags:()=>QB,InferencePriority:()=>$B,InlayHintKind:()=>Aq,InlayHints:()=>OY,InternalEmitFlags:()=>fG,InternalSymbolName:()=>GB,InvalidatedProjectKind:()=>_q,JSDocParsingMode:()=>EG,JsDoc:()=>Xb,JsTyping:()=>s_,JsxEmit:()=>oG,JsxFlags:()=>TB,JsxReferenceKind:()=>JB,LanguageServiceMode:()=>bq,LanguageVariant:()=>cG,LexicalEnvironmentFlags:()=>gG,ListFormat:()=>yG,LogLevel:()=>vB,MemberOverrideStatus:()=>CB,ModifierFlags:()=>s8,ModuleDetectionKind:()=>tG,ModuleInstanceState:()=>OU,ModuleKind:()=>HD,ModuleResolutionKind:()=>O1,ModuleSpecifierEnding:()=>ZV,NavigateTo:()=>jle,NavigationBar:()=>Zle,NewLineKind:()=>sG,NodeBuilderFlags:()=>MB,NodeCheckFlags:()=>VB,NodeFactoryFlags:()=>sj,NodeFlags:()=>a8,NodeResolutionFeatures:()=>MU,ObjectFlags:()=>m8,OperationCanceledException:()=>k1,OperatorPrecedence:()=>HV,OrganizeImports:()=>Zf,OrganizeImportsMode:()=>Sq,OuterExpressionKinds:()=>hG,OutliningElementsCollector:()=>zY,OutliningSpanKind:()=>Cq,OutputFileType:()=>Nq,PackageJsonAutoImportPreference:()=>yq,PackageJsonDependencyGroup:()=>vq,PatternMatchKind:()=>ez,PollingInterval:()=>b8,PollingWatchKind:()=>iG,PragmaKindFlags:()=>bG,PrivateIdentifierKind:()=>mj,ProcessLevel:()=>iH,ProgramUpdateLevel:()=>bH,QuotePreference:()=>WJ,RelationComparisonResult:()=>l8,Rename:()=>$z,ScriptElementKind:()=>Lq,ScriptElementKindModifier:()=>kq,ScriptKind:()=>h8,ScriptSnapshot:()=>l3,ScriptTarget:()=>lG,SemanticClassificationFormat:()=>Eq,SemanticMeaning:()=>wJ,SemicolonPreference:()=>Rq,SignatureCheckMode:()=>d4,SignatureFlags:()=>_8,SignatureHelp:()=>OO,SignatureKind:()=>KB,SmartSelectionRange:()=>VY,SnippetKind:()=>v8,SortKind:()=>_B,StructureIsReused:()=>u8,SymbolAccessibility:()=>OB,SymbolDisplay:()=>gv,SymbolDisplayPartKind:()=>Mk,SymbolFlags:()=>p8,SymbolFormatFlags:()=>kB,SyntaxKind:()=>o8,SyntheticSymbolKind:()=>wB,Ternary:()=>ZB,ThrottledCancellationToken:()=>VK,TokenClass:()=>Mq,TokenFlags:()=>AB,TransformFlags:()=>g8,TypeFacts:()=>l4,TypeFlags:()=>f8,TypeFormatFlags:()=>LB,TypeMapKind:()=>YB,TypePredicateKind:()=>WB,TypeReferenceSerializationKind:()=>FB,UnionReduction:()=>NB,UpToDateStatusType:()=>uq,VarianceFlags:()=>jB,Version:()=>zf,VersionRange:()=>hM,WatchDirectoryFlags:()=>dG,WatchDirectoryKind:()=>rG,WatchFileKind:()=>nG,WatchLogLevel:()=>EH,WatchType:()=>dc,accessPrivateIdentifier:()=>Boe,addDisposableResourceHelper:()=>s6,addEmitFlags:()=>Zm,addEmitHelper:()=>$A,addEmitHelpers:()=>ag,addInternalEmitFlags:()=>XA,addNodeFactoryPatcher:()=>Lbe,addObjectAllocatorPatcher:()=>Vne,addRange:()=>Pr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>iN,addSyntheticTrailingComment:()=>kF,addToSeen:()=>Jf,advancedAsyncSuperHelper:()=>y2,affectsDeclarationPathOptionDeclarations:()=>mU,affectsEmitOptionDeclarations:()=>fU,allKeysStartWithDot:()=>t4,altDirectorySeparator:()=>DM,and:()=>Zw,append:()=>pn,appendIfUnique:()=>Kh,arrayFrom:()=>bo,arrayIsEqualTo:()=>mm,arrayIsHomogeneous:()=>lre,arrayIsSorted:()=>Hw,arrayOf:()=>OZ,arrayReverseIterator:()=>tB,arrayToMap:()=>PE,arrayToMultiMap:()=>fM,arrayToNumericMap:()=>WZ,arraysEqual:()=>dM,assertType:()=>fve,assign:()=>R1,assignHelper:()=>GF,asyncDelegator:()=>jF,asyncGeneratorHelper:()=>VF,asyncSuperHelper:()=>v2,asyncValues:()=>UF,attachFileToDiagnostics:()=>UA,awaitHelper:()=>QA,awaiterHelper:()=>qF,base64decode:()=>Pne,base64encode:()=>Nne,binarySearch:()=>Vg,binarySearchKey:()=>gA,bindSourceFile:()=>_oe,breakIntoCharacterSpans:()=>wle,breakIntoWordSpans:()=>Wle,buildLinkParts:()=>ale,buildOpts:()=>U6,buildOverload:()=>gMe,bundlerModuleNameResolver:()=>ooe,canBeConvertedToAsync:()=>tK,canHaveDecorators:()=>ZS,canHaveExportModifier:()=>e2,canHaveFlowNode:()=>DL,canHaveIllegalDecorators:()=>jj,canHaveIllegalModifiers:()=>yie,canHaveIllegalType:()=>lEe,canHaveIllegalTypeParameters:()=>vie,canHaveJSDoc:()=>CL,canHaveLocals:()=>M_,canHaveModifiers:()=>Yf,canHaveSymbol:()=>Hm,canJsonReportNoInputFiles:()=>TN,canProduceDiagnostics:()=>T4,canUsePropertyAccess:()=>OV,canWatchAffectingLocation:()=>Jae,canWatchAtTypes:()=>qae,canWatchDirectoryOrFile:()=>U4,cartesianProduct:()=>JZ,cast:()=>Fo,chainBundle:()=>$f,chainDiagnosticMessages:()=>So,changeAnyExtension:()=>xM,changeCompilerHostLikeToUseCache:()=>bk,changeExtension:()=>Nb,changeFullExtension:()=>pee,changesAffectModuleResolution:()=>Y8,changesAffectingProgramStructure:()=>mte,childIsDecorated:()=>hC,classElementOrClassElementParameterIsDecorated:()=>D9,classHasClassThisAssignment:()=>tH,classHasDeclaredOrExplicitlyAssignedName:()=>nH,classHasExplicitlyAssignedName:()=>b4,classOrConstructorParameterIsDecorated:()=>Qg,classPrivateFieldGetHelper:()=>i6,classPrivateFieldInHelper:()=>a6,classPrivateFieldSetHelper:()=>o6,classicNameResolver:()=>uoe,classifier:()=>Kce,cleanExtendedConfigCache:()=>P4,clear:()=>ph,clearMap:()=>Au,clearSharedExtendedConfigFileWatcher:()=>gH,climbPastPropertyAccess:()=>d3,climbPastPropertyOrElementAccess:()=>Lse,clone:()=>aB,cloneCompilerOptions:()=>tJ,closeFileWatcher:()=>vm,closeFileWatcherOf:()=>Qp,codefix:()=>ud,collapseTextChangeRangesAcrossMultipleVersions:()=>xee,collectExternalModuleInfo:()=>XU,combine:()=>x1,combinePaths:()=>wr,commentPragmas:()=>EM,commonOptionsWithBuild:()=>X2,commonPackageFolders:()=>KV,compact:()=>pM,compareBooleans:()=>zv,compareDataObjects:()=>vV,compareDiagnostics:()=>zC,compareDiagnosticsSkipRelatedInformation:()=>tF,compareEmitHelpers:()=>Fre,compareNumberOfDirectorySeparators:()=>$L,comparePaths:()=>Xh,comparePathsCaseInsensitive:()=>Bve,comparePathsCaseSensitive:()=>zve,comparePatternKeys:()=>NU,compareProperties:()=>jZ,compareStringsCaseInsensitive:()=>$w,compareStringsCaseInsensitiveEslintCompatible:()=>BZ,compareStringsCaseSensitive:()=>gd,compareStringsCaseSensitiveUI:()=>_M,compareTextSpans:()=>Yw,compareValues:()=>Ms,compileOnSaveCommandLineOption:()=>J2,compilerOptionsAffectDeclarationPath:()=>Qne,compilerOptionsAffectEmit:()=>$ne,compilerOptionsAffectSemanticDiagnostics:()=>Yne,compilerOptionsDidYouMeanDiagnostics:()=>Q2,compilerOptionsIndicateEsModules:()=>sJ,compose:()=>uve,computeCommonSourceDirectoryOfFilenames:()=>Iae,computeLineAndCharacterOfPosition:()=>W1,computeLineOfPosition:()=>XD,computeLineStarts:()=>IA,computePositionOfLineAndCharacter:()=>R8,computeSignature:()=>oT,computeSignatureWithDiagnostics:()=>jH,computeSuggestionDiagnostics:()=>QJ,computedOptions:()=>Ul,concatenate:()=>ro,concatenateDiagnosticMessageChains:()=>qne,consumesNodeCoreModules:()=>j3,contains:()=>To,containsIgnoredPath:()=>KC,containsObjectRestOrSpread:()=>F2,containsParseError:()=>X1,containsPath:()=>Bf,convertCompilerOptionsForTelemetry:()=>Vie,convertCompilerOptionsFromJson:()=>u0e,convertJsonOption:()=>eT,convertToBase64:()=>Cne,convertToJson:()=>U2,convertToObject:()=>Wie,convertToOptionsWithAbsolutePaths:()=>sU,convertToRelativePath:()=>KD,convertToTSConfig:()=>$Ee,convertTypeAcquisitionFromJson:()=>p0e,copyComments:()=>cT,copyEntries:()=>$8,copyLeadingComments:()=>bR,copyProperties:()=>sB,copyTrailingAsLeadingComments:()=>Qk,copyTrailingComments:()=>nP,couldStartTrivia:()=>hee,countWhere:()=>Wv,createAbstractBuilder:()=>vTe,createAccessorPropertyBackingField:()=>Hj,createAccessorPropertyGetRedirector:()=>Rie,createAccessorPropertySetRedirector:()=>Die,createBaseNodeFactory:()=>Sre,createBinaryExpressionTrampoline:()=>M6,createBindingHelper:()=>Lx,createBuildInfo:()=>_k,createBuilderProgram:()=>UH,createBuilderProgramUsingProgramBuildInfo:()=>Uae,createBuilderStatusReporter:()=>sse,createCacheWithRedirects:()=>SU,createCacheableExportInfoMap:()=>BJ,createCachedDirectoryStructureHost:()=>C4,createClassNamedEvaluationHelperBlock:()=>qoe,createClassThisAssignmentBlock:()=>Uoe,createClassifier:()=>OAe,createCommentDirectivesMap:()=>bte,createCompilerDiagnostic:()=>bl,createCompilerDiagnosticForInvalidCustomType:()=>Mie,createCompilerDiagnosticFromMessageChain:()=>eF,createCompilerHost:()=>xae,createCompilerHostFromProgramHost:()=>sq,createCompilerHostWorker:()=>AH,createDetachedDiagnostic:()=>Ix,createDiagnosticCollection:()=>hx,createDiagnosticForFileFromMessageChain:()=>T9,createDiagnosticForNode:()=>vr,createDiagnosticForNodeArray:()=>Q1,createDiagnosticForNodeArrayFromMessageChain:()=>sL,createDiagnosticForNodeFromMessageChain:()=>eg,createDiagnosticForNodeInSourceFile:()=>vf,createDiagnosticForRange:()=>Mte,createDiagnosticMessageChainFromDiagnostic:()=>Pte,createDiagnosticReporter:()=>Ik,createDocumentPositionMapper:()=>koe,createDocumentRegistry:()=>Ile,createDocumentRegistryInternal:()=>JJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>XH,createEmitHelperFactory:()=>Wre,createEmptyExports:()=>N2,createExpressionForJsxElement:()=>uie,createExpressionForJsxFragment:()=>pie,createExpressionForObjectLiteralElementLike:()=>fie,createExpressionForPropertyName:()=>Wj,createExpressionFromEntityName:()=>P2,createExternalHelpersImportDeclarationIfNeeded:()=>Bj,createFileDiagnostic:()=>Rc,createFileDiagnosticFromMessageChain:()=>aW,createForOfBindingStatement:()=>wj,createGetCanonicalFileName:()=>od,createGetSourceFile:()=>SH,createGetSymbolAccessibilityDiagnosticForNode:()=>cv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>hae,createGetSymbolWalker:()=>hoe,createIncrementalCompilerHost:()=>cq,createIncrementalProgram:()=>ose,createInputFiles:()=>Obe,createInputFilesWithFilePaths:()=>oj,createInputFilesWithFileTexts:()=>aj,createJsxFactoryExpression:()=>Oj,createLanguageService:()=>Vce,createLanguageServiceSourceFile:()=>Az,createMemberAccessForPropertyName:()=>QS,createModeAwareCache:()=>bI,createModeAwareCacheKey:()=>DN,createModuleNotFoundChain:()=>Q8,createModuleResolutionCache:()=>Qx,createModuleResolutionLoader:()=>NH,createModuleResolutionLoaderUsingGlobalCache:()=>$ae,createModuleSpecifierResolutionHost:()=>lT,createMultiMap:()=>bp,createNodeConverters:()=>Are,createNodeFactory:()=>d2,createOptionNameMap:()=>O6,createOverload:()=>QY,createPackageJsonImportFilter:()=>oP,createPackageJsonInfo:()=>DJ,createParenthesizerRules:()=>Tre,createPatternMatcher:()=>Nle,createPrependNodes:()=>WH,createPrinter:()=>Vb,createPrinterWithDefaults:()=>_H,createPrinterWithRemoveComments:()=>y0,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>hH,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>hk,createProgram:()=>w4,createProgramHost:()=>lq,createPropertyNameNodeForIdentifierOrLiteral:()=>vF,createQueue:()=>mM,createRange:()=>qp,createRedirectedBuilderProgram:()=>qH,createResolutionCache:()=>$H,createRuntimeTypeSerializer:()=>$oe,createScanner:()=>Kg,createSemanticDiagnosticsBuilderProgram:()=>gTe,createSet:()=>lB,createSolutionBuilder:()=>kTe,createSolutionBuilderHost:()=>MTe,createSolutionBuilderWithWatch:()=>OTe,createSolutionBuilderWithWatchHost:()=>LTe,createSortedArray:()=>eB,createSourceFile:()=>B2,createSourceMapGenerator:()=>Noe,createSourceMapSource:()=>wbe,createSuperAccessVariableStatement:()=>S4,createSymbolTable:()=>Vo,createSymlinkCache:()=>IV,createSystemWatchFunctions:()=>lee,createTextChange:()=>jk,createTextChangeFromStartLength:()=>A3,createTextChangeRange:()=>FM,createTextRangeFromNode:()=>iJ,createTextRangeFromSpan:()=>T3,createTextSpan:()=>qc,createTextSpanFromBounds:()=>Gl,createTextSpanFromNode:()=>eu,createTextSpanFromRange:()=>yy,createTextSpanFromStringLiteralLikeContent:()=>rJ,createTextWriter:()=>GL,createTokenRange:()=>_V,createTypeChecker:()=>Aoe,createTypeReferenceDirectiveResolutionCache:()=>Q6,createTypeReferenceResolutionLoader:()=>L4,createUnparsedSourceFile:()=>ij,createWatchCompilerHost:()=>CTe,createWatchCompilerHostOfConfigFile:()=>nse,createWatchCompilerHostOfFilesAndCompilerOptions:()=>rse,createWatchFactory:()=>aq,createWatchHost:()=>oq,createWatchProgram:()=>NTe,createWatchStatusReporter:()=>Qae,createWriteFileMeasuringIO:()=>TH,declarationNameToString:()=>is,decodeMappings:()=>qU,decodedTextSpanIntersectsWith:()=>WM,decorateHelper:()=>wF,deduplicate:()=>NE,defaultIncludeSpec:()=>J6,defaultInitCompilerOptions:()=>H6,defaultMaximumTruncationLength:()=>i2,detectSortCaseSensitivity:()=>BD,diagnosticCategoryName:()=>_S,diagnosticToString:()=>uT,directoryProbablyExists:()=>gm,directorySeparator:()=>Os,displayPart:()=>Ru,displayPartsToString:()=>yO,disposeEmitNodes:()=>lj,disposeResourcesHelper:()=>l6,documentSpansEqual:()=>pJ,dumpTracingLegend:()=>oee,elementAt:()=>qg,elideNodes:()=>xie,emitComments:()=>vne,emitDetachedComments:()=>yne,emitFiles:()=>x4,emitFilesAndReportErrors:()=>K4,emitFilesAndReportErrorsAndGetExitStatus:()=>tse,emitModuleKindIsNonNodeESM:()=>nF,emitNewLineBeforeLeadingCommentOfPosition:()=>gne,emitNewLineBeforeLeadingComments:()=>_ne,emitNewLineBeforeLeadingCommentsOfPosition:()=>hne,emitSkippedWithNoDiagnostics:()=>G4,emitUsingBuildInfo:()=>Eae,emptyArray:()=>je,emptyFileSystemEntries:()=>NF,emptyMap:()=>r8,emptyOptions:()=>ef,emptySet:()=>XZ,endsWith:()=>Zs,ensurePathIsNonModuleName:()=>ME,ensureScriptKind:()=>uF,ensureTrailingDirectorySeparator:()=>_c,entityNameToString:()=>Wu,enumerateInsertsAndDeletes:()=>t8,equalOwnProperties:()=>wZ,equateStringsCaseInsensitive:()=>pb,equateStringsCaseSensitive:()=>pS,equateValues:()=>Hg,esDecorateHelper:()=>zF,escapeJsxAttributeString:()=>tV,escapeLeadingUnderscores:()=>Hs,escapeNonAsciiString:()=>BL,escapeSnippetText:()=>t0,escapeString:()=>Th,escapeTemplateSubstitution:()=>Z9,every:()=>ji,expandPreOrPostfixIncrementOrDecrementExpression:()=>x6,explainFiles:()=>eq,explainIfFileIsRedirectAndImpliedFormat:()=>tq,exportAssignmentIsAlias:()=>px,exportStarHelper:()=>r6,expressionResultIsUnused:()=>dre,extend:()=>Xw,extendsHelper:()=>JF,extensionFromPath:()=>jC,extensionIsTS:()=>mF,extensionsNotSupportingExtensionlessResolution:()=>c2,externalHelpersModuleNameText:()=>ay,factory:()=>P,fileExtensionIs:()=>el,fileExtensionIsOneOf:()=>$l,fileIncludeReasonToDiagnostics:()=>iq,fileShouldUseJavaScriptRequire:()=>OJ,filter:()=>Cr,filterMutate:()=>X5,filterSemanticDiagnostics:()=>W4,find:()=>Dr,findAncestor:()=>Rn,findBestPatternMatch:()=>pB,findChildOfKind:()=>Ya,findComputedPropertyNameCacheAssignment:()=>L6,findConfigFile:()=>Aae,findContainingList:()=>_3,findDiagnosticForNode:()=>gle,findFirstNonJsxWhitespaceToken:()=>Fse,findIndex:()=>Tl,findLast:()=>hA,findLastIndex:()=>Uw,findListItemInfo:()=>Wse,findMap:()=>sve,findModifier:()=>gR,findNextToken:()=>S0,findPackageJson:()=>_le,findPackageJsons:()=>RJ,findPrecedingMatchingToken:()=>E3,findPrecedingToken:()=>ec,findSuperStatementIndexPath:()=>g4,findTokenOnLeftOfPosition:()=>v3,findUseStrictPrologue:()=>zj,first:()=>Sa,firstDefined:()=>ml,firstDefinedIterator:()=>cM,firstIterator:()=>rB,firstOrOnly:()=>MJ,firstOrUndefined:()=>Ac,firstOrUndefinedIterator:()=>qw,fixupCompilerOptions:()=>rK,flatMap:()=>ta,flatMapIterator:()=>Y5,flatMapToMutable:()=>wD,flatten:()=>Ff,flattenCommaList:()=>Cie,flattenDestructuringAssignment:()=>nT,flattenDestructuringBinding:()=>v0,flattenDiagnosticMessageText:()=>o_,forEach:()=>an,forEachAncestor:()=>_te,forEachAncestorDirectory:()=>Vf,forEachChild:()=>Ao,forEachChildRecursively:()=>EN,forEachEmittedFile:()=>uH,forEachEnclosingBlockScopeContainer:()=>Dte,forEachEntry:()=>hc,forEachExternalModuleToImportFrom:()=>VJ,forEachImportClauseDeclaration:()=>CW,forEachKey:()=>k_,forEachLeadingCommentRange:()=>MM,forEachNameInAccessChainWalkingLeft:()=>Bne,forEachPropertyAssignment:()=>nx,forEachResolvedProjectReference:()=>MH,forEachReturnStatement:()=>GE,forEachRight:()=>RZ,forEachTrailingCommentRange:()=>LM,forEachTsConfigPropArray:()=>uL,forEachUnique:()=>mJ,forEachYieldExpression:()=>kte,forSomeAncestorDirectory:()=>ibe,formatColorAndReset:()=>b0,formatDiagnostic:()=>IH,formatDiagnostics:()=>QSe,formatDiagnosticsWithColorAndContext:()=>Rae,formatGeneratedName:()=>Wb,formatGeneratedNamePart:()=>Jx,formatLocation:()=>xH,formatMessage:()=>SV,formatStringFromArgs:()=>xh,formatting:()=>uc,fullTripleSlashAMDReferencePathRegEx:()=>GV,fullTripleSlashReferencePathRegEx:()=>BV,generateDjb2Hash:()=>qD,generateTSConfig:()=>n0e,generatorHelper:()=>e6,getAdjustedReferenceLocation:()=>Xq,getAdjustedRenameLocation:()=>g3,getAliasDeclarationFromName:()=>V9,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>$U,getAllDecoratorsOfClassElement:()=>y4,getAllJSDocTags:()=>O8,getAllJSDocTagsOfKind:()=>_ye,getAllKeys:()=>cve,getAllProjectOutputs:()=>I4,getAllSuperTypeNodes:()=>EC,getAllUnscopedEmitHelpers:()=>fj,getAllowJSCompilerOption:()=>sy,getAllowSyntheticDefaultImports:()=>zS,getAncestor:()=>Db,getAnyExtensionFromPath:()=>w1,getAreDeclarationMapsEnabled:()=>a2,getAssignedExpandoInitializer:()=>LA,getAssignedName:()=>L8,getAssignedNameOfIdentifier:()=>ON,getAssignmentDeclarationKind:()=>hl,getAssignmentDeclarationPropertyAccessKind:()=>TL,getAssignmentTargetKind:()=>WA,getAutomaticTypeDirectiveNames:()=>Y6,getBaseFileName:()=>Ll,getBinaryOperatorPrecedence:()=>zL,getBuildInfo:()=>R4,getBuildInfoFileVersionMap:()=>HH,getBuildInfoText:()=>bae,getBuildOrderFromAnyBuildOrder:()=>Z4,getBuilderCreationParameters:()=>V4,getBuilderFileEmit:()=>vy,getCheckFlags:()=>tl,getClassExtendsHeritageElement:()=>qE,getClassLikeDeclarationOfSymbol:()=>ig,getCombinedLocalAndExportSymbolFlags:()=>Sx,getCombinedModifierFlags:()=>gb,getCombinedNodeFlags:()=>Xg,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>wG,getCommentRange:()=>e_,getCommonSourceDirectory:()=>VN,getCommonSourceDirectoryOfConfig:()=>iR,getCompilerOptionValue:()=>iF,getCompilerOptionsDiffValue:()=>e0e,getConditions:()=>hy,getConfigFileParsingDiagnostics:()=>iT,getConstantValue:()=>Nre,getContainerFlags:()=>kU,getContainerNode:()=>sT,getContainingClass:()=>Oc,getContainingClassExcludingClassDecorators:()=>_W,getContainingClassStaticBlock:()=>jte,getContainingFunction:()=>cp,getContainingFunctionDeclaration:()=>Vte,getContainingFunctionOrClassStaticBlock:()=>mW,getContainingNodeArray:()=>ure,getContainingObjectLiteralElement:()=>bO,getContextualTypeFromParent:()=>O3,getContextualTypeFromParentOrAncestorTypeNode:()=>h3,getCurrentTime:()=>Rk,getDeclarationDiagnostics:()=>gae,getDeclarationEmitExtensionForPath:()=>FW,getDeclarationEmitOutputFilePath:()=>dne,getDeclarationEmitOutputFilePathWorker:()=>WW,getDeclarationFileExtension:()=>Xj,getDeclarationFromName:()=>bC,getDeclarationModifierFlagsFromSymbol:()=>Kp,getDeclarationOfKind:()=>Vs,getDeclarationsOfKind:()=>pte,getDeclaredExpandoInitializer:()=>yL,getDecorators:()=>Hv,getDefaultCompilerOptions:()=>Tz,getDefaultExportInfoWorker:()=>Q3,getDefaultFormatCodeSettings:()=>s3,getDefaultLibFileName:()=>OM,getDefaultLibFilePath:()=>jce,getDefaultLikeExportInfo:()=>$3,getDiagnosticText:()=>UEe,getDiagnosticsWithinSpan:()=>vle,getDirectoryPath:()=>Ur,getDirectoryToWatchFailedLookupLocation:()=>YH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Xae,getDocumentPositionMapper:()=>$J,getDocumentSpansEqualityComparer:()=>fJ,getESModuleInterop:()=>F_,getEditsForFileRename:()=>Rle,getEffectiveBaseTypeNode:()=>Jm,getEffectiveConstraintOfTypeParameter:()=>V1,getEffectiveContainerForJSDocTemplateTag:()=>NW,getEffectiveImplementsTypeNodes:()=>fx,getEffectiveInitializer:()=>vL,getEffectiveJSDocHost:()=>Rb,getEffectiveModifierFlags:()=>Wd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Tne,getEffectiveModifierFlagsNoCache:()=>Ane,getEffectiveReturnTypeNode:()=>Tf,getEffectiveSetAccessorTypeAnnotationNode:()=>mne,getEffectiveTypeAnnotationNode:()=>Jc,getEffectiveTypeParameterDeclarations:()=>qv,getEffectiveTypeRoots:()=>RN,getElementOrPropertyAccessArgumentExpressionOrName:()=>DW,getElementOrPropertyAccessName:()=>tg,getElementsOfBindingOrAssignmentPattern:()=>qx,getEmitDeclarations:()=>Xp,getEmitFlags:()=>ya,getEmitHelpers:()=>OF,getEmitModuleDetectionKind:()=>qV,getEmitModuleKind:()=>ld,getEmitModuleResolutionKind:()=>zd,getEmitScriptTarget:()=>Wa,getEmitStandardClassFields:()=>Xne,getEnclosingBlockScopeContainer:()=>O_,getEnclosingContainer:()=>S9,getEncodedSemanticClassifications:()=>HJ,getEncodedSyntacticClassifications:()=>qJ,getEndLinePosition:()=>rL,getEntityNameFromTypeNode:()=>mL,getEntrypointsFromPackageJsonInfo:()=>RU,getErrorCountForSummary:()=>q4,getErrorSpanForNode:()=>IS,getErrorSummaryText:()=>Zae,getEscapedTextOfIdentifierOrLiteral:()=>AC,getEscapedTextOfJsxAttributeName:()=>QC,getEscapedTextOfJsxNamespacedName:()=>JA,getExpandoInitializer:()=>Ib,getExportAssignmentExpression:()=>j9,getExportInfoMap:()=>rO,getExportNeedsImportStarHelper:()=>Ooe,getExpressionAssociativity:()=>Y9,getExpressionPrecedence:()=>xC,getExternalHelpersModuleName:()=>L2,getExternalModuleImportEqualsDeclarationExpression:()=>gC,getExternalModuleName:()=>lx,getExternalModuleNameFromDeclaration:()=>lne,getExternalModuleNameFromPath:()=>rV,getExternalModuleNameLiteral:()=>hI,getExternalModuleRequireArgument:()=>N9,getFallbackOptions:()=>yk,getFileEmitOutput:()=>kae,getFileMatcherPatterns:()=>dF,getFileNamesFromConfigSpecs:()=>AN,getFileWatcherEventKind:()=>SG,getFilesInErrorForSummary:()=>J4,getFirstConstructorWithBody:()=>Ah,getFirstIdentifier:()=>dp,getFirstNonSpaceCharacterPosition:()=>cle,getFirstProjectOutput:()=>mH,getFixableErrorSpanExpression:()=>NJ,getFormatCodeSettingsForWriting:()=>J3,getFullWidth:()=>tL,getFunctionFlags:()=>gc,getHeritageClause:()=>OL,getHostSignatureFromJSDoc:()=>xb,getIdentifierAutoGenerate:()=>Gbe,getIdentifierGeneratedImportReference:()=>wre,getIdentifierTypeArguments:()=>BS,getImmediatelyInvokedFunctionExpression:()=>RS,getImpliedNodeFormatForFile:()=>Tk,getImpliedNodeFormatForFileWorker:()=>OH,getImportNeedsImportDefaultHelper:()=>KU,getImportNeedsImportStarHelper:()=>_4,getIndentSize:()=>vx,getIndentString:()=>OW,getInferredLibraryNameResolveFrom:()=>O4,getInitializedVariables:()=>wC,getInitializerOfBinaryExpression:()=>O9,getInitializerOfBindingOrAssignmentElement:()=>O2,getInterfaceBaseTypeNodes:()=>SC,getInternalEmitFlags:()=>Uf,getInvokedExpression:()=>vW,getIsolatedModules:()=>xf,getJSDocAugmentsTag:()=>Oee,getJSDocClassTag:()=>FG,getJSDocCommentRanges:()=>I9,getJSDocCommentsAndTags:()=>W9,getJSDocDeprecatedTag:()=>zG,getJSDocDeprecatedTagNoCache:()=>Vee,getJSDocEnumTag:()=>BG,getJSDocHost:()=>PS,getJSDocImplementsTags:()=>wee,getJSDocOverloadTags:()=>z9,getJSDocOverrideTagNoCache:()=>Gee,getJSDocParameterTags:()=>G1,getJSDocParameterTagsNoCache:()=>Pee,getJSDocPrivateTag:()=>dye,getJSDocPrivateTagNoCache:()=>Fee,getJSDocProtectedTag:()=>uye,getJSDocProtectedTagNoCache:()=>zee,getJSDocPublicTag:()=>cye,getJSDocPublicTagNoCache:()=>Wee,getJSDocReadonlyTag:()=>pye,getJSDocReadonlyTagNoCache:()=>Bee,getJSDocReturnTag:()=>jee,getJSDocReturnType:()=>BM,getJSDocRoot:()=>ux,getJSDocSatisfiesExpressionType:()=>WV,getJSDocSatisfiesTag:()=>GG,getJSDocTags:()=>Eb,getJSDocTagsNoCache:()=>mye,getJSDocTemplateTag:()=>fye,getJSDocThisTag:()=>k8,getJSDocType:()=>bb,getJSDocTypeAliasName:()=>Vj,getJSDocTypeAssertionType:()=>D6,getJSDocTypeParameterDeclarations:()=>VW,getJSDocTypeParameterTags:()=>Mee,getJSDocTypeParameterTagsNoCache:()=>Lee,getJSDocTypeTag:()=>yb,getJSXImplicitImportBase:()=>aF,getJSXRuntimeImport:()=>sF,getJSXTransformEnabled:()=>oF,getKeyForCompilerOptions:()=>EU,getLanguageVariant:()=>KL,getLastChild:()=>yV,getLeadingCommentRanges:()=>mh,getLeadingCommentRangesOfNode:()=>A9,getLeftmostAccessExpression:()=>Tx,getLeftmostExpression:()=>Ax,getLibraryNameFromLibFileName:()=>LH,getLineAndCharacterOfPosition:()=>$a,getLineInfo:()=>UU,getLineOfLocalPosition:()=>DC,getLineOfLocalPositionFromLineMap:()=>kS,getLineStartPositionForPosition:()=>Cf,getLineStarts:()=>Yh,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>wne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>One,getLinesBetweenPositions:()=>YD,getLinesBetweenRangeEndAndRangeStart:()=>hV,getLinesBetweenRangeEndPositions:()=>nbe,getLiteralText:()=>Ete,getLocalNameForExternalImport:()=>Hx,getLocalSymbolForExportDefault:()=>Ex,getLocaleSpecificMessage:()=>vo,getLocaleTimeString:()=>xk,getMappedContextSpan:()=>_J,getMappedDocumentSpan:()=>P3,getMappedLocation:()=>ZN,getMatchedFileSpec:()=>nq,getMatchedIncludeSpec:()=>rq,getMeaningFromDeclaration:()=>Lk,getMeaningFromLocation:()=>aT,getMembersOfDeclaration:()=>Ote,getModeForFileReference:()=>Ek,getModeForResolutionAtIndex:()=>Dae,getModeForUsageLocation:()=>DH,getModifiedTime:()=>SA,getModifiers:()=>kE,getModuleInstanceState:()=>dg,getModuleNameStringLiteralAt:()=>Ak,getModuleSpecifierEndingPreference:()=>nre,getModuleSpecifierResolverHost:()=>lJ,getNameForExportedSymbol:()=>U3,getNameFromImportAttribute:()=>SF,getNameFromIndexInfo:()=>Cte,getNameFromPropertyName:()=>qk,getNameOfAccessExpression:()=>EV,getNameOfCompilerOptionValue:()=>aU,getNameOfDeclaration:()=>mo,getNameOfExpando:()=>L9,getNameOfJSDocTypedef:()=>Nee,getNameOrArgument:()=>SL,getNameTable:()=>WK,getNamesForExportedSymbol:()=>yle,getNamespaceDeclarationNode:()=>cx,getNewLineCharacter:()=>rv,getNewLineKind:()=>nO,getNewLineOrDefaultFromHost:()=>mv,getNewTargetContainer:()=>Hte,getNextJSDocCommentLocation:()=>F9,getNodeForGeneratedName:()=>W2,getNodeId:()=>Fa,getNodeKind:()=>E0,getNodeModifiers:()=>YN,getNodeModulePathParts:()=>yF,getNonAssignedNameOfDeclaration:()=>M8,getNonAssignmentOperatorForCompoundAssignment:()=>MN,getNonAugmentationDeclaration:()=>h9,getNonDecoratorTokenPosOfNode:()=>u9,getNormalizedAbsolutePath:()=>Qi,getNormalizedAbsolutePathWithoutRoot:()=>DG,getNormalizedPathComponents:()=>IM,getObjectFlags:()=>br,getOperator:()=>Q9,getOperatorAssociativity:()=>$9,getOperatorPrecedence:()=>FL,getOptionFromName:()=>nU,getOptionsForLibraryResolution:()=>TU,getOptionsNameMap:()=>Xx,getOrCreateEmitNode:()=>cd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>gie,getOrUpdate:()=>FD,getOriginalNode:()=>sl,getOriginalNodeId:()=>dd,getOriginalSourceFile:()=>qye,getOutputDeclarationFileName:()=>GN,getOutputDeclarationFileNameWorker:()=>pH,getOutputExtension:()=>A4,getOutputFileNames:()=>YSe,getOutputJSFileNameWorker:()=>fH,getOutputPathsFor:()=>BN,getOutputPathsForBundle:()=>zN,getOwnEmitOutputFilePath:()=>cne,getOwnKeys:()=>fh,getOwnValues:()=>vA,getPackageJsonInfo:()=>m0,getPackageJsonTypesVersionsPaths:()=>X6,getPackageJsonsVisibleToFile:()=>hle,getPackageNameFromTypesPackageName:()=>CN,getPackageScopeForPath:()=>rk,getParameterSymbolFromJSDoc:()=>NL,getParameterTypeNode:()=>fbe,getParentNodeInSpan:()=>Kk,getParseTreeNode:()=>uo,getParsedCommandLineOfConfigFile:()=>V2,getPathComponents:()=>mc,getPathComponentsRelativeTo:()=>NG,getPathFromPathComponents:()=>Vv,getPathUpdater:()=>XJ,getPathsBasePath:()=>zW,getPatternFromSpec:()=>Zne,getPendingEmitKind:()=>cR,getPositionOfLineAndCharacter:()=>NM,getPossibleGenericSignatures:()=>$q,getPossibleOriginalInputExtensionForExtension:()=>une,getPossibleTypeArgumentsInfo:()=>Qq,getPreEmitDiagnostics:()=>$Se,getPrecedingNonSpaceCharacterPosition:()=>L3,getPrivateIdentifier:()=>QU,getProperties:()=>YU,getProperty:()=>Jw,getPropertyArrayElementValue:()=>Gte,getPropertyAssignmentAliasLikeExpression:()=>ine,getPropertyNameForPropertyNameNode:()=>MS,getPropertyNameForUniqueESSymbol:()=>Uye,getPropertyNameFromType:()=>If,getPropertyNameOfBindingOrAssignmentElement:()=>Gj,getPropertySymbolFromBindingElement:()=>N3,getPropertySymbolsFromContextualType:()=>Iz,getQuoteFromPreference:()=>dJ,getQuotePreference:()=>Np,getRangesWhere:()=>Z5,getRefactorContextSpan:()=>NI,getReferencedFileLocation:()=>jN,getRegexFromPattern:()=>iy,getRegularExpressionForWildcard:()=>BC,getRegularExpressionsForWildcards:()=>lF,getRelativePathFromDirectory:()=>Gf,getRelativePathFromFile:()=>RM,getRelativePathToDirectoryOrUrl:()=>AA,getRenameLocation:()=>$k,getReplacementSpanForContextToken:()=>nJ,getResolutionDiagnostic:()=>FH,getResolutionModeOverride:()=>oR,getResolveJsonModule:()=>Mb,getResolvePackageJsonExports:()=>RF,getResolvePackageJsonImports:()=>DF,getResolvedExternalModuleName:()=>wW,getRestIndicatorOfBindingOrAssignmentElement:()=>N6,getRestParameterElementType:()=>x9,getRightMostAssignedExpression:()=>bL,getRootDeclaration:()=>Xm,getRootDirectoryOfResolutionCache:()=>Yae,getRootLength:()=>P_,getRootPathSplitLength:()=>STe,getScriptKind:()=>bJ,getScriptKindFromFileName:()=>pF,getScriptTargetFeatures:()=>IF,getSelectedEffectiveModifierFlags:()=>BA,getSelectedSyntacticModifierFlags:()=>Ene,getSemanticClassifications:()=>Tle,getSemanticJsxChildren:()=>_x,getSetAccessorTypeAnnotationNode:()=>pne,getSetAccessorValueParameter:()=>CC,getSetExternalModuleIndicator:()=>XL,getShebang:()=>C8,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>w9,getSingleVariableOfVariableStatement:()=>wA,getSnapshotText:()=>hR,getSnippetElement:()=>cj,getSourceFileOfModule:()=>eW,getSourceFileOfNode:()=>Nn,getSourceFilePathInNewDir:()=>BW,getSourceFilePathInNewDirWorker:()=>GW,getSourceFileVersionAsHashFromText:()=>X4,getSourceFilesToEmit:()=>iV,getSourceMapRange:()=>ov,getSourceMapper:()=>zle,getSourceTextOfNodeFromSourceFile:()=>FE,getSpanOfTokenAtPosition:()=>w_,getSpellingSuggestion:()=>VD,getStartPositionOfLine:()=>Zv,getStartPositionOfRange:()=>OC,getStartsOnNewLine:()=>rN,getStaticPropertiesAndClassStaticBlock:()=>v4,getStrictOptionValue:()=>Fd,getStringComparer:()=>D1,getSubPatternFromSpec:()=>cF,getSuperCallFromStatement:()=>h4,getSuperContainer:()=>pL,getSupportedCodeFixes:()=>OK,getSupportedExtensions:()=>GC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>YL,getSwitchedType:()=>IJ,getSymbolId:()=>na,getSymbolNameForPrivateIdentifier:()=>wL,getSymbolTarget:()=>EJ,getSyntacticClassifications:()=>Ale,getSyntacticModifierFlags:()=>ny,getSyntacticModifierFlagsNoCache:()=>lV,getSynthesizedDeepClone:()=>Fs,getSynthesizedDeepCloneWithReplacements:()=>Yk,getSynthesizedDeepClones:()=>T0,getSynthesizedDeepClonesWithReplacements:()=>SJ,getSyntheticLeadingComments:()=>Mx,getSyntheticTrailingComments:()=>_2,getTargetLabel:()=>u3,getTargetOfBindingOrAssignmentElement:()=>_y,getTemporaryModuleResolutionState:()=>nk,getTextOfConstantValue:()=>Ste,getTextOfIdentifierOrLiteral:()=>Ef,getTextOfJSDocComment:()=>VM,getTextOfJsxAttributeName:()=>r2,getTextOfJsxNamespacedName:()=>ZC,getTextOfNode:()=>Vl,getTextOfNodeFromSourceText:()=>uC,getTextOfPropertyName:()=>$1,getThisContainer:()=>lu,getThisParameter:()=>KE,getTokenAtPosition:()=>Hi,getTokenPosOfNode:()=>Tb,getTokenSourceMapRange:()=>zbe,getTouchingPropertyName:()=>pu,getTouchingToken:()=>_R,getTrailingCommentRanges:()=>mb,getTrailingSemicolonDeferringWriter:()=>nV,getTransformFlagsSubtreeExclusions:()=>Ire,getTransformers:()=>cH,getTsBuildInfoEmitOutputFilePath:()=>dv,getTsConfigObjectLiteralExpression:()=>_C,getTsConfigPropArrayElementValue:()=>fW,getTypeAnnotationNode:()=>fne,getTypeArgumentOrTypeParameterList:()=>qse,getTypeKeywordOfTypeOnlyImport:()=>uJ,getTypeNode:()=>kre,getTypeNodeIfAccessible:()=>iP,getTypeParameterFromJsDoc:()=>Qte,getTypeParameterOwner:()=>iye,getTypesPackageName:()=>n4,getUILocale:()=>GZ,getUniqueName:()=>dT,getUniqueSymbolId:()=>lle,getUseDefineForClassFields:()=>nN,getWatchErrorSummaryDiagnosticMessage:()=>QH,getWatchFactory:()=>yH,group:()=>GD,groupBy:()=>Kw,guessIndentation:()=>dte,handleNoEmitOptions:()=>wH,hasAbstractModifier:()=>$E,hasAccessorModifier:()=>Ym,hasAmbientModifier:()=>sV,hasChangesInResolutions:()=>l9,hasChildOfKind:()=>Bk,hasContextSensitiveParameters:()=>gF,hasDecorators:()=>Hp,hasDocComment:()=>Use,hasDynamicName:()=>ty,hasEffectiveModifier:()=>zu,hasEffectiveModifiers:()=>jW,hasEffectiveReadonlyModifier:()=>NC,hasExtension:()=>TA,hasIndexSignature:()=>AJ,hasInitializer:()=>$v,hasInvalidEscape:()=>eV,hasJSDocNodes:()=>ap,hasJSDocParameterTags:()=>kee,hasJSFileExtension:()=>QE,hasJsonModuleEmitEnabled:()=>rF,hasOnlyExpressionInitializer:()=>SS,hasOverrideModifier:()=>UW,hasPossibleExternalModuleReference:()=>Rte,hasProperty:()=>rs,hasPropertyAccessExpressionWithName:()=>Ok,hasQuestionToken:()=>OA,hasRecordedExternalHelpers:()=>hie,hasResolutionModeOverride:()=>hre,hasRestParameter:()=>i9,hasScopeMarker:()=>nte,hasStaticModifier:()=>jl,hasSyntacticModifier:()=>Wr,hasSyntacticModifiers:()=>bne,hasTSFileExtension:()=>qA,hasTabstop:()=>fre,hasTrailingDirectorySeparator:()=>Jg,hasType:()=>K8,hasTypeArguments:()=>zye,hasZeroOrOneAsteriskCharacter:()=>AV,helperString:()=>pj,hostGetCanonicalFileName:()=>ev,hostUsesCaseSensitiveFileNames:()=>yx,idText:()=>ar,identifierIsThisKeyword:()=>aV,identifierToKeywordKind:()=>vb,identity:()=>Ps,identitySourceMapConsumer:()=>m4,ignoreSourceNewlines:()=>uj,ignoredPaths:()=>AM,importDefaultHelper:()=>n6,importFromModuleSpecifier:()=>yC,importNameElisionDisabled:()=>TV,importStarHelper:()=>g2,indexOfAnyCharCode:()=>DZ,indexOfNode:()=>Y1,indicesOf:()=>uM,inferredTypesContainingFile:()=>lR,injectClassNamedEvaluationHelperBlockIfMissing:()=>E4,injectClassThisAssignmentIfMissing:()=>Hoe,insertImports:()=>QN,insertLeadingStatement:()=>iEe,insertSorted:()=>Fv,insertStatementAfterCustomPrologue:()=>TS,insertStatementAfterStandardPrologue:()=>Cye,insertStatementsAfterCustomPrologue:()=>c9,insertStatementsAfterStandardPrologue:()=>vh,intersperse:()=>K5,intrinsicTagNameToString:()=>FV,introducesArgumentsExoticObject:()=>zte,inverseJsxOptionMap:()=>IN,isAbstractConstructorSymbol:()=>Wne,isAbstractModifier:()=>Ure,isAccessExpression:()=>ds,isAccessibilityModifier:()=>eJ,isAccessor:()=>Kv,isAccessorModifier:()=>qre,isAliasSymbolDeclaration:()=>Gye,isAliasableExpression:()=>kL,isAmbientModule:()=>sd,isAmbientPropertyDeclaration:()=>v9,isAnonymousFunctionDefinition:()=>IC,isAnyDirectorySeparator:()=>IG,isAnyImportOrBareOrAccessedRequire:()=>xte,isAnyImportOrReExport:()=>oL,isAnyImportSyntax:()=>AS,isAnySupportedFileExtension:()=>pbe,isApplicableVersionedTypesKey:()=>ok,isArgumentExpressionOfElementAccess:()=>jq,isArray:()=>oo,isArrayBindingElement:()=>V8,isArrayBindingOrAssignmentElement:()=>XM,isArrayBindingOrAssignmentPattern:()=>QG,isArrayBindingPattern:()=>i0,isArrayLiteralExpression:()=>Bd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>pv,isArrayTypeNode:()=>A2,isArrowFunction:()=>hs,isAsExpression:()=>x2,isAssertClause:()=>Zre,isAssertEntry:()=>Ybe,isAssertionExpression:()=>ES,isAssertsKeyword:()=>Vre,isAssignmentDeclaration:()=>vC,isAssignmentExpression:()=>lc,isAssignmentOperator:()=>tv,isAssignmentPattern:()=>lC,isAssignmentTarget:()=>Sh,isAsteriskToken:()=>b2,isAsyncFunction:()=>TC,isAsyncModifier:()=>aN,isAutoAccessorPropertyDeclaration:()=>su,isAwaitExpression:()=>py,isAwaitKeyword:()=>yj,isBigIntLiteral:()=>c6,isBinaryExpression:()=>Zn,isBinaryOperatorToken:()=>Iie,isBindableObjectDefinePropertyCall:()=>CS,isBindableStaticAccessExpression:()=>UE,isBindableStaticElementAccessExpression:()=>RW,isBindableStaticNameExpression:()=>NS,isBindingElement:()=>Na,isBindingElementOfBareOrAccessedRequire:()=>Kte,isBindingName:()=>yS,isBindingOrAssignmentElement:()=>Yee,isBindingOrAssignmentPattern:()=>JM,isBindingPattern:()=>ko,isBlock:()=>Do,isBlockOrCatchScoped:()=>p9,isBlockScope:()=>y9,isBlockScopedContainerTopLevel:()=>Ite,isBooleanLiteral:()=>sC,isBreakOrContinueStatement:()=>rC,isBreakStatement:()=>Jbe,isBuildInfoFile:()=>yae,isBuilderProgram:()=>ese,isBundle:()=>xj,isBundleFileTextLike:()=>zne,isCallChain:()=>gS,isCallExpression:()=>Bo,isCallExpressionTarget:()=>Wq,isCallLikeExpression:()=>WE,isCallLikeOrFunctionLikeExpression:()=>ZG,isCallOrNewExpression:()=>Um,isCallOrNewExpressionTarget:()=>Fq,isCallSignatureDeclaration:()=>iI,isCallToHelper:()=>oN,isCaseBlock:()=>fN,isCaseClause:()=>zx,isCaseKeyword:()=>Jre,isCaseOrDefaultClause:()=>q8,isCatchClause:()=>u0,isCatchClauseVariableDeclaration:()=>pre,isCatchClauseVariableDeclarationOrBindingElement:()=>f9,isCheckJsEnabledForFile:()=>ZL,isChildOfNodeWithKind:()=>Pye,isCircularBuildOrder:()=>II,isClassDeclaration:()=>Zl,isClassElement:()=>xc,isClassExpression:()=>Dc,isClassInstanceProperty:()=>Kee,isClassLike:()=>Kr,isClassMemberModifier:()=>XG,isClassNamedEvaluationHelperBlock:()=>AI,isClassOrTypeElement:()=>G8,isClassStaticBlockDeclaration:()=>nl,isClassThisAssignmentBlock:()=>kN,isCollapsedRange:()=>tbe,isColonToken:()=>Bre,isCommaExpression:()=>M2,isCommaListExpression:()=>dN,isCommaSequence:()=>vN,isCommaToken:()=>zre,isComment:()=>S3,isCommonJsExportPropertyAssignment:()=>uW,isCommonJsExportedExpression:()=>Wte,isCompoundAssignment:()=>PN,isComputedNonLiteralName:()=>aL,isComputedPropertyName:()=>Pa,isConciseBody:()=>U8,isConditionalExpression:()=>Fx,isConditionalTypeNode:()=>lI,isConstTypeReference:()=>Qh,isConstructSignatureDeclaration:()=>S2,isConstructorDeclaration:()=>ll,isConstructorTypeNode:()=>kx,isContextualKeyword:()=>MW,isContinueStatement:()=>qbe,isCustomPrologue:()=>dL,isDebuggerStatement:()=>Kbe,isDeclaration:()=>bd,isDeclarationBindingElement:()=>qM,isDeclarationFileName:()=>Yc,isDeclarationName:()=>ng,isDeclarationNameOfEnumOrNamespace:()=>gV,isDeclarationReadonly:()=>sW,isDeclarationStatement:()=>ate,isDeclarationWithTypeParameterChildren:()=>E9,isDeclarationWithTypeParameters:()=>b9,isDecorator:()=>Xc,isDecoratorTarget:()=>Pse,isDefaultClause:()=>_N,isDefaultImport:()=>kA,isDefaultModifier:()=>f6,isDefaultedExpandoInitializer:()=>Xte,isDeleteExpression:()=>Yre,isDeleteTarget:()=>G9,isDeprecatedDeclaration:()=>H3,isDestructuringAssignment:()=>nv,isDiagnosticWithLocation:()=>CJ,isDiskPathRoot:()=>xG,isDoStatement:()=>Ube,isDocumentRegistryEntry:()=>iO,isDotDotDotToken:()=>u6,isDottedName:()=>MC,isDynamicName:()=>kW,isESSymbolIdentifier:()=>Hye,isEffectiveExternalModule:()=>MA,isEffectiveModuleDeclaration:()=>Ate,isEffectiveStrictModeSourceFile:()=>g9,isElementAccessChain:()=>VG,isElementAccessExpression:()=>Rs,isEmittedFileOfProgram:()=>Tae,isEmptyArrayLiteral:()=>Dne,isEmptyBindingElement:()=>Dee,isEmptyBindingPattern:()=>Ree,isEmptyObjectLiteral:()=>fV,isEmptyStatement:()=>Tj,isEmptyStringLiteral:()=>C9,isEntityName:()=>Su,isEntityNameExpression:()=>gl,isEnumConst:()=>BE,isEnumDeclaration:()=>kb,isEnumMember:()=>p0,isEqualityOperatorKind:()=>w3,isEqualsGreaterThanToken:()=>Gre,isExclamationToken:()=>E2,isExcludedFile:()=>zie,isExclusivelyTypeOnlyImportOrExport:()=>RH,isExpandoPropertyDeclaration:()=>EF,isExportAssignment:()=>dl,isExportDeclaration:()=>xl,isExportModifier:()=>nI,isExportName:()=>R6,isExportNamespaceAsDefaultDeclaration:()=>rW,isExportOrDefaultModifier:()=>w2,isExportSpecifier:()=>Ed,isExportsIdentifier:()=>DS,isExportsOrModuleExportsOrAlias:()=>_0,isExpression:()=>lt,isExpressionNode:()=>bh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Ose,isExpressionOfOptionalChainRoot:()=>F8,isExpressionStatement:()=>Cc,isExpressionWithTypeArguments:()=>sv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>HW,isExternalModule:()=>wl,isExternalModuleAugmentation:()=>zE,isExternalModuleImportEqualsDeclaration:()=>Ab,isExternalModuleIndicator:()=>YM,isExternalModuleNameRelative:()=>Ic,isExternalModuleReference:()=>j_,isExternalModuleSymbol:()=>Uk,isExternalOrCommonJsModule:()=>sp,isFileLevelReservedGeneratedIdentifier:()=>HM,isFileLevelUniqueName:()=>tW,isFileProbablyExternalModule:()=>z2,isFirstDeclarationOfSymbolParameter:()=>hJ,isFixablePromiseHandler:()=>eK,isForInOrOfStatement:()=>H1,isForInStatement:()=>y6,isForInitializer:()=>Up,isForOfStatement:()=>R2,isForStatement:()=>qS,isFunctionBlock:()=>VE,isFunctionBody:()=>t9,isFunctionDeclaration:()=>Ql,isFunctionExpression:()=>us,isFunctionExpressionOrArrowFunction:()=>e0,isFunctionLike:()=>Lo,isFunctionLikeDeclaration:()=>_s,isFunctionLikeKind:()=>DA,isFunctionLikeOrClassStaticBlockDeclaration:()=>U1,isFunctionOrConstructorTypeNode:()=>Xee,isFunctionOrModuleBlock:()=>YG,isFunctionSymbol:()=>$te,isFunctionTypeNode:()=>B_,isFutureReservedKeyword:()=>Vye,isGeneratedIdentifier:()=>ws,isGeneratedPrivateIdentifier:()=>vS,isGetAccessor:()=>Yv,isGetAccessorDeclaration:()=>Ap,isGetOrSetAccessorDeclaration:()=>w8,isGlobalDeclaration:()=>NAe,isGlobalScopeAugmentation:()=>qm,isGrammarError:()=>yte,isHeritageClause:()=>Ip,isHoistedFunction:()=>cW,isHoistedVariableStatement:()=>dW,isIdentifier:()=>Me,isIdentifierANonContextualKeyword:()=>q9,isIdentifierName:()=>rne,isIdentifierOrThisTypeNode:()=>Eie,isIdentifierPart:()=>_b,isIdentifierStart:()=>_h,isIdentifierText:()=>Sp,isIdentifierTypePredicate:()=>Bte,isIdentifierTypeReference:()=>sre,isIfStatement:()=>HS,isIgnoredFileFromWildCardWatching:()=>vk,isImplicitGlob:()=>RV,isImportAttribute:()=>eie,isImportAttributeName:()=>Jee,isImportAttributes:()=>uI,isImportCall:()=>lp,isImportClause:()=>G_,isImportDeclaration:()=>cc,isImportEqualsDeclaration:()=>Nc,isImportKeyword:()=>lN,isImportMeta:()=>ex,isImportOrExportSpecifier:()=>RA,isImportOrExportSpecifierName:()=>sle,isImportSpecifier:()=>Iu,isImportTypeAssertionContainer:()=>Xbe,isImportTypeNode:()=>Dh,isImportableFile:()=>GJ,isInComment:()=>uv,isInCompoundLikeAssignment:()=>B9,isInExpressionContext:()=>bW,isInJSDoc:()=>hL,isInJSFile:()=>Jn,isInJSXText:()=>Vse,isInJsonFile:()=>SW,isInNonReferenceComment:()=>Xse,isInReferenceComment:()=>Kse,isInRightSideOfInternalImportEqualsDeclaration:()=>c3,isInString:()=>RI,isInTemplateString:()=>Yq,isInTopLevelContext:()=>hW,isInTypeQuery:()=>OS,isIncrementalCompilation:()=>tN,isIndexSignatureDeclaration:()=>r0,isIndexedAccessTypeNode:()=>US,isInferTypeNode:()=>GS,isInfinityOrNaNString:()=>XC,isInitializedProperty:()=>uk,isInitializedVariable:()=>JL,isInsideJsxElement:()=>b3,isInsideJsxElementOrAttribute:()=>Gse,isInsideNodeModules:()=>tO,isInsideTemplateLiteral:()=>Vk,isInstanceOfExpression:()=>qW,isInstantiatedModule:()=>FU,isInterfaceDeclaration:()=>Gd,isInternalDeclaration:()=>o9,isInternalModuleImportEqualsDeclaration:()=>ox,isInternalName:()=>Fj,isIntersectionTypeNode:()=>sI,isIntrinsicJsxName:()=>gx,isIterationStatement:()=>Xv,isJSDoc:()=>Sm,isJSDocAllType:()=>oie,isJSDocAugmentsTag:()=>_I,isJSDocAuthorTag:()=>eEe,isJSDocCallbackTag:()=>Dj,isJSDocClassTag:()=>sie,isJSDocCommentContainingNode:()=>J8,isJSDocConstructSignature:()=>dx,isJSDocDeprecatedTag:()=>Lj,isJSDocEnumTag:()=>C2,isJSDocFunctionType:()=>Gx,isJSDocImplementsTag:()=>A6,isJSDocIndexSignature:()=>TW,isJSDocLikeText:()=>Jj,isJSDocLink:()=>rie,isJSDocLinkCode:()=>iie,isJSDocLinkLike:()=>PA,isJSDocLinkPlain:()=>Qbe,isJSDocMemberName:()=>Ob,isJSDocNameReference:()=>hN,isJSDocNamepathType:()=>Zbe,isJSDocNamespaceBody:()=>Tye,isJSDocNode:()=>q1,isJSDocNonNullableType:()=>b6,isJSDocNullableType:()=>Bx,isJSDocOptionalParameter:()=>n2,isJSDocOptionalType:()=>Rj,isJSDocOverloadTag:()=>Vx,isJSDocOverrideTag:()=>S6,isJSDocParameterTag:()=>Tm,isJSDocPrivateTag:()=>Nj,isJSDocPropertyLikeTag:()=>iC,isJSDocPropertyTag:()=>lie,isJSDocProtectedTag:()=>Pj,isJSDocPublicTag:()=>Cj,isJSDocReadonlyTag:()=>Mj,isJSDocReturnTag:()=>T6,isJSDocSatisfiesExpression:()=>wV,isJSDocSatisfiesTag:()=>I6,isJSDocSeeTag:()=>tEe,isJSDocSignature:()=>wb,isJSDocTag:()=>J1,isJSDocTemplateTag:()=>Df,isJSDocThisTag:()=>kj,isJSDocThrowsTag:()=>rEe,isJSDocTypeAlias:()=>bf,isJSDocTypeAssertion:()=>Ux,isJSDocTypeExpression:()=>f0,isJSDocTypeLiteral:()=>YS,isJSDocTypeTag:()=>gN,isJSDocTypedefTag:()=>$S,isJSDocUnknownTag:()=>nEe,isJSDocUnknownType:()=>aie,isJSDocVariadicType:()=>E6,isJSXTagName:()=>ix,isJsonEqual:()=>_F,isJsonSourceFile:()=>yf,isJsxAttribute:()=>r_,isJsxAttributeLike:()=>H8,isJsxAttributeName:()=>_re,isJsxAttributes:()=>d0,isJsxChild:()=>ZM,isJsxClosingElement:()=>l0,isJsxClosingFragment:()=>tie,isJsxElement:()=>Ch,isJsxExpression:()=>mN,isJsxFragment:()=>c0,isJsxNamespacedName:()=>Em,isJsxOpeningElement:()=>n_,isJsxOpeningFragment:()=>fI,isJsxOpeningLikeElement:()=>Od,isJsxOpeningLikeElementTagName:()=>Mse,isJsxSelfClosingElement:()=>KS,isJsxSpreadAttribute:()=>mI,isJsxTagNameExpression:()=>cC,isJsxText:()=>ZA,isJumpStatementTarget:()=>wk,isKeyword:()=>du,isKeywordOrPunctuation:()=>PW,isKnownSymbol:()=>WL,isLabelName:()=>Gq,isLabelOfLabeledStatement:()=>Bq,isLabeledStatement:()=>s0,isLateVisibilityPaintedStatement:()=>oW,isLeftHandSideExpression:()=>Tu,isLeftHandSideOfAssignment:()=>ebe,isLet:()=>lW,isLineBreak:()=>vd,isLiteralComputedPropertyDeclarationName:()=>LL,isLiteralExpression:()=>wE,isLiteralExpressionOfObject:()=>JG,isLiteralImportTypeNode:()=>ey,isLiteralKind:()=>oC,isLiteralLikeAccess:()=>xW,isLiteralLikeElementAccess:()=>EL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>p3,isLiteralTypeLikeExpression:()=>cEe,isLiteralTypeLiteral:()=>ete,isLiteralTypeNode:()=>uy,isLocalName:()=>lg,isLogicalOperator:()=>Ine,isLogicalOrCoalescingAssignmentExpression:()=>cV,isLogicalOrCoalescingAssignmentOperator:()=>PC,isLogicalOrCoalescingBinaryExpression:()=>jL,isLogicalOrCoalescingBinaryOperator:()=>VL,isMappedTypeNode:()=>wx,isMemberName:()=>hh,isMetaProperty:()=>cN,isMethodDeclaration:()=>El,isMethodOrAccessor:()=>CA,isMethodSignature:()=>z_,isMinusToken:()=>vj,isMissingDeclaration:()=>$be,isMissingPackageJsonInfo:()=>noe,isModifier:()=>ia,isModifierKind:()=>Yg,isModifierLike:()=>Ws,isModuleAugmentationExternal:()=>_9,isModuleBlock:()=>t_,isModuleBody:()=>rte,isModuleDeclaration:()=>Il,isModuleExportsAccessExpression:()=>Eh,isModuleIdentifier:()=>k9,isModuleName:()=>Aie,isModuleOrEnumDeclaration:()=>$M,isModuleReference:()=>lte,isModuleSpecifierLike:()=>C3,isModuleWithStringLiteralName:()=>iW,isNameOfFunctionDeclaration:()=>Hq,isNameOfModuleDeclaration:()=>Uq,isNamedClassElement:()=>vye,isNamedDeclaration:()=>Ld,isNamedEvaluation:()=>Fu,isNamedEvaluationSource:()=>J9,isNamedExportBindings:()=>UG,isNamedExports:()=>$p,isNamedImportBindings:()=>n9,isNamedImports:()=>sg,isNamedImportsOrExports:()=>ZW,isNamedTupleMember:()=>Ox,isNamespaceBody:()=>Sye,isNamespaceExport:()=>V_,isNamespaceExportDeclaration:()=>D2,isNamespaceImport:()=>my,isNamespaceReexportDeclaration:()=>Jte,isNewExpression:()=>o0,isNewExpressionTarget:()=>KN,isNoSubstitutionTemplateLiteral:()=>eI,isNode:()=>hye,isNodeArray:()=>OE,isNodeArrayMultiLine:()=>kne,isNodeDescendantOf:()=>HE,isNodeKind:()=>jM,isNodeLikeSystem:()=>mB,isNodeModulesDirectory:()=>A8,isNodeWithPossibleHoistedDeclaration:()=>ene,isNonContextualKeyword:()=>H9,isNonExportDefaultModifier:()=>uEe,isNonGlobalAmbientModule:()=>m9,isNonGlobalDeclaration:()=>Sle,isNonNullAccess:()=>mre,isNonNullChain:()=>z8,isNonNullExpression:()=>dI,isNonStaticMethodOrAccessorWithPrivateName:()=>woe,isNotEmittedOrPartiallyEmittedNode:()=>Eye,isNotEmittedStatement:()=>Ij,isNullishCoalesce:()=>jG,isNumber:()=>jg,isNumericLiteral:()=>Bu,isNumericLiteralName:()=>Rh,isObjectBindingElementWithoutPropertyName:()=>Jk,isObjectBindingOrAssignmentElement:()=>KM,isObjectBindingOrAssignmentPattern:()=>$G,isObjectBindingPattern:()=>Rf,isObjectLiteralElement:()=>r9,isObjectLiteralElementLike:()=>Zh,isObjectLiteralExpression:()=>fa,isObjectLiteralMethod:()=>qf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>pW,isObjectTypeDeclaration:()=>jA,isOctalDigit:()=>D8,isOmittedExpression:()=>vc,isOptionalChain:()=>yd,isOptionalChainRoot:()=>tC,isOptionalDeclaration:()=>$C,isOptionalJSDocPropertyLikeTag:()=>t2,isOptionalTypeNode:()=>m6,isOuterExpression:()=>C6,isOutermostOptionalChain:()=>nC,isOverrideModifier:()=>Hre,isPackageJsonInfo:()=>$6,isPackedArrayLiteral:()=>kV,isParameter:()=>ao,isParameterDeclaration:()=>JE,isParameterPropertyDeclaration:()=>wu,isParameterPropertyModifier:()=>aC,isParenthesizedExpression:()=>uu,isParenthesizedTypeNode:()=>VS,isParseTreeNode:()=>eC,isPartOfTypeNode:()=>yh,isPartOfTypeQuery:()=>EW,isPartiallyEmittedExpression:()=>v6,isPatternMatch:()=>Qw,isPinnedComment:()=>nW,isPlainJsFile:()=>nL,isPlusToken:()=>gj,isPossiblyTypeArgumentPosition:()=>Gk,isPostfixUnaryExpression:()=>Ej,isPrefixUnaryExpression:()=>fy,isPrivateIdentifier:()=>Ci,isPrivateIdentifierClassElementDeclaration:()=>kd,isPrivateIdentifierPropertyAccessExpression:()=>j1,isPrivateIdentifierSymbol:()=>one,isProgramBundleEmitBuildInfo:()=>zae,isProgramUptoDate:()=>kH,isPrologueDirective:()=>Hf,isPropertyAccessChain:()=>W8,isPropertyAccessEntityNameExpression:()=>UL,isPropertyAccessExpression:()=>Er,isPropertyAccessOrQualifiedName:()=>Qee,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>$ee,isPropertyAssignment:()=>Hl,isPropertyDeclaration:()=>xo,isPropertyName:()=>kl,isPropertyNameLiteral:()=>Km,isPropertySignature:()=>Gu,isProtoSetter:()=>ane,isPrototypeAccess:()=>ry,isPrototypePropertyAssignment:()=>AL,isPunctuation:()=>U9,isPushOrUnshiftIdentifier:()=>K9,isQualifiedName:()=>$d,isQuestionDotToken:()=>p6,isQuestionOrExclamationToken:()=>bie,isQuestionOrPlusOrMinusToken:()=>Tie,isQuestionToken:()=>cy,isRawSourceMap:()=>Moe,isReadonlyKeyword:()=>jre,isReadonlyKeywordOrPlusOrMinusToken:()=>Sie,isRecognizedTripleSlashComment:()=>d9,isReferenceFileLocation:()=>aR,isReferencedFile:()=>jb,isRegularExpressionLiteral:()=>_j,isRequireCall:()=>Xd,isRequireVariableStatement:()=>M9,isRestParameter:()=>gh,isRestTypeNode:()=>_6,isReturnStatement:()=>Kf,isReturnStatementWithFixablePromiseHandler:()=>tz,isRightSideOfAccessExpression:()=>pV,isRightSideOfInstanceofExpression:()=>Rne,isRightSideOfPropertyAccess:()=>fR,isRightSideOfQualifiedName:()=>kse,isRightSideOfQualifiedNameOrPropertyAccess:()=>LC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>xne,isRootedDiskPath:()=>Ou,isSameEntityName:()=>ax,isSatisfiesExpression:()=>Sj,isScopeMarker:()=>tte,isSemicolonClassElement:()=>$re,isSetAccessor:()=>$g,isSetAccessorDeclaration:()=>Vu,isShebangTrivia:()=>PG,isShiftOperatorOrHigher:()=>Uj,isShorthandAmbientModuleSymbol:()=>pC,isShorthandPropertyAssignment:()=>xu,isSignedNumericLiteral:()=>LW,isSimpleCopiableExpression:()=>g0,isSimpleInlineableExpression:()=>i_,isSimpleParameter:()=>Goe,isSimpleParameterList:()=>pk,isSingleOrDoubleQuote:()=>gL,isSourceFile:()=>Li,isSourceFileFromLibrary:()=>ER,isSourceFileJS:()=>wd,isSourceFileNotJS:()=>kye,isSourceFileNotJson:()=>P9,isSourceMapping:()=>Loe,isSpecialPropertyDeclaration:()=>Yte,isSpreadAssignment:()=>lv,isSpreadElement:()=>bm,isStatement:()=>Di,isStatementButNotDeclaration:()=>QM,isStatementOrBlock:()=>ste,isStatementWithLocals:()=>vte,isStatic:()=>zo,isStaticModifier:()=>rI,isString:()=>fo,isStringAKeyword:()=>jye,isStringANonContextualKeyword:()=>FA,isStringAndEmptyAnonymousObjectIntersection:()=>Jse,isStringDoubleQuoted:()=>IW,isStringLiteral:()=>ca,isStringLiteralLike:()=>Ga,isStringLiteralOrJsxExpression:()=>cte,isStringLiteralOrTemplate:()=>fle,isStringOrNumericLiteralLike:()=>Tp,isStringOrRegularExpressionOrTemplateLiteral:()=>Zq,isStringTextContainingNode:()=>KG,isSuperCall:()=>xS,isSuperKeyword:()=>sN,isSuperOrSuperProperty:()=>Lye,isSuperProperty:()=>cu,isSupportedSourceFileName:()=>rre,isSwitchStatement:()=>pN,isSyntaxList:()=>jx,isSyntheticExpression:()=>jbe,isSyntheticReference:()=>pI,isTagName:()=>Vq,isTaggedTemplateExpression:()=>a0,isTaggedTemplateTag:()=>Nse,isTemplateExpression:()=>h6,isTemplateHead:()=>tI,isTemplateLiteral:()=>NA,isTemplateLiteralKind:()=>Jv,isTemplateLiteralToken:()=>Hee,isTemplateLiteralTypeNode:()=>Kre,isTemplateLiteralTypeSpan:()=>bj,isTemplateMiddle:()=>hj,isTemplateMiddleOrTemplateTail:()=>B8,isTemplateSpan:()=>uN,isTemplateTail:()=>d6,isTextWhiteSpaceLike:()=>Zse,isThis:()=>mR,isThisContainerOrFunctionBlock:()=>Ute,isThisIdentifier:()=>YE,isThisInTypeQuery:()=>zA,isThisInitializedDeclaration:()=>gW,isThisInitializedObjectBindingExpression:()=>qte,isThisProperty:()=>fL,isThisTypeNode:()=>I2,isThisTypeParameter:()=>YC,isThisTypePredicate:()=>Mye,isThrowStatement:()=>Aj,isToken:()=>xA,isTokenKind:()=>qG,isTraceEnabled:()=>cg,isTransientSymbol:()=>L_,isTrivia:()=>mx,isTryStatement:()=>JS,isTupleTypeNode:()=>aI,isTypeAlias:()=>RL,isTypeAliasDeclaration:()=>Xf,isTypeAssertionExpression:()=>Xre,isTypeDeclaration:()=>Cx,isTypeElement:()=>bS,isTypeKeyword:()=>$N,isTypeKeywordToken:()=>oJ,isTypeKeywordTokenOrIdentifier:()=>I3,isTypeLiteralNode:()=>ju,isTypeNode:()=>xi,isTypeNodeKind:()=>bV,isTypeOfExpression:()=>Wx,isTypeOnlyExportDeclaration:()=>qee,isTypeOnlyImportDeclaration:()=>UM,isTypeOnlyImportOrExportDeclaration:()=>Sb,isTypeOperatorNode:()=>jS,isTypeParameterDeclaration:()=>qs,isTypePredicateNode:()=>T2,isTypeQueryNode:()=>oI,isTypeReferenceNode:()=>Yp,isTypeReferenceType:()=>X8,isTypeUsableAsPropertyName:()=>Af,isUMDExportSymbol:()=>QW,isUnaryExpression:()=>e9,isUnaryExpressionWithWrite:()=>Zee,isUnicodeIdentifierStart:()=>x8,isUnionTypeNode:()=>dy,isUnparsedNode:()=>HG,isUnparsedPrepend:()=>nie,isUnparsedSource:()=>XS,isUnparsedTextLike:()=>Uee,isUrl:()=>uee,isValidBigIntString:()=>hF,isValidESSymbolDeclaration:()=>Fte,isValidTypeOnlyAliasUseSite:()=>Pb,isValueSignatureDeclaration:()=>tne,isVarAwaitUsing:()=>lL,isVarConst:()=>Z1,isVarUsing:()=>cL,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>mC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jE,isVariableDeclarationInitializedToRequire:()=>AW,isVariableDeclarationList:()=>yc,isVariableLike:()=>tx,isVariableLikeOrAccessor:()=>wte,isVariableStatement:()=>cl,isVoidExpression:()=>cI,isWatchSet:()=>rbe,isWhileStatement:()=>Hbe,isWhiteSpaceLike:()=>$h,isWhiteSpaceSingleLine:()=>jm,isWithStatement:()=>Qre,isWriteAccess:()=>VA,isWriteOnlyAccess:()=>$W,isYieldExpression:()=>g6,jsxModeNeedsExplicitImport:()=>kJ,keywordPart:()=>Hu,last:()=>Da,lastOrUndefined:()=>Ns,length:()=>yn,libMap:()=>G6,libs:()=>K2,lineBreakPart:()=>yR,linkNamePart:()=>ole,linkPart:()=>vJ,linkTextPart:()=>M3,listFiles:()=>ZH,loadModuleFromGlobalCache:()=>poe,loadWithModeAwareCache:()=>Sk,makeIdentifierFromModuleName:()=>Tte,makeImport:()=>fv,makeImportIfNecessary:()=>Qse,makeStringLiteral:()=>CI,mangleScopedPackageName:()=>tR,map:()=>nn,mapAllOrFail:()=>$5,mapDefined:()=>Fi,mapDefinedEntries:()=>NZ,mapDefinedIterator:()=>WD,mapEntries:()=>MZ,mapIterator:()=>OD,mapOneOrMany:()=>PJ,mapToDisplayParts:()=>by,matchFiles:()=>DV,matchPatternOrExact:()=>CV,matchedText:()=>qZ,matchesExclude:()=>B6,maybeBind:()=>Wo,maybeSetLocalizedDiagnosticMessages:()=>Hne,memoize:()=>Kd,memoizeCached:()=>zZ,memoizeOne:()=>C_,memoizeWeak:()=>dve,metadataHelper:()=>WF,min:()=>cB,minAndMax:()=>ore,missingFileModifiedTime:()=>ip,modifierToFlag:()=>GA,modifiersToFlags:()=>$m,moduleOptionDeclaration:()=>dU,moduleResolutionIsEqualTo:()=>hte,moduleResolutionNameAndModeGetter:()=>z4,moduleResolutionOptionDeclarations:()=>V6,moduleResolutionSupportsPackageJsonExportsAndImports:()=>HA,moduleResolutionUsesNodeModules:()=>x3,moduleSpecifiers:()=>h0,moveEmitHelpers:()=>Mre,moveRangeEnd:()=>XW,moveRangePastDecorators:()=>rg,moveRangePastModifiers:()=>Qm,moveRangePos:()=>Cb,moveSyntheticComments:()=>Cre,mutateMap:()=>FC,mutateMapSkippingNewValues:()=>Ih,needsParentheses:()=>k3,needsScopeMarker:()=>j8,newCaseClauseTracker:()=>K3,newPrivateEnvironment:()=>zoe,noEmitNotification:()=>fk,noEmitSubstitution:()=>WN,noTransformers:()=>dH,noTruncationMaximumTruncationLength:()=>AF,nodeCanBeDecorated:()=>yW,nodeHasName:()=>zM,nodeIsDecorated:()=>rx,nodeIsMissing:()=>_l,nodeIsPresent:()=>gf,nodeIsSynthesized:()=>xs,nodeModuleNameResolver:()=>aoe,nodeModulesPathPart:()=>H_,nodeNextJsonConfigResolver:()=>soe,nodeOrChildIsDecorated:()=>_L,nodeOverlapsWithStartEnd:()=>f3,nodePosToString:()=>Iye,nodeSeenTracker:()=>DI,nodeStartsNewLexicalEnvironment:()=>X9,nodeToDisplayParts:()=>AAe,noop:()=>Ca,noopFileWatcher:()=>uR,normalizePath:()=>Yo,normalizeSlashes:()=>ad,not:()=>e8,notImplemented:()=>Ro,notImplementedResolver:()=>D4,nullNodeConverters:()=>nj,nullParenthesizerRules:()=>tj,nullTransformationContext:()=>FN,objectAllocator:()=>wc,operatorPart:()=>eP,optionDeclarations:()=>Nh,optionMapToObject:()=>W6,optionsAffectingProgramStructure:()=>_U,optionsForBuild:()=>gU,optionsForWatch:()=>Yx,optionsHaveChanges:()=>K1,optionsHaveModuleResolutionChanges:()=>fte,or:()=>hm,orderedRemoveItem:()=>N1,orderedRemoveItemAt:()=>Bv,outFile:()=>ss,packageIdToPackageName:()=>Z8,packageIdToString:()=>Qv,paramHelper:()=>FF,parameterIsThisKeyword:()=>XE,parameterNamePart:()=>tle,parseBaseNodeFactory:()=>Qj,parseBigInt:()=>are,parseBuildCommand:()=>jEe,parseCommandLine:()=>GEe,parseCommandLineWorker:()=>tU,parseConfigFileTextToJson:()=>rU,parseConfigFileWithSystem:()=>ATe,parseConfigHostFromCompilerHostLike:()=>F4,parseCustomTypeOption:()=>w6,parseIsolatedEntityName:()=>gI,parseIsolatedJSDocComment:()=>Pie,parseJSDocTypeExpressionForTests:()=>DEe,parseJsonConfigFileContent:()=>r0e,parseJsonSourceFileConfigFileContent:()=>H2,parseJsonText:()=>G2,parseListTypeOption:()=>Lie,parseNodeFactory:()=>U_,parseNodeModuleFromPath:()=>tk,parsePackageName:()=>ik,parsePseudoBigInt:()=>HC,parseValidBigInt:()=>LV,patchWriteFileEnsuringDirectory:()=>cee,pathContainsNodeModules:()=>Gb,pathIsAbsolute:()=>JD,pathIsBareSpecifier:()=>RG,pathIsRelative:()=>op,patternText:()=>HZ,perfLogger:()=>Pd,performIncrementalCompilation:()=>DTe,performance:()=>ree,plainJSErrors:()=>B4,positionBelongsToNode:()=>Jq,positionIsASICandidate:()=>F3,positionIsSynthesized:()=>ym,positionsAreOnSameLine:()=>Jp,preProcessFile:()=>$Ae,probablyUsesSemicolons:()=>Zk,processCommentPragmas:()=>Yj,processPragmasIntoFields:()=>$j,processTaggedTemplateExpression:()=>rH,programContainsEsModules:()=>$se,programContainsModules:()=>Yse,projectReferenceIsEqualTo:()=>s9,propKeyHelper:()=>$F,propertyNamePart:()=>nle,pseudoBigIntToString:()=>ZE,punctuationPart:()=>Ad,pushIfUnique:()=>jp,quote:()=>rP,quotePreferenceFromString:()=>cJ,rangeContainsPosition:()=>Wk,rangeContainsPositionExclusive:()=>Fk,rangeContainsRange:()=>Cp,rangeContainsRangeExclusive:()=>wse,rangeContainsStartEnd:()=>zk,rangeEndIsOnSameLineAsRangeStart:()=>qL,rangeEndPositionsAreOnSameLine:()=>Mne,rangeEquals:()=>nB,rangeIsOnSingleLine:()=>WS,rangeOfNode:()=>PV,rangeOfTypeParameters:()=>MV,rangeOverlapsWithStartEnd:()=>XN,rangeStartIsOnSameLineAsRangeEnd:()=>Lne,rangeStartPositionsAreOnSameLine:()=>YW,readBuilderProgram:()=>Q4,readConfigFile:()=>j2,readHelper:()=>XF,readJson:()=>kC,readJsonConfigFile:()=>wie,readJsonOrUndefined:()=>mV,reduceEachLeadingCommentRange:()=>gee,reduceEachTrailingCommentRange:()=>vee,reduceLeft:()=>Nd,reduceLeftIterator:()=>ave,reducePathComponents:()=>hS,refactor:()=>MI,regExpEscape:()=>dbe,relativeComplement:()=>LZ,removeAllComments:()=>f2,removeEmitHelper:()=>Bbe,removeExtension:()=>QL,removeFileExtension:()=>Yd,removeIgnoredPath:()=>j4,removeMinAndVersionNumbers:()=>dB,removeOptionality:()=>jse,removePrefix:()=>jD,removeSuffix:()=>C1,removeTrailingDirectorySeparator:()=>fb,repeatString:()=>Hk,replaceElement:()=>oB,replaceFirstStar:()=>KA,resolutionExtensionIsTSOrJson:()=>VC,resolveConfigFileProjectName:()=>dq,resolveJSModule:()=>ioe,resolveLibrary:()=>Z6,resolveModuleName:()=>Zx,resolveModuleNameFromCache:()=>B0e,resolvePackageNameToPackageJson:()=>bU,resolvePath:()=>jv,resolveProjectReferencePath:()=>sR,resolveTripleslashReference:()=>M4,resolveTypeReferenceDirective:()=>eoe,resolvingEmptyArray:()=>TF,restHelper:()=>HF,returnFalse:()=>_m,returnNoopFileWatcher:()=>pR,returnTrue:()=>Ug,returnUndefined:()=>ub,returnsPromise:()=>ZJ,runInitializersHelper:()=>BF,sameFlatMap:()=>CZ,sameMap:()=>sc,sameMapping:()=>RSe,scanShebangTrivia:()=>MG,scanTokenAtPosition:()=>Lte,scanner:()=>Id,screenStartingMessageCodes:()=>$4,semanticDiagnosticsOptionDeclarations:()=>pU,serializeCompilerOptions:()=>F6,server:()=>KMe,servicesVersion:()=>Uce,setCommentRange:()=>Ol,setConfigFileInOptions:()=>lU,setConstantValue:()=>Pre,setEachParent:()=>Dx,setEmitFlags:()=>$n,setFunctionNameHelper:()=>QF,setGetSourceFileAsHashVersioned:()=>Y4,setIdentifierAutoGenerate:()=>h2,setIdentifierGeneratedImportReference:()=>Ore,setIdentifierTypeArguments:()=>av,setInternalEmitFlags:()=>m2,setLocalizedDiagnosticMessages:()=>Une,setModuleDefaultHelper:()=>t6,setNodeFlags:()=>cre,setObjectAllocator:()=>jne,setOriginalNode:()=>mr,setParent:()=>Ta,setParentRecursive:()=>oy,setPrivateIdentifier:()=>tT,setSnippetElement:()=>dj,setSourceMapRange:()=>la,setStackTraceLimit:()=>Pve,setStartsOnNewLine:()=>LF,setSyntheticLeadingComments:()=>Lb,setSyntheticTrailingComments:()=>YA,setSys:()=>wve,setSysLog:()=>see,setTextRange:()=>Ze,setTextRangeEnd:()=>Rx,setTextRangePos:()=>qC,setTextRangePosEnd:()=>W_,setTextRangePosWidth:()=>JC,setTokenSourceMapRange:()=>Dre,setTypeNode:()=>Lre,setUILocale:()=>VZ,setValueDeclaration:()=>IL,shouldAllowImportingTsExtension:()=>nR,shouldPreserveConstEnums:()=>n0,shouldUseUriStyleNodeCoreModules:()=>q3,showModuleSpecifier:()=>Fne,signatureHasLiteralTypes:()=>zU,signatureHasRestParameter:()=>Td,signatureToDisplayParts:()=>yJ,single:()=>iB,singleElementArray:()=>EA,singleIterator:()=>PZ,singleOrMany:()=>R_,singleOrUndefined:()=>x_,skipAlias:()=>Kc,skipAssertions:()=>aEe,skipConstraint:()=>aJ,skipOuterExpressions:()=>Rl,skipParentheses:()=>Ka,skipPartiallyEmittedExpressions:()=>jf,skipTrivia:()=>ua,skipTypeChecking:()=>UC,skipTypeParentheses:()=>ML,skipWhile:()=>KZ,sliceAfter:()=>NV,some:()=>ct,sort:()=>uS,sortAndDeduplicate:()=>zD,sortAndDeduplicateDiagnostics:()=>z1,sourceFileAffectingCompilerOptions:()=>j6,sourceFileMayBeEmitted:()=>LS,sourceMapCommentRegExp:()=>p4,sourceMapCommentRegExpDontCareLineStart:()=>JU,spacePart:()=>ul,spanMap:()=>Q5,spreadArrayHelper:()=>YF,stableSort:()=>Gg,startEndContainsRange:()=>qq,startEndOverlapsWithStartEnd:()=>m3,startOnNewLine:()=>Sd,startTracing:()=>iee,startsWith:()=>Ui,startsWithDirectory:()=>CG,startsWithUnderscore:()=>LJ,startsWithUseStrict:()=>mie,stringContainsAt:()=>Ele,stringToToken:()=>LE,stripQuotes:()=>Sf,supportedDeclarationExtensions:()=>s2,supportedJSExtensions:()=>QV,supportedJSExtensionsFlat:()=>Px,supportedLocaleDirectories:()=>a9,supportedTSExtensions:()=>Nx,supportedTSExtensionsFlat:()=>$V,supportedTSImplementationExtensions:()=>l2,suppressLeadingAndTrailingTrivia:()=>qu,suppressLeadingTrivia:()=>TJ,suppressTrailingTrivia:()=>dle,symbolEscapedNameNoDefault:()=>D3,symbolName:()=>$s,symbolNameNoDefault:()=>R3,symbolPart:()=>ele,symbolToDisplayParts:()=>tP,syntaxMayBeASICandidate:()=>zJ,syntaxRequiresTrailingSemicolonOrASI:()=>W3,sys:()=>Hc,sysLog:()=>SM,tagNamesAreEquivalent:()=>Fb,takeWhile:()=>n8,targetOptionDeclaration:()=>Y2,templateObjectHelper:()=>KF,testFormatSettings:()=>Cse,textChangeRangeIsUnchanged:()=>Iee,textChangeRangeNewSpan:()=>ZD,textChanges:()=>er,textOrKeywordPart:()=>gJ,textPart:()=>Pp,textRangeContainsPositionInclusive:()=>wM,textSpanContainsPosition:()=>OG,textSpanContainsTextSpan:()=>Eee,textSpanEnd:()=>Al,textSpanIntersection:()=>Aee,textSpanIntersectsWith:()=>P8,textSpanIntersectsWithPosition:()=>Tee,textSpanIntersectsWithTextSpan:()=>rye,textSpanIsEmpty:()=>bee,textSpanOverlap:()=>See,textSpanOverlapsWith:()=>nye,textSpansEqual:()=>vR,textToKeywordObj:()=>kM,timestamp:()=>Is,toArray:()=>yA,toBuilderFileEmit:()=>Vae,toBuilderStateFileInfoForMultiEmit:()=>Gae,toEditorSettings:()=>vO,toFileNameLowerCase:()=>D_,toLowerCase:()=>FZ,toPath:()=>ks,toProgramEmitPending:()=>jae,tokenIsIdentifierOrKeyword:()=>Md,tokenIsIdentifierOrKeywordOrGreaterThan:()=>_ee,tokenToString:()=>qo,trace:()=>to,tracing:()=>qn,tracingEnabled:()=>vM,transform:()=>X1e,transformClassFields:()=>Yoe,transformDeclarations:()=>lH,transformECMAScriptModule:()=>sH,transformES2015:()=>uae,transformES2016:()=>dae,transformES2017:()=>eae,transformES2018:()=>tae,transformES2019:()=>nae,transformES2020:()=>rae,transformES2021:()=>iae,transformES5:()=>pae,transformESDecorators:()=>Zoe,transformESNext:()=>oae,transformGenerators:()=>fae,transformJsx:()=>cae,transformLegacyDecorators:()=>Qoe,transformModule:()=>aH,transformNamedEvaluation:()=>Uu,transformNodeModule:()=>_ae,transformNodes:()=>mk,transformSystemModule:()=>mae,transformTypeScript:()=>Xoe,transpile:()=>oIe,transpileModule:()=>Ble,transpileOptionValueCompilerOptions:()=>hU,tryAddToSet:()=>db,tryAndIgnoreErrors:()=>G3,tryCast:()=>Vr,tryDirectoryExists:()=>B3,tryExtractTSExtension:()=>JW,tryFileExists:()=>eO,tryGetClassExtendingExpressionWithTypeArguments:()=>dV,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>uV,tryGetDirectories:()=>z3,tryGetExtensionFromPath:()=>og,tryGetImportFromModuleSpecifier:()=>xL,tryGetJSDocSatisfiesTypeNode:()=>bF,tryGetModuleNameFromFile:()=>k2,tryGetModuleSpecifierFromDeclaration:()=>sx,tryGetNativePerformanceHooks:()=>eee,tryGetPropertyAccessOrIdentifierToString:()=>HL,tryGetPropertyNameOfBindingOrAssignmentElement:()=>P6,tryGetSourceMappingURL:()=>Poe,tryGetTextOfPropertyName:()=>fC,tryIOAndConsumeErrors:()=>V3,tryParseJson:()=>KW,tryParsePattern:()=>xx,tryParsePatterns:()=>fF,tryParseRawSourceMap:()=>HU,tryReadDirectory:()=>xJ,tryReadFile:()=>SN,tryRemoveDirectoryPrefix:()=>xV,tryRemoveExtension:()=>ire,tryRemovePrefix:()=>fB,tryRemoveSuffix:()=>UZ,typeAcquisitionDeclarations:()=>$2,typeAliasNamePart:()=>rle,typeDirectiveIsEqualTo:()=>gte,typeKeywords:()=>X3,typeParameterNamePart:()=>ile,typeToDisplayParts:()=>Xk,unchangedPollThresholds:()=>TM,unchangedTextChangeRange:()=>eL,unescapeLeadingUnderscores:()=>Ii,unmangleScopedPackageName:()=>ak,unorderedRemoveItem:()=>bA,unorderedRemoveItemAt:()=>uB,unreachableCodeIsError:()=>Jne,unusedLabelIsError:()=>Kne,unwrapInnermostStatementOfLabel:()=>R9,updateErrorForNoInputFiles:()=>z6,updateLanguageServiceSourceFile:()=>wK,updateMissingFilePathsWatch:()=>vH,updateResolutionField:()=>$x,updateSharedExtendedConfigFileWatcher:()=>N4,updateSourceFile:()=>Kj,updateWatchingWildcardDirectories:()=>gk,usesExtensionsOnImports:()=>tre,usingSingleLineStringWriter:()=>dC,utf16EncodeAsString:()=>F1,validateLocaleAndSetLanguage:()=>oye,valuesHelper:()=>ZF,version:()=>yp,versionMajorMinor:()=>uh,visitArray:()=>ck,visitCommaListElements:()=>dk,visitEachChild:()=>un,visitFunctionBody:()=>Dp,visitIterationBody:()=>Qd,visitLexicalEnvironment:()=>jU,visitNode:()=>He,visitNodes:()=>Dn,visitParameterList:()=>rl,walkUpBindingElementsAndPatterns:()=>B1,walkUpLexicalEnvironments:()=>Foe,walkUpOuterExpressions:()=>_ie,walkUpParenthesizedExpressions:()=>Zg,walkUpParenthesizedTypes:()=>PL,walkUpParenthesizedTypesAndGetParentAndChild:()=>nne,whitespaceOrMapCommentRegExp:()=>f4,writeCommentRange:()=>bx,writeFile:()=>RC,writeFileEnsuringDirectories:()=>oV,zipWith:()=>J5});var Ty=pt({"src/server/_namespaces/ts.ts"(){"use strict";wo(),Pk(),Hr(),ZY(),hT()}}),YMe={};Ra(YMe,{ActionInvalidate:()=>Ck,ActionPackageInstalled:()=>Nk,ActionSet:()=>Dk,ActionWatchTypingLocations:()=>JN,Arguments:()=>gq,AutoImportProviderProject:()=>f$,AuxiliaryProject:()=>u$,CharRangeSection:()=>x$,CloseFileWatcherEvent:()=>g7,CommandNames:()=>gme,ConfigFileDiagEvent:()=>p7,ConfiguredProject:()=>m$,CreateDirectoryWatcherEvent:()=>h7,CreateFileWatcherEvent:()=>_7,Errors:()=>vv,EventBeginInstallTypes:()=>i3,EventEndInstallTypes:()=>o3,EventInitializationFailed:()=>hq,EventTypesRegistry:()=>r3,ExternalProject:()=>o7,GcTimer:()=>i$,InferredProject:()=>d$,LargeFileReferencedEvent:()=>u7,LineIndex:()=>EP,LineLeaf:()=>$O,LineNode:()=>jI,LogLevel:()=>e$,Msg:()=>t$,OpenFileInfoTelemetryEvent:()=>v$,Project:()=>_T,ProjectInfoTelemetryEvent:()=>m7,ProjectKind:()=>yP,ProjectLanguageServiceStateEvent:()=>f7,ProjectLoadingFinishEvent:()=>d7,ProjectLoadingStartEvent:()=>c7,ProjectReferenceProjectLoadKind:()=>E$,ProjectService:()=>S$,ProjectsUpdatedInBackgroundEvent:()=>KO,ScriptInfo:()=>s$,ScriptVersionCache:()=>E7,Session:()=>yme,TextStorage:()=>a$,ThrottledOperations:()=>r$,TypingsCache:()=>l$,TypingsInstallerAdapter:()=>Sme,allFilesAreJsOrDts:()=>Xfe,allRootFilesAreJsOrDts:()=>Kfe,asNormalizedPath:()=>TMe,convertCompilerOptions:()=>a7,convertFormatOptions:()=>zR,convertScriptKindName:()=>h$,convertTypeAcquisition:()=>Qfe,convertUserPreferences:()=>Zfe,convertWatchOptions:()=>JO,countEachFileTypes:()=>HO,createInstallTypingsRequest:()=>Rfe,createModuleSpecifierCache:()=>cme,createNormalizedPathMap:()=>AMe,createPackageJsonCache:()=>dme,createSortedArray:()=>Mfe,emptyArray:()=>ql,findArgument:()=>uAe,forEachResolvedProjectReferenceProject:()=>BR,formatDiagnosticToProtocol:()=>YO,formatMessage:()=>ume,getBaseConfigFileName:()=>n$,getLocationInNewDocument:()=>_me,hasArgument:()=>dAe,hasNoTypeScriptSource:()=>Yfe,indent:()=>qN,isBackgroundProject:()=>qO,isConfigFile:()=>ome,isConfiguredProject:()=>Yb,isDynamicFileName:()=>UO,isExternalProject:()=>c$,isInferredProject:()=>FR,isInferredProjectName:()=>Dfe,makeAutoImportProviderProjectName:()=>Nfe,makeAuxiliaryProjectName:()=>Pfe,makeInferredProjectName:()=>Cfe,maxFileSize:()=>l7,maxProgramSizeForNonTsFiles:()=>s7,normalizedPathToPath:()=>jO,nowString:()=>pAe,nullCancellationToken:()=>hme,nullTypingsInstaller:()=>i7,projectContainsInfoDirectly:()=>GI,protocol:()=>Jfe,removeSorted:()=>IMe,stringifyIndented:()=>Ub,toEvent:()=>pme,toNormalizedPath:()=>js,tryConvertScriptKindName:()=>_$,typingsInstaller:()=>Ife,updateProjectIfDirty:()=>up});var xet=pt({"src/typescript/_namespaces/ts.server.ts"(){"use strict";a3(),hT()}}),$Me={};Ra($Me,{ANONYMOUS:()=>Y3,AccessFlags:()=>HB,AssertionLevel:()=>hB,AssignmentDeclarationKind:()=>eG,AssignmentKind:()=>VV,Associativity:()=>UV,BreakpointResolver:()=>jK,BuilderFileEmit:()=>JH,BuilderProgramKind:()=>KH,BuilderState:()=>Qf,BundleFileSectionKind:()=>vG,CallHierarchy:()=>LI,CharacterCodes:()=>uG,CheckFlags:()=>BB,CheckMode:()=>c4,ClassificationType:()=>wq,ClassificationTypeNames:()=>Oq,CommentDirectiveType:()=>IB,Comparison:()=>q5,CompletionInfoFlags:()=>Dq,CompletionTriggerKind:()=>Tq,Completions:()=>FI,ContainerFlags:()=>wU,ContextFlags:()=>PB,Debug:()=>x,DiagnosticCategory:()=>bM,Diagnostics:()=>f,DocumentHighlights:()=>Z3,ElementFlags:()=>UB,EmitFlags:()=>y8,EmitHint:()=>_G,EmitOnly:()=>RB,EndOfLineState:()=>Pq,EnumKind:()=>zB,ExitStatus:()=>DB,ExportKind:()=>UJ,Extension:()=>pG,ExternalEmitHelpers:()=>mG,FileIncludeKind:()=>d8,FilePreprocessingDiagnosticsKind:()=>xB,FileSystemEntryKind:()=>AG,FileWatcherEventKind:()=>TG,FindAllReferences:()=>ps,FlattenLevel:()=>eH,FlowFlags:()=>yM,ForegroundColorEscapeSequences:()=>zH,FunctionFlags:()=>jV,GeneratedIdentifierFlags:()=>c8,GetLiteralTextFlags:()=>zV,GoToDefinition:()=>LR,HighlightSpanKind:()=>Iq,IdentifierNameMap:()=>SI,IdentifierNameMultiMap:()=>ZU,ImportKind:()=>jJ,ImportsNotUsedAsValues:()=>aG,IndentStyle:()=>xq,IndexFlags:()=>qB,IndexKind:()=>XB,InferenceFlags:()=>QB,InferencePriority:()=>$B,InlayHintKind:()=>Aq,InlayHints:()=>OY,InternalEmitFlags:()=>fG,InternalSymbolName:()=>GB,InvalidatedProjectKind:()=>_q,JSDocParsingMode:()=>EG,JsDoc:()=>Xb,JsTyping:()=>s_,JsxEmit:()=>oG,JsxFlags:()=>TB,JsxReferenceKind:()=>JB,LanguageServiceMode:()=>bq,LanguageVariant:()=>cG,LexicalEnvironmentFlags:()=>gG,ListFormat:()=>yG,LogLevel:()=>vB,MemberOverrideStatus:()=>CB,ModifierFlags:()=>s8,ModuleDetectionKind:()=>tG,ModuleInstanceState:()=>OU,ModuleKind:()=>HD,ModuleResolutionKind:()=>O1,ModuleSpecifierEnding:()=>ZV,NavigateTo:()=>jle,NavigationBar:()=>Zle,NewLineKind:()=>sG,NodeBuilderFlags:()=>MB,NodeCheckFlags:()=>VB,NodeFactoryFlags:()=>sj,NodeFlags:()=>a8,NodeResolutionFeatures:()=>MU,ObjectFlags:()=>m8,OperationCanceledException:()=>k1,OperatorPrecedence:()=>HV,OrganizeImports:()=>Zf,OrganizeImportsMode:()=>Sq,OuterExpressionKinds:()=>hG,OutliningElementsCollector:()=>zY,OutliningSpanKind:()=>Cq,OutputFileType:()=>Nq,PackageJsonAutoImportPreference:()=>yq,PackageJsonDependencyGroup:()=>vq,PatternMatchKind:()=>ez,PollingInterval:()=>b8,PollingWatchKind:()=>iG,PragmaKindFlags:()=>bG,PrivateIdentifierKind:()=>mj,ProcessLevel:()=>iH,ProgramUpdateLevel:()=>bH,QuotePreference:()=>WJ,RelationComparisonResult:()=>l8,Rename:()=>$z,ScriptElementKind:()=>Lq,ScriptElementKindModifier:()=>kq,ScriptKind:()=>h8,ScriptSnapshot:()=>l3,ScriptTarget:()=>lG,SemanticClassificationFormat:()=>Eq,SemanticMeaning:()=>wJ,SemicolonPreference:()=>Rq,SignatureCheckMode:()=>d4,SignatureFlags:()=>_8,SignatureHelp:()=>OO,SignatureKind:()=>KB,SmartSelectionRange:()=>VY,SnippetKind:()=>v8,SortKind:()=>_B,StructureIsReused:()=>u8,SymbolAccessibility:()=>OB,SymbolDisplay:()=>gv,SymbolDisplayPartKind:()=>Mk,SymbolFlags:()=>p8,SymbolFormatFlags:()=>kB,SyntaxKind:()=>o8,SyntheticSymbolKind:()=>wB,Ternary:()=>ZB,ThrottledCancellationToken:()=>VK,TokenClass:()=>Mq,TokenFlags:()=>AB,TransformFlags:()=>g8,TypeFacts:()=>l4,TypeFlags:()=>f8,TypeFormatFlags:()=>LB,TypeMapKind:()=>YB,TypePredicateKind:()=>WB,TypeReferenceSerializationKind:()=>FB,UnionReduction:()=>NB,UpToDateStatusType:()=>uq,VarianceFlags:()=>jB,Version:()=>zf,VersionRange:()=>hM,WatchDirectoryFlags:()=>dG,WatchDirectoryKind:()=>rG,WatchFileKind:()=>nG,WatchLogLevel:()=>EH,WatchType:()=>dc,accessPrivateIdentifier:()=>Boe,addDisposableResourceHelper:()=>s6,addEmitFlags:()=>Zm,addEmitHelper:()=>$A,addEmitHelpers:()=>ag,addInternalEmitFlags:()=>XA,addNodeFactoryPatcher:()=>Lbe,addObjectAllocatorPatcher:()=>Vne,addRange:()=>Pr,addRelatedInfo:()=>pa,addSyntheticLeadingComment:()=>iN,addSyntheticTrailingComment:()=>kF,addToSeen:()=>Jf,advancedAsyncSuperHelper:()=>y2,affectsDeclarationPathOptionDeclarations:()=>mU,affectsEmitOptionDeclarations:()=>fU,allKeysStartWithDot:()=>t4,altDirectorySeparator:()=>DM,and:()=>Zw,append:()=>pn,appendIfUnique:()=>Kh,arrayFrom:()=>bo,arrayIsEqualTo:()=>mm,arrayIsHomogeneous:()=>lre,arrayIsSorted:()=>Hw,arrayOf:()=>OZ,arrayReverseIterator:()=>tB,arrayToMap:()=>PE,arrayToMultiMap:()=>fM,arrayToNumericMap:()=>WZ,arraysEqual:()=>dM,assertType:()=>fve,assign:()=>R1,assignHelper:()=>GF,asyncDelegator:()=>jF,asyncGeneratorHelper:()=>VF,asyncSuperHelper:()=>v2,asyncValues:()=>UF,attachFileToDiagnostics:()=>UA,awaitHelper:()=>QA,awaiterHelper:()=>qF,base64decode:()=>Pne,base64encode:()=>Nne,binarySearch:()=>Vg,binarySearchKey:()=>gA,bindSourceFile:()=>_oe,breakIntoCharacterSpans:()=>wle,breakIntoWordSpans:()=>Wle,buildLinkParts:()=>ale,buildOpts:()=>U6,buildOverload:()=>gMe,bundlerModuleNameResolver:()=>ooe,canBeConvertedToAsync:()=>tK,canHaveDecorators:()=>ZS,canHaveExportModifier:()=>e2,canHaveFlowNode:()=>DL,canHaveIllegalDecorators:()=>jj,canHaveIllegalModifiers:()=>yie,canHaveIllegalType:()=>lEe,canHaveIllegalTypeParameters:()=>vie,canHaveJSDoc:()=>CL,canHaveLocals:()=>M_,canHaveModifiers:()=>Yf,canHaveSymbol:()=>Hm,canJsonReportNoInputFiles:()=>TN,canProduceDiagnostics:()=>T4,canUsePropertyAccess:()=>OV,canWatchAffectingLocation:()=>Jae,canWatchAtTypes:()=>qae,canWatchDirectoryOrFile:()=>U4,cartesianProduct:()=>JZ,cast:()=>Fo,chainBundle:()=>$f,chainDiagnosticMessages:()=>So,changeAnyExtension:()=>xM,changeCompilerHostLikeToUseCache:()=>bk,changeExtension:()=>Nb,changeFullExtension:()=>pee,changesAffectModuleResolution:()=>Y8,changesAffectingProgramStructure:()=>mte,childIsDecorated:()=>hC,classElementOrClassElementParameterIsDecorated:()=>D9,classHasClassThisAssignment:()=>tH,classHasDeclaredOrExplicitlyAssignedName:()=>nH,classHasExplicitlyAssignedName:()=>b4,classOrConstructorParameterIsDecorated:()=>Qg,classPrivateFieldGetHelper:()=>i6,classPrivateFieldInHelper:()=>a6,classPrivateFieldSetHelper:()=>o6,classicNameResolver:()=>uoe,classifier:()=>Kce,cleanExtendedConfigCache:()=>P4,clear:()=>ph,clearMap:()=>Au,clearSharedExtendedConfigFileWatcher:()=>gH,climbPastPropertyAccess:()=>d3,climbPastPropertyOrElementAccess:()=>Lse,clone:()=>aB,cloneCompilerOptions:()=>tJ,closeFileWatcher:()=>vm,closeFileWatcherOf:()=>Qp,codefix:()=>ud,collapseTextChangeRangesAcrossMultipleVersions:()=>xee,collectExternalModuleInfo:()=>XU,combine:()=>x1,combinePaths:()=>wr,commentPragmas:()=>EM,commonOptionsWithBuild:()=>X2,commonPackageFolders:()=>KV,compact:()=>pM,compareBooleans:()=>zv,compareDataObjects:()=>vV,compareDiagnostics:()=>zC,compareDiagnosticsSkipRelatedInformation:()=>tF,compareEmitHelpers:()=>Fre,compareNumberOfDirectorySeparators:()=>$L,comparePaths:()=>Xh,comparePathsCaseInsensitive:()=>Bve,comparePathsCaseSensitive:()=>zve,comparePatternKeys:()=>NU,compareProperties:()=>jZ,compareStringsCaseInsensitive:()=>$w,compareStringsCaseInsensitiveEslintCompatible:()=>BZ,compareStringsCaseSensitive:()=>gd,compareStringsCaseSensitiveUI:()=>_M,compareTextSpans:()=>Yw,compareValues:()=>Ms,compileOnSaveCommandLineOption:()=>J2,compilerOptionsAffectDeclarationPath:()=>Qne,compilerOptionsAffectEmit:()=>$ne,compilerOptionsAffectSemanticDiagnostics:()=>Yne,compilerOptionsDidYouMeanDiagnostics:()=>Q2,compilerOptionsIndicateEsModules:()=>sJ,compose:()=>uve,computeCommonSourceDirectoryOfFilenames:()=>Iae,computeLineAndCharacterOfPosition:()=>W1,computeLineOfPosition:()=>XD,computeLineStarts:()=>IA,computePositionOfLineAndCharacter:()=>R8,computeSignature:()=>oT,computeSignatureWithDiagnostics:()=>jH,computeSuggestionDiagnostics:()=>QJ,computedOptions:()=>Ul,concatenate:()=>ro,concatenateDiagnosticMessageChains:()=>qne,consumesNodeCoreModules:()=>j3,contains:()=>To,containsIgnoredPath:()=>KC,containsObjectRestOrSpread:()=>F2,containsParseError:()=>X1,containsPath:()=>Bf,convertCompilerOptionsForTelemetry:()=>Vie,convertCompilerOptionsFromJson:()=>u0e,convertJsonOption:()=>eT,convertToBase64:()=>Cne,convertToJson:()=>U2,convertToObject:()=>Wie,convertToOptionsWithAbsolutePaths:()=>sU,convertToRelativePath:()=>KD,convertToTSConfig:()=>$Ee,convertTypeAcquisitionFromJson:()=>p0e,copyComments:()=>cT,copyEntries:()=>$8,copyLeadingComments:()=>bR,copyProperties:()=>sB,copyTrailingAsLeadingComments:()=>Qk,copyTrailingComments:()=>nP,couldStartTrivia:()=>hee,countWhere:()=>Wv,createAbstractBuilder:()=>vTe,createAccessorPropertyBackingField:()=>Hj,createAccessorPropertyGetRedirector:()=>Rie,createAccessorPropertySetRedirector:()=>Die,createBaseNodeFactory:()=>Sre,createBinaryExpressionTrampoline:()=>M6,createBindingHelper:()=>Lx,createBuildInfo:()=>_k,createBuilderProgram:()=>UH,createBuilderProgramUsingProgramBuildInfo:()=>Uae,createBuilderStatusReporter:()=>sse,createCacheWithRedirects:()=>SU,createCacheableExportInfoMap:()=>BJ,createCachedDirectoryStructureHost:()=>C4,createClassNamedEvaluationHelperBlock:()=>qoe,createClassThisAssignmentBlock:()=>Uoe,createClassifier:()=>OAe,createCommentDirectivesMap:()=>bte,createCompilerDiagnostic:()=>bl,createCompilerDiagnosticForInvalidCustomType:()=>Mie,createCompilerDiagnosticFromMessageChain:()=>eF,createCompilerHost:()=>xae,createCompilerHostFromProgramHost:()=>sq,createCompilerHostWorker:()=>AH,createDetachedDiagnostic:()=>Ix,createDiagnosticCollection:()=>hx,createDiagnosticForFileFromMessageChain:()=>T9,createDiagnosticForNode:()=>vr,createDiagnosticForNodeArray:()=>Q1,createDiagnosticForNodeArrayFromMessageChain:()=>sL,createDiagnosticForNodeFromMessageChain:()=>eg,createDiagnosticForNodeInSourceFile:()=>vf,createDiagnosticForRange:()=>Mte,createDiagnosticMessageChainFromDiagnostic:()=>Pte,createDiagnosticReporter:()=>Ik,createDocumentPositionMapper:()=>koe,createDocumentRegistry:()=>Ile,createDocumentRegistryInternal:()=>JJ,createEmitAndSemanticDiagnosticsBuilderProgram:()=>XH,createEmitHelperFactory:()=>Wre,createEmptyExports:()=>N2,createExpressionForJsxElement:()=>uie,createExpressionForJsxFragment:()=>pie,createExpressionForObjectLiteralElementLike:()=>fie,createExpressionForPropertyName:()=>Wj,createExpressionFromEntityName:()=>P2,createExternalHelpersImportDeclarationIfNeeded:()=>Bj,createFileDiagnostic:()=>Rc,createFileDiagnosticFromMessageChain:()=>aW,createForOfBindingStatement:()=>wj,createGetCanonicalFileName:()=>od,createGetSourceFile:()=>SH,createGetSymbolAccessibilityDiagnosticForNode:()=>cv,createGetSymbolAccessibilityDiagnosticForNodeName:()=>hae,createGetSymbolWalker:()=>hoe,createIncrementalCompilerHost:()=>cq,createIncrementalProgram:()=>ose,createInputFiles:()=>Obe,createInputFilesWithFilePaths:()=>oj,createInputFilesWithFileTexts:()=>aj,createJsxFactoryExpression:()=>Oj,createLanguageService:()=>Vce,createLanguageServiceSourceFile:()=>Az,createMemberAccessForPropertyName:()=>QS,createModeAwareCache:()=>bI,createModeAwareCacheKey:()=>DN,createModuleNotFoundChain:()=>Q8,createModuleResolutionCache:()=>Qx,createModuleResolutionLoader:()=>NH,createModuleResolutionLoaderUsingGlobalCache:()=>$ae,createModuleSpecifierResolutionHost:()=>lT,createMultiMap:()=>bp,createNodeConverters:()=>Are,createNodeFactory:()=>d2,createOptionNameMap:()=>O6,createOverload:()=>QY,createPackageJsonImportFilter:()=>oP,createPackageJsonInfo:()=>DJ,createParenthesizerRules:()=>Tre,createPatternMatcher:()=>Nle,createPrependNodes:()=>WH,createPrinter:()=>Vb,createPrinterWithDefaults:()=>_H,createPrinterWithRemoveComments:()=>y0,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>hH,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>hk,createProgram:()=>w4,createProgramHost:()=>lq,createPropertyNameNodeForIdentifierOrLiteral:()=>vF,createQueue:()=>mM,createRange:()=>qp,createRedirectedBuilderProgram:()=>qH,createResolutionCache:()=>$H,createRuntimeTypeSerializer:()=>$oe,createScanner:()=>Kg,createSemanticDiagnosticsBuilderProgram:()=>gTe,createSet:()=>lB,createSolutionBuilder:()=>kTe,createSolutionBuilderHost:()=>MTe,createSolutionBuilderWithWatch:()=>OTe,createSolutionBuilderWithWatchHost:()=>LTe,createSortedArray:()=>eB,createSourceFile:()=>B2,createSourceMapGenerator:()=>Noe,createSourceMapSource:()=>wbe,createSuperAccessVariableStatement:()=>S4,createSymbolTable:()=>Vo,createSymlinkCache:()=>IV,createSystemWatchFunctions:()=>lee,createTextChange:()=>jk,createTextChangeFromStartLength:()=>A3,createTextChangeRange:()=>FM,createTextRangeFromNode:()=>iJ,createTextRangeFromSpan:()=>T3,createTextSpan:()=>qc,createTextSpanFromBounds:()=>Gl,createTextSpanFromNode:()=>eu,createTextSpanFromRange:()=>yy,createTextSpanFromStringLiteralLikeContent:()=>rJ,createTextWriter:()=>GL,createTokenRange:()=>_V,createTypeChecker:()=>Aoe,createTypeReferenceDirectiveResolutionCache:()=>Q6,createTypeReferenceResolutionLoader:()=>L4,createUnparsedSourceFile:()=>ij,createWatchCompilerHost:()=>CTe,createWatchCompilerHostOfConfigFile:()=>nse,createWatchCompilerHostOfFilesAndCompilerOptions:()=>rse,createWatchFactory:()=>aq,createWatchHost:()=>oq,createWatchProgram:()=>NTe,createWatchStatusReporter:()=>Qae,createWriteFileMeasuringIO:()=>TH,declarationNameToString:()=>is,decodeMappings:()=>qU,decodedTextSpanIntersectsWith:()=>WM,decorateHelper:()=>wF,deduplicate:()=>NE,defaultIncludeSpec:()=>J6,defaultInitCompilerOptions:()=>H6,defaultMaximumTruncationLength:()=>i2,detectSortCaseSensitivity:()=>BD,diagnosticCategoryName:()=>_S,diagnosticToString:()=>uT,directoryProbablyExists:()=>gm,directorySeparator:()=>Os,displayPart:()=>Ru,displayPartsToString:()=>yO,disposeEmitNodes:()=>lj,disposeResourcesHelper:()=>l6,documentSpansEqual:()=>pJ,dumpTracingLegend:()=>oee,elementAt:()=>qg,elideNodes:()=>xie,emitComments:()=>vne,emitDetachedComments:()=>yne,emitFiles:()=>x4,emitFilesAndReportErrors:()=>K4,emitFilesAndReportErrorsAndGetExitStatus:()=>tse,emitModuleKindIsNonNodeESM:()=>nF,emitNewLineBeforeLeadingCommentOfPosition:()=>gne,emitNewLineBeforeLeadingComments:()=>_ne,emitNewLineBeforeLeadingCommentsOfPosition:()=>hne,emitSkippedWithNoDiagnostics:()=>G4,emitUsingBuildInfo:()=>Eae,emptyArray:()=>je,emptyFileSystemEntries:()=>NF,emptyMap:()=>r8,emptyOptions:()=>ef,emptySet:()=>XZ,endsWith:()=>Zs,ensurePathIsNonModuleName:()=>ME,ensureScriptKind:()=>uF,ensureTrailingDirectorySeparator:()=>_c,entityNameToString:()=>Wu,enumerateInsertsAndDeletes:()=>t8,equalOwnProperties:()=>wZ,equateStringsCaseInsensitive:()=>pb,equateStringsCaseSensitive:()=>pS,equateValues:()=>Hg,esDecorateHelper:()=>zF,escapeJsxAttributeString:()=>tV,escapeLeadingUnderscores:()=>Hs,escapeNonAsciiString:()=>BL,escapeSnippetText:()=>t0,escapeString:()=>Th,escapeTemplateSubstitution:()=>Z9,every:()=>ji,expandPreOrPostfixIncrementOrDecrementExpression:()=>x6,explainFiles:()=>eq,explainIfFileIsRedirectAndImpliedFormat:()=>tq,exportAssignmentIsAlias:()=>px,exportStarHelper:()=>r6,expressionResultIsUnused:()=>dre,extend:()=>Xw,extendsHelper:()=>JF,extensionFromPath:()=>jC,extensionIsTS:()=>mF,extensionsNotSupportingExtensionlessResolution:()=>c2,externalHelpersModuleNameText:()=>ay,factory:()=>P,fileExtensionIs:()=>el,fileExtensionIsOneOf:()=>$l,fileIncludeReasonToDiagnostics:()=>iq,fileShouldUseJavaScriptRequire:()=>OJ,filter:()=>Cr,filterMutate:()=>X5,filterSemanticDiagnostics:()=>W4,find:()=>Dr,findAncestor:()=>Rn,findBestPatternMatch:()=>pB,findChildOfKind:()=>Ya,findComputedPropertyNameCacheAssignment:()=>L6,findConfigFile:()=>Aae,findContainingList:()=>_3,findDiagnosticForNode:()=>gle,findFirstNonJsxWhitespaceToken:()=>Fse,findIndex:()=>Tl,findLast:()=>hA,findLastIndex:()=>Uw,findListItemInfo:()=>Wse,findMap:()=>sve,findModifier:()=>gR,findNextToken:()=>S0,findPackageJson:()=>_le,findPackageJsons:()=>RJ,findPrecedingMatchingToken:()=>E3,findPrecedingToken:()=>ec,findSuperStatementIndexPath:()=>g4,findTokenOnLeftOfPosition:()=>v3,findUseStrictPrologue:()=>zj,first:()=>Sa,firstDefined:()=>ml,firstDefinedIterator:()=>cM,firstIterator:()=>rB,firstOrOnly:()=>MJ,firstOrUndefined:()=>Ac,firstOrUndefinedIterator:()=>qw,fixupCompilerOptions:()=>rK,flatMap:()=>ta,flatMapIterator:()=>Y5,flatMapToMutable:()=>wD,flatten:()=>Ff,flattenCommaList:()=>Cie,flattenDestructuringAssignment:()=>nT,flattenDestructuringBinding:()=>v0,flattenDiagnosticMessageText:()=>o_,forEach:()=>an,forEachAncestor:()=>_te,forEachAncestorDirectory:()=>Vf,forEachChild:()=>Ao,forEachChildRecursively:()=>EN,forEachEmittedFile:()=>uH,forEachEnclosingBlockScopeContainer:()=>Dte,forEachEntry:()=>hc,forEachExternalModuleToImportFrom:()=>VJ,forEachImportClauseDeclaration:()=>CW,forEachKey:()=>k_,forEachLeadingCommentRange:()=>MM,forEachNameInAccessChainWalkingLeft:()=>Bne,forEachPropertyAssignment:()=>nx,forEachResolvedProjectReference:()=>MH,forEachReturnStatement:()=>GE,forEachRight:()=>RZ,forEachTrailingCommentRange:()=>LM,forEachTsConfigPropArray:()=>uL,forEachUnique:()=>mJ,forEachYieldExpression:()=>kte,forSomeAncestorDirectory:()=>ibe,formatColorAndReset:()=>b0,formatDiagnostic:()=>IH,formatDiagnostics:()=>QSe,formatDiagnosticsWithColorAndContext:()=>Rae,formatGeneratedName:()=>Wb,formatGeneratedNamePart:()=>Jx,formatLocation:()=>xH,formatMessage:()=>SV,formatStringFromArgs:()=>xh,formatting:()=>uc,fullTripleSlashAMDReferencePathRegEx:()=>GV,fullTripleSlashReferencePathRegEx:()=>BV,generateDjb2Hash:()=>qD,generateTSConfig:()=>n0e,generatorHelper:()=>e6,getAdjustedReferenceLocation:()=>Xq,getAdjustedRenameLocation:()=>g3,getAliasDeclarationFromName:()=>V9,getAllAccessorDeclarations:()=>wS,getAllDecoratorsOfClass:()=>$U,getAllDecoratorsOfClassElement:()=>y4,getAllJSDocTags:()=>O8,getAllJSDocTagsOfKind:()=>_ye,getAllKeys:()=>cve,getAllProjectOutputs:()=>I4,getAllSuperTypeNodes:()=>EC,getAllUnscopedEmitHelpers:()=>fj,getAllowJSCompilerOption:()=>sy,getAllowSyntheticDefaultImports:()=>zS,getAncestor:()=>Db,getAnyExtensionFromPath:()=>w1,getAreDeclarationMapsEnabled:()=>a2,getAssignedExpandoInitializer:()=>LA,getAssignedName:()=>L8,getAssignedNameOfIdentifier:()=>ON,getAssignmentDeclarationKind:()=>hl,getAssignmentDeclarationPropertyAccessKind:()=>TL,getAssignmentTargetKind:()=>WA,getAutomaticTypeDirectiveNames:()=>Y6,getBaseFileName:()=>Ll,getBinaryOperatorPrecedence:()=>zL,getBuildInfo:()=>R4,getBuildInfoFileVersionMap:()=>HH,getBuildInfoText:()=>bae,getBuildOrderFromAnyBuildOrder:()=>Z4,getBuilderCreationParameters:()=>V4,getBuilderFileEmit:()=>vy,getCheckFlags:()=>tl,getClassExtendsHeritageElement:()=>qE,getClassLikeDeclarationOfSymbol:()=>ig,getCombinedLocalAndExportSymbolFlags:()=>Sx,getCombinedModifierFlags:()=>gb,getCombinedNodeFlags:()=>Xg,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>wG,getCommentRange:()=>e_,getCommonSourceDirectory:()=>VN,getCommonSourceDirectoryOfConfig:()=>iR,getCompilerOptionValue:()=>iF,getCompilerOptionsDiffValue:()=>e0e,getConditions:()=>hy,getConfigFileParsingDiagnostics:()=>iT,getConstantValue:()=>Nre,getContainerFlags:()=>kU,getContainerNode:()=>sT,getContainingClass:()=>Oc,getContainingClassExcludingClassDecorators:()=>_W,getContainingClassStaticBlock:()=>jte,getContainingFunction:()=>cp,getContainingFunctionDeclaration:()=>Vte,getContainingFunctionOrClassStaticBlock:()=>mW,getContainingNodeArray:()=>ure,getContainingObjectLiteralElement:()=>bO,getContextualTypeFromParent:()=>O3,getContextualTypeFromParentOrAncestorTypeNode:()=>h3,getCurrentTime:()=>Rk,getDeclarationDiagnostics:()=>gae,getDeclarationEmitExtensionForPath:()=>FW,getDeclarationEmitOutputFilePath:()=>dne,getDeclarationEmitOutputFilePathWorker:()=>WW,getDeclarationFileExtension:()=>Xj,getDeclarationFromName:()=>bC,getDeclarationModifierFlagsFromSymbol:()=>Kp,getDeclarationOfKind:()=>Vs,getDeclarationsOfKind:()=>pte,getDeclaredExpandoInitializer:()=>yL,getDecorators:()=>Hv,getDefaultCompilerOptions:()=>Tz,getDefaultExportInfoWorker:()=>Q3,getDefaultFormatCodeSettings:()=>s3,getDefaultLibFileName:()=>OM,getDefaultLibFilePath:()=>jce,getDefaultLikeExportInfo:()=>$3,getDiagnosticText:()=>UEe,getDiagnosticsWithinSpan:()=>vle,getDirectoryPath:()=>Ur,getDirectoryToWatchFailedLookupLocation:()=>YH,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>Xae,getDocumentPositionMapper:()=>$J,getDocumentSpansEqualityComparer:()=>fJ,getESModuleInterop:()=>F_,getEditsForFileRename:()=>Rle,getEffectiveBaseTypeNode:()=>Jm,getEffectiveConstraintOfTypeParameter:()=>V1,getEffectiveContainerForJSDocTemplateTag:()=>NW,getEffectiveImplementsTypeNodes:()=>fx,getEffectiveInitializer:()=>vL,getEffectiveJSDocHost:()=>Rb,getEffectiveModifierFlags:()=>Wd,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Tne,getEffectiveModifierFlagsNoCache:()=>Ane,getEffectiveReturnTypeNode:()=>Tf,getEffectiveSetAccessorTypeAnnotationNode:()=>mne,getEffectiveTypeAnnotationNode:()=>Jc,getEffectiveTypeParameterDeclarations:()=>qv,getEffectiveTypeRoots:()=>RN,getElementOrPropertyAccessArgumentExpressionOrName:()=>DW,getElementOrPropertyAccessName:()=>tg,getElementsOfBindingOrAssignmentPattern:()=>qx,getEmitDeclarations:()=>Xp,getEmitFlags:()=>ya,getEmitHelpers:()=>OF,getEmitModuleDetectionKind:()=>qV,getEmitModuleKind:()=>ld,getEmitModuleResolutionKind:()=>zd,getEmitScriptTarget:()=>Wa,getEmitStandardClassFields:()=>Xne,getEnclosingBlockScopeContainer:()=>O_,getEnclosingContainer:()=>S9,getEncodedSemanticClassifications:()=>HJ,getEncodedSyntacticClassifications:()=>qJ,getEndLinePosition:()=>rL,getEntityNameFromTypeNode:()=>mL,getEntrypointsFromPackageJsonInfo:()=>RU,getErrorCountForSummary:()=>q4,getErrorSpanForNode:()=>IS,getErrorSummaryText:()=>Zae,getEscapedTextOfIdentifierOrLiteral:()=>AC,getEscapedTextOfJsxAttributeName:()=>QC,getEscapedTextOfJsxNamespacedName:()=>JA,getExpandoInitializer:()=>Ib,getExportAssignmentExpression:()=>j9,getExportInfoMap:()=>rO,getExportNeedsImportStarHelper:()=>Ooe,getExpressionAssociativity:()=>Y9,getExpressionPrecedence:()=>xC,getExternalHelpersModuleName:()=>L2,getExternalModuleImportEqualsDeclarationExpression:()=>gC,getExternalModuleName:()=>lx,getExternalModuleNameFromDeclaration:()=>lne,getExternalModuleNameFromPath:()=>rV,getExternalModuleNameLiteral:()=>hI,getExternalModuleRequireArgument:()=>N9,getFallbackOptions:()=>yk,getFileEmitOutput:()=>kae,getFileMatcherPatterns:()=>dF,getFileNamesFromConfigSpecs:()=>AN,getFileWatcherEventKind:()=>SG,getFilesInErrorForSummary:()=>J4,getFirstConstructorWithBody:()=>Ah,getFirstIdentifier:()=>dp,getFirstNonSpaceCharacterPosition:()=>cle,getFirstProjectOutput:()=>mH,getFixableErrorSpanExpression:()=>NJ,getFormatCodeSettingsForWriting:()=>J3,getFullWidth:()=>tL,getFunctionFlags:()=>gc,getHeritageClause:()=>OL,getHostSignatureFromJSDoc:()=>xb,getIdentifierAutoGenerate:()=>Gbe,getIdentifierGeneratedImportReference:()=>wre,getIdentifierTypeArguments:()=>BS,getImmediatelyInvokedFunctionExpression:()=>RS,getImpliedNodeFormatForFile:()=>Tk,getImpliedNodeFormatForFileWorker:()=>OH,getImportNeedsImportDefaultHelper:()=>KU,getImportNeedsImportStarHelper:()=>_4,getIndentSize:()=>vx,getIndentString:()=>OW,getInferredLibraryNameResolveFrom:()=>O4,getInitializedVariables:()=>wC,getInitializerOfBinaryExpression:()=>O9,getInitializerOfBindingOrAssignmentElement:()=>O2,getInterfaceBaseTypeNodes:()=>SC,getInternalEmitFlags:()=>Uf,getInvokedExpression:()=>vW,getIsolatedModules:()=>xf,getJSDocAugmentsTag:()=>Oee,getJSDocClassTag:()=>FG,getJSDocCommentRanges:()=>I9,getJSDocCommentsAndTags:()=>W9,getJSDocDeprecatedTag:()=>zG,getJSDocDeprecatedTagNoCache:()=>Vee,getJSDocEnumTag:()=>BG,getJSDocHost:()=>PS,getJSDocImplementsTags:()=>wee,getJSDocOverloadTags:()=>z9,getJSDocOverrideTagNoCache:()=>Gee,getJSDocParameterTags:()=>G1,getJSDocParameterTagsNoCache:()=>Pee,getJSDocPrivateTag:()=>dye,getJSDocPrivateTagNoCache:()=>Fee,getJSDocProtectedTag:()=>uye,getJSDocProtectedTagNoCache:()=>zee,getJSDocPublicTag:()=>cye,getJSDocPublicTagNoCache:()=>Wee,getJSDocReadonlyTag:()=>pye,getJSDocReadonlyTagNoCache:()=>Bee,getJSDocReturnTag:()=>jee,getJSDocReturnType:()=>BM,getJSDocRoot:()=>ux,getJSDocSatisfiesExpressionType:()=>WV,getJSDocSatisfiesTag:()=>GG,getJSDocTags:()=>Eb,getJSDocTagsNoCache:()=>mye,getJSDocTemplateTag:()=>fye,getJSDocThisTag:()=>k8,getJSDocType:()=>bb,getJSDocTypeAliasName:()=>Vj,getJSDocTypeAssertionType:()=>D6,getJSDocTypeParameterDeclarations:()=>VW,getJSDocTypeParameterTags:()=>Mee,getJSDocTypeParameterTagsNoCache:()=>Lee,getJSDocTypeTag:()=>yb,getJSXImplicitImportBase:()=>aF,getJSXRuntimeImport:()=>sF,getJSXTransformEnabled:()=>oF,getKeyForCompilerOptions:()=>EU,getLanguageVariant:()=>KL,getLastChild:()=>yV,getLeadingCommentRanges:()=>mh,getLeadingCommentRangesOfNode:()=>A9,getLeftmostAccessExpression:()=>Tx,getLeftmostExpression:()=>Ax,getLibraryNameFromLibFileName:()=>LH,getLineAndCharacterOfPosition:()=>$a,getLineInfo:()=>UU,getLineOfLocalPosition:()=>DC,getLineOfLocalPositionFromLineMap:()=>kS,getLineStartPositionForPosition:()=>Cf,getLineStarts:()=>Yh,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>wne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>One,getLinesBetweenPositions:()=>YD,getLinesBetweenRangeEndAndRangeStart:()=>hV,getLinesBetweenRangeEndPositions:()=>nbe,getLiteralText:()=>Ete,getLocalNameForExternalImport:()=>Hx,getLocalSymbolForExportDefault:()=>Ex,getLocaleSpecificMessage:()=>vo,getLocaleTimeString:()=>xk,getMappedContextSpan:()=>_J,getMappedDocumentSpan:()=>P3,getMappedLocation:()=>ZN,getMatchedFileSpec:()=>nq,getMatchedIncludeSpec:()=>rq,getMeaningFromDeclaration:()=>Lk,getMeaningFromLocation:()=>aT,getMembersOfDeclaration:()=>Ote,getModeForFileReference:()=>Ek,getModeForResolutionAtIndex:()=>Dae,getModeForUsageLocation:()=>DH,getModifiedTime:()=>SA,getModifiers:()=>kE,getModuleInstanceState:()=>dg,getModuleNameStringLiteralAt:()=>Ak,getModuleSpecifierEndingPreference:()=>nre,getModuleSpecifierResolverHost:()=>lJ,getNameForExportedSymbol:()=>U3,getNameFromImportAttribute:()=>SF,getNameFromIndexInfo:()=>Cte,getNameFromPropertyName:()=>qk,getNameOfAccessExpression:()=>EV,getNameOfCompilerOptionValue:()=>aU,getNameOfDeclaration:()=>mo,getNameOfExpando:()=>L9,getNameOfJSDocTypedef:()=>Nee,getNameOrArgument:()=>SL,getNameTable:()=>WK,getNamesForExportedSymbol:()=>yle,getNamespaceDeclarationNode:()=>cx,getNewLineCharacter:()=>rv,getNewLineKind:()=>nO,getNewLineOrDefaultFromHost:()=>mv,getNewTargetContainer:()=>Hte,getNextJSDocCommentLocation:()=>F9,getNodeForGeneratedName:()=>W2,getNodeId:()=>Fa,getNodeKind:()=>E0,getNodeModifiers:()=>YN,getNodeModulePathParts:()=>yF,getNonAssignedNameOfDeclaration:()=>M8,getNonAssignmentOperatorForCompoundAssignment:()=>MN,getNonAugmentationDeclaration:()=>h9,getNonDecoratorTokenPosOfNode:()=>u9,getNormalizedAbsolutePath:()=>Qi,getNormalizedAbsolutePathWithoutRoot:()=>DG,getNormalizedPathComponents:()=>IM,getObjectFlags:()=>br,getOperator:()=>Q9,getOperatorAssociativity:()=>$9,getOperatorPrecedence:()=>FL,getOptionFromName:()=>nU,getOptionsForLibraryResolution:()=>TU,getOptionsNameMap:()=>Xx,getOrCreateEmitNode:()=>cd,getOrCreateExternalHelpersModuleNameIfNeeded:()=>gie,getOrUpdate:()=>FD,getOriginalNode:()=>sl,getOriginalNodeId:()=>dd,getOriginalSourceFile:()=>qye,getOutputDeclarationFileName:()=>GN,getOutputDeclarationFileNameWorker:()=>pH,getOutputExtension:()=>A4,getOutputFileNames:()=>YSe,getOutputJSFileNameWorker:()=>fH,getOutputPathsFor:()=>BN,getOutputPathsForBundle:()=>zN,getOwnEmitOutputFilePath:()=>cne,getOwnKeys:()=>fh,getOwnValues:()=>vA,getPackageJsonInfo:()=>m0,getPackageJsonTypesVersionsPaths:()=>X6,getPackageJsonsVisibleToFile:()=>hle,getPackageNameFromTypesPackageName:()=>CN,getPackageScopeForPath:()=>rk,getParameterSymbolFromJSDoc:()=>NL,getParameterTypeNode:()=>fbe,getParentNodeInSpan:()=>Kk,getParseTreeNode:()=>uo,getParsedCommandLineOfConfigFile:()=>V2,getPathComponents:()=>mc,getPathComponentsRelativeTo:()=>NG,getPathFromPathComponents:()=>Vv,getPathUpdater:()=>XJ,getPathsBasePath:()=>zW,getPatternFromSpec:()=>Zne,getPendingEmitKind:()=>cR,getPositionOfLineAndCharacter:()=>NM,getPossibleGenericSignatures:()=>$q,getPossibleOriginalInputExtensionForExtension:()=>une,getPossibleTypeArgumentsInfo:()=>Qq,getPreEmitDiagnostics:()=>$Se,getPrecedingNonSpaceCharacterPosition:()=>L3,getPrivateIdentifier:()=>QU,getProperties:()=>YU,getProperty:()=>Jw,getPropertyArrayElementValue:()=>Gte,getPropertyAssignmentAliasLikeExpression:()=>ine,getPropertyNameForPropertyNameNode:()=>MS,getPropertyNameForUniqueESSymbol:()=>Uye,getPropertyNameFromType:()=>If,getPropertyNameOfBindingOrAssignmentElement:()=>Gj,getPropertySymbolFromBindingElement:()=>N3,getPropertySymbolsFromContextualType:()=>Iz,getQuoteFromPreference:()=>dJ,getQuotePreference:()=>Np,getRangesWhere:()=>Z5,getRefactorContextSpan:()=>NI,getReferencedFileLocation:()=>jN,getRegexFromPattern:()=>iy,getRegularExpressionForWildcard:()=>BC,getRegularExpressionsForWildcards:()=>lF,getRelativePathFromDirectory:()=>Gf,getRelativePathFromFile:()=>RM,getRelativePathToDirectoryOrUrl:()=>AA,getRenameLocation:()=>$k,getReplacementSpanForContextToken:()=>nJ,getResolutionDiagnostic:()=>FH,getResolutionModeOverride:()=>oR,getResolveJsonModule:()=>Mb,getResolvePackageJsonExports:()=>RF,getResolvePackageJsonImports:()=>DF,getResolvedExternalModuleName:()=>wW,getRestIndicatorOfBindingOrAssignmentElement:()=>N6,getRestParameterElementType:()=>x9,getRightMostAssignedExpression:()=>bL,getRootDeclaration:()=>Xm,getRootDirectoryOfResolutionCache:()=>Yae,getRootLength:()=>P_,getRootPathSplitLength:()=>STe,getScriptKind:()=>bJ,getScriptKindFromFileName:()=>pF,getScriptTargetFeatures:()=>IF,getSelectedEffectiveModifierFlags:()=>BA,getSelectedSyntacticModifierFlags:()=>Ene,getSemanticClassifications:()=>Tle,getSemanticJsxChildren:()=>_x,getSetAccessorTypeAnnotationNode:()=>pne,getSetAccessorValueParameter:()=>CC,getSetExternalModuleIndicator:()=>XL,getShebang:()=>C8,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>w9,getSingleVariableOfVariableStatement:()=>wA,getSnapshotText:()=>hR,getSnippetElement:()=>cj,getSourceFileOfModule:()=>eW,getSourceFileOfNode:()=>Nn,getSourceFilePathInNewDir:()=>BW,getSourceFilePathInNewDirWorker:()=>GW,getSourceFileVersionAsHashFromText:()=>X4,getSourceFilesToEmit:()=>iV,getSourceMapRange:()=>ov,getSourceMapper:()=>zle,getSourceTextOfNodeFromSourceFile:()=>FE,getSpanOfTokenAtPosition:()=>w_,getSpellingSuggestion:()=>VD,getStartPositionOfLine:()=>Zv,getStartPositionOfRange:()=>OC,getStartsOnNewLine:()=>rN,getStaticPropertiesAndClassStaticBlock:()=>v4,getStrictOptionValue:()=>Fd,getStringComparer:()=>D1,getSubPatternFromSpec:()=>cF,getSuperCallFromStatement:()=>h4,getSuperContainer:()=>pL,getSupportedCodeFixes:()=>OK,getSupportedExtensions:()=>GC,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>YL,getSwitchedType:()=>IJ,getSymbolId:()=>na,getSymbolNameForPrivateIdentifier:()=>wL,getSymbolTarget:()=>EJ,getSyntacticClassifications:()=>Ale,getSyntacticModifierFlags:()=>ny,getSyntacticModifierFlagsNoCache:()=>lV,getSynthesizedDeepClone:()=>Fs,getSynthesizedDeepCloneWithReplacements:()=>Yk,getSynthesizedDeepClones:()=>T0,getSynthesizedDeepClonesWithReplacements:()=>SJ,getSyntheticLeadingComments:()=>Mx,getSyntheticTrailingComments:()=>_2,getTargetLabel:()=>u3,getTargetOfBindingOrAssignmentElement:()=>_y,getTemporaryModuleResolutionState:()=>nk,getTextOfConstantValue:()=>Ste,getTextOfIdentifierOrLiteral:()=>Ef,getTextOfJSDocComment:()=>VM,getTextOfJsxAttributeName:()=>r2,getTextOfJsxNamespacedName:()=>ZC,getTextOfNode:()=>Vl,getTextOfNodeFromSourceText:()=>uC,getTextOfPropertyName:()=>$1,getThisContainer:()=>lu,getThisParameter:()=>KE,getTokenAtPosition:()=>Hi,getTokenPosOfNode:()=>Tb,getTokenSourceMapRange:()=>zbe,getTouchingPropertyName:()=>pu,getTouchingToken:()=>_R,getTrailingCommentRanges:()=>mb,getTrailingSemicolonDeferringWriter:()=>nV,getTransformFlagsSubtreeExclusions:()=>Ire,getTransformers:()=>cH,getTsBuildInfoEmitOutputFilePath:()=>dv,getTsConfigObjectLiteralExpression:()=>_C,getTsConfigPropArrayElementValue:()=>fW,getTypeAnnotationNode:()=>fne,getTypeArgumentOrTypeParameterList:()=>qse,getTypeKeywordOfTypeOnlyImport:()=>uJ,getTypeNode:()=>kre,getTypeNodeIfAccessible:()=>iP,getTypeParameterFromJsDoc:()=>Qte,getTypeParameterOwner:()=>iye,getTypesPackageName:()=>n4,getUILocale:()=>GZ,getUniqueName:()=>dT,getUniqueSymbolId:()=>lle,getUseDefineForClassFields:()=>nN,getWatchErrorSummaryDiagnosticMessage:()=>QH,getWatchFactory:()=>yH,group:()=>GD,groupBy:()=>Kw,guessIndentation:()=>dte,handleNoEmitOptions:()=>wH,hasAbstractModifier:()=>$E,hasAccessorModifier:()=>Ym,hasAmbientModifier:()=>sV,hasChangesInResolutions:()=>l9,hasChildOfKind:()=>Bk,hasContextSensitiveParameters:()=>gF,hasDecorators:()=>Hp,hasDocComment:()=>Use,hasDynamicName:()=>ty,hasEffectiveModifier:()=>zu,hasEffectiveModifiers:()=>jW,hasEffectiveReadonlyModifier:()=>NC,hasExtension:()=>TA,hasIndexSignature:()=>AJ,hasInitializer:()=>$v,hasInvalidEscape:()=>eV,hasJSDocNodes:()=>ap,hasJSDocParameterTags:()=>kee,hasJSFileExtension:()=>QE,hasJsonModuleEmitEnabled:()=>rF,hasOnlyExpressionInitializer:()=>SS,hasOverrideModifier:()=>UW,hasPossibleExternalModuleReference:()=>Rte,hasProperty:()=>rs,hasPropertyAccessExpressionWithName:()=>Ok,hasQuestionToken:()=>OA,hasRecordedExternalHelpers:()=>hie,hasResolutionModeOverride:()=>hre,hasRestParameter:()=>i9,hasScopeMarker:()=>nte,hasStaticModifier:()=>jl,hasSyntacticModifier:()=>Wr,hasSyntacticModifiers:()=>bne,hasTSFileExtension:()=>qA,hasTabstop:()=>fre,hasTrailingDirectorySeparator:()=>Jg,hasType:()=>K8,hasTypeArguments:()=>zye,hasZeroOrOneAsteriskCharacter:()=>AV,helperString:()=>pj,hostGetCanonicalFileName:()=>ev,hostUsesCaseSensitiveFileNames:()=>yx,idText:()=>ar,identifierIsThisKeyword:()=>aV,identifierToKeywordKind:()=>vb,identity:()=>Ps,identitySourceMapConsumer:()=>m4,ignoreSourceNewlines:()=>uj,ignoredPaths:()=>AM,importDefaultHelper:()=>n6,importFromModuleSpecifier:()=>yC,importNameElisionDisabled:()=>TV,importStarHelper:()=>g2,indexOfAnyCharCode:()=>DZ,indexOfNode:()=>Y1,indicesOf:()=>uM,inferredTypesContainingFile:()=>lR,injectClassNamedEvaluationHelperBlockIfMissing:()=>E4,injectClassThisAssignmentIfMissing:()=>Hoe,insertImports:()=>QN,insertLeadingStatement:()=>iEe,insertSorted:()=>Fv,insertStatementAfterCustomPrologue:()=>TS,insertStatementAfterStandardPrologue:()=>Cye,insertStatementsAfterCustomPrologue:()=>c9,insertStatementsAfterStandardPrologue:()=>vh,intersperse:()=>K5,intrinsicTagNameToString:()=>FV,introducesArgumentsExoticObject:()=>zte,inverseJsxOptionMap:()=>IN,isAbstractConstructorSymbol:()=>Wne,isAbstractModifier:()=>Ure,isAccessExpression:()=>ds,isAccessibilityModifier:()=>eJ,isAccessor:()=>Kv,isAccessorModifier:()=>qre,isAliasSymbolDeclaration:()=>Gye,isAliasableExpression:()=>kL,isAmbientModule:()=>sd,isAmbientPropertyDeclaration:()=>v9,isAnonymousFunctionDefinition:()=>IC,isAnyDirectorySeparator:()=>IG,isAnyImportOrBareOrAccessedRequire:()=>xte,isAnyImportOrReExport:()=>oL,isAnyImportSyntax:()=>AS,isAnySupportedFileExtension:()=>pbe,isApplicableVersionedTypesKey:()=>ok,isArgumentExpressionOfElementAccess:()=>jq,isArray:()=>oo,isArrayBindingElement:()=>V8,isArrayBindingOrAssignmentElement:()=>XM,isArrayBindingOrAssignmentPattern:()=>QG,isArrayBindingPattern:()=>i0,isArrayLiteralExpression:()=>Bd,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>pv,isArrayTypeNode:()=>A2,isArrowFunction:()=>hs,isAsExpression:()=>x2,isAssertClause:()=>Zre,isAssertEntry:()=>Ybe,isAssertionExpression:()=>ES,isAssertsKeyword:()=>Vre,isAssignmentDeclaration:()=>vC,isAssignmentExpression:()=>lc,isAssignmentOperator:()=>tv,isAssignmentPattern:()=>lC,isAssignmentTarget:()=>Sh,isAsteriskToken:()=>b2,isAsyncFunction:()=>TC,isAsyncModifier:()=>aN,isAutoAccessorPropertyDeclaration:()=>su,isAwaitExpression:()=>py,isAwaitKeyword:()=>yj,isBigIntLiteral:()=>c6,isBinaryExpression:()=>Zn,isBinaryOperatorToken:()=>Iie,isBindableObjectDefinePropertyCall:()=>CS,isBindableStaticAccessExpression:()=>UE,isBindableStaticElementAccessExpression:()=>RW,isBindableStaticNameExpression:()=>NS,isBindingElement:()=>Na,isBindingElementOfBareOrAccessedRequire:()=>Kte,isBindingName:()=>yS,isBindingOrAssignmentElement:()=>Yee,isBindingOrAssignmentPattern:()=>JM,isBindingPattern:()=>ko,isBlock:()=>Do,isBlockOrCatchScoped:()=>p9,isBlockScope:()=>y9,isBlockScopedContainerTopLevel:()=>Ite,isBooleanLiteral:()=>sC,isBreakOrContinueStatement:()=>rC,isBreakStatement:()=>Jbe,isBuildInfoFile:()=>yae,isBuilderProgram:()=>ese,isBundle:()=>xj,isBundleFileTextLike:()=>zne,isCallChain:()=>gS,isCallExpression:()=>Bo,isCallExpressionTarget:()=>Wq,isCallLikeExpression:()=>WE,isCallLikeOrFunctionLikeExpression:()=>ZG,isCallOrNewExpression:()=>Um,isCallOrNewExpressionTarget:()=>Fq,isCallSignatureDeclaration:()=>iI,isCallToHelper:()=>oN,isCaseBlock:()=>fN,isCaseClause:()=>zx,isCaseKeyword:()=>Jre,isCaseOrDefaultClause:()=>q8,isCatchClause:()=>u0,isCatchClauseVariableDeclaration:()=>pre,isCatchClauseVariableDeclarationOrBindingElement:()=>f9,isCheckJsEnabledForFile:()=>ZL,isChildOfNodeWithKind:()=>Pye,isCircularBuildOrder:()=>II,isClassDeclaration:()=>Zl,isClassElement:()=>xc,isClassExpression:()=>Dc,isClassInstanceProperty:()=>Kee,isClassLike:()=>Kr,isClassMemberModifier:()=>XG,isClassNamedEvaluationHelperBlock:()=>AI,isClassOrTypeElement:()=>G8,isClassStaticBlockDeclaration:()=>nl,isClassThisAssignmentBlock:()=>kN,isCollapsedRange:()=>tbe,isColonToken:()=>Bre,isCommaExpression:()=>M2,isCommaListExpression:()=>dN,isCommaSequence:()=>vN,isCommaToken:()=>zre,isComment:()=>S3,isCommonJsExportPropertyAssignment:()=>uW,isCommonJsExportedExpression:()=>Wte,isCompoundAssignment:()=>PN,isComputedNonLiteralName:()=>aL,isComputedPropertyName:()=>Pa,isConciseBody:()=>U8,isConditionalExpression:()=>Fx,isConditionalTypeNode:()=>lI,isConstTypeReference:()=>Qh,isConstructSignatureDeclaration:()=>S2,isConstructorDeclaration:()=>ll,isConstructorTypeNode:()=>kx,isContextualKeyword:()=>MW,isContinueStatement:()=>qbe,isCustomPrologue:()=>dL,isDebuggerStatement:()=>Kbe,isDeclaration:()=>bd,isDeclarationBindingElement:()=>qM,isDeclarationFileName:()=>Yc,isDeclarationName:()=>ng,isDeclarationNameOfEnumOrNamespace:()=>gV,isDeclarationReadonly:()=>sW,isDeclarationStatement:()=>ate,isDeclarationWithTypeParameterChildren:()=>E9,isDeclarationWithTypeParameters:()=>b9,isDecorator:()=>Xc,isDecoratorTarget:()=>Pse,isDefaultClause:()=>_N,isDefaultImport:()=>kA,isDefaultModifier:()=>f6,isDefaultedExpandoInitializer:()=>Xte,isDeleteExpression:()=>Yre,isDeleteTarget:()=>G9,isDeprecatedDeclaration:()=>H3,isDestructuringAssignment:()=>nv,isDiagnosticWithLocation:()=>CJ,isDiskPathRoot:()=>xG,isDoStatement:()=>Ube,isDocumentRegistryEntry:()=>iO,isDotDotDotToken:()=>u6,isDottedName:()=>MC,isDynamicName:()=>kW,isESSymbolIdentifier:()=>Hye,isEffectiveExternalModule:()=>MA,isEffectiveModuleDeclaration:()=>Ate,isEffectiveStrictModeSourceFile:()=>g9,isElementAccessChain:()=>VG,isElementAccessExpression:()=>Rs,isEmittedFileOfProgram:()=>Tae,isEmptyArrayLiteral:()=>Dne,isEmptyBindingElement:()=>Dee,isEmptyBindingPattern:()=>Ree,isEmptyObjectLiteral:()=>fV,isEmptyStatement:()=>Tj,isEmptyStringLiteral:()=>C9,isEntityName:()=>Su,isEntityNameExpression:()=>gl,isEnumConst:()=>BE,isEnumDeclaration:()=>kb,isEnumMember:()=>p0,isEqualityOperatorKind:()=>w3,isEqualsGreaterThanToken:()=>Gre,isExclamationToken:()=>E2,isExcludedFile:()=>zie,isExclusivelyTypeOnlyImportOrExport:()=>RH,isExpandoPropertyDeclaration:()=>EF,isExportAssignment:()=>dl,isExportDeclaration:()=>xl,isExportModifier:()=>nI,isExportName:()=>R6,isExportNamespaceAsDefaultDeclaration:()=>rW,isExportOrDefaultModifier:()=>w2,isExportSpecifier:()=>Ed,isExportsIdentifier:()=>DS,isExportsOrModuleExportsOrAlias:()=>_0,isExpression:()=>lt,isExpressionNode:()=>bh,isExpressionOfExternalModuleImportEqualsDeclaration:()=>Ose,isExpressionOfOptionalChainRoot:()=>F8,isExpressionStatement:()=>Cc,isExpressionWithTypeArguments:()=>sv,isExpressionWithTypeArgumentsInClassExtendsClause:()=>HW,isExternalModule:()=>wl,isExternalModuleAugmentation:()=>zE,isExternalModuleImportEqualsDeclaration:()=>Ab,isExternalModuleIndicator:()=>YM,isExternalModuleNameRelative:()=>Ic,isExternalModuleReference:()=>j_,isExternalModuleSymbol:()=>Uk,isExternalOrCommonJsModule:()=>sp,isFileLevelReservedGeneratedIdentifier:()=>HM,isFileLevelUniqueName:()=>tW,isFileProbablyExternalModule:()=>z2,isFirstDeclarationOfSymbolParameter:()=>hJ,isFixablePromiseHandler:()=>eK,isForInOrOfStatement:()=>H1,isForInStatement:()=>y6,isForInitializer:()=>Up,isForOfStatement:()=>R2,isForStatement:()=>qS,isFunctionBlock:()=>VE,isFunctionBody:()=>t9,isFunctionDeclaration:()=>Ql,isFunctionExpression:()=>us,isFunctionExpressionOrArrowFunction:()=>e0,isFunctionLike:()=>Lo,isFunctionLikeDeclaration:()=>_s,isFunctionLikeKind:()=>DA,isFunctionLikeOrClassStaticBlockDeclaration:()=>U1,isFunctionOrConstructorTypeNode:()=>Xee,isFunctionOrModuleBlock:()=>YG,isFunctionSymbol:()=>$te,isFunctionTypeNode:()=>B_,isFutureReservedKeyword:()=>Vye,isGeneratedIdentifier:()=>ws,isGeneratedPrivateIdentifier:()=>vS,isGetAccessor:()=>Yv,isGetAccessorDeclaration:()=>Ap,isGetOrSetAccessorDeclaration:()=>w8,isGlobalDeclaration:()=>NAe,isGlobalScopeAugmentation:()=>qm,isGrammarError:()=>yte,isHeritageClause:()=>Ip,isHoistedFunction:()=>cW,isHoistedVariableStatement:()=>dW,isIdentifier:()=>Me,isIdentifierANonContextualKeyword:()=>q9,isIdentifierName:()=>rne,isIdentifierOrThisTypeNode:()=>Eie,isIdentifierPart:()=>_b,isIdentifierStart:()=>_h,isIdentifierText:()=>Sp,isIdentifierTypePredicate:()=>Bte,isIdentifierTypeReference:()=>sre,isIfStatement:()=>HS,isIgnoredFileFromWildCardWatching:()=>vk,isImplicitGlob:()=>RV,isImportAttribute:()=>eie,isImportAttributeName:()=>Jee,isImportAttributes:()=>uI,isImportCall:()=>lp,isImportClause:()=>G_,isImportDeclaration:()=>cc,isImportEqualsDeclaration:()=>Nc,isImportKeyword:()=>lN,isImportMeta:()=>ex,isImportOrExportSpecifier:()=>RA,isImportOrExportSpecifierName:()=>sle,isImportSpecifier:()=>Iu,isImportTypeAssertionContainer:()=>Xbe,isImportTypeNode:()=>Dh,isImportableFile:()=>GJ,isInComment:()=>uv,isInCompoundLikeAssignment:()=>B9,isInExpressionContext:()=>bW,isInJSDoc:()=>hL,isInJSFile:()=>Jn,isInJSXText:()=>Vse,isInJsonFile:()=>SW,isInNonReferenceComment:()=>Xse,isInReferenceComment:()=>Kse,isInRightSideOfInternalImportEqualsDeclaration:()=>c3,isInString:()=>RI,isInTemplateString:()=>Yq,isInTopLevelContext:()=>hW,isInTypeQuery:()=>OS,isIncrementalCompilation:()=>tN,isIndexSignatureDeclaration:()=>r0,isIndexedAccessTypeNode:()=>US,isInferTypeNode:()=>GS,isInfinityOrNaNString:()=>XC,isInitializedProperty:()=>uk,isInitializedVariable:()=>JL,isInsideJsxElement:()=>b3,isInsideJsxElementOrAttribute:()=>Gse,isInsideNodeModules:()=>tO,isInsideTemplateLiteral:()=>Vk,isInstanceOfExpression:()=>qW,isInstantiatedModule:()=>FU,isInterfaceDeclaration:()=>Gd,isInternalDeclaration:()=>o9,isInternalModuleImportEqualsDeclaration:()=>ox,isInternalName:()=>Fj,isIntersectionTypeNode:()=>sI,isIntrinsicJsxName:()=>gx,isIterationStatement:()=>Xv,isJSDoc:()=>Sm,isJSDocAllType:()=>oie,isJSDocAugmentsTag:()=>_I,isJSDocAuthorTag:()=>eEe,isJSDocCallbackTag:()=>Dj,isJSDocClassTag:()=>sie,isJSDocCommentContainingNode:()=>J8,isJSDocConstructSignature:()=>dx,isJSDocDeprecatedTag:()=>Lj,isJSDocEnumTag:()=>C2,isJSDocFunctionType:()=>Gx,isJSDocImplementsTag:()=>A6,isJSDocIndexSignature:()=>TW,isJSDocLikeText:()=>Jj,isJSDocLink:()=>rie,isJSDocLinkCode:()=>iie,isJSDocLinkLike:()=>PA,isJSDocLinkPlain:()=>Qbe,isJSDocMemberName:()=>Ob,isJSDocNameReference:()=>hN,isJSDocNamepathType:()=>Zbe,isJSDocNamespaceBody:()=>Tye,isJSDocNode:()=>q1,isJSDocNonNullableType:()=>b6,isJSDocNullableType:()=>Bx,isJSDocOptionalParameter:()=>n2,isJSDocOptionalType:()=>Rj,isJSDocOverloadTag:()=>Vx,isJSDocOverrideTag:()=>S6,isJSDocParameterTag:()=>Tm,isJSDocPrivateTag:()=>Nj,isJSDocPropertyLikeTag:()=>iC,isJSDocPropertyTag:()=>lie,isJSDocProtectedTag:()=>Pj,isJSDocPublicTag:()=>Cj,isJSDocReadonlyTag:()=>Mj,isJSDocReturnTag:()=>T6,isJSDocSatisfiesExpression:()=>wV,isJSDocSatisfiesTag:()=>I6,isJSDocSeeTag:()=>tEe,isJSDocSignature:()=>wb,isJSDocTag:()=>J1,isJSDocTemplateTag:()=>Df,isJSDocThisTag:()=>kj,isJSDocThrowsTag:()=>rEe,isJSDocTypeAlias:()=>bf,isJSDocTypeAssertion:()=>Ux,isJSDocTypeExpression:()=>f0,isJSDocTypeLiteral:()=>YS,isJSDocTypeTag:()=>gN,isJSDocTypedefTag:()=>$S,isJSDocUnknownTag:()=>nEe,isJSDocUnknownType:()=>aie,isJSDocVariadicType:()=>E6,isJSXTagName:()=>ix,isJsonEqual:()=>_F,isJsonSourceFile:()=>yf,isJsxAttribute:()=>r_,isJsxAttributeLike:()=>H8,isJsxAttributeName:()=>_re,isJsxAttributes:()=>d0,isJsxChild:()=>ZM,isJsxClosingElement:()=>l0,isJsxClosingFragment:()=>tie,isJsxElement:()=>Ch,isJsxExpression:()=>mN,isJsxFragment:()=>c0,isJsxNamespacedName:()=>Em,isJsxOpeningElement:()=>n_,isJsxOpeningFragment:()=>fI,isJsxOpeningLikeElement:()=>Od,isJsxOpeningLikeElementTagName:()=>Mse,isJsxSelfClosingElement:()=>KS,isJsxSpreadAttribute:()=>mI,isJsxTagNameExpression:()=>cC,isJsxText:()=>ZA,isJumpStatementTarget:()=>wk,isKeyword:()=>du,isKeywordOrPunctuation:()=>PW,isKnownSymbol:()=>WL,isLabelName:()=>Gq,isLabelOfLabeledStatement:()=>Bq,isLabeledStatement:()=>s0,isLateVisibilityPaintedStatement:()=>oW,isLeftHandSideExpression:()=>Tu,isLeftHandSideOfAssignment:()=>ebe,isLet:()=>lW,isLineBreak:()=>vd,isLiteralComputedPropertyDeclarationName:()=>LL,isLiteralExpression:()=>wE,isLiteralExpressionOfObject:()=>JG,isLiteralImportTypeNode:()=>ey,isLiteralKind:()=>oC,isLiteralLikeAccess:()=>xW,isLiteralLikeElementAccess:()=>EL,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>p3,isLiteralTypeLikeExpression:()=>cEe,isLiteralTypeLiteral:()=>ete,isLiteralTypeNode:()=>uy,isLocalName:()=>lg,isLogicalOperator:()=>Ine,isLogicalOrCoalescingAssignmentExpression:()=>cV,isLogicalOrCoalescingAssignmentOperator:()=>PC,isLogicalOrCoalescingBinaryExpression:()=>jL,isLogicalOrCoalescingBinaryOperator:()=>VL,isMappedTypeNode:()=>wx,isMemberName:()=>hh,isMetaProperty:()=>cN,isMethodDeclaration:()=>El,isMethodOrAccessor:()=>CA,isMethodSignature:()=>z_,isMinusToken:()=>vj,isMissingDeclaration:()=>$be,isMissingPackageJsonInfo:()=>noe,isModifier:()=>ia,isModifierKind:()=>Yg,isModifierLike:()=>Ws,isModuleAugmentationExternal:()=>_9,isModuleBlock:()=>t_,isModuleBody:()=>rte,isModuleDeclaration:()=>Il,isModuleExportsAccessExpression:()=>Eh,isModuleIdentifier:()=>k9,isModuleName:()=>Aie,isModuleOrEnumDeclaration:()=>$M,isModuleReference:()=>lte,isModuleSpecifierLike:()=>C3,isModuleWithStringLiteralName:()=>iW,isNameOfFunctionDeclaration:()=>Hq,isNameOfModuleDeclaration:()=>Uq,isNamedClassElement:()=>vye,isNamedDeclaration:()=>Ld,isNamedEvaluation:()=>Fu,isNamedEvaluationSource:()=>J9,isNamedExportBindings:()=>UG,isNamedExports:()=>$p,isNamedImportBindings:()=>n9,isNamedImports:()=>sg,isNamedImportsOrExports:()=>ZW,isNamedTupleMember:()=>Ox,isNamespaceBody:()=>Sye,isNamespaceExport:()=>V_,isNamespaceExportDeclaration:()=>D2,isNamespaceImport:()=>my,isNamespaceReexportDeclaration:()=>Jte,isNewExpression:()=>o0,isNewExpressionTarget:()=>KN,isNoSubstitutionTemplateLiteral:()=>eI,isNode:()=>hye,isNodeArray:()=>OE,isNodeArrayMultiLine:()=>kne,isNodeDescendantOf:()=>HE,isNodeKind:()=>jM,isNodeLikeSystem:()=>mB,isNodeModulesDirectory:()=>A8,isNodeWithPossibleHoistedDeclaration:()=>ene,isNonContextualKeyword:()=>H9,isNonExportDefaultModifier:()=>uEe,isNonGlobalAmbientModule:()=>m9,isNonGlobalDeclaration:()=>Sle,isNonNullAccess:()=>mre,isNonNullChain:()=>z8,isNonNullExpression:()=>dI,isNonStaticMethodOrAccessorWithPrivateName:()=>woe,isNotEmittedOrPartiallyEmittedNode:()=>Eye,isNotEmittedStatement:()=>Ij,isNullishCoalesce:()=>jG,isNumber:()=>jg,isNumericLiteral:()=>Bu,isNumericLiteralName:()=>Rh,isObjectBindingElementWithoutPropertyName:()=>Jk,isObjectBindingOrAssignmentElement:()=>KM,isObjectBindingOrAssignmentPattern:()=>$G,isObjectBindingPattern:()=>Rf,isObjectLiteralElement:()=>r9,isObjectLiteralElementLike:()=>Zh,isObjectLiteralExpression:()=>fa,isObjectLiteralMethod:()=>qf,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>pW,isObjectTypeDeclaration:()=>jA,isOctalDigit:()=>D8,isOmittedExpression:()=>vc,isOptionalChain:()=>yd,isOptionalChainRoot:()=>tC,isOptionalDeclaration:()=>$C,isOptionalJSDocPropertyLikeTag:()=>t2,isOptionalTypeNode:()=>m6,isOuterExpression:()=>C6,isOutermostOptionalChain:()=>nC,isOverrideModifier:()=>Hre,isPackageJsonInfo:()=>$6,isPackedArrayLiteral:()=>kV,isParameter:()=>ao,isParameterDeclaration:()=>JE,isParameterPropertyDeclaration:()=>wu,isParameterPropertyModifier:()=>aC,isParenthesizedExpression:()=>uu,isParenthesizedTypeNode:()=>VS,isParseTreeNode:()=>eC,isPartOfTypeNode:()=>yh,isPartOfTypeQuery:()=>EW,isPartiallyEmittedExpression:()=>v6,isPatternMatch:()=>Qw,isPinnedComment:()=>nW,isPlainJsFile:()=>nL,isPlusToken:()=>gj,isPossiblyTypeArgumentPosition:()=>Gk,isPostfixUnaryExpression:()=>Ej,isPrefixUnaryExpression:()=>fy,isPrivateIdentifier:()=>Ci,isPrivateIdentifierClassElementDeclaration:()=>kd,isPrivateIdentifierPropertyAccessExpression:()=>j1,isPrivateIdentifierSymbol:()=>one,isProgramBundleEmitBuildInfo:()=>zae,isProgramUptoDate:()=>kH,isPrologueDirective:()=>Hf,isPropertyAccessChain:()=>W8,isPropertyAccessEntityNameExpression:()=>UL,isPropertyAccessExpression:()=>Er,isPropertyAccessOrQualifiedName:()=>Qee,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>$ee,isPropertyAssignment:()=>Hl,isPropertyDeclaration:()=>xo,isPropertyName:()=>kl,isPropertyNameLiteral:()=>Km,isPropertySignature:()=>Gu,isProtoSetter:()=>ane,isPrototypeAccess:()=>ry,isPrototypePropertyAssignment:()=>AL,isPunctuation:()=>U9,isPushOrUnshiftIdentifier:()=>K9,isQualifiedName:()=>$d,isQuestionDotToken:()=>p6,isQuestionOrExclamationToken:()=>bie,isQuestionOrPlusOrMinusToken:()=>Tie,isQuestionToken:()=>cy,isRawSourceMap:()=>Moe,isReadonlyKeyword:()=>jre,isReadonlyKeywordOrPlusOrMinusToken:()=>Sie,isRecognizedTripleSlashComment:()=>d9,isReferenceFileLocation:()=>aR,isReferencedFile:()=>jb,isRegularExpressionLiteral:()=>_j,isRequireCall:()=>Xd,isRequireVariableStatement:()=>M9,isRestParameter:()=>gh,isRestTypeNode:()=>_6,isReturnStatement:()=>Kf,isReturnStatementWithFixablePromiseHandler:()=>tz,isRightSideOfAccessExpression:()=>pV,isRightSideOfInstanceofExpression:()=>Rne,isRightSideOfPropertyAccess:()=>fR,isRightSideOfQualifiedName:()=>kse,isRightSideOfQualifiedNameOrPropertyAccess:()=>LC,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>xne,isRootedDiskPath:()=>Ou,isSameEntityName:()=>ax,isSatisfiesExpression:()=>Sj,isScopeMarker:()=>tte,isSemicolonClassElement:()=>$re,isSetAccessor:()=>$g,isSetAccessorDeclaration:()=>Vu,isShebangTrivia:()=>PG,isShiftOperatorOrHigher:()=>Uj,isShorthandAmbientModuleSymbol:()=>pC,isShorthandPropertyAssignment:()=>xu,isSignedNumericLiteral:()=>LW,isSimpleCopiableExpression:()=>g0,isSimpleInlineableExpression:()=>i_,isSimpleParameter:()=>Goe,isSimpleParameterList:()=>pk,isSingleOrDoubleQuote:()=>gL,isSourceFile:()=>Li,isSourceFileFromLibrary:()=>ER,isSourceFileJS:()=>wd,isSourceFileNotJS:()=>kye,isSourceFileNotJson:()=>P9,isSourceMapping:()=>Loe,isSpecialPropertyDeclaration:()=>Yte,isSpreadAssignment:()=>lv,isSpreadElement:()=>bm,isStatement:()=>Di,isStatementButNotDeclaration:()=>QM,isStatementOrBlock:()=>ste,isStatementWithLocals:()=>vte,isStatic:()=>zo,isStaticModifier:()=>rI,isString:()=>fo,isStringAKeyword:()=>jye,isStringANonContextualKeyword:()=>FA,isStringAndEmptyAnonymousObjectIntersection:()=>Jse,isStringDoubleQuoted:()=>IW,isStringLiteral:()=>ca,isStringLiteralLike:()=>Ga,isStringLiteralOrJsxExpression:()=>cte,isStringLiteralOrTemplate:()=>fle,isStringOrNumericLiteralLike:()=>Tp,isStringOrRegularExpressionOrTemplateLiteral:()=>Zq,isStringTextContainingNode:()=>KG,isSuperCall:()=>xS,isSuperKeyword:()=>sN,isSuperOrSuperProperty:()=>Lye,isSuperProperty:()=>cu,isSupportedSourceFileName:()=>rre,isSwitchStatement:()=>pN,isSyntaxList:()=>jx,isSyntheticExpression:()=>jbe,isSyntheticReference:()=>pI,isTagName:()=>Vq,isTaggedTemplateExpression:()=>a0,isTaggedTemplateTag:()=>Nse,isTemplateExpression:()=>h6,isTemplateHead:()=>tI,isTemplateLiteral:()=>NA,isTemplateLiteralKind:()=>Jv,isTemplateLiteralToken:()=>Hee,isTemplateLiteralTypeNode:()=>Kre,isTemplateLiteralTypeSpan:()=>bj,isTemplateMiddle:()=>hj,isTemplateMiddleOrTemplateTail:()=>B8,isTemplateSpan:()=>uN,isTemplateTail:()=>d6,isTextWhiteSpaceLike:()=>Zse,isThis:()=>mR,isThisContainerOrFunctionBlock:()=>Ute,isThisIdentifier:()=>YE,isThisInTypeQuery:()=>zA,isThisInitializedDeclaration:()=>gW,isThisInitializedObjectBindingExpression:()=>qte,isThisProperty:()=>fL,isThisTypeNode:()=>I2,isThisTypeParameter:()=>YC,isThisTypePredicate:()=>Mye,isThrowStatement:()=>Aj,isToken:()=>xA,isTokenKind:()=>qG,isTraceEnabled:()=>cg,isTransientSymbol:()=>L_,isTrivia:()=>mx,isTryStatement:()=>JS,isTupleTypeNode:()=>aI,isTypeAlias:()=>RL,isTypeAliasDeclaration:()=>Xf,isTypeAssertionExpression:()=>Xre,isTypeDeclaration:()=>Cx,isTypeElement:()=>bS,isTypeKeyword:()=>$N,isTypeKeywordToken:()=>oJ,isTypeKeywordTokenOrIdentifier:()=>I3,isTypeLiteralNode:()=>ju,isTypeNode:()=>xi,isTypeNodeKind:()=>bV,isTypeOfExpression:()=>Wx,isTypeOnlyExportDeclaration:()=>qee,isTypeOnlyImportDeclaration:()=>UM,isTypeOnlyImportOrExportDeclaration:()=>Sb,isTypeOperatorNode:()=>jS,isTypeParameterDeclaration:()=>qs,isTypePredicateNode:()=>T2,isTypeQueryNode:()=>oI,isTypeReferenceNode:()=>Yp,isTypeReferenceType:()=>X8,isTypeUsableAsPropertyName:()=>Af,isUMDExportSymbol:()=>QW,isUnaryExpression:()=>e9,isUnaryExpressionWithWrite:()=>Zee,isUnicodeIdentifierStart:()=>x8,isUnionTypeNode:()=>dy,isUnparsedNode:()=>HG,isUnparsedPrepend:()=>nie,isUnparsedSource:()=>XS,isUnparsedTextLike:()=>Uee,isUrl:()=>uee,isValidBigIntString:()=>hF,isValidESSymbolDeclaration:()=>Fte,isValidTypeOnlyAliasUseSite:()=>Pb,isValueSignatureDeclaration:()=>tne,isVarAwaitUsing:()=>lL,isVarConst:()=>Z1,isVarUsing:()=>cL,isVariableDeclaration:()=>yi,isVariableDeclarationInVariableStatement:()=>mC,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>jE,isVariableDeclarationInitializedToRequire:()=>AW,isVariableDeclarationList:()=>yc,isVariableLike:()=>tx,isVariableLikeOrAccessor:()=>wte,isVariableStatement:()=>cl,isVoidExpression:()=>cI,isWatchSet:()=>rbe,isWhileStatement:()=>Hbe,isWhiteSpaceLike:()=>$h,isWhiteSpaceSingleLine:()=>jm,isWithStatement:()=>Qre,isWriteAccess:()=>VA,isWriteOnlyAccess:()=>$W,isYieldExpression:()=>g6,jsxModeNeedsExplicitImport:()=>kJ,keywordPart:()=>Hu,last:()=>Da,lastOrUndefined:()=>Ns,length:()=>yn,libMap:()=>G6,libs:()=>K2,lineBreakPart:()=>yR,linkNamePart:()=>ole,linkPart:()=>vJ,linkTextPart:()=>M3,listFiles:()=>ZH,loadModuleFromGlobalCache:()=>poe,loadWithModeAwareCache:()=>Sk,makeIdentifierFromModuleName:()=>Tte,makeImport:()=>fv,makeImportIfNecessary:()=>Qse,makeStringLiteral:()=>CI,mangleScopedPackageName:()=>tR,map:()=>nn,mapAllOrFail:()=>$5,mapDefined:()=>Fi,mapDefinedEntries:()=>NZ,mapDefinedIterator:()=>WD,mapEntries:()=>MZ,mapIterator:()=>OD,mapOneOrMany:()=>PJ,mapToDisplayParts:()=>by,matchFiles:()=>DV,matchPatternOrExact:()=>CV,matchedText:()=>qZ,matchesExclude:()=>B6,maybeBind:()=>Wo,maybeSetLocalizedDiagnosticMessages:()=>Hne,memoize:()=>Kd,memoizeCached:()=>zZ,memoizeOne:()=>C_,memoizeWeak:()=>dve,metadataHelper:()=>WF,min:()=>cB,minAndMax:()=>ore,missingFileModifiedTime:()=>ip,modifierToFlag:()=>GA,modifiersToFlags:()=>$m,moduleOptionDeclaration:()=>dU,moduleResolutionIsEqualTo:()=>hte,moduleResolutionNameAndModeGetter:()=>z4,moduleResolutionOptionDeclarations:()=>V6,moduleResolutionSupportsPackageJsonExportsAndImports:()=>HA,moduleResolutionUsesNodeModules:()=>x3,moduleSpecifiers:()=>h0,moveEmitHelpers:()=>Mre,moveRangeEnd:()=>XW,moveRangePastDecorators:()=>rg,moveRangePastModifiers:()=>Qm,moveRangePos:()=>Cb,moveSyntheticComments:()=>Cre,mutateMap:()=>FC,mutateMapSkippingNewValues:()=>Ih,needsParentheses:()=>k3,needsScopeMarker:()=>j8,newCaseClauseTracker:()=>K3,newPrivateEnvironment:()=>zoe,noEmitNotification:()=>fk,noEmitSubstitution:()=>WN,noTransformers:()=>dH,noTruncationMaximumTruncationLength:()=>AF,nodeCanBeDecorated:()=>yW,nodeHasName:()=>zM,nodeIsDecorated:()=>rx,nodeIsMissing:()=>_l,nodeIsPresent:()=>gf,nodeIsSynthesized:()=>xs,nodeModuleNameResolver:()=>aoe,nodeModulesPathPart:()=>H_,nodeNextJsonConfigResolver:()=>soe,nodeOrChildIsDecorated:()=>_L,nodeOverlapsWithStartEnd:()=>f3,nodePosToString:()=>Iye,nodeSeenTracker:()=>DI,nodeStartsNewLexicalEnvironment:()=>X9,nodeToDisplayParts:()=>AAe,noop:()=>Ca,noopFileWatcher:()=>uR,normalizePath:()=>Yo,normalizeSlashes:()=>ad,not:()=>e8,notImplemented:()=>Ro,notImplementedResolver:()=>D4,nullNodeConverters:()=>nj,nullParenthesizerRules:()=>tj,nullTransformationContext:()=>FN,objectAllocator:()=>wc,operatorPart:()=>eP,optionDeclarations:()=>Nh,optionMapToObject:()=>W6,optionsAffectingProgramStructure:()=>_U,optionsForBuild:()=>gU,optionsForWatch:()=>Yx,optionsHaveChanges:()=>K1,optionsHaveModuleResolutionChanges:()=>fte,or:()=>hm,orderedRemoveItem:()=>N1,orderedRemoveItemAt:()=>Bv,outFile:()=>ss,packageIdToPackageName:()=>Z8,packageIdToString:()=>Qv,paramHelper:()=>FF,parameterIsThisKeyword:()=>XE,parameterNamePart:()=>tle,parseBaseNodeFactory:()=>Qj,parseBigInt:()=>are,parseBuildCommand:()=>jEe,parseCommandLine:()=>GEe,parseCommandLineWorker:()=>tU,parseConfigFileTextToJson:()=>rU,parseConfigFileWithSystem:()=>ATe,parseConfigHostFromCompilerHostLike:()=>F4,parseCustomTypeOption:()=>w6,parseIsolatedEntityName:()=>gI,parseIsolatedJSDocComment:()=>Pie,parseJSDocTypeExpressionForTests:()=>DEe,parseJsonConfigFileContent:()=>r0e,parseJsonSourceFileConfigFileContent:()=>H2,parseJsonText:()=>G2,parseListTypeOption:()=>Lie,parseNodeFactory:()=>U_,parseNodeModuleFromPath:()=>tk,parsePackageName:()=>ik,parsePseudoBigInt:()=>HC,parseValidBigInt:()=>LV,patchWriteFileEnsuringDirectory:()=>cee,pathContainsNodeModules:()=>Gb,pathIsAbsolute:()=>JD,pathIsBareSpecifier:()=>RG,pathIsRelative:()=>op,patternText:()=>HZ,perfLogger:()=>Pd,performIncrementalCompilation:()=>DTe,performance:()=>ree,plainJSErrors:()=>B4,positionBelongsToNode:()=>Jq,positionIsASICandidate:()=>F3,positionIsSynthesized:()=>ym,positionsAreOnSameLine:()=>Jp,preProcessFile:()=>$Ae,probablyUsesSemicolons:()=>Zk,processCommentPragmas:()=>Yj,processPragmasIntoFields:()=>$j,processTaggedTemplateExpression:()=>rH,programContainsEsModules:()=>$se,programContainsModules:()=>Yse,projectReferenceIsEqualTo:()=>s9,propKeyHelper:()=>$F,propertyNamePart:()=>nle,pseudoBigIntToString:()=>ZE,punctuationPart:()=>Ad,pushIfUnique:()=>jp,quote:()=>rP,quotePreferenceFromString:()=>cJ,rangeContainsPosition:()=>Wk,rangeContainsPositionExclusive:()=>Fk,rangeContainsRange:()=>Cp,rangeContainsRangeExclusive:()=>wse,rangeContainsStartEnd:()=>zk,rangeEndIsOnSameLineAsRangeStart:()=>qL,rangeEndPositionsAreOnSameLine:()=>Mne,rangeEquals:()=>nB,rangeIsOnSingleLine:()=>WS,rangeOfNode:()=>PV,rangeOfTypeParameters:()=>MV,rangeOverlapsWithStartEnd:()=>XN,rangeStartIsOnSameLineAsRangeEnd:()=>Lne,rangeStartPositionsAreOnSameLine:()=>YW,readBuilderProgram:()=>Q4,readConfigFile:()=>j2,readHelper:()=>XF,readJson:()=>kC,readJsonConfigFile:()=>wie,readJsonOrUndefined:()=>mV,reduceEachLeadingCommentRange:()=>gee,reduceEachTrailingCommentRange:()=>vee,reduceLeft:()=>Nd,reduceLeftIterator:()=>ave,reducePathComponents:()=>hS,refactor:()=>MI,regExpEscape:()=>dbe,relativeComplement:()=>LZ,removeAllComments:()=>f2,removeEmitHelper:()=>Bbe,removeExtension:()=>QL,removeFileExtension:()=>Yd,removeIgnoredPath:()=>j4,removeMinAndVersionNumbers:()=>dB,removeOptionality:()=>jse,removePrefix:()=>jD,removeSuffix:()=>C1,removeTrailingDirectorySeparator:()=>fb,repeatString:()=>Hk,replaceElement:()=>oB,replaceFirstStar:()=>KA,resolutionExtensionIsTSOrJson:()=>VC,resolveConfigFileProjectName:()=>dq,resolveJSModule:()=>ioe,resolveLibrary:()=>Z6,resolveModuleName:()=>Zx,resolveModuleNameFromCache:()=>B0e,resolvePackageNameToPackageJson:()=>bU,resolvePath:()=>jv,resolveProjectReferencePath:()=>sR,resolveTripleslashReference:()=>M4,resolveTypeReferenceDirective:()=>eoe,resolvingEmptyArray:()=>TF,restHelper:()=>HF,returnFalse:()=>_m,returnNoopFileWatcher:()=>pR,returnTrue:()=>Ug,returnUndefined:()=>ub,returnsPromise:()=>ZJ,runInitializersHelper:()=>BF,sameFlatMap:()=>CZ,sameMap:()=>sc,sameMapping:()=>RSe,scanShebangTrivia:()=>MG,scanTokenAtPosition:()=>Lte,scanner:()=>Id,screenStartingMessageCodes:()=>$4,semanticDiagnosticsOptionDeclarations:()=>pU,serializeCompilerOptions:()=>F6,server:()=>YMe,servicesVersion:()=>Uce,setCommentRange:()=>Ol,setConfigFileInOptions:()=>lU,setConstantValue:()=>Pre,setEachParent:()=>Dx,setEmitFlags:()=>$n,setFunctionNameHelper:()=>QF,setGetSourceFileAsHashVersioned:()=>Y4,setIdentifierAutoGenerate:()=>h2,setIdentifierGeneratedImportReference:()=>Ore,setIdentifierTypeArguments:()=>av,setInternalEmitFlags:()=>m2,setLocalizedDiagnosticMessages:()=>Une,setModuleDefaultHelper:()=>t6,setNodeFlags:()=>cre,setObjectAllocator:()=>jne,setOriginalNode:()=>mr,setParent:()=>Ta,setParentRecursive:()=>oy,setPrivateIdentifier:()=>tT,setSnippetElement:()=>dj,setSourceMapRange:()=>la,setStackTraceLimit:()=>Pve,setStartsOnNewLine:()=>LF,setSyntheticLeadingComments:()=>Lb,setSyntheticTrailingComments:()=>YA,setSys:()=>wve,setSysLog:()=>see,setTextRange:()=>Ze,setTextRangeEnd:()=>Rx,setTextRangePos:()=>qC,setTextRangePosEnd:()=>W_,setTextRangePosWidth:()=>JC,setTokenSourceMapRange:()=>Dre,setTypeNode:()=>Lre,setUILocale:()=>VZ,setValueDeclaration:()=>IL,shouldAllowImportingTsExtension:()=>nR,shouldPreserveConstEnums:()=>n0,shouldUseUriStyleNodeCoreModules:()=>q3,showModuleSpecifier:()=>Fne,signatureHasLiteralTypes:()=>zU,signatureHasRestParameter:()=>Td,signatureToDisplayParts:()=>yJ,single:()=>iB,singleElementArray:()=>EA,singleIterator:()=>PZ,singleOrMany:()=>R_,singleOrUndefined:()=>x_,skipAlias:()=>Kc,skipAssertions:()=>aEe,skipConstraint:()=>aJ,skipOuterExpressions:()=>Rl,skipParentheses:()=>Ka,skipPartiallyEmittedExpressions:()=>jf,skipTrivia:()=>ua,skipTypeChecking:()=>UC,skipTypeParentheses:()=>ML,skipWhile:()=>KZ,sliceAfter:()=>NV,some:()=>ct,sort:()=>uS,sortAndDeduplicate:()=>zD,sortAndDeduplicateDiagnostics:()=>z1,sourceFileAffectingCompilerOptions:()=>j6,sourceFileMayBeEmitted:()=>LS,sourceMapCommentRegExp:()=>p4,sourceMapCommentRegExpDontCareLineStart:()=>JU,spacePart:()=>ul,spanMap:()=>Q5,spreadArrayHelper:()=>YF,stableSort:()=>Gg,startEndContainsRange:()=>qq,startEndOverlapsWithStartEnd:()=>m3,startOnNewLine:()=>Sd,startTracing:()=>iee,startsWith:()=>Ui,startsWithDirectory:()=>CG,startsWithUnderscore:()=>LJ,startsWithUseStrict:()=>mie,stringContainsAt:()=>Ele,stringToToken:()=>LE,stripQuotes:()=>Sf,supportedDeclarationExtensions:()=>s2,supportedJSExtensions:()=>QV,supportedJSExtensionsFlat:()=>Px,supportedLocaleDirectories:()=>a9,supportedTSExtensions:()=>Nx,supportedTSExtensionsFlat:()=>$V,supportedTSImplementationExtensions:()=>l2,suppressLeadingAndTrailingTrivia:()=>qu,suppressLeadingTrivia:()=>TJ,suppressTrailingTrivia:()=>dle,symbolEscapedNameNoDefault:()=>D3,symbolName:()=>$s,symbolNameNoDefault:()=>R3,symbolPart:()=>ele,symbolToDisplayParts:()=>tP,syntaxMayBeASICandidate:()=>zJ,syntaxRequiresTrailingSemicolonOrASI:()=>W3,sys:()=>Hc,sysLog:()=>SM,tagNamesAreEquivalent:()=>Fb,takeWhile:()=>n8,targetOptionDeclaration:()=>Y2,templateObjectHelper:()=>KF,testFormatSettings:()=>Cse,textChangeRangeIsUnchanged:()=>Iee,textChangeRangeNewSpan:()=>ZD,textChanges:()=>er,textOrKeywordPart:()=>gJ,textPart:()=>Pp,textRangeContainsPositionInclusive:()=>wM,textSpanContainsPosition:()=>OG,textSpanContainsTextSpan:()=>Eee,textSpanEnd:()=>Al,textSpanIntersection:()=>Aee,textSpanIntersectsWith:()=>P8,textSpanIntersectsWithPosition:()=>Tee,textSpanIntersectsWithTextSpan:()=>rye,textSpanIsEmpty:()=>bee,textSpanOverlap:()=>See,textSpanOverlapsWith:()=>nye,textSpansEqual:()=>vR,textToKeywordObj:()=>kM,timestamp:()=>Is,toArray:()=>yA,toBuilderFileEmit:()=>Vae,toBuilderStateFileInfoForMultiEmit:()=>Gae,toEditorSettings:()=>vO,toFileNameLowerCase:()=>D_,toLowerCase:()=>FZ,toPath:()=>ks,toProgramEmitPending:()=>jae,tokenIsIdentifierOrKeyword:()=>Md,tokenIsIdentifierOrKeywordOrGreaterThan:()=>_ee,tokenToString:()=>qo,trace:()=>to,tracing:()=>qn,tracingEnabled:()=>vM,transform:()=>X1e,transformClassFields:()=>Yoe,transformDeclarations:()=>lH,transformECMAScriptModule:()=>sH,transformES2015:()=>uae,transformES2016:()=>dae,transformES2017:()=>eae,transformES2018:()=>tae,transformES2019:()=>nae,transformES2020:()=>rae,transformES2021:()=>iae,transformES5:()=>pae,transformESDecorators:()=>Zoe,transformESNext:()=>oae,transformGenerators:()=>fae,transformJsx:()=>cae,transformLegacyDecorators:()=>Qoe,transformModule:()=>aH,transformNamedEvaluation:()=>Uu,transformNodeModule:()=>_ae,transformNodes:()=>mk,transformSystemModule:()=>mae,transformTypeScript:()=>Xoe,transpile:()=>oIe,transpileModule:()=>Ble,transpileOptionValueCompilerOptions:()=>hU,tryAddToSet:()=>db,tryAndIgnoreErrors:()=>G3,tryCast:()=>Vr,tryDirectoryExists:()=>B3,tryExtractTSExtension:()=>JW,tryFileExists:()=>eO,tryGetClassExtendingExpressionWithTypeArguments:()=>dV,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>uV,tryGetDirectories:()=>z3,tryGetExtensionFromPath:()=>og,tryGetImportFromModuleSpecifier:()=>xL,tryGetJSDocSatisfiesTypeNode:()=>bF,tryGetModuleNameFromFile:()=>k2,tryGetModuleSpecifierFromDeclaration:()=>sx,tryGetNativePerformanceHooks:()=>eee,tryGetPropertyAccessOrIdentifierToString:()=>HL,tryGetPropertyNameOfBindingOrAssignmentElement:()=>P6,tryGetSourceMappingURL:()=>Poe,tryGetTextOfPropertyName:()=>fC,tryIOAndConsumeErrors:()=>V3,tryParseJson:()=>KW,tryParsePattern:()=>xx,tryParsePatterns:()=>fF,tryParseRawSourceMap:()=>HU,tryReadDirectory:()=>xJ,tryReadFile:()=>SN,tryRemoveDirectoryPrefix:()=>xV,tryRemoveExtension:()=>ire,tryRemovePrefix:()=>fB,tryRemoveSuffix:()=>UZ,typeAcquisitionDeclarations:()=>$2,typeAliasNamePart:()=>rle,typeDirectiveIsEqualTo:()=>gte,typeKeywords:()=>X3,typeParameterNamePart:()=>ile,typeToDisplayParts:()=>Xk,unchangedPollThresholds:()=>TM,unchangedTextChangeRange:()=>eL,unescapeLeadingUnderscores:()=>Ii,unmangleScopedPackageName:()=>ak,unorderedRemoveItem:()=>bA,unorderedRemoveItemAt:()=>uB,unreachableCodeIsError:()=>Jne,unusedLabelIsError:()=>Kne,unwrapInnermostStatementOfLabel:()=>R9,updateErrorForNoInputFiles:()=>z6,updateLanguageServiceSourceFile:()=>wK,updateMissingFilePathsWatch:()=>vH,updateResolutionField:()=>$x,updateSharedExtendedConfigFileWatcher:()=>N4,updateSourceFile:()=>Kj,updateWatchingWildcardDirectories:()=>gk,usesExtensionsOnImports:()=>tre,usingSingleLineStringWriter:()=>dC,utf16EncodeAsString:()=>F1,validateLocaleAndSetLanguage:()=>oye,valuesHelper:()=>ZF,version:()=>yp,versionMajorMinor:()=>uh,visitArray:()=>ck,visitCommaListElements:()=>dk,visitEachChild:()=>un,visitFunctionBody:()=>Dp,visitIterationBody:()=>Qd,visitLexicalEnvironment:()=>jU,visitNode:()=>He,visitNodes:()=>Dn,visitParameterList:()=>rl,walkUpBindingElementsAndPatterns:()=>B1,walkUpLexicalEnvironments:()=>Foe,walkUpOuterExpressions:()=>_ie,walkUpParenthesizedExpressions:()=>Zg,walkUpParenthesizedTypes:()=>PL,walkUpParenthesizedTypesAndGetParentAndChild:()=>nne,whitespaceOrMapCommentRegExp:()=>f4,writeCommentRange:()=>bx,writeFile:()=>RC,writeFileEnsuringDirectories:()=>oV,zipWith:()=>J5});var QMe=pt({"src/typescript/_namespaces/ts.ts"(){"use strict";wo(),Pk(),Hr(),Ty(),xet()}}),Ret=As({"src/typescript/typescript.ts"(e,t){QMe(),QMe(),typeof console<"u"&&(x.loggingHost={log(r,i){switch(r){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=$Me}});return Ret()})();typeof IZ<"u"&&IZ.exports&&(IZ.exports=dS);var Xpt=dS.createClassifier,rve=dS.createLanguageService,Ypt=dS.displayPartsToString,$pt=dS.EndOfLineState,Qpt=dS.flattenDiagnosticMessageText,Zpt=dS.IndentStyle,kD=dS.ScriptKind,eft=dS.ScriptTarget,tft=dS.TokenClass,ive=dS;var Vi={};Vi["lib.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`;Vi["lib.decorators.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* The decorator context types provided to class element decorators.
*/
type ClassMemberDecoratorContext =
| ClassMethodDecoratorContext
| ClassGetterDecoratorContext
| ClassSetterDecoratorContext
| ClassFieldDecoratorContext
| ClassAccessorDecoratorContext;
/**
* The decorator context types provided to any decorator.
*/
type DecoratorContext =
| ClassDecoratorContext
| ClassMemberDecoratorContext;
type DecoratorMetadataObject = Record<PropertyKey, unknown> & object;
type DecoratorMetadata = typeof globalThis extends { Symbol: { readonly metadata: symbol; }; } ? DecoratorMetadataObject : DecoratorMetadataObject | undefined;
/**
* Context provided to a class decorator.
* @template Class The type of the decorated class associated with this context.
*/
interface ClassDecoratorContext<
Class extends abstract new (...args: any) => any = abstract new (...args: any) => any,
> {
/** The kind of element that was decorated. */
readonly kind: "class";
/** The name of the decorated class. */
readonly name: string | undefined;
/**
* Adds a callback to be invoked after the class definition has been finalized.
*
* @example
* \`\`\`ts
* function customElement(name: string): ClassDecoratorFunction {
* return (target, context) => {
* context.addInitializer(function () {
* customElements.define(name, this);
* });
* }
* }
*
* @customElement("my-element")
* class MyElement {}
* \`\`\`
*/
addInitializer(initializer: (this: Class) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class method decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class method.
*/
interface ClassMethodDecoratorContext<
This = unknown,
Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
> {
/** The kind of class element that was decorated. */
readonly kind: "method";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Gets the current value of the method from the provided object.
*
* @example
* let fn = context.access.get(instance);
*/
get(object: This): Value;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*
* @example
* \`\`\`ts
* const bound: ClassMethodDecoratorFunction = (value, context) {
* if (context.private) throw new TypeError("Not supported on private methods.");
* context.addInitializer(function () {
* this[context.name] = this[context.name].bind(this);
* });
* }
*
* class C {
* message = "Hello";
*
* @bound
* m() {
* console.log(this.message);
* }
* }
* \`\`\`
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class getter decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The property type of the decorated class getter.
*/
interface ClassGetterDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "getter";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the getter on the provided object.
*
* @example
* let value = context.access.get(instance);
*/
get(object: This): Value;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class setter decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class setter.
*/
interface ClassSetterDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "setter";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the setter on the provided object.
*
* @example
* context.access.set(instance, value);
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Context provided to a class \`accessor\` field decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of decorated class field.
*/
interface ClassAccessorDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "accessor";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Invokes the getter on the provided object.
*
* @example
* let value = context.access.get(instance);
*/
get(object: This): Value;
/**
* Invokes the setter on the provided object.
*
* @example
* context.access.set(instance, value);
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
/**
* Describes the target provided to class \`accessor\` field decorators.
* @template This The \`this\` type to which the target applies.
* @template Value The property type for the class \`accessor\` field.
*/
interface ClassAccessorDecoratorTarget<This, Value> {
/**
* Invokes the getter that was defined prior to decorator application.
*
* @example
* let value = target.get.call(instance);
*/
get(this: This): Value;
/**
* Invokes the setter that was defined prior to decorator application.
*
* @example
* target.set.call(instance, value);
*/
set(this: This, value: Value): void;
}
/**
* Describes the allowed return value from a class \`accessor\` field decorator.
* @template This The \`this\` type to which the target applies.
* @template Value The property type for the class \`accessor\` field.
*/
interface ClassAccessorDecoratorResult<This, Value> {
/**
* An optional replacement getter function. If not provided, the existing getter function is used instead.
*/
get?(this: This): Value;
/**
* An optional replacement setter function. If not provided, the existing setter function is used instead.
*/
set?(this: This, value: Value): void;
/**
* An optional initializer mutator that is invoked when the underlying field initializer is evaluated.
* @param value The incoming initializer value.
* @returns The replacement initializer value.
*/
init?(this: This, value: Value): Value;
}
/**
* Context provided to a class field decorator.
* @template This The type on which the class element will be defined. For a static class element, this will be
* the type of the constructor. For a non-static class element, this will be the type of the instance.
* @template Value The type of the decorated class field.
*/
interface ClassFieldDecoratorContext<
This = unknown,
Value = unknown,
> {
/** The kind of class element that was decorated. */
readonly kind: "field";
/** The name of the decorated class element. */
readonly name: string | symbol;
/** A value indicating whether the class element is a static (\`true\`) or instance (\`false\`) element. */
readonly static: boolean;
/** A value indicating whether the class element has a private name. */
readonly private: boolean;
/** An object that can be used to access the current value of the class element at runtime. */
readonly access: {
/**
* Determines whether an object has a property with the same name as the decorated element.
*/
has(object: This): boolean;
/**
* Gets the value of the field on the provided object.
*/
get(object: This): Value;
/**
* Sets the value of the field on the provided object.
*/
set(object: This, value: Value): void;
};
/**
* Adds a callback to be invoked either before static initializers are run (when
* decorating a \`static\` element), or before instance initializers are run (when
* decorating a non-\`static\` element).
*/
addInitializer(initializer: (this: This) => void): void;
readonly metadata: DecoratorMetadata;
}
`;Vi["lib.decorators.legacy.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
declare type ParameterDecorator = (target: Object, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
`;Vi["lib.dom.asynciterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Async Iterable APIs
/////////////////////////////
interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}
`;Vi["lib.dom.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AnalyserOptions extends AudioNodeOptions {
fftSize?: number;
maxDecibels?: number;
minDecibels?: number;
smoothingTimeConstant?: number;
}
interface AnimationEventInit extends EventInit {
animationName?: string;
elapsedTime?: number;
pseudoElement?: string;
}
interface AnimationPlaybackEventInit extends EventInit {
currentTime?: CSSNumberish | null;
timelineTime?: CSSNumberish | null;
}
interface AssignedNodesOptions {
flatten?: boolean;
}
interface AudioBufferOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface AudioBufferSourceOptions {
buffer?: AudioBuffer | null;
detune?: number;
loop?: boolean;
loopEnd?: number;
loopStart?: number;
playbackRate?: number;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface AudioContextOptions {
latencyHint?: AudioContextLatencyCategory | number;
sampleRate?: number;
}
interface AudioNodeOptions {
channelCount?: number;
channelCountMode?: ChannelCountMode;
channelInterpretation?: ChannelInterpretation;
}
interface AudioProcessingEventInit extends EventInit {
inputBuffer: AudioBuffer;
outputBuffer: AudioBuffer;
playbackTime: number;
}
interface AudioTimestamp {
contextTime?: number;
performanceTime?: DOMHighResTimeStamp;
}
interface AudioWorkletNodeOptions extends AudioNodeOptions {
numberOfInputs?: number;
numberOfOutputs?: number;
outputChannelCount?: number[];
parameterData?: Record<string, number>;
processorOptions?: any;
}
interface AuthenticationExtensionsClientInputs {
appid?: string;
credProps?: boolean;
hmacCreateSecret?: boolean;
minPinLength?: boolean;
}
interface AuthenticationExtensionsClientOutputs {
appid?: boolean;
credProps?: CredentialPropertiesOutput;
hmacCreateSecret?: boolean;
}
interface AuthenticatorSelectionCriteria {
authenticatorAttachment?: AuthenticatorAttachment;
requireResidentKey?: boolean;
residentKey?: ResidentKeyRequirement;
userVerification?: UserVerificationRequirement;
}
interface AvcEncoderConfig {
format?: AvcBitstreamFormat;
}
interface BiquadFilterOptions extends AudioNodeOptions {
Q?: number;
detune?: number;
frequency?: number;
gain?: number;
type?: BiquadFilterType;
}
interface BlobEventInit {
data: Blob;
timecode?: DOMHighResTimeStamp;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSMatrixComponentOptions {
is2D?: boolean;
}
interface CSSNumericType {
angle?: number;
flex?: number;
frequency?: number;
length?: number;
percent?: number;
percentHint?: CSSNumericBaseType;
resolution?: number;
time?: number;
}
interface CSSStyleSheetInit {
baseURL?: string;
disabled?: boolean;
media?: MediaList | string;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface CanvasRenderingContext2DSettings {
alpha?: boolean;
colorSpace?: PredefinedColorSpace;
desynchronized?: boolean;
willReadFrequently?: boolean;
}
interface ChannelMergerOptions extends AudioNodeOptions {
numberOfInputs?: number;
}
interface ChannelSplitterOptions extends AudioNodeOptions {
numberOfOutputs?: number;
}
interface CheckVisibilityOptions {
checkOpacity?: boolean;
checkVisibilityCSS?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface ClipboardEventInit extends EventInit {
clipboardData?: DataTransfer | null;
}
interface ClipboardItemOptions {
presentationStyle?: PresentationStyle;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CompositionEventInit extends UIEventInit {
data?: string;
}
interface ComputedEffectTiming extends EffectTiming {
activeDuration?: CSSNumberish;
currentIteration?: number | null;
endTime?: CSSNumberish;
localTime?: CSSNumberish | null;
progress?: number | null;
startTime?: CSSNumberish;
}
interface ComputedKeyframe {
composite: CompositeOperationOrAuto;
computedOffset: number;
easing: string;
offset: number | null;
[property: string]: string | number | null | undefined;
}
interface ConstantSourceOptions {
offset?: number;
}
interface ConstrainBooleanParameters {
exact?: boolean;
ideal?: boolean;
}
interface ConstrainDOMStringParameters {
exact?: string | string[];
ideal?: string | string[];
}
interface ConstrainDoubleRange extends DoubleRange {
exact?: number;
ideal?: number;
}
interface ConstrainULongRange extends ULongRange {
exact?: number;
ideal?: number;
}
interface ConvolverOptions extends AudioNodeOptions {
buffer?: AudioBuffer | null;
disableNormalization?: boolean;
}
interface CredentialCreationOptions {
publicKey?: PublicKeyCredentialCreationOptions;
signal?: AbortSignal;
}
interface CredentialPropertiesOutput {
rk?: boolean;
}
interface CredentialRequestOptions {
mediation?: CredentialMediationRequirement;
publicKey?: PublicKeyCredentialRequestOptions;
signal?: AbortSignal;
}
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface DelayOptions extends AudioNodeOptions {
delayTime?: number;
maxDelayTime?: number;
}
interface DeviceMotionEventAccelerationInit {
x?: number | null;
y?: number | null;
z?: number | null;
}
interface DeviceMotionEventInit extends EventInit {
acceleration?: DeviceMotionEventAccelerationInit;
accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;
interval?: number;
rotationRate?: DeviceMotionEventRotationRateInit;
}
interface DeviceMotionEventRotationRateInit {
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DeviceOrientationEventInit extends EventInit {
absolute?: boolean;
alpha?: number | null;
beta?: number | null;
gamma?: number | null;
}
interface DisplayMediaStreamOptions {
audio?: boolean | MediaTrackConstraints;
video?: boolean | MediaTrackConstraints;
}
interface DocumentTimelineOptions {
originTime?: DOMHighResTimeStamp;
}
interface DoubleRange {
max?: number;
min?: number;
}
interface DragEventInit extends MouseEventInit {
dataTransfer?: DataTransfer | null;
}
interface DynamicsCompressorOptions extends AudioNodeOptions {
attack?: number;
knee?: number;
ratio?: number;
release?: number;
threshold?: number;
}
interface EcKeyAlgorithm extends KeyAlgorithm {
namedCurve: NamedCurve;
}
interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface EffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | CSSNumericValue | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface ElementCreationOptions {
is?: string;
}
interface ElementDefinitionOptions {
extends?: string;
}
interface EncodedVideoChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
type: EncodedVideoChunkType;
}
interface EncodedVideoChunkMetadata {
decoderConfig?: VideoDecoderConfig;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventModifierInit extends UIEventInit {
altKey?: boolean;
ctrlKey?: boolean;
metaKey?: boolean;
modifierAltGraph?: boolean;
modifierCapsLock?: boolean;
modifierFn?: boolean;
modifierFnLock?: boolean;
modifierHyper?: boolean;
modifierNumLock?: boolean;
modifierScrollLock?: boolean;
modifierSuper?: boolean;
modifierSymbol?: boolean;
modifierSymbolLock?: boolean;
shiftKey?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemCreateWritableOptions {
keepExistingData?: boolean;
}
interface FileSystemFlags {
create?: boolean;
exclusive?: boolean;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FocusEventInit extends UIEventInit {
relatedTarget?: EventTarget | null;
}
interface FocusOptions {
preventScroll?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: FontDisplay;
featureSettings?: string;
lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface FormDataEventInit extends EventInit {
formData: FormData;
}
interface FullscreenOptions {
navigationUI?: FullscreenNavigationUI;
}
interface GainOptions extends AudioNodeOptions {
gain?: number;
}
interface GamepadEffectParameters {
duration?: number;
startDelay?: number;
strongMagnitude?: number;
weakMagnitude?: number;
}
interface GamepadEventInit extends EventInit {
gamepad: Gamepad;
}
interface GetAnimationsOptions {
subtree?: boolean;
}
interface GetNotificationOptions {
tag?: string;
}
interface GetRootNodeOptions {
composed?: boolean;
}
interface HashChangeEventInit extends EventInit {
newURL?: string;
oldURL?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyAlgorithm extends KeyAlgorithm {
hash: KeyAlgorithm;
length: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBTransactionOptions {
durability?: IDBTransactionDurability;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface IIRFilterOptions extends AudioNodeOptions {
feedback: number[];
feedforward: number[];
}
interface IdleRequestOptions {
timeout?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImportMeta {
url: string;
}
interface InputEventInit extends UIEventInit {
data?: string | null;
dataTransfer?: DataTransfer | null;
inputType?: string;
isComposing?: boolean;
targetRanges?: StaticRange[];
}
interface IntersectionObserverEntryInit {
boundingClientRect: DOMRectInit;
intersectionRatio: number;
intersectionRect: DOMRectInit;
isIntersecting: boolean;
rootBounds: DOMRectInit | null;
target: Element;
time: DOMHighResTimeStamp;
}
interface IntersectionObserverInit {
root?: Element | Document | null;
rootMargin?: string;
threshold?: number | number[];
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface KeyboardEventInit extends EventModifierInit {
/** @deprecated */
charCode?: number;
code?: string;
isComposing?: boolean;
key?: string;
/** @deprecated */
keyCode?: number;
location?: number;
repeat?: boolean;
}
interface Keyframe {
composite?: CompositeOperationOrAuto;
easing?: string;
offset?: number | null;
[property: string]: string | number | null | undefined;
}
interface KeyframeAnimationOptions extends KeyframeEffectOptions {
id?: string;
timeline?: AnimationTimeline | null;
}
interface KeyframeEffectOptions extends EffectTiming {
composite?: CompositeOperation;
iterationComposite?: IterationCompositeOperation;
pseudoElement?: string | null;
}
interface LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: boolean;
}
interface MIDIConnectionEventInit extends EventInit {
port?: MIDIPort;
}
interface MIDIMessageEventInit extends EventInit {
data?: Uint8Array;
}
interface MIDIOptions {
software?: boolean;
sysex?: boolean;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaElementAudioSourceOptions {
mediaElement: HTMLMediaElement;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MediaEncryptedEventInit extends EventInit {
initData?: ArrayBuffer | null;
initDataType?: string;
}
interface MediaImage {
sizes?: string;
src: string;
type?: string;
}
interface MediaKeyMessageEventInit extends EventInit {
message: ArrayBuffer;
messageType: MediaKeyMessageType;
}
interface MediaKeySystemConfiguration {
audioCapabilities?: MediaKeySystemMediaCapability[];
distinctiveIdentifier?: MediaKeysRequirement;
initDataTypes?: string[];
label?: string;
persistentState?: MediaKeysRequirement;
sessionTypes?: string[];
videoCapabilities?: MediaKeySystemMediaCapability[];
}
interface MediaKeySystemMediaCapability {
contentType?: string;
encryptionScheme?: string | null;
robustness?: string;
}
interface MediaMetadataInit {
album?: string;
artist?: string;
artwork?: MediaImage[];
title?: string;
}
interface MediaPositionState {
duration?: number;
playbackRate?: number;
position?: number;
}
interface MediaQueryListEventInit extends EventInit {
matches?: boolean;
media?: string;
}
interface MediaRecorderOptions {
audioBitsPerSecond?: number;
bitsPerSecond?: number;
mimeType?: string;
videoBitsPerSecond?: number;
}
interface MediaSessionActionDetails {
action: MediaSessionAction;
fastSeek?: boolean;
seekOffset?: number;
seekTime?: number;
}
interface MediaStreamAudioSourceOptions {
mediaStream: MediaStream;
}
interface MediaStreamConstraints {
audio?: boolean | MediaTrackConstraints;
peerIdentity?: string;
preferCurrentTab?: boolean;
video?: boolean | MediaTrackConstraints;
}
interface MediaStreamTrackEventInit extends EventInit {
track: MediaStreamTrack;
}
interface MediaTrackCapabilities {
aspectRatio?: DoubleRange;
autoGainControl?: boolean[];
channelCount?: ULongRange;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean[];
facingMode?: string[];
frameRate?: DoubleRange;
groupId?: string;
height?: ULongRange;
noiseSuppression?: boolean[];
sampleRate?: ULongRange;
sampleSize?: ULongRange;
width?: ULongRange;
}
interface MediaTrackConstraintSet {
aspectRatio?: ConstrainDouble;
autoGainControl?: ConstrainBoolean;
channelCount?: ConstrainULong;
deviceId?: ConstrainDOMString;
displaySurface?: ConstrainDOMString;
echoCancellation?: ConstrainBoolean;
facingMode?: ConstrainDOMString;
frameRate?: ConstrainDouble;
groupId?: ConstrainDOMString;
height?: ConstrainULong;
noiseSuppression?: ConstrainBoolean;
sampleRate?: ConstrainULong;
sampleSize?: ConstrainULong;
width?: ConstrainULong;
}
interface MediaTrackConstraints extends MediaTrackConstraintSet {
advanced?: MediaTrackConstraintSet[];
}
interface MediaTrackSettings {
aspectRatio?: number;
autoGainControl?: boolean;
channelCount?: number;
deviceId?: string;
displaySurface?: string;
echoCancellation?: boolean;
facingMode?: string;
frameRate?: number;
groupId?: string;
height?: number;
noiseSuppression?: boolean;
sampleRate?: number;
sampleSize?: number;
width?: number;
}
interface MediaTrackSupportedConstraints {
aspectRatio?: boolean;
autoGainControl?: boolean;
channelCount?: boolean;
deviceId?: boolean;
displaySurface?: boolean;
echoCancellation?: boolean;
facingMode?: boolean;
frameRate?: boolean;
groupId?: boolean;
height?: boolean;
noiseSuppression?: boolean;
sampleRate?: boolean;
sampleSize?: boolean;
width?: boolean;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MouseEventInit extends EventModifierInit {
button?: number;
buttons?: number;
clientX?: number;
clientY?: number;
movementX?: number;
movementY?: number;
relatedTarget?: EventTarget | null;
screenX?: number;
screenY?: number;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface MutationObserverInit {
/** Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted. */
attributeFilter?: string[];
/** Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded. */
attributeOldValue?: boolean;
/** Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified. */
attributes?: boolean;
/** Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified. */
characterData?: boolean;
/** Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded. */
characterDataOldValue?: boolean;
/** Set to true if mutations to target's children are to be observed. */
childList?: boolean;
/** Set to true if mutations to not just target, but also target's descendants are to be observed. */
subtree?: boolean;
}
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NotificationOptions {
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
lang?: string;
requireInteraction?: boolean;
silent?: boolean | null;
tag?: string;
}
interface OfflineAudioCompletionEventInit extends EventInit {
renderedBuffer: AudioBuffer;
}
interface OfflineAudioContextOptions {
length: number;
numberOfChannels?: number;
sampleRate: number;
}
interface OptionalEffectTiming {
delay?: number;
direction?: PlaybackDirection;
duration?: number | string;
easing?: string;
endDelay?: number;
fill?: FillMode;
iterationStart?: number;
iterations?: number;
playbackRate?: number;
}
interface OscillatorOptions extends AudioNodeOptions {
detune?: number;
frequency?: number;
periodicWave?: PeriodicWave;
type?: OscillatorType;
}
interface PageTransitionEventInit extends EventInit {
persisted?: boolean;
}
interface PannerOptions extends AudioNodeOptions {
coneInnerAngle?: number;
coneOuterAngle?: number;
coneOuterGain?: number;
distanceModel?: DistanceModelType;
maxDistance?: number;
orientationX?: number;
orientationY?: number;
orientationZ?: number;
panningModel?: PanningModelType;
positionX?: number;
positionY?: number;
positionZ?: number;
refDistance?: number;
rolloffFactor?: number;
}
interface PaymentCurrencyAmount {
currency: string;
value: string;
}
interface PaymentDetailsBase {
displayItems?: PaymentItem[];
modifiers?: PaymentDetailsModifier[];
}
interface PaymentDetailsInit extends PaymentDetailsBase {
id?: string;
total: PaymentItem;
}
interface PaymentDetailsModifier {
additionalDisplayItems?: PaymentItem[];
data?: any;
supportedMethods: string;
total?: PaymentItem;
}
interface PaymentDetailsUpdate extends PaymentDetailsBase {
paymentMethodErrors?: any;
total?: PaymentItem;
}
interface PaymentItem {
amount: PaymentCurrencyAmount;
label: string;
pending?: boolean;
}
interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {
methodDetails?: any;
methodName?: string;
}
interface PaymentMethodData {
data?: any;
supportedMethods: string;
}
interface PaymentRequestUpdateEventInit extends EventInit {
}
interface PaymentValidationErrors {
error?: string;
paymentMethod?: any;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PeriodicWaveConstraints {
disableNormalization?: boolean;
}
interface PeriodicWaveOptions extends PeriodicWaveConstraints {
imag?: number[] | Float32Array;
real?: number[] | Float32Array;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PictureInPictureEventInit extends EventInit {
pictureInPictureWindow: PictureInPictureWindow;
}
interface PlaneLayout {
offset: number;
stride: number;
}
interface PointerEventInit extends MouseEventInit {
coalescedEvents?: PointerEvent[];
height?: number;
isPrimary?: boolean;
pointerId?: number;
pointerType?: string;
predictedEvents?: PointerEvent[];
pressure?: number;
tangentialPressure?: number;
tiltX?: number;
tiltY?: number;
twist?: number;
width?: number;
}
interface PopStateEventInit extends EventInit {
state?: any;
}
interface PositionOptions {
enableHighAccuracy?: boolean;
maximumAge?: number;
timeout?: number;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PropertyDefinition {
inherits: boolean;
initialValue?: string;
name: string;
syntax?: string;
}
interface PropertyIndexedKeyframes {
composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];
easing?: string | string[];
offset?: number | (number | null)[];
[property: string]: string | string[] | number | null | (number | null)[] | undefined;
}
interface PublicKeyCredentialCreationOptions {
attestation?: AttestationConveyancePreference;
authenticatorSelection?: AuthenticatorSelectionCriteria;
challenge: BufferSource;
excludeCredentials?: PublicKeyCredentialDescriptor[];
extensions?: AuthenticationExtensionsClientInputs;
pubKeyCredParams: PublicKeyCredentialParameters[];
rp: PublicKeyCredentialRpEntity;
timeout?: number;
user: PublicKeyCredentialUserEntity;
}
interface PublicKeyCredentialDescriptor {
id: BufferSource;
transports?: AuthenticatorTransport[];
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialEntity {
name: string;
}
interface PublicKeyCredentialParameters {
alg: COSEAlgorithmIdentifier;
type: PublicKeyCredentialType;
}
interface PublicKeyCredentialRequestOptions {
allowCredentials?: PublicKeyCredentialDescriptor[];
challenge: BufferSource;
extensions?: AuthenticationExtensionsClientInputs;
rpId?: string;
timeout?: number;
userVerification?: UserVerificationRequirement;
}
interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {
id?: string;
}
interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {
displayName: string;
id: BufferSource;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
*
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
*/
highWaterMark: number;
}
interface RTCAnswerOptions extends RTCOfferAnswerOptions {
}
interface RTCCertificateExpiration {
expires?: number;
}
interface RTCConfiguration {
bundlePolicy?: RTCBundlePolicy;
certificates?: RTCCertificate[];
iceCandidatePoolSize?: number;
iceServers?: RTCIceServer[];
iceTransportPolicy?: RTCIceTransportPolicy;
rtcpMuxPolicy?: RTCRtcpMuxPolicy;
}
interface RTCDTMFToneChangeEventInit extends EventInit {
tone?: string;
}
interface RTCDataChannelEventInit extends EventInit {
channel: RTCDataChannel;
}
interface RTCDataChannelInit {
id?: number;
maxPacketLifeTime?: number;
maxRetransmits?: number;
negotiated?: boolean;
ordered?: boolean;
protocol?: string;
}
interface RTCDtlsFingerprint {
algorithm?: string;
value?: string;
}
interface RTCEncodedAudioFrameMetadata {
contributingSources?: number[];
payloadType?: number;
sequenceNumber?: number;
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
payloadType?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
timestamp?: number;
width?: number;
}
interface RTCErrorEventInit extends EventInit {
error: RTCError;
}
interface RTCErrorInit {
errorDetail: RTCErrorDetailType;
httpRequestStatusCode?: number;
receivedAlert?: number;
sctpCauseCode?: number;
sdpLineNumber?: number;
sentAlert?: number;
}
interface RTCIceCandidateInit {
candidate?: string;
sdpMLineIndex?: number | null;
sdpMid?: string | null;
usernameFragment?: string | null;
}
interface RTCIceCandidatePair {
local?: RTCIceCandidate;
remote?: RTCIceCandidate;
}
interface RTCIceCandidatePairStats extends RTCStats {
availableIncomingBitrate?: number;
availableOutgoingBitrate?: number;
bytesReceived?: number;
bytesSent?: number;
currentRoundTripTime?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
lastPacketSentTimestamp?: DOMHighResTimeStamp;
localCandidateId: string;
nominated?: boolean;
remoteCandidateId: string;
requestsReceived?: number;
requestsSent?: number;
responsesReceived?: number;
responsesSent?: number;
state: RTCStatsIceCandidatePairState;
totalRoundTripTime?: number;
transportId: string;
}
interface RTCIceServer {
credential?: string;
urls: string | string[];
username?: string;
}
interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {
audioLevel?: number;
bytesReceived?: number;
concealedSamples?: number;
concealmentEvents?: number;
decoderImplementation?: string;
estimatedPlayoutTimestamp?: DOMHighResTimeStamp;
fecPacketsDiscarded?: number;
fecPacketsReceived?: number;
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesDecoded?: number;
framesDropped?: number;
framesPerSecond?: number;
framesReceived?: number;
headerBytesReceived?: number;
insertedSamplesForDeceleration?: number;
jitterBufferDelay?: number;
jitterBufferEmittedCount?: number;
keyFramesDecoded?: number;
lastPacketReceivedTimestamp?: DOMHighResTimeStamp;
mid?: string;
nackCount?: number;
packetsDiscarded?: number;
pliCount?: number;
qpSum?: number;
remoteId?: string;
removedSamplesForAcceleration?: number;
silentConcealedSamples?: number;
totalAudioEnergy?: number;
totalDecodeTime?: number;
totalInterFrameDelay?: number;
totalProcessingDelay?: number;
totalSamplesDuration?: number;
totalSamplesReceived?: number;
totalSquaredInterFrameDelay?: number;
trackIdentifier: string;
}
interface RTCLocalSessionDescriptionInit {
sdp?: string;
type?: RTCSdpType;
}
interface RTCOfferAnswerOptions {
}
interface RTCOfferOptions extends RTCOfferAnswerOptions {
iceRestart?: boolean;
offerToReceiveAudio?: boolean;
offerToReceiveVideo?: boolean;
}
interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {
firCount?: number;
frameHeight?: number;
frameWidth?: number;
framesEncoded?: number;
framesPerSecond?: number;
framesSent?: number;
headerBytesSent?: number;
hugeFramesSent?: number;
keyFramesEncoded?: number;
mediaSourceId?: string;
nackCount?: number;
pliCount?: number;
qpSum?: number;
qualityLimitationResolutionChanges?: number;
remoteId?: string;
retransmittedBytesSent?: number;
retransmittedPacketsSent?: number;
rid?: string;
rtxSsrc?: number;
targetBitrate?: number;
totalEncodeTime?: number;
totalEncodedBytesTarget?: number;
totalPacketSendDelay?: number;
}
interface RTCPeerConnectionIceErrorEventInit extends EventInit {
address?: string | null;
errorCode: number;
errorText?: string;
port?: number | null;
url?: string;
}
interface RTCPeerConnectionIceEventInit extends EventInit {
candidate?: RTCIceCandidate | null;
url?: string | null;
}
interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {
jitter?: number;
packetsLost?: number;
packetsReceived?: number;
}
interface RTCRtcpParameters {
cname?: string;
reducedSize?: boolean;
}
interface RTCRtpCapabilities {
codecs: RTCRtpCodecCapability[];
headerExtensions: RTCRtpHeaderExtensionCapability[];
}
interface RTCRtpCodec {
channels?: number;
clockRate: number;
mimeType: string;
sdpFmtpLine?: string;
}
interface RTCRtpCodecCapability extends RTCRtpCodec {
}
interface RTCRtpCodecParameters extends RTCRtpCodec {
payloadType: number;
}
interface RTCRtpCodingParameters {
rid?: string;
}
interface RTCRtpContributingSource {
audioLevel?: number;
rtpTimestamp: number;
source: number;
timestamp: DOMHighResTimeStamp;
}
interface RTCRtpEncodingParameters extends RTCRtpCodingParameters {
active?: boolean;
maxBitrate?: number;
maxFramerate?: number;
networkPriority?: RTCPriorityType;
priority?: RTCPriorityType;
scaleResolutionDownBy?: number;
}
interface RTCRtpHeaderExtensionCapability {
uri: string;
}
interface RTCRtpHeaderExtensionParameters {
encrypted?: boolean;
id: number;
uri: string;
}
interface RTCRtpParameters {
codecs: RTCRtpCodecParameters[];
headerExtensions: RTCRtpHeaderExtensionParameters[];
rtcp: RTCRtcpParameters;
}
interface RTCRtpReceiveParameters extends RTCRtpParameters {
}
interface RTCRtpSendParameters extends RTCRtpParameters {
degradationPreference?: RTCDegradationPreference;
encodings: RTCRtpEncodingParameters[];
transactionId: string;
}
interface RTCRtpStreamStats extends RTCStats {
codecId?: string;
kind: string;
ssrc: number;
transportId?: string;
}
interface RTCRtpSynchronizationSource extends RTCRtpContributingSource {
}
interface RTCRtpTransceiverInit {
direction?: RTCRtpTransceiverDirection;
sendEncodings?: RTCRtpEncodingParameters[];
streams?: MediaStream[];
}
interface RTCSentRtpStreamStats extends RTCRtpStreamStats {
bytesSent?: number;
packetsSent?: number;
}
interface RTCSessionDescriptionInit {
sdp?: string;
type: RTCSdpType;
}
interface RTCSetParameterOptions {
}
interface RTCStats {
id: string;
timestamp: DOMHighResTimeStamp;
type: RTCStatsType;
}
interface RTCTrackEventInit extends EventInit {
receiver: RTCRtpReceiver;
streams?: MediaStream[];
track: MediaStreamTrack;
transceiver: RTCRtpTransceiver;
}
interface RTCTransportStats extends RTCStats {
bytesReceived?: number;
bytesSent?: number;
dtlsCipher?: string;
dtlsState: RTCDtlsTransportState;
localCertificateId?: string;
remoteCertificateId?: string;
selectedCandidatePairId?: string;
srtpCipher?: string;
tlsVersion?: string;
}
interface ReadableStreamGetReaderOptions {
/**
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
*
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
*/
mode?: ReadableStreamReaderMode;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface ReportingObserverOptions {
buffered?: boolean;
types?: string[];
}
interface RequestInit {
/** A BodyInit object or null to set request's body. */
body?: BodyInit | null;
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
cache?: RequestCache;
/** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
credentials?: RequestCredentials;
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
headers?: HeadersInit;
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
integrity?: string;
/** A boolean to set request's keepalive. */
keepalive?: boolean;
/** A string to set request's method. */
method?: string;
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
mode?: RequestMode;
priority?: RequestPriority;
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface ResizeObserverOptions {
box?: ResizeObserverBoxOptions;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {
hash: KeyAlgorithm;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyAlgorithm extends KeyAlgorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SVGBoundingBoxOptions {
clipped?: boolean;
fill?: boolean;
markers?: boolean;
stroke?: boolean;
}
interface ScrollIntoViewOptions extends ScrollOptions {
block?: ScrollLogicalPosition;
inline?: ScrollLogicalPosition;
}
interface ScrollOptions {
behavior?: ScrollBehavior;
}
interface ScrollToOptions extends ScrollOptions {
left?: number;
top?: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface ShadowRootInit {
delegatesFocus?: boolean;
mode: ShadowRootMode;
slotAssignment?: SlotAssignmentMode;
}
interface ShareData {
files?: File[];
text?: string;
title?: string;
url?: string;
}
interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {
error: SpeechSynthesisErrorCode;
}
interface SpeechSynthesisEventInit extends EventInit {
charIndex?: number;
charLength?: number;
elapsedTime?: number;
name?: string;
utterance: SpeechSynthesisUtterance;
}
interface StaticRangeInit {
endContainer: Node;
endOffset: number;
startContainer: Node;
startOffset: number;
}
interface StereoPannerOptions extends AudioNodeOptions {
pan?: number;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StorageEventInit extends EventInit {
key?: string | null;
newValue?: string | null;
oldValue?: string | null;
storageArea?: Storage | null;
url?: string;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
*
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
*
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
*
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
*
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface StructuredSerializeOptions {
transfer?: Transferable[];
}
interface SubmitEventInit extends EventInit {
submitter?: HTMLElement | null;
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read: number;
written: number;
}
interface ToggleEventInit extends EventInit {
newState?: string;
oldState?: string;
}
interface TouchEventInit extends EventModifierInit {
changedTouches?: Touch[];
targetTouches?: Touch[];
touches?: Touch[];
}
interface TouchInit {
altitudeAngle?: number;
azimuthAngle?: number;
clientX?: number;
clientY?: number;
force?: number;
identifier: number;
pageX?: number;
pageY?: number;
radiusX?: number;
radiusY?: number;
rotationAngle?: number;
screenX?: number;
screenY?: number;
target: EventTarget;
touchType?: TouchType;
}
interface TrackEventInit extends EventInit {
track?: TextTrack | null;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface TransitionEventInit extends EventInit {
elapsedTime?: number;
propertyName?: string;
pseudoElement?: string;
}
interface UIEventInit extends EventInit {
detail?: number;
view?: Window | null;
/** @deprecated */
which?: number;
}
interface ULongRange {
max?: number;
min?: number;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
start?: (controller: ReadableByteStreamController) => any;
type: "bytes";
}
interface UnderlyingDefaultSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
start?: (controller: ReadableStreamDefaultController<R>) => any;
type?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: ReadableStreamType;
}
interface ValidityStateFlags {
badInput?: boolean;
customError?: boolean;
patternMismatch?: boolean;
rangeOverflow?: boolean;
rangeUnderflow?: boolean;
stepMismatch?: boolean;
tooLong?: boolean;
tooShort?: boolean;
typeMismatch?: boolean;
valueMissing?: boolean;
}
interface VideoColorSpaceInit {
fullRange?: boolean | null;
matrix?: VideoMatrixCoefficients | null;
primaries?: VideoColorPrimaries | null;
transfer?: VideoTransferCharacteristics | null;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
interface VideoDecoderConfig {
codec: string;
codedHeight?: number;
codedWidth?: number;
colorSpace?: VideoColorSpaceInit;
description?: AllowSharedBufferSource;
displayAspectHeight?: number;
displayAspectWidth?: number;
hardwareAcceleration?: HardwareAcceleration;
optimizeForLatency?: boolean;
}
interface VideoDecoderInit {
error: WebCodecsErrorCallback;
output: VideoFrameOutputCallback;
}
interface VideoDecoderSupport {
config?: VideoDecoderConfig;
supported?: boolean;
}
interface VideoEncoderConfig {
alpha?: AlphaOption;
avc?: AvcEncoderConfig;
bitrate?: number;
bitrateMode?: VideoEncoderBitrateMode;
codec: string;
displayHeight?: number;
displayWidth?: number;
framerate?: number;
hardwareAcceleration?: HardwareAcceleration;
height: number;
latencyMode?: LatencyMode;
scalabilityMode?: string;
width: number;
}
interface VideoEncoderEncodeOptions {
keyFrame?: boolean;
}
interface VideoEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedVideoChunkOutputCallback;
}
interface VideoEncoderSupport {
config?: VideoEncoderConfig;
supported?: boolean;
}
interface VideoFrameBufferInit {
codedHeight: number;
codedWidth: number;
colorSpace?: VideoColorSpaceInit;
displayHeight?: number;
displayWidth?: number;
duration?: number;
format: VideoPixelFormat;
layout?: PlaneLayout[];
timestamp: number;
visibleRect?: DOMRectInit;
}
interface VideoFrameCallbackMetadata {
captureTime?: DOMHighResTimeStamp;
expectedDisplayTime: DOMHighResTimeStamp;
height: number;
mediaTime: number;
presentationTime: DOMHighResTimeStamp;
presentedFrames: number;
processingDuration?: number;
receiveTime?: DOMHighResTimeStamp;
rtpTimestamp?: number;
width: number;
}
interface VideoFrameCopyToOptions {
layout?: PlaneLayout[];
rect?: DOMRectInit;
}
interface VideoFrameInit {
alpha?: AlphaOption;
displayHeight?: number;
displayWidth?: number;
duration?: number;
timestamp?: number;
visibleRect?: DOMRectInit;
}
interface WaveShaperOptions extends AudioNodeOptions {
curve?: number[] | Float32Array;
oversample?: OverSampleType;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WebTransportCloseInfo {
closeCode?: number;
reason?: string;
}
interface WebTransportErrorOptions {
source?: WebTransportErrorSource;
streamErrorCode?: number | null;
}
interface WebTransportHash {
algorithm?: string;
value?: BufferSource;
}
interface WebTransportOptions {
allowPooling?: boolean;
congestionControl?: WebTransportCongestionControl;
requireUnreliable?: boolean;
serverCertificateHashes?: WebTransportHash[];
}
interface WebTransportSendStreamOptions {
sendOrder?: number;
}
interface WheelEventInit extends MouseEventInit {
deltaMode?: number;
deltaX?: number;
deltaY?: number;
deltaZ?: number;
}
interface WindowPostMessageOptions extends StructuredSerializeOptions {
targetOrigin?: string;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WorkletOptions {
credentials?: RequestCredentials;
}
interface WriteParams {
data?: BufferSource | Blob | string | null;
position?: number | null;
size?: number | null;
type: WriteCommandType;
}
type NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };
declare var NodeFilter: {
readonly FILTER_ACCEPT: 1;
readonly FILTER_REJECT: 2;
readonly FILTER_SKIP: 3;
readonly SHOW_ALL: 0xFFFFFFFF;
readonly SHOW_ELEMENT: 0x1;
readonly SHOW_ATTRIBUTE: 0x2;
readonly SHOW_TEXT: 0x4;
readonly SHOW_CDATA_SECTION: 0x8;
readonly SHOW_ENTITY_REFERENCE: 0x10;
readonly SHOW_ENTITY: 0x20;
readonly SHOW_PROCESSING_INSTRUCTION: 0x40;
readonly SHOW_COMMENT: 0x80;
readonly SHOW_DOCUMENT: 0x100;
readonly SHOW_DOCUMENT_TYPE: 0x200;
readonly SHOW_DOCUMENT_FRAGMENT: 0x400;
readonly SHOW_NOTATION: 0x800;
};
type XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };
/**
* The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
*/
interface ANGLE_instanced_arrays {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
interface ARIAMixin {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAtomic) */
ariaAtomic: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaAutoComplete) */
ariaAutoComplete: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaBusy) */
ariaBusy: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaChecked) */
ariaChecked: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColCount) */
ariaColCount: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColIndex) */
ariaColIndex: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaColSpan) */
ariaColSpan: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaCurrent) */
ariaCurrent: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDescription) */
ariaDescription: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaDisabled) */
ariaDisabled: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaExpanded) */
ariaExpanded: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHasPopup) */
ariaHasPopup: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaHidden) */
ariaHidden: string | null;
ariaInvalid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaKeyShortcuts) */
ariaKeyShortcuts: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLabel) */
ariaLabel: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLevel) */
ariaLevel: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaLive) */
ariaLive: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaModal) */
ariaModal: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiLine) */
ariaMultiLine: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaMultiSelectable) */
ariaMultiSelectable: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaOrientation) */
ariaOrientation: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPlaceholder) */
ariaPlaceholder: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPosInSet) */
ariaPosInSet: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaPressed) */
ariaPressed: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaReadOnly) */
ariaReadOnly: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRequired) */
ariaRequired: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRoleDescription) */
ariaRoleDescription: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowCount) */
ariaRowCount: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowIndex) */
ariaRowIndex: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaRowSpan) */
ariaRowSpan: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSelected) */
ariaSelected: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSetSize) */
ariaSetSize: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaSort) */
ariaSort: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMax) */
ariaValueMax: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueMin) */
ariaValueMin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueNow) */
ariaValueNow: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/ariaValueText) */
ariaValueText: string | null;
role: string | null;
}
/**
* A controller object that allows you to abort one or more DOM requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
*/
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
*/
abort(reason?: any): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/**
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
*/
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
*/
readonly aborted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
onabort: ((this: AbortSignal, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
readonly reason: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
throwIfAborted(): void;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
abort(reason?: any): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
timeout(milliseconds: number): AbortSignal;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange) */
interface AbstractRange {
/**
* Returns true if range is collapsed, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/collapsed)
*/
readonly collapsed: boolean;
/**
* Returns range's end node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endContainer)
*/
readonly endContainer: Node;
/**
* Returns range's end offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/endOffset)
*/
readonly endOffset: number;
/**
* Returns range's start node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startContainer)
*/
readonly startContainer: Node;
/**
* Returns range's start offset.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbstractRange/startOffset)
*/
readonly startOffset: number;
}
declare var AbstractRange: {
prototype: AbstractRange;
new(): AbstractRange;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/**
* A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode)
*/
interface AnalyserNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/fftSize) */
fftSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/frequencyBinCount) */
readonly frequencyBinCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/maxDecibels) */
maxDecibels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/minDecibels) */
minDecibels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/smoothingTimeConstant) */
smoothingTimeConstant: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteFrequencyData) */
getByteFrequencyData(array: Uint8Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getByteTimeDomainData) */
getByteTimeDomainData(array: Uint8Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatFrequencyData) */
getFloatFrequencyData(array: Float32Array): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnalyserNode/getFloatTimeDomainData) */
getFloatTimeDomainData(array: Float32Array): void;
}
declare var AnalyserNode: {
prototype: AnalyserNode;
new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;
};
interface Animatable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animate) */
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAnimations) */
getAnimations(options?: GetAnimationsOptions): Animation[];
}
interface AnimationEventMap {
"cancel": AnimationPlaybackEvent;
"finish": AnimationPlaybackEvent;
"remove": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation) */
interface Animation extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/currentTime) */
currentTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/effect) */
effect: AnimationEffect | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finished) */
readonly finished: Promise<Animation>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/id) */
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel_event) */
oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish_event) */
onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/remove_event) */
onremove: ((this: Animation, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pending) */
readonly pending: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playState) */
readonly playState: AnimationPlayState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/playbackRate) */
playbackRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/ready) */
readonly ready: Promise<Animation>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/replaceState) */
readonly replaceState: AnimationReplaceState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/startTime) */
startTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/timeline) */
timeline: AnimationTimeline | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/cancel) */
cancel(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/commitStyles) */
commitStyles(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/persist) */
persist(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/play) */
play(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/reverse) */
reverse(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Animation/updatePlaybackRate) */
updatePlaybackRate(playbackRate: number): void;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Animation: {
prototype: Animation;
new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect) */
interface AnimationEffect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getComputedTiming) */
getComputedTiming(): ComputedEffectTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/getTiming) */
getTiming(): EffectTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEffect/updateTiming) */
updateTiming(timing?: OptionalEffectTiming): void;
}
declare var AnimationEffect: {
prototype: AnimationEffect;
new(): AnimationEffect;
};
/**
* Events providing information related to animations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent)
*/
interface AnimationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/animationName) */
readonly animationName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationEvent/pseudoElement) */
readonly pseudoElement: string;
}
declare var AnimationEvent: {
prototype: AnimationEvent;
new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;
};
interface AnimationFrameProvider {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent) */
interface AnimationPlaybackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/currentTime) */
readonly currentTime: CSSNumberish | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationPlaybackEvent/timelineTime) */
readonly timelineTime: CSSNumberish | null;
}
declare var AnimationPlaybackEvent: {
prototype: AnimationPlaybackEvent;
new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline) */
interface AnimationTimeline {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AnimationTimeline/currentTime) */
readonly currentTime: CSSNumberish | null;
}
declare var AnimationTimeline: {
prototype: AnimationTimeline;
new(): AnimationTimeline;
};
/**
* A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr)
*/
interface Attr extends Node {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/localName) */
readonly localName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/namespaceURI) */
readonly namespaceURI: string | null;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/ownerElement) */
readonly ownerElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/prefix) */
readonly prefix: string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/specified)
*/
readonly specified: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Attr/value) */
value: string;
}
declare var Attr: {
prototype: Attr;
new(): Attr;
};
/**
* A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer)
*/
interface AudioBuffer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/duration) */
readonly duration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/numberOfChannels) */
readonly numberOfChannels: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/sampleRate) */
readonly sampleRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyFromChannel) */
copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/copyToChannel) */
copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBuffer/getChannelData) */
getChannelData(channel: number): Float32Array;
}
declare var AudioBuffer: {
prototype: AudioBuffer;
new(options: AudioBufferOptions): AudioBuffer;
};
/**
* An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode)
*/
interface AudioBufferSourceNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/buffer) */
buffer: AudioBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loop) */
loop: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopEnd) */
loopEnd: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/loopStart) */
loopStart: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/playbackRate) */
readonly playbackRate: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioBufferSourceNode/start) */
start(when?: number, offset?: number, duration?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioBufferSourceNode: {
prototype: AudioBufferSourceNode;
new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;
};
/**
* An audio-processing graph built from audio modules linked together, each represented by an AudioNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext)
*/
interface AudioContext extends BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/baseLatency) */
readonly baseLatency: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/outputLatency) */
readonly outputLatency: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaElementSource) */
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamDestination) */
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/createMediaStreamSource) */
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/getOutputTimestamp) */
getOutputTimestamp(): AudioTimestamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/resume) */
resume(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioContext/suspend) */
suspend(): Promise<void>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioContext: {
prototype: AudioContext;
new(contextOptions?: AudioContextOptions): AudioContext;
};
/**
* AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode)
*/
interface AudioDestinationNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioDestinationNode/maxChannelCount) */
readonly maxChannelCount: number;
}
declare var AudioDestinationNode: {
prototype: AudioDestinationNode;
new(): AudioDestinationNode;
};
/**
* The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener)
*/
interface AudioListener {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardX) */
readonly forwardX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardY) */
readonly forwardY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/forwardZ) */
readonly forwardZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionX) */
readonly positionX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionY) */
readonly positionY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/positionZ) */
readonly positionZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upX) */
readonly upX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upY) */
readonly upY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/upZ) */
readonly upZ: AudioParam;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setOrientation)
*/
setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioListener/setPosition)
*/
setPosition(x: number, y: number, z: number): void;
}
declare var AudioListener: {
prototype: AudioListener;
new(): AudioListener;
};
/**
* A generic interface for representing an audio processing module. Examples include:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode)
*/
interface AudioNode extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCount) */
channelCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelCountMode) */
channelCountMode: ChannelCountMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/channelInterpretation) */
channelInterpretation: ChannelInterpretation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/context) */
readonly context: BaseAudioContext;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfInputs) */
readonly numberOfInputs: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/numberOfOutputs) */
readonly numberOfOutputs: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/connect) */
connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;
connect(destinationParam: AudioParam, output?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioNode/disconnect) */
disconnect(): void;
disconnect(output: number): void;
disconnect(destinationNode: AudioNode): void;
disconnect(destinationNode: AudioNode, output: number): void;
disconnect(destinationNode: AudioNode, output: number, input: number): void;
disconnect(destinationParam: AudioParam): void;
disconnect(destinationParam: AudioParam, output: number): void;
}
declare var AudioNode: {
prototype: AudioNode;
new(): AudioNode;
};
/**
* The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam)
*/
interface AudioParam {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/automationRate) */
automationRate: AutomationRate;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/defaultValue) */
readonly defaultValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/maxValue) */
readonly maxValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/minValue) */
readonly minValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/value) */
value: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelAndHoldAtTime) */
cancelAndHoldAtTime(cancelTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/cancelScheduledValues) */
cancelScheduledValues(cancelTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/exponentialRampToValueAtTime) */
exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/linearRampToValueAtTime) */
linearRampToValueAtTime(value: number, endTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setTargetAtTime) */
setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueAtTime) */
setValueAtTime(value: number, startTime: number): AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;
}
declare var AudioParam: {
prototype: AudioParam;
new(): AudioParam;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParamMap) */
interface AudioParamMap {
forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;
}
declare var AudioParamMap: {
prototype: AudioParamMap;
new(): AudioParamMap;
};
/**
* The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent)
*/
interface AudioProcessingEvent extends Event {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/inputBuffer)
*/
readonly inputBuffer: AudioBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/outputBuffer)
*/
readonly outputBuffer: AudioBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioProcessingEvent/playbackTime)
*/
readonly playbackTime: number;
}
/** @deprecated */
declare var AudioProcessingEvent: {
prototype: AudioProcessingEvent;
new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;
};
interface AudioScheduledSourceNodeEventMap {
"ended": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode) */
interface AudioScheduledSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/ended_event) */
onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/start) */
start(when?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioScheduledSourceNode/stop) */
stop(when?: number): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioScheduledSourceNode: {
prototype: AudioScheduledSourceNode;
new(): AudioScheduledSourceNode;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorklet)
*/
interface AudioWorklet extends Worklet {
}
declare var AudioWorklet: {
prototype: AudioWorklet;
new(): AudioWorklet;
};
interface AudioWorkletNodeEventMap {
"processorerror": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode)
*/
interface AudioWorkletNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/processorerror_event) */
onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/parameters) */
readonly parameters: AudioParamMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioWorkletNode/port) */
readonly port: MessagePort;
addEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioWorkletNodeEventMap>(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AudioWorkletNode: {
prototype: AudioWorkletNode;
new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse)
*/
interface AuthenticatorAssertionResponse extends AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData) */
readonly authenticatorData: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/signature) */
readonly signature: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAssertionResponse/userHandle) */
readonly userHandle: ArrayBuffer | null;
}
declare var AuthenticatorAssertionResponse: {
prototype: AuthenticatorAssertionResponse;
new(): AuthenticatorAssertionResponse;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse)
*/
interface AuthenticatorAttestationResponse extends AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/attestationObject) */
readonly attestationObject: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getAuthenticatorData) */
getAuthenticatorData(): ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKey) */
getPublicKey(): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getPublicKeyAlgorithm) */
getPublicKeyAlgorithm(): COSEAlgorithmIdentifier;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorAttestationResponse/getTransports) */
getTransports(): string[];
}
declare var AuthenticatorAttestationResponse: {
prototype: AuthenticatorAttestationResponse;
new(): AuthenticatorAttestationResponse;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse)
*/
interface AuthenticatorResponse {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AuthenticatorResponse/clientDataJSON) */
readonly clientDataJSON: ArrayBuffer;
}
declare var AuthenticatorResponse: {
prototype: AuthenticatorResponse;
new(): AuthenticatorResponse;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp) */
interface BarProp {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BarProp/visible) */
readonly visible: boolean;
}
declare var BarProp: {
prototype: BarProp;
new(): BarProp;
};
interface BaseAudioContextEventMap {
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext) */
interface BaseAudioContext extends EventTarget {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/audioWorklet)
*/
readonly audioWorklet: AudioWorklet;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/currentTime) */
readonly currentTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/destination) */
readonly destination: AudioDestinationNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/listener) */
readonly listener: AudioListener;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/statechange_event) */
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/sampleRate) */
readonly sampleRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/state) */
readonly state: AudioContextState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createAnalyser) */
createAnalyser(): AnalyserNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBiquadFilter) */
createBiquadFilter(): BiquadFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBuffer) */
createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createBufferSource) */
createBufferSource(): AudioBufferSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelMerger) */
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createChannelSplitter) */
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConstantSource) */
createConstantSource(): ConstantSourceNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createConvolver) */
createConvolver(): ConvolverNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDelay) */
createDelay(maxDelayTime?: number): DelayNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createDynamicsCompressor) */
createDynamicsCompressor(): DynamicsCompressorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createGain) */
createGain(): GainNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createOscillator) */
createOscillator(): OscillatorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPanner) */
createPanner(): PannerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createScriptProcessor)
*/
createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createStereoPanner) */
createStereoPanner(): StereoPannerNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createWaveShaper) */
createWaveShaper(): WaveShaperNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/decodeAudioData) */
decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise<AudioBuffer>;
addEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BaseAudioContextEventMap>(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BaseAudioContext: {
prototype: BaseAudioContext;
new(): BaseAudioContext;
};
/**
* The beforeunload event is fired when the window, the document and its resources are about to be unloaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BeforeUnloadEvent)
*/
interface BeforeUnloadEvent extends Event {
/** @deprecated */
returnValue: any;
}
declare var BeforeUnloadEvent: {
prototype: BeforeUnloadEvent;
new(): BeforeUnloadEvent;
};
/**
* A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode)
*/
interface BiquadFilterNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/Q) */
readonly Q: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/frequency) */
readonly frequency: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/gain) */
readonly gain: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/type) */
type: BiquadFilterType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BiquadFilterNode/getFrequencyResponse) */
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var BiquadFilterNode: {
prototype: BiquadFilterNode;
new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;
};
/**
* A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
*/
interface Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
slice(start?: number, end?: number, contentType?: string): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
stream(): ReadableStream<Uint8Array>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent) */
interface BlobEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/data) */
readonly data: Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BlobEvent/timecode) */
readonly timecode: DOMHighResTimeStamp;
}
declare var BlobEvent: {
prototype: BlobEvent;
new(type: string, eventInitDict: BlobEventInit): BlobEvent;
};
interface Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
readonly body: ReadableStream<Uint8Array> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
readonly bodyUsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
blob(): Promise<Blob>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
formData(): Promise<FormData>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
json(): Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */
interface BroadcastChannel extends EventTarget {
/**
* Returns the channel name (as passed to the constructor).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/**
* Closes the BroadcastChannel object, opening it up to garbage collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
*/
close(): void;
/**
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
*/
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/**
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
*/
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/**
* A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don\u2019t need escaping as they normally do when inside a CDATA section.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CDATASection)
*/
interface CDATASection extends Text {
}
declare var CDATASection: {
prototype: CDATASection;
new(): CDATASection;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation) */
interface CSSAnimation extends Animation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSAnimation/animationName) */
readonly animationName: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSAnimation: {
prototype: CSSAnimation;
new(): CSSAnimation;
};
/**
* A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule)
*/
interface CSSConditionRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSConditionRule/conditionText) */
readonly conditionText: string;
}
declare var CSSConditionRule: {
prototype: CSSConditionRule;
new(): CSSConditionRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule) */
interface CSSContainerRule extends CSSConditionRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerName) */
readonly containerName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSContainerRule/containerQuery) */
readonly containerQuery: string;
}
declare var CSSContainerRule: {
prototype: CSSContainerRule;
new(): CSSContainerRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule) */
interface CSSCounterStyleRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/additiveSymbols) */
additiveSymbols: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/fallback) */
fallback: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/negative) */
negative: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/pad) */
pad: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/prefix) */
prefix: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/range) */
range: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/speakAs) */
speakAs: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/suffix) */
suffix: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/symbols) */
symbols: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSCounterStyleRule/system) */
system: string;
}
declare var CSSCounterStyleRule: {
prototype: CSSCounterStyleRule;
new(): CSSCounterStyleRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule) */
interface CSSFontFaceRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFaceRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSFontFaceRule: {
prototype: CSSFontFaceRule;
new(): CSSFontFaceRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule) */
interface CSSFontFeatureValuesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontFeatureValuesRule/fontFamily) */
fontFamily: string;
}
declare var CSSFontFeatureValuesRule: {
prototype: CSSFontFeatureValuesRule;
new(): CSSFontFeatureValuesRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule) */
interface CSSFontPaletteValuesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/basePalette) */
readonly basePalette: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/fontFamily) */
readonly fontFamily: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSFontPaletteValuesRule/overrideColors) */
readonly overrideColors: string;
}
declare var CSSFontPaletteValuesRule: {
prototype: CSSFontPaletteValuesRule;
new(): CSSFontPaletteValuesRule;
};
/**
* Any CSS at-rule that contains other rules nested within it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule)
*/
interface CSSGroupingRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/cssRules) */
readonly cssRules: CSSRuleList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/deleteRule) */
deleteRule(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSGroupingRule/insertRule) */
insertRule(rule: string, index?: number): number;
}
declare var CSSGroupingRule: {
prototype: CSSGroupingRule;
new(): CSSGroupingRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */
interface CSSImageValue extends CSSStyleValue {
}
declare var CSSImageValue: {
prototype: CSSImageValue;
new(): CSSImageValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule) */
interface CSSImportRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/href) */
readonly href: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/layerName) */
readonly layerName: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/media) */
readonly media: MediaList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/styleSheet) */
readonly styleSheet: CSSStyleSheet | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImportRule/supportsText) */
readonly supportsText: string | null;
}
declare var CSSImportRule: {
prototype: CSSImportRule;
new(): CSSImportRule;
};
/**
* An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule)
*/
interface CSSKeyframeRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/keyText) */
keyText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframeRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSKeyframeRule: {
prototype: CSSKeyframeRule;
new(): CSSKeyframeRule;
};
/**
* An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule)
*/
interface CSSKeyframesRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/cssRules) */
readonly cssRules: CSSRuleList;
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/appendRule) */
appendRule(rule: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/deleteRule) */
deleteRule(select: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeyframesRule/findRule) */
findRule(select: string): CSSKeyframeRule | null;
[index: number]: CSSKeyframeRule;
}
declare var CSSKeyframesRule: {
prototype: CSSKeyframesRule;
new(): CSSKeyframesRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */
interface CSSKeywordValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */
value: string;
}
declare var CSSKeywordValue: {
prototype: CSSKeywordValue;
new(value: string): CSSKeywordValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule) */
interface CSSLayerBlockRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerBlockRule/name) */
readonly name: string;
}
declare var CSSLayerBlockRule: {
prototype: CSSLayerBlockRule;
new(): CSSLayerBlockRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule) */
interface CSSLayerStatementRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSLayerStatementRule/nameList) */
readonly nameList: ReadonlyArray<string>;
}
declare var CSSLayerStatementRule: {
prototype: CSSLayerStatementRule;
new(): CSSLayerStatementRule;
};
interface CSSMathClamp extends CSSMathValue {
readonly lower: CSSNumericValue;
readonly upper: CSSNumericValue;
readonly value: CSSNumericValue;
}
declare var CSSMathClamp: {
prototype: CSSMathClamp;
new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */
interface CSSMathInvert extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathInvert: {
prototype: CSSMathInvert;
new(arg: CSSNumberish): CSSMathInvert;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */
interface CSSMathMax extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMax: {
prototype: CSSMathMax;
new(...args: CSSNumberish[]): CSSMathMax;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */
interface CSSMathMin extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMin: {
prototype: CSSMathMin;
new(...args: CSSNumberish[]): CSSMathMin;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */
interface CSSMathNegate extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathNegate: {
prototype: CSSMathNegate;
new(arg: CSSNumberish): CSSMathNegate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */
interface CSSMathProduct extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathProduct: {
prototype: CSSMathProduct;
new(...args: CSSNumberish[]): CSSMathProduct;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */
interface CSSMathSum extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathSum: {
prototype: CSSMathSum;
new(...args: CSSNumberish[]): CSSMathSum;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */
interface CSSMathValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */
readonly operator: CSSMathOperator;
}
declare var CSSMathValue: {
prototype: CSSMathValue;
new(): CSSMathValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */
interface CSSMatrixComponent extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */
matrix: DOMMatrix;
}
declare var CSSMatrixComponent: {
prototype: CSSMatrixComponent;
new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};
/**
* A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule)
*/
interface CSSMediaRule extends CSSConditionRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMediaRule/media) */
readonly media: MediaList;
}
declare var CSSMediaRule: {
prototype: CSSMediaRule;
new(): CSSMediaRule;
};
/**
* An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule)
*/
interface CSSNamespaceRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/namespaceURI) */
readonly namespaceURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNamespaceRule/prefix) */
readonly prefix: string;
}
declare var CSSNamespaceRule: {
prototype: CSSNamespaceRule;
new(): CSSNamespaceRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */
interface CSSNumericArray {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */
readonly length: number;
forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
[index: number]: CSSNumericValue;
}
declare var CSSNumericArray: {
prototype: CSSNumericArray;
new(): CSSNumericArray;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */
interface CSSNumericValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */
add(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */
div(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */
equals(...value: CSSNumberish[]): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */
max(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */
min(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */
mul(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */
sub(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */
to(unit: string): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */
toSum(...units: string[]): CSSMathSum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */
type(): CSSNumericType;
}
declare var CSSNumericValue: {
prototype: CSSNumericValue;
new(): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/parse_static) */
parse(cssText: string): CSSNumericValue;
};
/**
* CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule)
*/
interface CSSPageRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/selectorText) */
selectorText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPageRule/style) */
readonly style: CSSStyleDeclaration;
}
declare var CSSPageRule: {
prototype: CSSPageRule;
new(): CSSPageRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */
interface CSSPerspective extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */
length: CSSPerspectiveValue;
}
declare var CSSPerspective: {
prototype: CSSPerspective;
new(length: CSSPerspectiveValue): CSSPerspective;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule) */
interface CSSPropertyRule extends CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/inherits) */
readonly inherits: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/initialValue) */
readonly initialValue: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPropertyRule/syntax) */
readonly syntax: string;
}
declare var CSSPropertyRule: {
prototype: CSSPropertyRule;
new(): CSSPropertyRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */
interface CSSRotate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */
angle: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */
z: CSSNumberish;
}
declare var CSSRotate: {
prototype: CSSRotate;
new(angle: CSSNumericValue): CSSRotate;
new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
};
/**
* A single CSS rule. There are several types of rules, listed in the Type constants section below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule)
*/
interface CSSRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/cssText) */
cssText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentRule) */
readonly parentRule: CSSRule | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/parentStyleSheet) */
readonly parentStyleSheet: CSSStyleSheet | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRule/type)
*/
readonly type: number;
readonly STYLE_RULE: 1;
readonly CHARSET_RULE: 2;
readonly IMPORT_RULE: 3;
readonly MEDIA_RULE: 4;
readonly FONT_FACE_RULE: 5;
readonly PAGE_RULE: 6;
readonly NAMESPACE_RULE: 10;
readonly KEYFRAMES_RULE: 7;
readonly KEYFRAME_RULE: 8;
readonly SUPPORTS_RULE: 12;
readonly COUNTER_STYLE_RULE: 11;
readonly FONT_FEATURE_VALUES_RULE: 14;
}
declare var CSSRule: {
prototype: CSSRule;
new(): CSSRule;
readonly STYLE_RULE: 1;
readonly CHARSET_RULE: 2;
readonly IMPORT_RULE: 3;
readonly MEDIA_RULE: 4;
readonly FONT_FACE_RULE: 5;
readonly PAGE_RULE: 6;
readonly NAMESPACE_RULE: 10;
readonly KEYFRAMES_RULE: 7;
readonly KEYFRAME_RULE: 8;
readonly SUPPORTS_RULE: 12;
readonly COUNTER_STYLE_RULE: 11;
readonly FONT_FEATURE_VALUES_RULE: 14;
};
/**
* A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList)
*/
interface CSSRuleList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRuleList/item) */
item(index: number): CSSRule | null;
[index: number]: CSSRule;
}
declare var CSSRuleList: {
prototype: CSSRuleList;
new(): CSSRuleList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */
interface CSSScale extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */
z: CSSNumberish;
}
declare var CSSScale: {
prototype: CSSScale;
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
interface CSSSkew extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
ax: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */
ay: CSSNumericValue;
}
declare var CSSSkew: {
prototype: CSSSkew;
new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */
interface CSSSkewX extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */
ax: CSSNumericValue;
}
declare var CSSSkewX: {
prototype: CSSSkewX;
new(ax: CSSNumericValue): CSSSkewX;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */
interface CSSSkewY extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */
ay: CSSNumericValue;
}
declare var CSSSkewY: {
prototype: CSSSkewY;
new(ay: CSSNumericValue): CSSSkewY;
};
/**
* An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration)
*/
interface CSSStyleDeclaration {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/accent-color) */
accentColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content) */
alignContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items) */
alignItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self) */
alignSelf: string;
alignmentBaseline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/all) */
all: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation) */
animation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-composition) */
animationComposition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay) */
animationDelay: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction) */
animationDirection: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration) */
animationDuration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode) */
animationFillMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count) */
animationIterationCount: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name) */
animationName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state) */
animationPlayState: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function) */
animationTimingFunction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance) */
appearance: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/aspect-ratio) */
aspectRatio: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backdrop-filter) */
backdropFilter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility) */
backfaceVisibility: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background) */
background: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-attachment) */
backgroundAttachment: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-blend-mode) */
backgroundBlendMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip) */
backgroundClip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-color) */
backgroundColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-image) */
backgroundImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin) */
backgroundOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position) */
backgroundPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-x) */
backgroundPositionX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-position-y) */
backgroundPositionY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-repeat) */
backgroundRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size) */
backgroundSize: string;
baselineShift: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/baseline-source) */
baselineSource: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/block-size) */
blockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border) */
border: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block) */
borderBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-color) */
borderBlockColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end) */
borderBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-color) */
borderBlockEndColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-style) */
borderBlockEndStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-end-width) */
borderBlockEndWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start) */
borderBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-color) */
borderBlockStartColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-style) */
borderBlockStartStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-start-width) */
borderBlockStartWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-style) */
borderBlockStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-block-width) */
borderBlockWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom) */
borderBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-color) */
borderBottomColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius) */
borderBottomLeftRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius) */
borderBottomRightRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-style) */
borderBottomStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-width) */
borderBottomWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-collapse) */
borderCollapse: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-color) */
borderColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-end-radius) */
borderEndEndRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-end-start-radius) */
borderEndStartRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image) */
borderImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-outset) */
borderImageOutset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-repeat) */
borderImageRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-slice) */
borderImageSlice: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-source) */
borderImageSource: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-image-width) */
borderImageWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline) */
borderInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-color) */
borderInlineColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end) */
borderInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-color) */
borderInlineEndColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-style) */
borderInlineEndStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-end-width) */
borderInlineEndWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start) */
borderInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-color) */
borderInlineStartColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-style) */
borderInlineStartStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-start-width) */
borderInlineStartWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-style) */
borderInlineStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-inline-width) */
borderInlineWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left) */
borderLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-color) */
borderLeftColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-style) */
borderLeftStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-left-width) */
borderLeftWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius) */
borderRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right) */
borderRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-color) */
borderRightColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-style) */
borderRightStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-right-width) */
borderRightWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-spacing) */
borderSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-end-radius) */
borderStartEndRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-start-start-radius) */
borderStartStartRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-style) */
borderStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top) */
borderTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-color) */
borderTopColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius) */
borderTopLeftRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius) */
borderTopRightRadius: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-style) */
borderTopStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-width) */
borderTopWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-width) */
borderWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/bottom) */
bottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow) */
boxShadow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing) */
boxSizing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-after) */
breakAfter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-before) */
breakBefore: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/break-inside) */
breakInside: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caption-side) */
captionSide: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/caret-color) */
caretColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clear) */
clear: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip)
*/
clip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/clip-path) */
clipPath: string;
clipRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color) */
color: string;
colorInterpolation: string;
colorInterpolationFilters: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/color-scheme) */
colorScheme: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-count) */
columnCount: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-fill) */
columnFill: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-gap) */
columnGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule) */
columnRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-color) */
columnRuleColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-style) */
columnRuleStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-rule-width) */
columnRuleWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-span) */
columnSpan: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/column-width) */
columnWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/columns) */
columns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain) */
contain: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-block-size) */
containIntrinsicBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-height) */
containIntrinsicHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-contain-intrinsic-inline-size) */
containIntrinsicInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-size) */
containIntrinsicSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/contain-intrinsic-width) */
containIntrinsicWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container) */
container: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-name) */
containerName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/container-type) */
containerType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/content) */
content: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-increment) */
counterIncrement: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-reset) */
counterReset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/counter-set) */
counterSet: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssFloat) */
cssFloat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/cssText) */
cssText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/cursor) */
cursor: string;
cx: string;
cy: string;
d: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/direction) */
direction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/display) */
display: string;
dominantBaseline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/empty-cells) */
emptyCells: string;
fill: string;
fillOpacity: string;
fillRule: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter) */
filter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex) */
flex: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis) */
flexBasis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction) */
flexDirection: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow) */
flexFlow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow) */
flexGrow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink) */
flexShrink: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap) */
flexWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/float) */
float: string;
floodColor: string;
floodOpacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-family) */
fontFamily: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-feature-settings) */
fontFeatureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-kerning) */
fontKerning: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-optical-sizing) */
fontOpticalSizing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-palette) */
fontPalette: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size) */
fontSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-size-adjust) */
fontSizeAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-stretch) */
fontStretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-style) */
fontStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis) */
fontSynthesis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-small-caps) */
fontSynthesisSmallCaps: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-style) */
fontSynthesisStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-synthesis-weight) */
fontSynthesisWeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant) */
fontVariant: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-alternates) */
fontVariantAlternates: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-caps) */
fontVariantCaps: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-east-asian) */
fontVariantEastAsian: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-ligatures) */
fontVariantLigatures: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-numeric) */
fontVariantNumeric: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variant-position) */
fontVariantPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-variation-settings) */
fontVariationSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/font-weight) */
fontWeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/forced-color-adjust) */
forcedColorAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/gap) */
gap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid) */
grid: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-area) */
gridArea: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-columns) */
gridAutoColumns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-flow) */
gridAutoFlow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-auto-rows) */
gridAutoRows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column) */
gridColumn: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-end) */
gridColumnEnd: string;
/** @deprecated This is a legacy alias of \`columnGap\`. */
gridColumnGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-column-start) */
gridColumnStart: string;
/** @deprecated This is a legacy alias of \`gap\`. */
gridGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row) */
gridRow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-end) */
gridRowEnd: string;
/** @deprecated This is a legacy alias of \`rowGap\`. */
gridRowGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-row-start) */
gridRowStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template) */
gridTemplate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-areas) */
gridTemplateAreas: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-columns) */
gridTemplateColumns: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/grid-template-rows) */
gridTemplateRows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/height) */
height: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphenate-character) */
hyphenateCharacter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/hyphens) */
hyphens: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-orientation)
*/
imageOrientation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/image-rendering) */
imageRendering: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inline-size) */
inlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset) */
inset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block) */
insetBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-end) */
insetBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-block-start) */
insetBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline) */
insetInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-end) */
insetInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/inset-inline-start) */
insetInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/isolation) */
isolation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content) */
justifyContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-items) */
justifyItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-self) */
justifySelf: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/left) */
left: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/letter-spacing) */
letterSpacing: string;
lightingColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-break) */
lineBreak: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/line-height) */
lineHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style) */
listStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-image) */
listStyleImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-position) */
listStylePosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/list-style-type) */
listStyleType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin) */
margin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block) */
marginBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-end) */
marginBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-block-start) */
marginBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-bottom) */
marginBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline) */
marginInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-end) */
marginInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-inline-start) */
marginInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-left) */
marginLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-right) */
marginRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/margin-top) */
marginTop: string;
marker: string;
markerEnd: string;
markerMid: string;
markerStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask) */
mask: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip) */
maskClip: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite) */
maskComposite: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image) */
maskImage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-mode) */
maskMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin) */
maskOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position) */
maskPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat) */
maskRepeat: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size) */
maskSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-type) */
maskType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-depth) */
mathDepth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/math-style) */
mathStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-block-size) */
maxBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-height) */
maxHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-inline-size) */
maxInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/max-width) */
maxWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-block-size) */
minBlockSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-height) */
minHeight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-inline-size) */
minInlineSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/min-width) */
minWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mix-blend-mode) */
mixBlendMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-fit) */
objectFit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/object-position) */
objectPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset) */
offset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-anchor) */
offsetAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-distance) */
offsetDistance: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-path) */
offsetPath: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-position) */
offsetPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/offset-rotate) */
offsetRotate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/opacity) */
opacity: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order) */
order: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/orphans) */
orphans: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline) */
outline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-color) */
outlineColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-offset) */
outlineOffset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-style) */
outlineStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/outline-width) */
outlineWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow) */
overflow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-anchor) */
overflowAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-clip-margin) */
overflowClipMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-wrap) */
overflowWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-x) */
overflowX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overflow-y) */
overflowY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior) */
overscrollBehavior: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-block) */
overscrollBehaviorBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-inline) */
overscrollBehaviorInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-x) */
overscrollBehaviorX: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/overscroll-behavior-y) */
overscrollBehaviorY: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding) */
padding: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block) */
paddingBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-end) */
paddingBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-block-start) */
paddingBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-bottom) */
paddingBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline) */
paddingInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-end) */
paddingInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-inline-start) */
paddingInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-left) */
paddingLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-right) */
paddingRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/padding-top) */
paddingTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page) */
page: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-after) */
pageBreakAfter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-before) */
pageBreakBefore: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/page-break-inside) */
pageBreakInside: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/paint-order) */
paintOrder: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/parentRule) */
readonly parentRule: CSSRule | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective) */
perspective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin) */
perspectiveOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-content) */
placeContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-items) */
placeItems: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/place-self) */
placeSelf: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/pointer-events) */
pointerEvents: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/position) */
position: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/print-color-adjust) */
printColorAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/quotes) */
quotes: string;
r: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/resize) */
resize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/right) */
right: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/rotate) */
rotate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/row-gap) */
rowGap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/ruby-position) */
rubyPosition: string;
rx: string;
ry: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scale) */
scale: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-behavior) */
scrollBehavior: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin) */
scrollMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block) */
scrollMarginBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-end) */
scrollMarginBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-block-start) */
scrollMarginBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-bottom) */
scrollMarginBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline) */
scrollMarginInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-end) */
scrollMarginInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-inline-start) */
scrollMarginInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-left) */
scrollMarginLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-right) */
scrollMarginRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-margin-top) */
scrollMarginTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding) */
scrollPadding: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block) */
scrollPaddingBlock: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-end) */
scrollPaddingBlockEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-block-start) */
scrollPaddingBlockStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-bottom) */
scrollPaddingBottom: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline) */
scrollPaddingInline: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-end) */
scrollPaddingInlineEnd: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-inline-start) */
scrollPaddingInlineStart: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-left) */
scrollPaddingLeft: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-right) */
scrollPaddingRight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-padding-top) */
scrollPaddingTop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-align) */
scrollSnapAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-stop) */
scrollSnapStop: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scroll-snap-type) */
scrollSnapType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-color) */
scrollbarColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-gutter) */
scrollbarGutter: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/scrollbar-width) */
scrollbarWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-image-threshold) */
shapeImageThreshold: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-margin) */
shapeMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/shape-outside) */
shapeOutside: string;
shapeRendering: string;
stopColor: string;
stopOpacity: string;
stroke: string;
strokeDasharray: string;
strokeDashoffset: string;
strokeLinecap: string;
strokeLinejoin: string;
strokeMiterlimit: string;
strokeOpacity: string;
strokeWidth: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/tab-size) */
tabSize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/table-layout) */
tableLayout: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align) */
textAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-align-last) */
textAlignLast: string;
textAnchor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-combine-upright) */
textCombineUpright: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration) */
textDecoration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-color) */
textDecorationColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-line) */
textDecorationLine: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-skip-ink) */
textDecorationSkipInk: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-style) */
textDecorationStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-decoration-thickness) */
textDecorationThickness: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis) */
textEmphasis: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-color) */
textEmphasisColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-position) */
textEmphasisPosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-emphasis-style) */
textEmphasisStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-indent) */
textIndent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-orientation) */
textOrientation: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-overflow) */
textOverflow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-rendering) */
textRendering: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-shadow) */
textShadow: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-transform) */
textTransform: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-offset) */
textUnderlineOffset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-underline-position) */
textUnderlinePosition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-wrap) */
textWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/top) */
top: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/touch-action) */
touchAction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform) */
transform: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-box) */
transformBox: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin) */
transformOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style) */
transformStyle: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition) */
transition: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay) */
transitionDelay: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration) */
transitionDuration: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property) */
transitionProperty: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function) */
transitionTimingFunction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/translate) */
translate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/unicode-bidi) */
unicodeBidi: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select) */
userSelect: string;
vectorEffect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/vertical-align) */
verticalAlign: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/visibility) */
visibility: string;
/**
* @deprecated This is a legacy alias of \`alignContent\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-content)
*/
webkitAlignContent: string;
/**
* @deprecated This is a legacy alias of \`alignItems\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-items)
*/
webkitAlignItems: string;
/**
* @deprecated This is a legacy alias of \`alignSelf\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/align-self)
*/
webkitAlignSelf: string;
/**
* @deprecated This is a legacy alias of \`animation\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation)
*/
webkitAnimation: string;
/**
* @deprecated This is a legacy alias of \`animationDelay\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-delay)
*/
webkitAnimationDelay: string;
/**
* @deprecated This is a legacy alias of \`animationDirection\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-direction)
*/
webkitAnimationDirection: string;
/**
* @deprecated This is a legacy alias of \`animationDuration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-duration)
*/
webkitAnimationDuration: string;
/**
* @deprecated This is a legacy alias of \`animationFillMode\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-fill-mode)
*/
webkitAnimationFillMode: string;
/**
* @deprecated This is a legacy alias of \`animationIterationCount\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-iteration-count)
*/
webkitAnimationIterationCount: string;
/**
* @deprecated This is a legacy alias of \`animationName\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-name)
*/
webkitAnimationName: string;
/**
* @deprecated This is a legacy alias of \`animationPlayState\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-play-state)
*/
webkitAnimationPlayState: string;
/**
* @deprecated This is a legacy alias of \`animationTimingFunction\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/animation-timing-function)
*/
webkitAnimationTimingFunction: string;
/**
* @deprecated This is a legacy alias of \`appearance\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/appearance)
*/
webkitAppearance: string;
/**
* @deprecated This is a legacy alias of \`backfaceVisibility\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/backface-visibility)
*/
webkitBackfaceVisibility: string;
/**
* @deprecated This is a legacy alias of \`backgroundClip\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-clip)
*/
webkitBackgroundClip: string;
/**
* @deprecated This is a legacy alias of \`backgroundOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-origin)
*/
webkitBackgroundOrigin: string;
/**
* @deprecated This is a legacy alias of \`backgroundSize\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/background-size)
*/
webkitBackgroundSize: string;
/**
* @deprecated This is a legacy alias of \`borderBottomLeftRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-left-radius)
*/
webkitBorderBottomLeftRadius: string;
/**
* @deprecated This is a legacy alias of \`borderBottomRightRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-bottom-right-radius)
*/
webkitBorderBottomRightRadius: string;
/**
* @deprecated This is a legacy alias of \`borderRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-radius)
*/
webkitBorderRadius: string;
/**
* @deprecated This is a legacy alias of \`borderTopLeftRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-left-radius)
*/
webkitBorderTopLeftRadius: string;
/**
* @deprecated This is a legacy alias of \`borderTopRightRadius\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/border-top-right-radius)
*/
webkitBorderTopRightRadius: string;
/**
* @deprecated This is a legacy alias of \`boxAlign\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-align)
*/
webkitBoxAlign: string;
/**
* @deprecated This is a legacy alias of \`boxFlex\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-flex)
*/
webkitBoxFlex: string;
/**
* @deprecated This is a legacy alias of \`boxOrdinalGroup\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-ordinal-group)
*/
webkitBoxOrdinalGroup: string;
/**
* @deprecated This is a legacy alias of \`boxOrient\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-orient)
*/
webkitBoxOrient: string;
/**
* @deprecated This is a legacy alias of \`boxPack\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-pack)
*/
webkitBoxPack: string;
/**
* @deprecated This is a legacy alias of \`boxShadow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-shadow)
*/
webkitBoxShadow: string;
/**
* @deprecated This is a legacy alias of \`boxSizing\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/box-sizing)
*/
webkitBoxSizing: string;
/**
* @deprecated This is a legacy alias of \`filter\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/filter)
*/
webkitFilter: string;
/**
* @deprecated This is a legacy alias of \`flex\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex)
*/
webkitFlex: string;
/**
* @deprecated This is a legacy alias of \`flexBasis\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-basis)
*/
webkitFlexBasis: string;
/**
* @deprecated This is a legacy alias of \`flexDirection\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-direction)
*/
webkitFlexDirection: string;
/**
* @deprecated This is a legacy alias of \`flexFlow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-flow)
*/
webkitFlexFlow: string;
/**
* @deprecated This is a legacy alias of \`flexGrow\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-grow)
*/
webkitFlexGrow: string;
/**
* @deprecated This is a legacy alias of \`flexShrink\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-shrink)
*/
webkitFlexShrink: string;
/**
* @deprecated This is a legacy alias of \`flexWrap\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/flex-wrap)
*/
webkitFlexWrap: string;
/**
* @deprecated This is a legacy alias of \`justifyContent\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/justify-content)
*/
webkitJustifyContent: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-line-clamp) */
webkitLineClamp: string;
/**
* @deprecated This is a legacy alias of \`mask\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask)
*/
webkitMask: string;
/**
* @deprecated This is a legacy alias of \`maskBorder\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border)
*/
webkitMaskBoxImage: string;
/**
* @deprecated This is a legacy alias of \`maskBorderOutset\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-outset)
*/
webkitMaskBoxImageOutset: string;
/**
* @deprecated This is a legacy alias of \`maskBorderRepeat\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-repeat)
*/
webkitMaskBoxImageRepeat: string;
/**
* @deprecated This is a legacy alias of \`maskBorderSlice\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-slice)
*/
webkitMaskBoxImageSlice: string;
/**
* @deprecated This is a legacy alias of \`maskBorderSource\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-source)
*/
webkitMaskBoxImageSource: string;
/**
* @deprecated This is a legacy alias of \`maskBorderWidth\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-border-width)
*/
webkitMaskBoxImageWidth: string;
/**
* @deprecated This is a legacy alias of \`maskClip\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-clip)
*/
webkitMaskClip: string;
/**
* @deprecated This is a legacy alias of \`maskComposite\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-composite)
*/
webkitMaskComposite: string;
/**
* @deprecated This is a legacy alias of \`maskImage\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-image)
*/
webkitMaskImage: string;
/**
* @deprecated This is a legacy alias of \`maskOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-origin)
*/
webkitMaskOrigin: string;
/**
* @deprecated This is a legacy alias of \`maskPosition\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-position)
*/
webkitMaskPosition: string;
/**
* @deprecated This is a legacy alias of \`maskRepeat\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-repeat)
*/
webkitMaskRepeat: string;
/**
* @deprecated This is a legacy alias of \`maskSize\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/mask-size)
*/
webkitMaskSize: string;
/**
* @deprecated This is a legacy alias of \`order\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/order)
*/
webkitOrder: string;
/**
* @deprecated This is a legacy alias of \`perspective\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective)
*/
webkitPerspective: string;
/**
* @deprecated This is a legacy alias of \`perspectiveOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/perspective-origin)
*/
webkitPerspectiveOrigin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-fill-color) */
webkitTextFillColor: string;
/**
* @deprecated This is a legacy alias of \`textSizeAdjust\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/text-size-adjust)
*/
webkitTextSizeAdjust: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke) */
webkitTextStroke: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-color) */
webkitTextStrokeColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/-webkit-text-stroke-width) */
webkitTextStrokeWidth: string;
/**
* @deprecated This is a legacy alias of \`transform\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform)
*/
webkitTransform: string;
/**
* @deprecated This is a legacy alias of \`transformOrigin\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-origin)
*/
webkitTransformOrigin: string;
/**
* @deprecated This is a legacy alias of \`transformStyle\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transform-style)
*/
webkitTransformStyle: string;
/**
* @deprecated This is a legacy alias of \`transition\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition)
*/
webkitTransition: string;
/**
* @deprecated This is a legacy alias of \`transitionDelay\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-delay)
*/
webkitTransitionDelay: string;
/**
* @deprecated This is a legacy alias of \`transitionDuration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-duration)
*/
webkitTransitionDuration: string;
/**
* @deprecated This is a legacy alias of \`transitionProperty\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-property)
*/
webkitTransitionProperty: string;
/**
* @deprecated This is a legacy alias of \`transitionTimingFunction\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/transition-timing-function)
*/
webkitTransitionTimingFunction: string;
/**
* @deprecated This is a legacy alias of \`userSelect\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/user-select)
*/
webkitUserSelect: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/white-space) */
whiteSpace: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/widows) */
widows: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/width) */
width: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/will-change) */
willChange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-break) */
wordBreak: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/word-spacing) */
wordSpacing: string;
/** @deprecated */
wordWrap: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/writing-mode) */
writingMode: string;
x: string;
y: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/CSS/z-index) */
zIndex: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyPriority) */
getPropertyPriority(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/getPropertyValue) */
getPropertyValue(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/item) */
item(index: number): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/removeProperty) */
removeProperty(property: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleDeclaration/setProperty) */
setProperty(property: string, value: string | null, priority?: string): void;
[index: number]: string;
}
declare var CSSStyleDeclaration: {
prototype: CSSStyleDeclaration;
new(): CSSStyleDeclaration;
};
/**
* CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule)
*/
interface CSSStyleRule extends CSSGroupingRule {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/selectorText) */
selectorText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/style) */
readonly style: CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleRule/styleMap) */
readonly styleMap: StylePropertyMap;
}
declare var CSSStyleRule: {
prototype: CSSStyleRule;
new(): CSSStyleRule;
};
/**
* A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet)
*/
interface CSSStyleSheet extends StyleSheet {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/cssRules) */
readonly cssRules: CSSRuleList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/ownerRule) */
readonly ownerRule: CSSRule | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/rules)
*/
readonly rules: CSSRuleList;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/addRule)
*/
addRule(selector?: string, style?: string, index?: number): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/deleteRule) */
deleteRule(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule) */
insertRule(rule: string, index?: number): number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/removeRule)
*/
removeRule(index?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replace) */
replace(text: string): Promise<CSSStyleSheet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/replaceSync) */
replaceSync(text: string): void;
}
declare var CSSStyleSheet: {
prototype: CSSStyleSheet;
new(options?: CSSStyleSheetInit): CSSStyleSheet;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */
interface CSSStyleValue {
toString(): string;
}
declare var CSSStyleValue: {
prototype: CSSStyleValue;
new(): CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parse_static) */
parse(property: string, cssText: string): CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue/parseAll_static) */
parseAll(property: string, cssText: string): CSSStyleValue[];
};
/**
* An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSupportsRule)
*/
interface CSSSupportsRule extends CSSConditionRule {
}
declare var CSSSupportsRule: {
prototype: CSSSupportsRule;
new(): CSSSupportsRule;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */
interface CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */
is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */
toMatrix(): DOMMatrix;
toString(): string;
}
declare var CSSTransformComponent: {
prototype: CSSTransformComponent;
new(): CSSTransformComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */
interface CSSTransformValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */
toMatrix(): DOMMatrix;
forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
[index: number]: CSSTransformComponent;
}
declare var CSSTransformValue: {
prototype: CSSTransformValue;
new(transforms: CSSTransformComponent[]): CSSTransformValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition) */
interface CSSTransition extends Animation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransition/transitionProperty) */
readonly transitionProperty: string;
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CSSTransition: {
prototype: CSSTransition;
new(): CSSTransition;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */
interface CSSTranslate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */
x: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */
y: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */
z: CSSNumericValue;
}
declare var CSSTranslate: {
prototype: CSSTranslate;
new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */
interface CSSUnitValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */
readonly unit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */
value: number;
}
declare var CSSUnitValue: {
prototype: CSSUnitValue;
new(value: number, unit: string): CSSUnitValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */
interface CSSUnparsedValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */
readonly length: number;
forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
[index: number]: CSSUnparsedSegment;
}
declare var CSSUnparsedValue: {
prototype: CSSUnparsedValue;
new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */
interface CSSVariableReferenceValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */
readonly fallback: CSSUnparsedValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */
variable: string;
}
declare var CSSVariableReferenceValue: {
prototype: CSSVariableReferenceValue;
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};
/**
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
*/
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */
add(request: RequestInfo | URL): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: RequestInfo[]): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */
put(request: RequestInfo | URL, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
*/
interface CacheStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */
delete(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */
has(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */
keys(): Promise<string[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack) */
interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/canvas) */
readonly canvas: HTMLCanvasElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasCaptureMediaStreamTrack/requestFrame) */
requestFrame(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var CanvasCaptureMediaStreamTrack: {
prototype: CanvasCaptureMediaStreamTrack;
new(): CanvasCaptureMediaStreamTrack;
};
interface CanvasCompositing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */
globalAlpha: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */
beginPath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */
fillStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */
strokeStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */
filter: string;
}
/**
* An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
*/
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */
imageSmoothingEnabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */
closePath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */
lineTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */
rect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */
lineCap: CanvasLineCap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */
lineDashOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */
lineJoin: CanvasLineJoin;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */
lineWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */
miterLimit: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */
getLineDash(): number[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: number[]): void;
}
/**
* An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
*/
interface CanvasPattern {
/**
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
*/
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */
clearRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */
fillRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */
strokeRect(x: number, y: number, w: number, h: number): void;
}
/**
* The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a <canvas> element. It is used for drawing shapes, text, images, and other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D)
*/
interface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/canvas) */
readonly canvas: HTMLCanvasElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getContextAttributes) */
getContextAttributes(): CanvasRenderingContext2DSettings;
}
declare var CanvasRenderingContext2D: {
prototype: CanvasRenderingContext2D;
new(): CanvasRenderingContext2D;
};
interface CanvasShadowStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */
shadowBlur: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */
shadowColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */
shadowOffsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */
shadowOffsetY: number;
}
interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
restore(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
save(): void;
}
interface CanvasText {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */
fillText(text: string, x: number, y: number, maxWidth?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */
measureText(text: string): TextMetrics;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */
direction: CanvasDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
fontKerning: CanvasFontKerning;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
fontStretch: CanvasFontStretch;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
fontVariantCaps: CanvasFontVariantCaps;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
letterSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
textAlign: CanvasTextAlign;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
textBaseline: CanvasTextBaseline;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
textRendering: CanvasTextRendering;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
wordSpacing: string;
}
interface CanvasTransform {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */
getTransform(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */
resetTransform(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */
rotate(angle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */
scale(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */
translate(x: number, y: number): void;
}
interface CanvasUserInterface {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded) */
drawFocusIfNeeded(element: Element): void;
drawFocusIfNeeded(path: Path2D, element: Element): void;
}
/**
* The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelMergerNode)
*/
interface ChannelMergerNode extends AudioNode {
}
declare var ChannelMergerNode: {
prototype: ChannelMergerNode;
new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;
};
/**
* The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ChannelSplitterNode)
*/
interface ChannelSplitterNode extends AudioNode {
}
declare var ChannelSplitterNode: {
prototype: ChannelSplitterNode;
new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;
};
/**
* The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData)
*/
interface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/data) */
data: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/length) */
readonly length: number;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/appendData) */
appendData(data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/deleteData) */
deleteData(offset: number, count: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/insertData) */
insertData(offset: number, data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceData) */
replaceData(offset: number, count: number, data: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/substringData) */
substringData(offset: number, count: number): string;
}
declare var CharacterData: {
prototype: CharacterData;
new(): CharacterData;
};
interface ChildNode extends Node {
/**
* Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/after)
*/
after(...nodes: (Node | string)[]): void;
/**
* Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/before)
*/
before(...nodes: (Node | string)[]): void;
/**
* Removes node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/remove)
*/
remove(): void;
/**
* Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/replaceWith)
*/
replaceWith(...nodes: (Node | string)[]): void;
}
/** @deprecated */
interface ClientRect extends DOMRect {
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard)
*/
interface Clipboard extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/read) */
read(): Promise<ClipboardItems>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/readText) */
readText(): Promise<string>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/write) */
write(data: ClipboardItems): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clipboard/writeText) */
writeText(data: string): Promise<void>;
}
declare var Clipboard: {
prototype: Clipboard;
new(): Clipboard;
};
/**
* Events providing information related to modification of the clipboard, that is cut, copy, and paste events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent)
*/
interface ClipboardEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardEvent/clipboardData) */
readonly clipboardData: DataTransfer | null;
}
declare var ClipboardEvent: {
prototype: ClipboardEvent;
new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem)
*/
interface ClipboardItem {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/types) */
readonly types: ReadonlyArray<string>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ClipboardItem/getType) */
getType(type: string): Promise<Blob>;
}
declare var ClipboardItem: {
prototype: ClipboardItem;
new(items: Record<string, string | Blob | PromiseLike<string | Blob>>, options?: ClipboardItemOptions): ClipboardItem;
};
/**
* A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
*/
interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
*/
readonly code: number;
/**
* Returns the WebSocket connection close reason provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
*/
readonly reason: string;
/**
* Returns true if the connection closed cleanly; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
*/
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/**
* Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Comment)
*/
interface Comment extends CharacterData {
}
declare var Comment: {
prototype: Comment;
new(data?: string): Comment;
};
/**
* The DOM CompositionEvent represents events that occur due to the user indirectly entering text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent)
*/
interface CompositionEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/data) */
readonly data: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompositionEvent/initCompositionEvent)
*/
initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;
}
declare var CompositionEvent: {
prototype: CompositionEvent;
new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
interface CompressionStream extends GenericTransformStream {
}
declare var CompressionStream: {
prototype: CompressionStream;
new(format: CompressionFormat): CompressionStream;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode) */
interface ConstantSourceNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConstantSourceNode/offset) */
readonly offset: AudioParam;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ConstantSourceNode: {
prototype: ConstantSourceNode;
new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;
};
/**
* An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode)
*/
interface ConvolverNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/buffer) */
buffer: AudioBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ConvolverNode/normalize) */
normalize: boolean;
}
declare var ConvolverNode: {
prototype: ConvolverNode;
new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;
};
/**
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
*/
interface CountQueuingStrategy extends QueuingStrategy {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential)
*/
interface Credential {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Credential/type) */
readonly type: string;
}
declare var Credential: {
prototype: Credential;
new(): Credential;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer)
*/
interface CredentialsContainer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/create) */
create(options?: CredentialCreationOptions): Promise<Credential | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/get) */
get(options?: CredentialRequestOptions): Promise<Credential | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/preventSilentAccess) */
preventSilentAccess(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CredentialsContainer/store) */
store(credential: Credential): Promise<void>;
}
declare var CredentialsContainer: {
prototype: CredentialsContainer;
new(): CredentialsContainer;
};
/**
* Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
*/
interface Crypto {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
*/
readonly subtle: SubtleCrypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
*/
randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
*/
interface CryptoKey {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
readonly algorithm: KeyAlgorithm;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
readonly extractable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
readonly type: KeyType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry) */
interface CustomElementRegistry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/define) */
define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/get) */
get(name: string): CustomElementConstructor | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/getName) */
getName(constructor: CustomElementConstructor): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/upgrade) */
upgrade(root: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomElementRegistry/whenDefined) */
whenDefined(name: string): Promise<CustomElementConstructor>;
}
declare var CustomElementRegistry: {
prototype: CustomElementRegistry;
new(): CustomElementRegistry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
interface CustomEvent<T = any> extends Event {
/**
* Returns any custom data event was created with. Typically used for synthetic events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
*/
readonly detail: T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
*/
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/**
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
*/
interface DOMException extends Error {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
*/
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
readonly message: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
readonly name: string;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
};
/**
* An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation)
*/
interface DOMImplementation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocument) */
createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createDocumentType) */
createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument) */
createHTMLDocument(title?: string): Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMImplementation/hasFeature)
*/
hasFeature(...args: any[]): true;
}
declare var DOMImplementation: {
prototype: DOMImplementation;
new(): DOMImplementation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
setMatrixValue(transformList: string): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
type SVGMatrix = DOMMatrix;
declare var SVGMatrix: typeof DOMMatrix;
type WebKitCSSMatrix = DOMMatrix;
declare var WebKitCSSMatrix: typeof DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
interface DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */
readonly a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */
readonly b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */
readonly c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */
readonly d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */
readonly e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */
readonly f: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */
readonly isIdentity: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */
readonly m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */
readonly m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */
readonly m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */
readonly m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */
readonly m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */
readonly m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */
readonly m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */
readonly m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */
readonly m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */
readonly m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */
readonly m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */
readonly m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */
readonly m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */
readonly m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */
readonly m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */
readonly m44: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
flipX(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
flipY(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
inverse(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
multiply(other?: DOMMatrixInit): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */
rotateFromVector(x?: number, y?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)
*/
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */
skewX(sx?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */
skewY(sy?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
toFloat32Array(): Float32Array;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
toFloat64Array(): Float64Array;
toJSON(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
transformPoint(point?: DOMPointInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
toString(): string;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/**
* Provides the ability to parse XML or HTML source code from a string into a DOM Document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser)
*/
interface DOMParser {
/**
* Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be "text/html" (which will invoke the HTML parser), or any of "text/xml", "application/xml", "application/xhtml+xml", or "image/svg+xml" (which will invoke the XML parser).
*
* For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.
*
* Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.
*
* Values other than the above for type will cause a TypeError exception to be thrown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMParser/parseFromString)
*/
parseFromString(string: string, type: DOMParserSupportedType): Document;
}
declare var DOMParser: {
prototype: DOMParser;
new(): DOMParser;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */
interface DOMPoint extends DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */
w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */
x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */
y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPoint;
};
type SVGPoint = DOMPoint;
declare var SVGPoint: typeof DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */
interface DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */
readonly w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
readonly z: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
interface DOMQuad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
readonly p1: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
readonly p2: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
readonly p3: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
readonly p4: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
type SVGRect = DOMRect;
declare var SVGRect: typeof DOMRect;
interface DOMRectList {
readonly length: number;
item(index: number): DOMRect | null;
[index: number]: DOMRect;
}
declare var DOMRectList: {
prototype: DOMRectList;
new(): DOMRectList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */
interface DOMRectReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */
readonly bottom: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */
readonly left: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */
readonly right: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */
readonly top: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */
readonly width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/**
* A type returned by some APIs which contains a list of DOMString (strings).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
*/
interface DOMStringList {
/**
* Returns the number of strings in strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
*/
readonly length: number;
/**
* Returns true if strings contains string, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
*/
contains(string: string): boolean;
/**
* Returns the string with index index from strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
*/
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/**
* Used by the dataset\xA0HTML\xA0attribute to represent data for custom attributes added to elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringMap)
*/
interface DOMStringMap {
[name: string]: string | undefined;
}
declare var DOMStringMap: {
prototype: DOMStringMap;
new(): DOMStringMap;
};
/**
* A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList)
*/
interface DOMTokenList {
/**
* Returns the number of tokens.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/length)
*/
readonly length: number;
/**
* Returns the associated set as string.
*
* Can be set, to change the associated attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/value)
*/
value: string;
toString(): string;
/**
* Adds all arguments passed, except those already present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/add)
*/
add(...tokens: string[]): void;
/**
* Returns true if token is present, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/contains)
*/
contains(token: string): boolean;
/**
* Returns the token with index index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/item)
*/
item(index: number): string | null;
/**
* Removes arguments passed, if they are present.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/remove)
*/
remove(...tokens: string[]): void;
/**
* Replaces token with newToken.
*
* Returns true if token was replaced with newToken, and false otherwise.
*
* Throws a "SyntaxError" DOMException if one of the arguments is the empty string.
*
* Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/replace)
*/
replace(token: string, newToken: string): boolean;
/**
* Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.
*
* Throws a TypeError if the associated attribute has no supported tokens defined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/supports)
*/
supports(token: string): boolean;
/**
* If force is not given, "toggles" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).
*
* Returns true if token is now present, and false otherwise.
*
* Throws a "SyntaxError" DOMException if token is empty.
*
* Throws an "InvalidCharacterError" DOMException if token contains any spaces.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMTokenList/toggle)
*/
toggle(token: string, force?: boolean): boolean;
forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;
[index: number]: string;
}
declare var DOMTokenList: {
prototype: DOMTokenList;
new(): DOMTokenList;
};
/**
* Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer)
*/
interface DataTransfer {
/**
* Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.
*
* Can be set, to change the selected operation.
*
* The possible values are "none", "copy", "link", and "move".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/dropEffect)
*/
dropEffect: "none" | "copy" | "link" | "move";
/**
* Returns the kinds of operations that are to be allowed.
*
* Can be set (during the dragstart event), to change the allowed operations.
*
* The possible values are "none", "copy", "copyLink", "copyMove", "link", "linkMove", "move", "all", and "uninitialized",
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/effectAllowed)
*/
effectAllowed: "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
/**
* Returns a FileList of the files being dragged, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/files)
*/
readonly files: FileList;
/**
* Returns a DataTransferItemList object, with the drag data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/items)
*/
readonly items: DataTransferItemList;
/**
* Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string "Files".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/types)
*/
readonly types: ReadonlyArray<string>;
/**
* Removes the data of the specified formats. Removes all data if the argument is omitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/clearData)
*/
clearData(format?: string): void;
/**
* Returns the specified data. If there is no such data, returns the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/getData)
*/
getData(format: string): string;
/**
* Adds the specified data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setData)
*/
setData(format: string, data: string): void;
/**
* Uses the given element to update the drag feedback, replacing any previously specified feedback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransfer/setDragImage)
*/
setDragImage(image: Element, x: number, y: number): void;
}
declare var DataTransfer: {
prototype: DataTransfer;
new(): DataTransfer;
};
/**
* One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem)
*/
interface DataTransferItem {
/**
* Returns the drag data item kind, one of: "string", "file".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/kind)
*/
readonly kind: string;
/**
* Returns the drag data item type string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/type)
*/
readonly type: string;
/**
* Returns a File object, if the drag data item kind is File.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsFile)
*/
getAsFile(): File | null;
/**
* Invokes the callback with the string data as the argument, if the drag data item kind is text.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/getAsString)
*/
getAsString(callback: FunctionStringCallback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItem/webkitGetAsEntry) */
webkitGetAsEntry(): FileSystemEntry | null;
}
declare var DataTransferItem: {
prototype: DataTransferItem;
new(): DataTransferItem;
};
/**
* A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList)
*/
interface DataTransferItemList {
/**
* Returns the number of items in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/length)
*/
readonly length: number;
/**
* Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/add)
*/
add(data: string, type: string): DataTransferItem | null;
add(data: File): DataTransferItem | null;
/**
* Removes all the entries in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/clear)
*/
clear(): void;
/**
* Removes the indexth entry in the drag data store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DataTransferItemList/remove)
*/
remove(index: number): void;
[index: number]: DataTransferItem;
}
declare var DataTransferItemList: {
prototype: DataTransferItemList;
new(): DataTransferItemList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
interface DecompressionStream extends GenericTransformStream {
}
declare var DecompressionStream: {
prototype: DecompressionStream;
new(format: CompressionFormat): DecompressionStream;
};
/**
* A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode)
*/
interface DelayNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DelayNode/delayTime) */
readonly delayTime: AudioParam;
}
declare var DelayNode: {
prototype: DelayNode;
new(context: BaseAudioContext, options?: DelayOptions): DelayNode;
};
/**
* The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent)
*/
interface DeviceMotionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/acceleration) */
readonly acceleration: DeviceMotionEventAcceleration | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity) */
readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/interval) */
readonly interval: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEvent/rotationRate) */
readonly rotationRate: DeviceMotionEventRotationRate | null;
}
declare var DeviceMotionEvent: {
prototype: DeviceMotionEvent;
new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration)
*/
interface DeviceMotionEventAcceleration {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/x) */
readonly x: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/y) */
readonly y: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventAcceleration/z) */
readonly z: number | null;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate)
*/
interface DeviceMotionEventRotationRate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/alpha) */
readonly alpha: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/beta) */
readonly beta: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceMotionEventRotationRate/gamma) */
readonly gamma: number | null;
}
/**
* The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent)
*/
interface DeviceOrientationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/absolute) */
readonly absolute: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/alpha) */
readonly alpha: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/beta) */
readonly beta: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DeviceOrientationEvent/gamma) */
readonly gamma: number | null;
}
declare var DeviceOrientationEvent: {
prototype: DeviceOrientationEvent;
new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;
};
interface DocumentEventMap extends GlobalEventHandlersEventMap {
"DOMContentLoaded": Event;
"fullscreenchange": Event;
"fullscreenerror": Event;
"pointerlockchange": Event;
"pointerlockerror": Event;
"readystatechange": Event;
"visibilitychange": Event;
}
/**
* Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document)
*/
interface Document extends Node, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {
/**
* Sets or gets the URL for the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/URL)
*/
readonly URL: string;
/**
* Sets or gets the color of all active links in the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/alinkColor)
*/
alinkColor: string;
/**
* Returns a reference to the collection of elements contained by the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/all)
*/
readonly all: HTMLAllCollection;
/**
* Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/anchors)
*/
readonly anchors: HTMLCollectionOf<HTMLAnchorElement>;
/**
* Retrieves a collection of all applet objects in the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/applets)
*/
readonly applets: HTMLCollection;
/**
* Deprecated. Sets or retrieves a value that indicates the background color behind the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/bgColor)
*/
bgColor: string;
/**
* Specifies the beginning and end of the document body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/body)
*/
body: HTMLElement;
/**
* Returns document's encoding.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly characterSet: string;
/**
* Gets or sets the character set used to encode the object.
* @deprecated This is a legacy alias of \`characterSet\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly charset: string;
/**
* Gets a value that indicates whether standards-compliant mode is switched on for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/compatMode)
*/
readonly compatMode: string;
/**
* Returns document's content type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/contentType)
*/
readonly contentType: string;
/**
* Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.
*
* Can be set, to add a new cookie to the element's set of HTTP cookies.
*
* If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a "SecurityError" DOMException will be thrown on getting and setting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/cookie)
*/
cookie: string;
/**
* Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.
*
* Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/currentScript)
*/
readonly currentScript: HTMLOrSVGScriptElement | null;
/**
* Returns the Window object of the active document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/defaultView)
*/
readonly defaultView: (WindowProxy & typeof globalThis) | null;
/**
* Sets or gets a value that indicates whether the document can be edited.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/designMode)
*/
designMode: string;
/**
* Sets or retrieves a value that indicates the reading order of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/dir)
*/
dir: string;
/**
* Gets an object representing the document type declaration associated with the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/doctype)
*/
readonly doctype: DocumentType | null;
/**
* Gets a reference to the root node of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentElement)
*/
readonly documentElement: HTMLElement;
/**
* Returns document's URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/documentURI)
*/
readonly documentURI: string;
/**
* Sets or gets the security domain of the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/domain)
*/
domain: string;
/**
* Retrieves a collection of all embed objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/embeds)
*/
readonly embeds: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Sets or gets the foreground (text) color of the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fgColor)
*/
fgColor: string;
/**
* Retrieves a collection, in source order, of all form objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/forms)
*/
readonly forms: HTMLCollectionOf<HTMLFormElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreen)
*/
readonly fullscreen: boolean;
/**
* Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenEnabled)
*/
readonly fullscreenEnabled: boolean;
/**
* Returns the head element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/head)
*/
readonly head: HTMLHeadElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hidden) */
readonly hidden: boolean;
/**
* Retrieves a collection, in source order, of img objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/images)
*/
readonly images: HTMLCollectionOf<HTMLImageElement>;
/**
* Gets the implementation object of the current document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/implementation)
*/
readonly implementation: DOMImplementation;
/**
* Returns the character encoding used to create the webpage that is loaded into the document object.
* @deprecated This is a legacy alias of \`characterSet\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/characterSet)
*/
readonly inputEncoding: string;
/**
* Gets the date that the page was last modified, if the page supplies one.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastModified)
*/
readonly lastModified: string;
/**
* Sets or gets the color of the document links.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/linkColor)
*/
linkColor: string;
/**
* Retrieves a collection of all a objects that specify the href property and all area objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/links)
*/
readonly links: HTMLCollectionOf<HTMLAnchorElement | HTMLAreaElement>;
/**
* Contains information about the current URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/location)
*/
get location(): Location;
set location(href: string | Location);
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenchange_event) */
onfullscreenchange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenerror_event) */
onfullscreenerror: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockchange_event) */
onpointerlockchange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerlockerror_event) */
onpointerlockerror: ((this: Document, ev: Event) => any) | null;
/**
* Fires when the state of the object has changed.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readystatechange_event)
*/
onreadystatechange: ((this: Document, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilitychange_event) */
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
readonly ownerDocument: null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureEnabled) */
readonly pictureInPictureEnabled: boolean;
/**
* Return an HTMLCollection of the embed elements in the Document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/plugins)
*/
readonly plugins: HTMLCollectionOf<HTMLEmbedElement>;
/**
* Retrieves a value that indicates the current state of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/readyState)
*/
readonly readyState: DocumentReadyState;
/**
* Gets the URL of the location that referred the user to the current page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/referrer)
*/
readonly referrer: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/rootElement)
*/
readonly rootElement: SVGSVGElement | null;
/**
* Retrieves a collection of all script objects in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scripts)
*/
readonly scripts: HTMLCollectionOf<HTMLScriptElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollingElement) */
readonly scrollingElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/timeline) */
readonly timeline: DocumentTimeline;
/**
* Contains the title of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/title)
*/
title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/visibilityState) */
readonly visibilityState: DocumentVisibilityState;
/**
* Sets or gets the color of the links that the user has visited.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/vlinkColor)
*/
vlinkColor: string;
/**
* Moves node from another document and returns it.
*
* If node is a document, throws a "NotSupportedError" DOMException or, if node is a shadow root, throws a "HierarchyRequestError" DOMException.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptNode)
*/
adoptNode<T extends Node>(node: T): T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/captureEvents)
*/
captureEvents(): void;
/** @deprecated */
caretRangeFromPoint(x: number, y: number): Range | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/clear)
*/
clear(): void;
/**
* Closes an output stream and forces the sent data to display.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/close)
*/
close(): void;
/**
* Creates an attribute object with a specified name.
* @param name String that sets the attribute object's name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttribute)
*/
createAttribute(localName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createAttributeNS) */
createAttributeNS(namespace: string | null, qualifiedName: string): Attr;
/**
* Returns a CDATASection node whose data is data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createCDATASection)
*/
createCDATASection(data: string): CDATASection;
/**
* Creates a comment object with the specified data.
* @param data Sets the comment object's data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createComment)
*/
createComment(data: string): Comment;
/**
* Creates a new document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createDocumentFragment)
*/
createDocumentFragment(): DocumentFragment;
/**
* Creates an instance of the element for the specified tag.
* @param tagName The name of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElement)
*/
createElement<K extends keyof HTMLElementTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];
/** @deprecated */
createElement<K extends keyof HTMLElementDeprecatedTagNameMap>(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];
createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;
/**
* Returns an element with namespace namespace. Its namespace prefix will be everything before ":" (U+003E) in qualifiedName or null. Its local name will be everything after ":" (U+003E) in qualifiedName or qualifiedName.
*
* If localName does not match the Name production an "InvalidCharacterError" DOMException will be thrown.
*
* If one of the following conditions is true a "NamespaceError" DOMException will be thrown:
*
* localName does not match the QName production.
* Namespace prefix is not null and namespace is the empty string.
* Namespace prefix is "xml" and namespace is not the XML namespace.
* qualifiedName or namespace prefix is "xmlns" and namespace is not the XMLNS namespace.
* namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is "xmlns".
*
* When supplied, options's is can be used to create a customized built-in element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createElementNS)
*/
createElementNS(namespaceURI: "http://www.w3.org/1999/xhtml", qualifiedName: string): HTMLElement;
createElementNS<K extends keyof SVGElementTagNameMap>(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: K): SVGElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/2000/svg", qualifiedName: string): SVGElement;
createElementNS<K extends keyof MathMLElementTagNameMap>(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: K): MathMLElementTagNameMap[K];
createElementNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", qualifiedName: string): MathMLElement;
createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;
createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createEvent) */
createEvent(eventInterface: "AnimationEvent"): AnimationEvent;
createEvent(eventInterface: "AnimationPlaybackEvent"): AnimationPlaybackEvent;
createEvent(eventInterface: "AudioProcessingEvent"): AudioProcessingEvent;
createEvent(eventInterface: "BeforeUnloadEvent"): BeforeUnloadEvent;
createEvent(eventInterface: "BlobEvent"): BlobEvent;
createEvent(eventInterface: "ClipboardEvent"): ClipboardEvent;
createEvent(eventInterface: "CloseEvent"): CloseEvent;
createEvent(eventInterface: "CompositionEvent"): CompositionEvent;
createEvent(eventInterface: "CustomEvent"): CustomEvent;
createEvent(eventInterface: "DeviceMotionEvent"): DeviceMotionEvent;
createEvent(eventInterface: "DeviceOrientationEvent"): DeviceOrientationEvent;
createEvent(eventInterface: "DragEvent"): DragEvent;
createEvent(eventInterface: "ErrorEvent"): ErrorEvent;
createEvent(eventInterface: "Event"): Event;
createEvent(eventInterface: "Events"): Event;
createEvent(eventInterface: "FocusEvent"): FocusEvent;
createEvent(eventInterface: "FontFaceSetLoadEvent"): FontFaceSetLoadEvent;
createEvent(eventInterface: "FormDataEvent"): FormDataEvent;
createEvent(eventInterface: "GamepadEvent"): GamepadEvent;
createEvent(eventInterface: "HashChangeEvent"): HashChangeEvent;
createEvent(eventInterface: "IDBVersionChangeEvent"): IDBVersionChangeEvent;
createEvent(eventInterface: "InputEvent"): InputEvent;
createEvent(eventInterface: "KeyboardEvent"): KeyboardEvent;
createEvent(eventInterface: "MIDIConnectionEvent"): MIDIConnectionEvent;
createEvent(eventInterface: "MIDIMessageEvent"): MIDIMessageEvent;
createEvent(eventInterface: "MediaEncryptedEvent"): MediaEncryptedEvent;
createEvent(eventInterface: "MediaKeyMessageEvent"): MediaKeyMessageEvent;
createEvent(eventInterface: "MediaQueryListEvent"): MediaQueryListEvent;
createEvent(eventInterface: "MediaStreamTrackEvent"): MediaStreamTrackEvent;
createEvent(eventInterface: "MessageEvent"): MessageEvent;
createEvent(eventInterface: "MouseEvent"): MouseEvent;
createEvent(eventInterface: "MouseEvents"): MouseEvent;
createEvent(eventInterface: "MutationEvent"): MutationEvent;
createEvent(eventInterface: "MutationEvents"): MutationEvent;
createEvent(eventInterface: "OfflineAudioCompletionEvent"): OfflineAudioCompletionEvent;
createEvent(eventInterface: "PageTransitionEvent"): PageTransitionEvent;
createEvent(eventInterface: "PaymentMethodChangeEvent"): PaymentMethodChangeEvent;
createEvent(eventInterface: "PaymentRequestUpdateEvent"): PaymentRequestUpdateEvent;
createEvent(eventInterface: "PictureInPictureEvent"): PictureInPictureEvent;
createEvent(eventInterface: "PointerEvent"): PointerEvent;
createEvent(eventInterface: "PopStateEvent"): PopStateEvent;
createEvent(eventInterface: "ProgressEvent"): ProgressEvent;
createEvent(eventInterface: "PromiseRejectionEvent"): PromiseRejectionEvent;
createEvent(eventInterface: "RTCDTMFToneChangeEvent"): RTCDTMFToneChangeEvent;
createEvent(eventInterface: "RTCDataChannelEvent"): RTCDataChannelEvent;
createEvent(eventInterface: "RTCErrorEvent"): RTCErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceErrorEvent"): RTCPeerConnectionIceErrorEvent;
createEvent(eventInterface: "RTCPeerConnectionIceEvent"): RTCPeerConnectionIceEvent;
createEvent(eventInterface: "RTCTrackEvent"): RTCTrackEvent;
createEvent(eventInterface: "SecurityPolicyViolationEvent"): SecurityPolicyViolationEvent;
createEvent(eventInterface: "SpeechSynthesisErrorEvent"): SpeechSynthesisErrorEvent;
createEvent(eventInterface: "SpeechSynthesisEvent"): SpeechSynthesisEvent;
createEvent(eventInterface: "StorageEvent"): StorageEvent;
createEvent(eventInterface: "SubmitEvent"): SubmitEvent;
createEvent(eventInterface: "ToggleEvent"): ToggleEvent;
createEvent(eventInterface: "TouchEvent"): TouchEvent;
createEvent(eventInterface: "TrackEvent"): TrackEvent;
createEvent(eventInterface: "TransitionEvent"): TransitionEvent;
createEvent(eventInterface: "UIEvent"): UIEvent;
createEvent(eventInterface: "UIEvents"): UIEvent;
createEvent(eventInterface: "WebGLContextEvent"): WebGLContextEvent;
createEvent(eventInterface: "WheelEvent"): WheelEvent;
createEvent(eventInterface: string): Event;
/**
* Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list
* @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNodeIterator)
*/
createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;
/**
* Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an "InvalidCharacterError" DOMException will be thrown. If data contains "?>" an "InvalidCharacterError" DOMException will be thrown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createProcessingInstruction)
*/
createProcessingInstruction(target: string, data: string): ProcessingInstruction;
/**
* Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createRange)
*/
createRange(): Range;
/**
* Creates a text string from the specified value.
* @param data String that specifies the nodeValue property of the text node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTextNode)
*/
createTextNode(data: string): Text;
/**
* Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
* @param root The root element or node to start traversing on.
* @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
* @param filter A custom NodeFilter function to use.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createTreeWalker)
*/
createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;
/**
* Executes a command on the current document, current selection, or the given range.
* @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
* @param showUI Display the user interface, defaults to false.
* @param value Value to assign.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/execCommand)
*/
execCommand(commandId: string, showUI?: boolean, value?: string): boolean;
/**
* Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitFullscreen)
*/
exitFullscreen(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPictureInPicture) */
exitPictureInPicture(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/exitPointerLock) */
exitPointerLock(): void;
/**
* Returns a reference to the first object with the specified value of the ID attribute.
* @param elementId String that specifies the ID value.
*/
getElementById(elementId: string): HTMLElement | null;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByClassName)
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/**
* Gets a collection of objects based on the value of the NAME or ID attribute.
* @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByName)
*/
getElementsByName(elementName: string): NodeListOf<HTMLElement>;
/**
* Retrieves a collection of objects based on the specified element name.
* @param name Specifies the name of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagName)
*/
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/**
* If namespace and localName are "*" returns a HTMLCollection of all descendant elements.
*
* If only namespace is "*" returns a HTMLCollection of all descendant elements whose local name is localName.
*
* If only localName is "*" returns a HTMLCollection of all descendant elements whose namespace is namespace.
*
* Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementsByTagNameNS)
*/
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/**
* Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getSelection)
*/
getSelection(): Selection | null;
/**
* Gets a value indicating whether the object currently has focus.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasFocus)
*/
hasFocus(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/hasStorageAccess) */
hasStorageAccess(): Promise<boolean>;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* If node is a document or a shadow root, throws a "NotSupportedError" DOMException.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/importNode)
*/
importNode<T extends Node>(node: T, deep?: boolean): T;
/**
* Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
* @param url Specifies a MIME type for the document.
* @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
* @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
* @param replace Specifies whether the existing entry for the document is replaced in the history list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/open)
*/
open(unused1?: string, unused2?: string): Document;
open(url: string | URL, name: string, features: string): WindowProxy | null;
/**
* Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
* @param commandId Specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandEnabled)
*/
queryCommandEnabled(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandIndeterm)
*/
queryCommandIndeterm(commandId: string): boolean;
/**
* Returns a Boolean value that indicates the current state of the command.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandState)
*/
queryCommandState(commandId: string): boolean;
/**
* Returns a Boolean value that indicates whether the current command is supported on the current range.
* @param commandId Specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandSupported)
*/
queryCommandSupported(commandId: string): boolean;
/**
* Returns the current value of the document, range, or current selection for the given command.
* @param commandId String that specifies a command identifier.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/queryCommandValue)
*/
queryCommandValue(commandId: string): string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/releaseEvents)
*/
releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/requestStorageAccess) */
requestStorageAccess(): Promise<void>;
/**
* Writes one or more HTML expressions to a document in the specified window.
* @param content Specifies the text and HTML tags to write.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/write)
*/
write(...text: string[]): void;
/**
* Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
* @param content The text and HTML tags to write.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/writeln)
*/
writeln(...text: string[]): void;
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Document: {
prototype: Document;
new(): Document;
};
/**
* A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentFragment)
*/
interface DocumentFragment extends Node, NonElementParentNode, ParentNode {
readonly ownerDocument: Document;
getElementById(elementId: string): HTMLElement | null;
}
declare var DocumentFragment: {
prototype: DocumentFragment;
new(): DocumentFragment;
};
interface DocumentOrShadowRoot {
/**
* Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.
*
* For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.
*
* Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/activeElement)
*/
readonly activeElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/adoptedStyleSheets) */
adoptedStyleSheets: CSSStyleSheet[];
/**
* Returns document's fullscreen element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fullscreenElement)
*/
readonly fullscreenElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pictureInPictureElement) */
readonly pictureInPictureElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/pointerLockElement) */
readonly pointerLockElement: Element | null;
/**
* Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/styleSheets)
*/
readonly styleSheets: StyleSheetList;
/**
* Returns the element for the specified x coordinate and the specified y coordinate.
* @param x The x-offset
* @param y The y-offset
*/
elementFromPoint(x: number, y: number): Element | null;
elementsFromPoint(x: number, y: number): Element[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getAnimations) */
getAnimations(): Animation[];
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentTimeline) */
interface DocumentTimeline extends AnimationTimeline {
}
declare var DocumentTimeline: {
prototype: DocumentTimeline;
new(options?: DocumentTimelineOptions): DocumentTimeline;
};
/**
* A Node containing a doctype.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType)
*/
interface DocumentType extends Node, ChildNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/name) */
readonly name: string;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/publicId) */
readonly publicId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DocumentType/systemId) */
readonly systemId: string;
}
declare var DocumentType: {
prototype: DocumentType;
new(): DocumentType;
};
/**
* A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent)
*/
interface DragEvent extends MouseEvent {
/**
* Returns the DataTransfer object for the event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DragEvent/dataTransfer)
*/
readonly dataTransfer: DataTransfer | null;
}
declare var DragEvent: {
prototype: DragEvent;
new(type: string, eventInitDict?: DragEventInit): DragEvent;
};
/**
* Inherits properties from its parent, AudioNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode)
*/
interface DynamicsCompressorNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/attack) */
readonly attack: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/knee) */
readonly knee: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/ratio) */
readonly ratio: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/reduction) */
readonly reduction: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/release) */
readonly release: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DynamicsCompressorNode/threshold) */
readonly threshold: AudioParam;
}
declare var DynamicsCompressorNode: {
prototype: DynamicsCompressorNode;
new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */
interface EXT_color_buffer_float {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: 0x881A;
readonly RGB16F_EXT: 0x881B;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */
interface EXT_float_blend {
}
/**
* The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
*/
interface EXT_frag_depth {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */
interface EXT_shader_texture_lod {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */
interface EXT_texture_compression_bptc {
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/**
* The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
*/
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */
interface EXT_texture_norm16 {
readonly R16_EXT: 0x822A;
readonly RG16_EXT: 0x822C;
readonly RGB16_EXT: 0x8054;
readonly RGBA16_EXT: 0x805B;
readonly R16_SNORM_EXT: 0x8F98;
readonly RG16_SNORM_EXT: 0x8F99;
readonly RGB16_SNORM_EXT: 0x8F9A;
readonly RGBA16_SNORM_EXT: 0x8F9B;
}
interface ElementEventMap {
"fullscreenchange": Event;
"fullscreenerror": Event;
}
/**
* Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element)
*/
interface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attributes) */
readonly attributes: NamedNodeMap;
/**
* Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/classList)
*/
readonly classList: DOMTokenList;
/**
* Returns the value of element's class content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/className)
*/
className: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientHeight) */
readonly clientHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientLeft) */
readonly clientLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientTop) */
readonly clientTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/clientWidth) */
readonly clientWidth: number;
/**
* Returns the value of element's id content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/id)
*/
id: string;
/**
* Returns the local name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/localName)
*/
readonly localName: string;
/**
* Returns the namespace.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/namespaceURI)
*/
readonly namespaceURI: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenchange_event) */
onfullscreenchange: ((this: Element, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/fullscreenerror_event) */
onfullscreenerror: ((this: Element, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/outerHTML) */
outerHTML: string;
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/part) */
readonly part: DOMTokenList;
/**
* Returns the namespace prefix.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/prefix)
*/
readonly prefix: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollHeight) */
readonly scrollHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollLeft) */
scrollLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTop) */
scrollTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollWidth) */
readonly scrollWidth: number;
/**
* Returns element's shadow root, if any, and if shadow root's mode is "open", and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/shadowRoot)
*/
readonly shadowRoot: ShadowRoot | null;
/**
* Returns the value of element's slot content attribute. Can be set to change it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/slot)
*/
slot: string;
/**
* Returns the HTML-uppercased qualified name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/tagName)
*/
readonly tagName: string;
/**
* Creates a shadow root for element and returns it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/attachShadow)
*/
attachShadow(init: ShadowRootInit): ShadowRoot;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/checkVisibility) */
checkVisibility(options?: CheckVisibilityOptions): boolean;
/**
* Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/closest)
*/
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
closest<E extends Element = Element>(selectors: string): E | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/computedStyleMap) */
computedStyleMap(): StylePropertyMapReadOnly;
/**
* Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttribute)
*/
getAttribute(qualifiedName: string): string | null;
/**
* Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNS)
*/
getAttributeNS(namespace: string | null, localName: string): string | null;
/**
* Returns the qualified names of all element's attributes. Can contain duplicates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNames)
*/
getAttributeNames(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNode) */
getAttributeNode(qualifiedName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getAttributeNodeNS) */
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getBoundingClientRect) */
getBoundingClientRect(): DOMRect;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getClientRects) */
getClientRects(): DOMRectList;
/**
* Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByClassName)
*/
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagName) */
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/getElementsByTagNameNS) */
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
/**
* Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttribute)
*/
hasAttribute(qualifiedName: string): boolean;
/**
* Returns true if element has an attribute whose namespace is namespace and local name is localName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributeNS)
*/
hasAttributeNS(namespace: string | null, localName: string): boolean;
/**
* Returns true if element has attributes, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasAttributes)
*/
hasAttributes(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/hasPointerCapture) */
hasPointerCapture(pointerId: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentElement) */
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentHTML) */
insertAdjacentHTML(position: InsertPosition, text: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/insertAdjacentText) */
insertAdjacentText(where: InsertPosition, data: string): void;
/**
* Returns true if matching selectors against element's root yields element, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
*/
matches(selectors: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/releasePointerCapture) */
releasePointerCapture(pointerId: number): void;
/**
* Removes element's first attribute whose qualified name is qualifiedName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttribute)
*/
removeAttribute(qualifiedName: string): void;
/**
* Removes element's attribute whose namespace is namespace and local name is localName.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNS)
*/
removeAttributeNS(namespace: string | null, localName: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/removeAttributeNode) */
removeAttributeNode(attr: Attr): Attr;
/**
* Displays element fullscreen and resolves promise when done.
*
* When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to "show", navigation simplicity is preferred over screen space, and if set to "hide", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value "auto" indicates no application preference.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestFullscreen)
*/
requestFullscreen(options?: FullscreenOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/requestPointerLock) */
requestPointerLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scroll) */
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollBy) */
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollIntoView) */
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/scrollTo) */
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* Sets the value of element's first attribute whose qualified name is qualifiedName to value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttribute)
*/
setAttribute(qualifiedName: string, value: string): void;
/**
* Sets the value of element's attribute whose namespace is namespace and local name is localName to value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNS)
*/
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNode) */
setAttributeNode(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setAttributeNodeNS) */
setAttributeNodeNS(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/setPointerCapture) */
setPointerCapture(pointerId: number): void;
/**
* If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.
*
* Returns true if qualifiedName is now present, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/toggleAttribute)
*/
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
/**
* @deprecated This is a legacy alias of \`matches\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/matches)
*/
webkitMatchesSelector(selectors: string): boolean;
addEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ElementEventMap>(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Element: {
prototype: Element;
new(): Element;
};
interface ElementCSSInlineStyle {
readonly attributeStyleMap: StylePropertyMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
readonly style: CSSStyleDeclaration;
}
interface ElementContentEditable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/contentEditable) */
contentEditable: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/enterKeyHint) */
enterKeyHint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inputMode) */
inputMode: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/isContentEditable) */
readonly isContentEditable: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals) */
interface ElementInternals extends ARIAMixin {
/**
* Returns the form owner of internals's target element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/form)
*/
readonly form: HTMLFormElement | null;
/**
* Returns a NodeList of all the label elements that internals's target element is associated with.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/labels)
*/
readonly labels: NodeList;
/**
* Returns the ShadowRoot for internals's target element, if the target element is a shadow host, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/shadowRoot)
*/
readonly shadowRoot: ShadowRoot | null;
/**
* Returns the error message that would be shown to the user if internals's target element was to be checked for validity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns the ValidityState object for internals's target element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/validity)
*/
readonly validity: ValidityState;
/**
* Returns true if internals's target element will be validated when the form is submitted; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns true if internals's target element has no validity problems; false otherwise. Fires an invalid event at the element in the latter case.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/checkValidity)
*/
checkValidity(): boolean;
/**
* Returns true if internals's target element has no validity problems; otherwise, returns false, fires an invalid event at the element, and (if the event isn't canceled) reports the problem to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/reportValidity)
*/
reportValidity(): boolean;
/**
* Sets both the state and submission value of internals's target element to value.
*
* If value is null, the element won't participate in form submission.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setFormValue)
*/
setFormValue(value: File | string | FormData | null, state?: File | string | FormData | null): void;
/**
* Marks internals's target element as suffering from the constraints indicated by the flags argument, and sets the element's validation message to message. If anchor is specified, the user agent might use it to indicate problems with the constraints of internals's target element when the form owner is validated interactively or reportValidity() is called.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ElementInternals/setValidity)
*/
setValidity(flags?: ValidityStateFlags, message?: string, anchor?: HTMLElement): void;
}
declare var ElementInternals: {
prototype: ElementInternals;
new(): ElementInternals;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */
interface EncodedVideoChunk {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */
readonly byteLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */
readonly type: EncodedVideoChunkType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedVideoChunk: {
prototype: EncodedVideoChunk;
new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};
/**
* Events providing information related to errors in scripts or in files.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
*/
interface ErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
readonly colno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
readonly error: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
readonly filename: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
readonly lineno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/**
* An event which takes place in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
*/
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
*/
readonly bubbles: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
*/
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
readonly isTrusted: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
*/
returnValue: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
*/
readonly srcElement: EventTarget | null;
/**
* Returns the object to which event is dispatched (its target).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
*/
readonly target: EventTarget | null;
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
*/
readonly type: string;
/**
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
*/
composedPath(): EventTarget[];
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
*/
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
*/
preventDefault(): void;
/**
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
*/
stopImmediatePropagation(): void;
/**
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
*/
stopPropagation(): void;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventCounts) */
interface EventCounts {
forEach(callbackfn: (value: number, key: string, parent: EventCounts) => void, thisArg?: any): void;
}
declare var EventCounts: {
prototype: EventCounts;
new(): EventCounts;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */
interface EventSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
onerror: ((this: EventSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
onopen: ((this: EventSource, ev: Event) => any) | null;
/**
* Returns the state of this EventSource object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
*/
readonly readyState: number;
/**
* Returns the URL providing the event stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
*/
readonly url: string;
/**
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
*/
readonly withCredentials: boolean;
/**
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
*/
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
};
/**
* EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
*/
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
dispatchEvent(event: Event): boolean;
/**
* Removes the event listener in target's event listener list with the same type, callback, and options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External)
*/
interface External {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/AddSearchProvider)
*/
AddSearchProvider(): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/External/IsSearchProviderInstalled)
*/
IsSearchProviderInstalled(): void;
}
/** @deprecated */
declare var External: {
prototype: External;
new(): External;
};
/**
* Provides information about files and allows JavaScript in a web page to access their content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
*/
interface File extends Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
readonly lastModified: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/**
* An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
*/
interface FileList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/**
* Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
*/
interface FileReader extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */
readonly result: string | ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
readAsDataURL(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem) */
interface FileSystem {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystem/root) */
readonly root: FileSystemDirectoryEntry;
}
declare var FileSystem: {
prototype: FileSystem;
new(): FileSystem;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry) */
interface FileSystemDirectoryEntry extends FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/createReader) */
createReader(): FileSystemDirectoryReader;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getDirectory) */
getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryEntry/getFile) */
getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryEntry: {
prototype: FileSystemDirectoryEntry;
new(): FileSystemDirectoryEntry;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
*/
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader) */
interface FileSystemDirectoryReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryReader/readEntries) */
readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemDirectoryReader: {
prototype: FileSystemDirectoryReader;
new(): FileSystemDirectoryReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry) */
interface FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/filesystem) */
readonly filesystem: FileSystem;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/fullPath) */
readonly fullPath: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isDirectory) */
readonly isDirectory: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/isFile) */
readonly isFile: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemEntry/getParent) */
getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemEntry: {
prototype: FileSystemEntry;
new(): FileSystemEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry) */
interface FileSystemFileEntry extends FileSystemEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileEntry/file) */
file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;
}
declare var FileSystemFileEntry: {
prototype: FileSystemFileEntry;
new(): FileSystemFileEntry;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
*/
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
*/
interface FileSystemHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */
readonly kind: FileSystemHandleKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
*/
interface FileSystemWritableFileStream extends WritableStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */
seek(position: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */
truncate(size: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */
write(data: FileSystemWriteChunkType): Promise<void>;
}
declare var FileSystemWritableFileStream: {
prototype: FileSystemWritableFileStream;
new(): FileSystemWritableFileStream;
};
/**
* Focus-related events like focus, blur, focusin, or focusout.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent)
*/
interface FocusEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FocusEvent/relatedTarget) */
readonly relatedTarget: EventTarget | null;
}
declare var FocusEvent: {
prototype: FocusEvent;
new(type: string, eventInitDict?: FocusEventInit): FocusEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */
interface FontFace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */
ascentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */
descentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */
display: FontDisplay;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */
family: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */
featureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */
lineGapOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */
readonly loaded: Promise<FontFace>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */
readonly status: FontFaceLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */
stretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */
style: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
unicodeRange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
weight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
interface FontFaceSet extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
readonly ready: Promise<FontFaceSet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
readonly status: FontFaceSetLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
check(font: string, text?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */
interface FontFaceSetLoadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
readonly fonts: FontFaceSet;
}
/**
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
*/
interface FormData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
append(name: string, value: string | Blob): void;
append(name: string, value: string): void;
append(name: string, blobValue: Blob, filename?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */
get(name: string): FormDataEntryValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */
getAll(name: string): FormDataEntryValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
set(name: string, value: string | Blob): void;
set(name: string, value: string): void;
set(name: string, blobValue: Blob, filename?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(form?: HTMLFormElement, submitter?: HTMLElement | null): FormData;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent) */
interface FormDataEvent extends Event {
/**
* Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormDataEvent/formData)
*/
readonly formData: FormData;
}
declare var FormDataEvent: {
prototype: FormDataEvent;
new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;
};
/**
* A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode)
*/
interface GainNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GainNode/gain) */
readonly gain: AudioParam;
}
declare var GainNode: {
prototype: GainNode;
new(context: BaseAudioContext, options?: GainOptions): GainNode;
};
/**
* This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad)
*/
interface Gamepad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/axes) */
readonly axes: ReadonlyArray<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/buttons) */
readonly buttons: ReadonlyArray<GamepadButton>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/connected) */
readonly connected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/index) */
readonly index: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/mapping) */
readonly mapping: GamepadMappingType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Gamepad/timestamp) */
readonly timestamp: DOMHighResTimeStamp;
readonly vibrationActuator: GamepadHapticActuator | null;
}
declare var Gamepad: {
prototype: Gamepad;
new(): Gamepad;
};
/**
* An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton)
*/
interface GamepadButton {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/pressed) */
readonly pressed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/touched) */
readonly touched: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadButton/value) */
readonly value: number;
}
declare var GamepadButton: {
prototype: GamepadButton;
new(): GamepadButton;
};
/**
* This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent)
*/
interface GamepadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadEvent/gamepad) */
readonly gamepad: Gamepad;
}
declare var GamepadEvent: {
prototype: GamepadEvent;
new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;
};
/**
* This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator)
*/
interface GamepadHapticActuator {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GamepadHapticActuator/type) */
readonly type: GamepadHapticActuatorType;
playEffect(type: GamepadHapticEffectType, params?: GamepadEffectParameters): Promise<GamepadHapticsResult>;
reset(): Promise<GamepadHapticsResult>;
}
declare var GamepadHapticActuator: {
prototype: GamepadHapticActuator;
new(): GamepadHapticActuator;
};
interface GenericTransformStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
readonly writable: WritableStream;
}
/**
* An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation)
*/
interface Geolocation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/clearWatch) */
clearWatch(watchId: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/getCurrentPosition) */
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Geolocation/watchPosition) */
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;
}
declare var Geolocation: {
prototype: Geolocation;
new(): Geolocation;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates)
*/
interface GeolocationCoordinates {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/accuracy) */
readonly accuracy: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitude) */
readonly altitude: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/altitudeAccuracy) */
readonly altitudeAccuracy: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/heading) */
readonly heading: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/latitude) */
readonly latitude: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/longitude) */
readonly longitude: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationCoordinates/speed) */
readonly speed: number | null;
}
declare var GeolocationCoordinates: {
prototype: GeolocationCoordinates;
new(): GeolocationCoordinates;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition)
*/
interface GeolocationPosition {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/coords) */
readonly coords: GeolocationCoordinates;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPosition/timestamp) */
readonly timestamp: EpochTimeStamp;
}
declare var GeolocationPosition: {
prototype: GeolocationPosition;
new(): GeolocationPosition;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError) */
interface GeolocationPositionError {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/code) */
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/GeolocationPositionError/message) */
readonly message: string;
readonly PERMISSION_DENIED: 1;
readonly POSITION_UNAVAILABLE: 2;
readonly TIMEOUT: 3;
}
declare var GeolocationPositionError: {
prototype: GeolocationPositionError;
new(): GeolocationPositionError;
readonly PERMISSION_DENIED: 1;
readonly POSITION_UNAVAILABLE: 2;
readonly TIMEOUT: 3;
};
interface GlobalEventHandlersEventMap {
"abort": UIEvent;
"animationcancel": AnimationEvent;
"animationend": AnimationEvent;
"animationiteration": AnimationEvent;
"animationstart": AnimationEvent;
"auxclick": MouseEvent;
"beforeinput": InputEvent;
"beforetoggle": Event;
"blur": FocusEvent;
"cancel": Event;
"canplay": Event;
"canplaythrough": Event;
"change": Event;
"click": MouseEvent;
"close": Event;
"compositionend": CompositionEvent;
"compositionstart": CompositionEvent;
"compositionupdate": CompositionEvent;
"contextmenu": MouseEvent;
"copy": ClipboardEvent;
"cuechange": Event;
"cut": ClipboardEvent;
"dblclick": MouseEvent;
"drag": DragEvent;
"dragend": DragEvent;
"dragenter": DragEvent;
"dragleave": DragEvent;
"dragover": DragEvent;
"dragstart": DragEvent;
"drop": DragEvent;
"durationchange": Event;
"emptied": Event;
"ended": Event;
"error": ErrorEvent;
"focus": FocusEvent;
"focusin": FocusEvent;
"focusout": FocusEvent;
"formdata": FormDataEvent;
"gotpointercapture": PointerEvent;
"input": Event;
"invalid": Event;
"keydown": KeyboardEvent;
"keypress": KeyboardEvent;
"keyup": KeyboardEvent;
"load": Event;
"loadeddata": Event;
"loadedmetadata": Event;
"loadstart": Event;
"lostpointercapture": PointerEvent;
"mousedown": MouseEvent;
"mouseenter": MouseEvent;
"mouseleave": MouseEvent;
"mousemove": MouseEvent;
"mouseout": MouseEvent;
"mouseover": MouseEvent;
"mouseup": MouseEvent;
"paste": ClipboardEvent;
"pause": Event;
"play": Event;
"playing": Event;
"pointercancel": PointerEvent;
"pointerdown": PointerEvent;
"pointerenter": PointerEvent;
"pointerleave": PointerEvent;
"pointermove": PointerEvent;
"pointerout": PointerEvent;
"pointerover": PointerEvent;
"pointerup": PointerEvent;
"progress": ProgressEvent;
"ratechange": Event;
"reset": Event;
"resize": UIEvent;
"scroll": Event;
"scrollend": Event;
"securitypolicyviolation": SecurityPolicyViolationEvent;
"seeked": Event;
"seeking": Event;
"select": Event;
"selectionchange": Event;
"selectstart": Event;
"slotchange": Event;
"stalled": Event;
"submit": SubmitEvent;
"suspend": Event;
"timeupdate": Event;
"toggle": Event;
"touchcancel": TouchEvent;
"touchend": TouchEvent;
"touchmove": TouchEvent;
"touchstart": TouchEvent;
"transitioncancel": TransitionEvent;
"transitionend": TransitionEvent;
"transitionrun": TransitionEvent;
"transitionstart": TransitionEvent;
"volumechange": Event;
"waiting": Event;
"webkitanimationend": Event;
"webkitanimationiteration": Event;
"webkitanimationstart": Event;
"webkittransitionend": Event;
"wheel": WheelEvent;
}
interface GlobalEventHandlers {
/**
* Fires when the user aborts the download.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)
*/
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)
*/
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)
*/
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
*/
onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)
*/
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
*/
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
*/
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
*/
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
*/
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
*/
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
*/
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)
*/
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)
*/
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)
*/
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
*/
onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)
*/
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)
*/
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)
*/
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)
*/
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)
*/
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)
*/
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)
*/
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)
*/
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)
*/
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)
*/
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)
*/
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)
*/
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)
*/
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)
*/
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)
*/
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)
*/
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)
*/
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
*/
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)
*/
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)
*/
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)
*/
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)
*/
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)
*/
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
*/
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */
ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)
*/
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)
*/
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
*/
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationiteration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
*/
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationstart\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
*/
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`ontransitionend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
*/
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
addEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof GlobalEventHandlersEventMap>(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection) */
interface HTMLAllCollection {
/**
* Returns the number of elements in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/length)
*/
readonly length: number;
/**
* Returns the item with index index from the collection (determined by tree order).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/item)
*/
item(nameOrIndex?: string): HTMLCollection | Element | null;
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.
*
* Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAllCollection/namedItem)
*/
namedItem(name: string): HTMLCollection | Element | null;
[index: number]: Element;
}
declare var HTMLAllCollection: {
prototype: HTMLAllCollection;
new(): HTMLAllCollection;
};
/**
* Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement)
*/
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/charset)
*/
charset: string;
/**
* Sets or retrieves the coordinates of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/coords)
*/
coords: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/download) */
download: string;
/**
* Sets or retrieves the language code of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hreflang)
*/
hreflang: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/name)
*/
name: string;
ping: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/referrerPolicy) */
referrerPolicy: string;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rel)
*/
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/rev)
*/
rev: string;
/**
* Sets or retrieves the shape of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/shape)
*/
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/target)
*/
target: string;
/**
* Retrieves or sets the text of the object as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/text)
*/
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/type) */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAnchorElement: {
prototype: HTMLAnchorElement;
new(): HTMLAnchorElement;
};
/**
* Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <area> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement)
*/
interface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {
/**
* Sets or retrieves a text alternative to the graphic.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/alt)
*/
alt: string;
/**
* Sets or retrieves the coordinates of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/coords)
*/
coords: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/download) */
download: string;
/**
* Sets or gets whether clicks in this region cause action.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/noHref)
*/
noHref: boolean;
ping: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/referrerPolicy) */
referrerPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/rel) */
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the shape of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/shape)
*/
shape: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAreaElement/target)
*/
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAreaElement: {
prototype: HTMLAreaElement;
new(): HTMLAreaElement;
};
/**
* Provides access to the properties of <audio> elements, as well as methods to manipulate them. It derives from the HTMLMediaElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAudioElement)
*/
interface HTMLAudioElement extends HTMLMediaElement {
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLAudioElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLAudioElement: {
prototype: HTMLAudioElement;
new(): HTMLAudioElement;
};
/**
* A HTML line break element (<br>). It inherits from HTMLElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement)
*/
interface HTMLBRElement extends HTMLElement {
/**
* Sets or retrieves the side on which floating objects are not to be positioned when any IHTMLBlockElement is inserted into the document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBRElement/clear)
*/
clear: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBRElement: {
prototype: HTMLBRElement;
new(): HTMLBRElement;
};
/**
* Contains the base URI\xA0for a document. This object inherits all of the properties and methods as described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement)
*/
interface HTMLBaseElement extends HTMLElement {
/**
* Gets or sets the baseline URL on which relative links are based.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/href)
*/
href: string;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBaseElement/target)
*/
target: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLBaseElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBaseElement: {
prototype: HTMLBaseElement;
new(): HTMLBaseElement;
};
interface HTMLBodyElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides special properties (beyond those inherited from the regular HTMLElement interface) for manipulating <body> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement)
*/
interface HTMLBodyElement extends HTMLElement, WindowEventHandlers {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/aLink)
*/
aLink: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/background)
*/
background: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/bgColor)
*/
bgColor: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/link)
*/
link: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/text)
*/
text: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLBodyElement/vLink)
*/
vLink: string;
addEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLBodyElementEventMap>(type: K, listener: (this: HTMLBodyElement, ev: HTMLBodyElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLBodyElement: {
prototype: HTMLBodyElement;
new(): HTMLBodyElement;
};
/**
* Provides properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <button> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement)
*/
interface HTMLButtonElement extends HTMLElement, PopoverInvokerElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formAction)
*/
formAction: string;
/**
* Used to override the encoding (formEnctype attribute) specified on the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formEnctype)
*/
formEnctype: string;
/**
* Overrides the submit method attribute previously specified on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formMethod)
*/
formMethod: string;
/**
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formNoValidate)
*/
formNoValidate: boolean;
/**
* Overrides the target attribute on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/formTarget)
*/
formTarget: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/name)
*/
name: string;
/**
* Gets the classification and default behavior of the button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/type)
*/
type: "submit" | "reset" | "button";
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/validity)
*/
readonly validity: ValidityState;
/**
* Sets or retrieves the default or selected value of the control.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/value)
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/willValidate)
*/
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLButtonElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLButtonElement: {
prototype: HTMLButtonElement;
new(): HTMLButtonElement;
};
/**
* Provides properties and methods for manipulating the layout and presentation of <canvas> elements. The HTMLCanvasElement interface also inherits the properties and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement)
*/
interface HTMLCanvasElement extends HTMLElement {
/**
* Gets or sets the height of a canvas element on a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/height)
*/
height: number;
/**
* Gets or sets the width of a canvas element on a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/width)
*/
width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/captureStream) */
captureStream(frameRequestRate?: number): MediaStream;
/**
* Returns an object that provides methods and properties for drawing and manipulating images and graphics on a canvas element in a document. A context object includes information about colors, line widths, fonts, and other graphic parameters that can be drawn on a canvas.
* @param contextId The identifier (ID) of the type of canvas to create. Internet Explorer 9 and Internet Explorer 10 support only a 2-D context using canvas.getContext("2d"); IE11 Preview also supports 3-D or WebGL context using canvas.getContext("experimental-webgl");
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/getContext)
*/
getContext(contextId: "2d", options?: CanvasRenderingContext2DSettings): CanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: ImageBitmapRenderingContextSettings): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: WebGLContextAttributes): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: WebGLContextAttributes): WebGL2RenderingContext | null;
getContext(contextId: string, options?: any): RenderingContext | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toBlob) */
toBlob(callback: BlobCallback, type?: string, quality?: any): void;
/**
* Returns the content of the current canvas as an image that you can use as a source for another canvas or an HTML element.
* @param type The standard MIME type for the image format to return. If you do not specify this parameter, the default value is a PNG format image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/toDataURL)
*/
toDataURL(type?: string, quality?: any): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen) */
transferControlToOffscreen(): OffscreenCanvas;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLCanvasElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLCanvasElement: {
prototype: HTMLCanvasElement;
new(): HTMLCanvasElement;
};
/**
* A generic collection (array-like object similar to arguments) of elements (in document order) and offers methods and properties for selecting from the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection)
*/
interface HTMLCollectionBase {
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/length)
*/
readonly length: number;
/**
* Retrieves an object from various collections.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/item)
*/
item(index: number): Element | null;
[index: number]: Element;
}
interface HTMLCollection extends HTMLCollectionBase {
/**
* Retrieves a select object or an object from an options collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLCollection/namedItem)
*/
namedItem(name: string): Element | null;
}
declare var HTMLCollection: {
prototype: HTMLCollection;
new(): HTMLCollection;
};
interface HTMLCollectionOf<T extends Element> extends HTMLCollectionBase {
item(index: number): T | null;
namedItem(name: string): T | null;
[index: number]: T;
}
/**
* Provides special properties (beyond those of the regular HTMLElement interface it also has available to it by inheritance) for manipulating definition list (<dl>) elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement)
*/
interface HTMLDListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDListElement/compact)
*/
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDListElement: {
prototype: HTMLDListElement;
new(): HTMLDListElement;
};
/**
* Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <data> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement)
*/
interface HTMLDataElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataElement/value) */
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataElement: {
prototype: HTMLDataElement;
new(): HTMLDataElement;
};
/**
* Provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement)
*/
interface HTMLDataListElement extends HTMLElement {
/**
* Returns an HTMLCollection of the option elements of the datalist element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDataListElement/options)
*/
readonly options: HTMLCollectionOf<HTMLOptionElement>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDataListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDataListElement: {
prototype: HTMLDataListElement;
new(): HTMLDataListElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement) */
interface HTMLDetailsElement extends HTMLElement {
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/open) */
open: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDetailsElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDetailsElement: {
prototype: HTMLDetailsElement;
new(): HTMLDetailsElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement) */
interface HTMLDialogElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/open) */
open: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/returnValue) */
returnValue: string;
/**
* Closes the dialog element.
*
* The argument, if provided, provides a return value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close)
*/
close(returnValue?: string): void;
/**
* Displays the dialog element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/show)
*/
show(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/showModal) */
showModal(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDialogElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDialogElement: {
prototype: HTMLDialogElement;
new(): HTMLDialogElement;
};
/** @deprecated */
interface HTMLDirectoryElement extends HTMLElement {
/** @deprecated */
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDirectoryElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDirectoryElement: {
prototype: HTMLDirectoryElement;
new(): HTMLDirectoryElement;
};
/**
* Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <div> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement)
*/
interface HTMLDivElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDivElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLDivElement: {
prototype: HTMLDivElement;
new(): HTMLDivElement;
};
/** @deprecated use Document */
interface HTMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: HTMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/**
* Any HTML element. Some elements directly implement this interface, while others implement it via an interface that inherits it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement)
*/
interface HTMLElement extends Element, ElementCSSInlineStyle, ElementContentEditable, GlobalEventHandlers, HTMLOrSVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKey) */
accessKey: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/accessKeyLabel) */
readonly accessKeyLabel: string;
autocapitalize: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dir) */
dir: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/draggable) */
draggable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidden) */
hidden: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/inert) */
inert: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/innerText) */
innerText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lang) */
lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetHeight) */
readonly offsetHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetLeft) */
readonly offsetLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetParent) */
readonly offsetParent: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetTop) */
readonly offsetTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/offsetWidth) */
readonly offsetWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/outerText) */
outerText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/popover) */
popover: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/spellcheck) */
spellcheck: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/title) */
title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/translate) */
translate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/attachInternals) */
attachInternals(): ElementInternals;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/click) */
click(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/hidePopover) */
hidePopover(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/showPopover) */
showPopover(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/togglePopover) */
togglePopover(force?: boolean): boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLElement: {
prototype: HTMLElement;
new(): HTMLElement;
};
/**
* Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <embed> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLEmbedElement)
*/
interface HTMLEmbedElement extends HTMLElement {
/** @deprecated */
align: string;
/** Sets or retrieves the height of the object. */
height: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*/
name: string;
/** Sets or retrieves a URL to be loaded by the object. */
src: string;
type: string;
/** Sets or retrieves the width of the object. */
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLEmbedElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLEmbedElement: {
prototype: HTMLEmbedElement;
new(): HTMLEmbedElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <fieldset> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement)
*/
interface HTMLFieldSetElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/disabled) */
disabled: boolean;
/**
* Returns an HTMLCollection of the form controls in the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/elements)
*/
readonly elements: HTMLCollection;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/form)
*/
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/name) */
name: string;
/**
* Returns the string "fieldset".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/type)
*/
readonly type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/validity)
*/
readonly validity: ValidityState;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/willValidate)
*/
readonly willValidate: boolean;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFieldSetElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFieldSetElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLFieldSetElement: {
prototype: HTMLFieldSetElement;
new(): HTMLFieldSetElement;
};
/**
* Implements the document object model (DOM) representation of the font element. The HTML Font Element <font> defines the font size, font face and color of text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement)
*/
interface HTMLFontElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/color)
*/
color: string;
/**
* Sets or retrieves the current typeface family.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/face)
*/
face: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFontElement/size)
*/
size: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFontElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFontElement: {
prototype: HTMLFontElement;
new(): HTMLFontElement;
};
/**
* A collection of HTML form control elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection)
*/
interface HTMLFormControlsCollection extends HTMLCollectionBase {
/**
* Returns the item with ID or name name from the collection.
*
* If there are multiple matching items, then a RadioNodeList object containing all those elements is returned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormControlsCollection/namedItem)
*/
namedItem(name: string): RadioNodeList | Element | null;
}
declare var HTMLFormControlsCollection: {
prototype: HTMLFormControlsCollection;
new(): HTMLFormControlsCollection;
};
/**
* A <form> element in the DOM; it allows access to and in some cases modification of aspects of the form, as well as access to its component elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement)
*/
interface HTMLFormElement extends HTMLElement {
/**
* Sets or retrieves a list of character encodings for input data that must be accepted by the server processing the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/acceptCharset)
*/
acceptCharset: string;
/**
* Sets or retrieves the URL to which the form content is sent for processing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/action)
*/
action: string;
/**
* Specifies whether autocomplete is applied to an editable text field.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/autocomplete)
*/
autocomplete: AutoFillBase;
/**
* Retrieves a collection, in source order, of all controls in a given form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/elements)
*/
readonly elements: HTMLFormControlsCollection;
/**
* Sets or retrieves the MIME encoding for the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/encoding)
*/
encoding: string;
/**
* Sets or retrieves the encoding type for the form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/enctype)
*/
enctype: string;
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/length)
*/
readonly length: number;
/**
* Sets or retrieves how to send the form data to the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/method)
*/
method: string;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/name)
*/
name: string;
/**
* Designates a form that is not validated when submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/noValidate)
*/
noValidate: boolean;
rel: string;
readonly relList: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/target)
*/
target: string;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reportValidity) */
reportValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/requestSubmit) */
requestSubmit(submitter?: HTMLElement | null): void;
/**
* Fires when the user resets a form.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset)
*/
reset(): void;
/**
* Fires when a FORM is about to be submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit)
*/
submit(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFormElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Element;
[name: string]: any;
}
declare var HTMLFormElement: {
prototype: HTMLFormElement;
new(): HTMLFormElement;
};
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement)
*/
interface HTMLFrameElement extends HTMLElement {
/**
* Retrieves the document object of the page or frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/frameBorder)
*/
frameBorder: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/longDesc)
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginHeight)
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/marginWidth)
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/name)
*/
name: string;
/**
* Sets or retrieves whether the user can resize the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/noResize)
*/
noResize: boolean;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/scrolling)
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameElement/src)
*/
src: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameElement: {
prototype: HTMLFrameElement;
new(): HTMLFrameElement;
};
interface HTMLFrameSetElementEventMap extends HTMLElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides special properties (beyond those of the regular HTMLElement interface they also inherit) for manipulating <frameset> elements.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFrameSetElement)
*/
interface HTMLFrameSetElement extends HTMLElement, WindowEventHandlers {
/**
* Sets or retrieves the frame widths of the object.
* @deprecated
*/
cols: string;
/**
* Sets or retrieves the frame heights of the object.
* @deprecated
*/
rows: string;
addEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLFrameSetElementEventMap>(type: K, listener: (this: HTMLFrameSetElement, ev: HTMLFrameSetElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLFrameSetElement: {
prototype: HTMLFrameSetElement;
new(): HTMLFrameSetElement;
};
/**
* Provides special properties (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating <hr> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHRElement)
*/
interface HTMLHRElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** @deprecated */
color: string;
/**
* Sets or retrieves whether the horizontal rule is drawn with 3-D shading.
* @deprecated
*/
noShade: boolean;
/** @deprecated */
size: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHRElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHRElement: {
prototype: HTMLHRElement;
new(): HTMLHRElement;
};
/**
* Contains the descriptive information, or metadata, for a document. This object inherits all of the properties and methods described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadElement)
*/
interface HTMLHeadElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadElement: {
prototype: HTMLHeadElement;
new(): HTMLHeadElement;
};
/**
* The different heading elements. It inherits methods and properties from the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement)
*/
interface HTMLHeadingElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHeadingElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHeadingElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHeadingElement: {
prototype: HTMLHeadingElement;
new(): HTMLHeadingElement;
};
/**
* Serves as the root node for a given HTML document. This object inherits the properties and methods described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement)
*/
interface HTMLHtmlElement extends HTMLElement {
/**
* Sets or retrieves the DTD version that governs the current document.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLHtmlElement/version)
*/
version: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLHtmlElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLHtmlElement: {
prototype: HTMLHtmlElement;
new(): HTMLHtmlElement;
};
interface HTMLHyperlinkElementUtils {
/**
* Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to change the URL's fragment (ignores leading "#").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hash)
*/
hash: string;
/**
* Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to change the URL's host and port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/host)
*/
host: string;
/**
* Returns the hyperlink's URL's host.
*
* Can be set, to change the URL's host.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/hostname)
*/
hostname: string;
/**
* Returns the hyperlink's URL.
*
* Can be set, to change the URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/href)
*/
href: string;
toString(): string;
/**
* Returns the hyperlink's URL's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/origin)
*/
readonly origin: string;
/**
* Returns the hyperlink's URL's password.
*
* Can be set, to change the URL's password.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/password)
*/
password: string;
/**
* Returns the hyperlink's URL's path.
*
* Can be set, to change the URL's path.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/pathname)
*/
pathname: string;
/**
* Returns the hyperlink's URL's port.
*
* Can be set, to change the URL's port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/port)
*/
port: string;
/**
* Returns the hyperlink's URL's scheme.
*
* Can be set, to change the URL's scheme.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/protocol)
*/
protocol: string;
/**
* Returns the hyperlink's URL's query (includes leading "?" if non-empty).
*
* Can be set, to change the URL's query (ignores leading "?").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/search)
*/
search: string;
/**
* Returns the hyperlink's URL's username.
*
* Can be set, to change the URL's username.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLAnchorElement/username)
*/
username: string;
}
/**
* Provides special properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of inline frame elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement)
*/
interface HTMLIFrameElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/align)
*/
align: string;
allow: string;
allowFullscreen: boolean;
/**
* Retrieves the document object of the page or frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentDocument)
*/
readonly contentDocument: Document | null;
/**
* Retrieves the object of the specified.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/contentWindow)
*/
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves whether to display a border for the frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/frameBorder)
*/
frameBorder: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/height)
*/
height: string;
loading: string;
/**
* Sets or retrieves a URI to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/longDesc)
*/
longDesc: string;
/**
* Sets or retrieves the top and bottom margin heights before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginHeight)
*/
marginHeight: string;
/**
* Sets or retrieves the left and right margin widths before displaying the text in a frame.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/marginWidth)
*/
marginWidth: string;
/**
* Sets or retrieves the frame name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/name)
*/
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/referrerPolicy) */
referrerPolicy: ReferrerPolicy;
readonly sandbox: DOMTokenList;
/**
* Sets or retrieves whether the frame can be scrolled.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/scrolling)
*/
scrolling: string;
/**
* Sets or retrieves a URL to be loaded by the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/src)
*/
src: string;
/**
* Sets or retrives the content of the page that is to contain.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/srcdoc)
*/
srcdoc: string;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLIFrameElement/width)
*/
width: string;
getSVGDocument(): Document | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLIFrameElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLIFrameElement: {
prototype: HTMLIFrameElement;
new(): HTMLIFrameElement;
};
/**
* Provides special properties and methods for manipulating <img> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement)
*/
interface HTMLImageElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/align)
*/
align: string;
/**
* Sets or retrieves a text alternative to the graphic.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/alt)
*/
alt: string;
/**
* Specifies the properties of a border drawn around an object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/border)
*/
border: string;
/**
* Retrieves whether the object is fully loaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/complete)
*/
readonly complete: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/crossOrigin) */
crossOrigin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/currentSrc) */
readonly currentSrc: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decoding) */
decoding: "async" | "sync" | "auto";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/fetchPriority) */
fetchPriority: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/height)
*/
height: number;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/hspace)
*/
hspace: number;
/**
* Sets or retrieves whether the image is a server-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/isMap)
*/
isMap: boolean;
/**
* Sets or retrieves the policy for loading image elements that are outside the viewport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/loading)
*/
loading: "eager" | "lazy";
/**
* Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/longDesc)
*/
longDesc: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/lowsrc)
*/
lowsrc: string;
/**
* Sets or retrieves the name of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/name)
*/
name: string;
/**
* The original height of the image resource before sizing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalHeight)
*/
readonly naturalHeight: number;
/**
* The original width of the image resource before sizing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/naturalWidth)
*/
readonly naturalWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/referrerPolicy) */
referrerPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/sizes) */
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/srcset) */
srcset: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/useMap)
*/
useMap: string;
/**
* Sets or retrieves the vertical margin for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/vspace)
*/
vspace: number;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/width)
*/
width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLImageElement/decode) */
decode(): Promise<void>;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLImageElement: {
prototype: HTMLImageElement;
new(): HTMLImageElement;
};
/**
* Provides special properties and methods for manipulating the options, layout, and presentation of <input> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement)
*/
interface HTMLInputElement extends HTMLElement, PopoverInvokerElement {
/** Sets or retrieves a comma-separated list of content types. */
accept: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*/
align: string;
/** Sets or retrieves a text alternative to the graphic. */
alt: string;
/**
* Specifies whether autocomplete is applied to an editable text field.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/autocomplete)
*/
autocomplete: AutoFill;
capture: string;
/** Sets or retrieves the state of the check box or radio button. */
checked: boolean;
/** Sets or retrieves the state of the check box or radio button. */
defaultChecked: boolean;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/disabled) */
disabled: boolean;
/**
* Returns a FileList object on a file type input object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/files)
*/
files: FileList | null;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/**
* Overrides the action attribute (where the data on a form is sent) on the parent form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formAction)
*/
formAction: string;
/**
* Used to override the encoding (formEnctype attribute) specified on the form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formEnctype)
*/
formEnctype: string;
/**
* Overrides the submit method attribute previously specified on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formMethod)
*/
formMethod: string;
/**
* Overrides any validation or required attributes on a form or form elements to allow it to be submitted without validation. This can be used to create a "save draft"-type submit option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formNoValidate)
*/
formNoValidate: boolean;
/**
* Overrides the target attribute on a form element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/formTarget)
*/
formTarget: string;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/height)
*/
height: number;
/** When set, overrides the rendering of checkbox controls so that the current value is not visible. */
indeterminate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement> | null;
/**
* Specifies the ID of a pre-defined datalist of options for an input element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/list)
*/
readonly list: HTMLDataListElement | null;
/** Defines the maximum acceptable value for an input element with type="number".When used with the min and step attributes, lets you control the range and increment (such as only even numbers) that the user can enter into an input field. */
max: string;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
/** Defines the minimum acceptable value for an input element with type="number". When used with the max and step attributes, lets you control the range and increment (such as even numbers only) that the user can enter into an input field. */
min: string;
minLength: number;
/**
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/multiple)
*/
multiple: boolean;
/** Sets or retrieves the name of the object. */
name: string;
/**
* Gets or sets a string containing a regular expression that the user's input must match.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/pattern)
*/
pattern: string;
/**
* Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/placeholder)
*/
placeholder: string;
readOnly: boolean;
/**
* When present, marks an element that can't be submitted without a value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/required)
*/
required: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/selectionDirection) */
selectionDirection: "forward" | "backward" | "none" | null;
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number | null;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number | null;
size: number;
/** The address or URL of the a media resource that is to be considered. */
src: string;
/** Defines an increment or jump between values that you want to allow the user to enter. When used with the max and min attributes, lets you control the range and increment (for example, allow only even numbers) that the user can enter into an input field. */
step: string;
/** Returns the content type of the object. */
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
* @deprecated
*/
useMap: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/validity)
*/
readonly validity: ValidityState;
/** Returns the value of the data at the cursor's current position. */
value: string;
/** Returns a Date object representing the form control's value, if applicable; otherwise, returns null. Can be set, to change the value. Throws an "InvalidStateError" DOMException if the control isn't date- or time-based. */
valueAsDate: Date | null;
/** Returns the input field value as a number. */
valueAsNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitEntries) */
readonly webkitEntries: ReadonlyArray<FileSystemEntry>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/webkitdirectory) */
webkitdirectory: boolean;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/width)
*/
width: number;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/reportValidity) */
reportValidity(): boolean;
/**
* Makes the selection equal to the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select)
*/
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setRangeText) */
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/setSelectionRange)
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/showPicker) */
showPicker(): void;
/**
* Decrements a range input control's value by the value given by the Step attribute. If the optional parameter is used, it will decrement the input control's step value multiplied by the parameter's value.
* @param n Value to decrement the value by.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepDown)
*/
stepDown(n?: number): void;
/**
* Increments a range input control's value by the value given by the Step attribute. If the optional parameter is used, will increment the input control's value by that value.
* @param n Value to increment the value by.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/stepUp)
*/
stepUp(n?: number): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLInputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLInputElement: {
prototype: HTMLInputElement;
new(): HTMLInputElement;
};
/**
* Exposes specific properties and methods (beyond those defined by regular HTMLElement interface it also has available to it by inheritance) for manipulating list elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLIElement)
*/
interface HTMLLIElement extends HTMLElement {
/** @deprecated */
type: string;
/** Sets or retrieves the value of a list item. */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLIElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLIElement: {
prototype: HTMLLIElement;
new(): HTMLLIElement;
};
/**
* Gives access to properties specific to <label> elements. It inherits methods and properties from the base HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement)
*/
interface HTMLLabelElement extends HTMLElement {
/**
* Returns the form control that is associated with this element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/control)
*/
readonly control: HTMLElement | null;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the object to which the given label object is assigned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLabelElement/htmlFor)
*/
htmlFor: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLabelElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLabelElement: {
prototype: HTMLLabelElement;
new(): HTMLLabelElement;
};
/**
* The HTMLLegendElement is an interface allowing to access properties of the <legend> elements. It inherits properties and methods from the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLegendElement)
*/
interface HTMLLegendElement extends HTMLElement {
/** @deprecated */
align: string;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLegendElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLegendElement: {
prototype: HTMLLegendElement;
new(): HTMLLegendElement;
};
/**
* Reference information for external resources and the relationship of those resources to a document and vice-versa. This object inherits all of the properties and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement)
*/
interface HTMLLinkElement extends HTMLElement, LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/as) */
as: string;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/crossOrigin) */
crossOrigin: string | null;
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/fetchPriority) */
fetchPriority: string;
/**
* Sets or retrieves a destination URL or an anchor point.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/href)
*/
href: string;
/**
* Sets or retrieves the language code of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/hreflang)
*/
hreflang: string;
imageSizes: string;
imageSrcset: string;
integrity: string;
/** Sets or retrieves the media type. */
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/referrerPolicy) */
referrerPolicy: string;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/rel)
*/
rel: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/relList) */
readonly relList: DOMTokenList;
/**
* Sets or retrieves the relationship between the object and the destination of the link.
* @deprecated
*/
rev: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sizes) */
readonly sizes: DOMTokenList;
/**
* Sets or retrieves the window or frame at which to target content.
* @deprecated
*/
target: string;
/** Sets or retrieves the MIME type of the object. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLLinkElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLLinkElement: {
prototype: HTMLLinkElement;
new(): HTMLLinkElement;
};
/**
* Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of map elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement)
*/
interface HTMLMapElement extends HTMLElement {
/**
* Retrieves a collection of the area objects defined for the given map object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/areas)
*/
readonly areas: HTMLCollection;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMapElement/name)
*/
name: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMapElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMapElement: {
prototype: HTMLMapElement;
new(): HTMLMapElement;
};
/**
* Provides methods to manipulate <marquee> elements.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMarqueeElement)
*/
interface HTMLMarqueeElement extends HTMLElement {
/** @deprecated */
behavior: string;
/** @deprecated */
bgColor: string;
/** @deprecated */
direction: string;
/** @deprecated */
height: string;
/** @deprecated */
hspace: number;
/** @deprecated */
loop: number;
/** @deprecated */
scrollAmount: number;
/** @deprecated */
scrollDelay: number;
/** @deprecated */
trueSpeed: boolean;
/** @deprecated */
vspace: number;
/** @deprecated */
width: string;
/** @deprecated */
start(): void;
/** @deprecated */
stop(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMarqueeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLMarqueeElement: {
prototype: HTMLMarqueeElement;
new(): HTMLMarqueeElement;
};
interface HTMLMediaElementEventMap extends HTMLElementEventMap {
"encrypted": MediaEncryptedEvent;
"waitingforkey": Event;
}
/**
* Adds to HTMLElement the properties and methods needed to support basic media-related capabilities\xA0that are\xA0common to audio and video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement)
*/
interface HTMLMediaElement extends HTMLElement {
/**
* Gets or sets a value that indicates whether to start playing the media automatically.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/autoplay)
*/
autoplay: boolean;
/**
* Gets a collection of buffered time ranges.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/buffered)
*/
readonly buffered: TimeRanges;
/**
* Gets or sets a flag that indicates whether the client provides a set of controls for the media (in case the developer does not include controls for the player).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/controls)
*/
controls: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/crossOrigin) */
crossOrigin: string | null;
/**
* Gets the address or URL of the current media resource that is selected by IHTMLMediaElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentSrc)
*/
readonly currentSrc: string;
/**
* Gets or sets the current playback position, in seconds.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/currentTime)
*/
currentTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultMuted) */
defaultMuted: boolean;
/**
* Gets or sets the default playback rate when the user is not using fast forward or reverse for a video or audio resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)
*/
defaultPlaybackRate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/disableRemotePlayback) */
disableRemotePlayback: boolean;
/**
* Returns the duration in seconds of the current media resource. A NaN value is returned if duration is not available, or Infinity if the media resource is streaming.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/duration)
*/
readonly duration: number;
/**
* Gets information about whether the playback has ended or not.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended)
*/
readonly ended: boolean;
/**
* Returns an object representing the current error state of the audio or video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/error)
*/
readonly error: MediaError | null;
/**
* Gets or sets a flag to specify whether playback should restart after it completes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loop)
*/
loop: boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/mediaKeys)
*/
readonly mediaKeys: MediaKeys | null;
/**
* Gets or sets a flag that indicates whether the audio (either audio or the audio track on video media) is muted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/muted)
*/
muted: boolean;
/**
* Gets the current network activity for the element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/networkState)
*/
readonly networkState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/encrypted_event) */
onencrypted: ((this: HTMLMediaElement, ev: MediaEncryptedEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waitingforkey_event) */
onwaitingforkey: ((this: HTMLMediaElement, ev: Event) => any) | null;
/**
* Gets a flag that specifies whether playback is paused.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/paused)
*/
readonly paused: boolean;
/**
* Gets or sets the current rate of speed for the media resource to play. This speed is expressed as a multiple of the normal speed of the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playbackRate)
*/
playbackRate: number;
/**
* Gets TimeRanges for the current media resource that has been played.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/played)
*/
readonly played: TimeRanges;
/**
* Gets or sets a value indicating what data should be preloaded, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preload)
*/
preload: "none" | "metadata" | "auto" | "";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/preservesPitch) */
preservesPitch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/readyState) */
readonly readyState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/remote) */
readonly remote: RemotePlayback;
/**
* Returns a TimeRanges object that represents the ranges of the current media resource that can be seeked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seekable)
*/
readonly seekable: TimeRanges;
/**
* Gets a flag that indicates whether the client is currently moving to a new playback position in the media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking)
*/
readonly seeking: boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/sinkId)
*/
readonly sinkId: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/srcObject) */
srcObject: MediaProvider | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/textTracks) */
readonly textTracks: TextTrackList;
/**
* Gets or sets the volume level for audio portions of the media element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volume)
*/
volume: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/addTextTrack) */
addTextTrack(kind: TextTrackKind, label?: string, language?: string): TextTrack;
/**
* Returns a string that specifies whether the client can play a given media resource type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canPlayType)
*/
canPlayType(type: string): CanPlayTypeResult;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/fastSeek) */
fastSeek(time: number): void;
/**
* Resets the audio or video object and loads a new media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/load)
*/
load(): void;
/**
* Pauses the current playback and sets paused to TRUE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause)
*/
pause(): void;
/**
* Loads and starts playback of a media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play)
*/
play(): Promise<void>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setMediaKeys)
*/
setMediaKeys(mediaKeys: MediaKeys | null): Promise<void>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/setSinkId)
*/
setSinkId(sinkId: string): Promise<void>;
readonly NETWORK_EMPTY: 0;
readonly NETWORK_IDLE: 1;
readonly NETWORK_LOADING: 2;
readonly NETWORK_NO_SOURCE: 3;
readonly HAVE_NOTHING: 0;
readonly HAVE_METADATA: 1;
readonly HAVE_CURRENT_DATA: 2;
readonly HAVE_FUTURE_DATA: 3;
readonly HAVE_ENOUGH_DATA: 4;
addEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLMediaElementEventMap>(type: K, listener: (this: HTMLMediaElement, ev: HTMLMediaElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMediaElement: {
prototype: HTMLMediaElement;
new(): HTMLMediaElement;
readonly NETWORK_EMPTY: 0;
readonly NETWORK_IDLE: 1;
readonly NETWORK_LOADING: 2;
readonly NETWORK_NO_SOURCE: 3;
readonly HAVE_NOTHING: 0;
readonly HAVE_METADATA: 1;
readonly HAVE_CURRENT_DATA: 2;
readonly HAVE_FUTURE_DATA: 3;
readonly HAVE_ENOUGH_DATA: 4;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement) */
interface HTMLMenuElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMenuElement/compact)
*/
compact: boolean;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMenuElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMenuElement: {
prototype: HTMLMenuElement;
new(): HTMLMenuElement;
};
/**
* Contains descriptive metadata about a document. It\xA0inherits all of the properties and methods described in the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMetaElement)
*/
interface HTMLMetaElement extends HTMLElement {
/** Gets or sets meta-information to associate with httpEquiv or name. */
content: string;
/** Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header. */
httpEquiv: string;
media: string;
/** Sets or retrieves the value specified in the content attribute of the meta object. */
name: string;
/**
* Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
* @deprecated
*/
scheme: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMetaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMetaElement: {
prototype: HTMLMetaElement;
new(): HTMLMetaElement;
};
/**
* The HTML <meter> elements expose the HTMLMeterElement interface, which provides special properties and methods (beyond the HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <meter> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement)
*/
interface HTMLMeterElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/high) */
high: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/low) */
low: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/max) */
max: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/min) */
min: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/optimum) */
optimum: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMeterElement/value) */
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLMeterElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLMeterElement: {
prototype: HTMLMeterElement;
new(): HTMLMeterElement;
};
/**
* Provides special properties (beyond the regular methods and properties available through the HTMLElement interface they also have available to them by inheritance) for manipulating modification elements, that is <del> and <ins>.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement)
*/
interface HTMLModElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/cite)
*/
cite: string;
/**
* Sets or retrieves the date and time of a modification to the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLModElement/dateTime)
*/
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLModElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLModElement: {
prototype: HTMLModElement;
new(): HTMLModElement;
};
/**
* Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating ordered list elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement)
*/
interface HTMLOListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/compact)
*/
compact: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/reversed) */
reversed: boolean;
/**
* The starting number.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/start)
*/
start: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOListElement/type) */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOListElement: {
prototype: HTMLOListElement;
new(): HTMLOListElement;
};
/**
* Provides special properties and methods (beyond those on the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <object> element, representing external resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement)
*/
interface HTMLObjectElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/align)
*/
align: string;
/**
* Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/archive)
*/
archive: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/border)
*/
border: string;
/**
* Sets or retrieves the URL of the file containing the compiled Java class.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/code)
*/
code: string;
/**
* Sets or retrieves the URL of the component.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeBase)
*/
codeBase: string;
/**
* Sets or retrieves the Internet media type for the code associated with the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/codeType)
*/
codeType: string;
/**
* Retrieves the document object of the page or frame.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentDocument)
*/
readonly contentDocument: Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/contentWindow) */
readonly contentWindow: WindowProxy | null;
/**
* Sets or retrieves the URL that references the data of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/data)
*/
data: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/declare)
*/
declare: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the height of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/height)
*/
height: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/hspace)
*/
hspace: number;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/name)
*/
name: string;
/**
* Sets or retrieves a message to be displayed while an object is loading.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/standby)
*/
standby: string;
/**
* Sets or retrieves the MIME type of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/type)
*/
type: string;
/**
* Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/useMap)
*/
useMap: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/validity)
*/
readonly validity: ValidityState;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/vspace)
*/
vspace: number;
/**
* Sets or retrieves the width of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/width)
*/
width: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/willValidate)
*/
readonly willValidate: boolean;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/checkValidity)
*/
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/getSVGDocument) */
getSVGDocument(): Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLObjectElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLObjectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLObjectElement: {
prototype: HTMLObjectElement;
new(): HTMLObjectElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement)
*/
interface HTMLOptGroupElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/disabled) */
disabled: boolean;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptGroupElement/label)
*/
label: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptGroupElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptGroupElement: {
prototype: HTMLOptGroupElement;
new(): HTMLOptGroupElement;
};
/**
* <option> elements and inherits all classes and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement)
*/
interface HTMLOptionElement extends HTMLElement {
/**
* Sets or retrieves the status of an option.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/defaultSelected)
*/
defaultSelected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/form)
*/
readonly form: HTMLFormElement | null;
/**
* Sets or retrieves the ordinal position of an option in a list box.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/index)
*/
readonly index: number;
/**
* Sets or retrieves a value that you can use to implement your own label functionality for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/label)
*/
label: string;
/**
* Sets or retrieves whether the option in the list box is the default item.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/selected)
*/
selected: boolean;
/**
* Sets or retrieves the text string specified by the option tag.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/text)
*/
text: string;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionElement/value)
*/
value: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOptionElement: {
prototype: HTMLOptionElement;
new(): HTMLOptionElement;
};
/**
* HTMLOptionsCollection is an interface representing a collection of HTML option elements (in document order) and offers methods and properties for traversing the list as well as optionally altering its items. This type is returned solely by the "options" property of select.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection)
*/
interface HTMLOptionsCollection extends HTMLCollectionOf<HTMLOptionElement> {
/**
* Returns the number of elements in the collection.
*
* When set to a smaller number, truncates the number of option elements in the corresponding container.
*
* When set to a greater number, adds new blank option elements to that container.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/length)
*/
length: number;
/**
* Returns the index of the first selected item, if any, or \u22121 if there is no selected item.
*
* Can be set, to change the selection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/selectedIndex)
*/
selectedIndex: number;
/**
* Inserts element before the node given by before.
*
* The before argument can be a number, in which case element is inserted before the item with that number, or an element from the collection, in which case element is inserted before that element.
*
* If before is omitted, null, or a number out of range, then element will be added at the end of the list.
*
* This method will throw a "HierarchyRequestError" DOMException if element is an ancestor of the element into which it is to be inserted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Removes the item with index index from the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOptionsCollection/remove)
*/
remove(index: number): void;
}
declare var HTMLOptionsCollection: {
prototype: HTMLOptionsCollection;
new(): HTMLOptionsCollection;
};
interface HTMLOrSVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/autofocus) */
autofocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
readonly dataset: DOMStringMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */
nonce?: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */
tabIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/blur) */
blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/focus) */
focus(options?: FocusOptions): void;
}
/**
* Provides properties and methods (beyond those inherited from HTMLElement) for manipulating the layout and presentation of <output> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement)
*/
interface HTMLOutputElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/defaultValue) */
defaultValue: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/form) */
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/htmlFor) */
readonly htmlFor: DOMTokenList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/name) */
name: string;
/**
* Returns the string "output".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/type)
*/
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validationMessage) */
readonly validationMessage: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/validity) */
readonly validity: ValidityState;
/**
* Returns the element's current value.
*
* Can be set, to change the value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/value)
*/
value: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/willValidate) */
readonly willValidate: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/checkValidity) */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/reportValidity) */
reportValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLOutputElement/setCustomValidity) */
setCustomValidity(error: string): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLOutputElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLOutputElement: {
prototype: HTMLOutputElement;
new(): HTMLOutputElement;
};
/**
* Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <p> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement)
*/
interface HTMLParagraphElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParagraphElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParagraphElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLParagraphElement: {
prototype: HTMLParagraphElement;
new(): HTMLParagraphElement;
};
/**
* Provides special properties (beyond those of the regular HTMLElement object interface it inherits) for manipulating <param> elements, representing a pair of a key and a value that acts as a parameter for an <object> element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement)
*/
interface HTMLParamElement extends HTMLElement {
/**
* Sets or retrieves the name of an input parameter for an element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/name)
*/
name: string;
/**
* Sets or retrieves the content type of the resource designated by the value attribute.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/type)
*/
type: string;
/**
* Sets or retrieves the value of an input parameter for an element.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/value)
*/
value: string;
/**
* Sets or retrieves the data type of the value attribute.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLParamElement/valueType)
*/
valueType: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLParamElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLParamElement: {
prototype: HTMLParamElement;
new(): HTMLParamElement;
};
/**
* A <picture> HTML element. It doesn't implement specific properties or methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPictureElement)
*/
interface HTMLPictureElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPictureElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPictureElement: {
prototype: HTMLPictureElement;
new(): HTMLPictureElement;
};
/**
* Exposes specific properties and methods (beyond those of the HTMLElement interface it also has available to it by inheritance) for manipulating a block of preformatted text (<pre>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement)
*/
interface HTMLPreElement extends HTMLElement {
/**
* Sets or gets a value that you can use to implement your own width functionality for the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLPreElement/width)
*/
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLPreElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLPreElement: {
prototype: HTMLPreElement;
new(): HTMLPreElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of <progress> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement)
*/
interface HTMLProgressElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Defines the maximum, or "done" value for a progress element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/max)
*/
max: number;
/**
* Returns the quotient of value/max when the value attribute is set (determinate progress bar), or -1 when the value attribute is missing (indeterminate progress bar).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/position)
*/
readonly position: number;
/**
* Sets or gets the current value of a progress element. The value must be a non-negative number between 0 and the max value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLProgressElement/value)
*/
value: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLProgressElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLProgressElement: {
prototype: HTMLProgressElement;
new(): HTMLProgressElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating quoting elements, like <blockquote> and <q>, but not the <cite> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement)
*/
interface HTMLQuoteElement extends HTMLElement {
/**
* Sets or retrieves reference information about the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLQuoteElement/cite)
*/
cite: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLQuoteElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLQuoteElement: {
prototype: HTMLQuoteElement;
new(): HTMLQuoteElement;
};
/**
* HTML <script> elements expose the HTMLScriptElement interface, which provides special properties and methods for manipulating the behavior and execution of <script> elements (beyond the inherited HTMLElement interface).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement)
*/
interface HTMLScriptElement extends HTMLElement {
async: boolean;
/**
* Sets or retrieves the character set used to encode the object.
* @deprecated
*/
charset: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/crossOrigin) */
crossOrigin: string | null;
/** Sets or retrieves the status of the script. */
defer: boolean;
/**
* Sets or retrieves the event for which the script is written.
* @deprecated
*/
event: string;
fetchPriority: string;
/**
* Sets or retrieves the object that is bound to the event script.
* @deprecated
*/
htmlFor: string;
integrity: string;
noModule: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/referrerPolicy) */
referrerPolicy: string;
/** Retrieves the URL to an external file that contains the source code or data. */
src: string;
/** Retrieves or sets the text of the object as a string. */
text: string;
/** Sets or retrieves the MIME type for the associated scripting engine. */
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLScriptElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLScriptElement: {
prototype: HTMLScriptElement;
new(): HTMLScriptElement;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLScriptElement/supports_static) */
supports(type: string): boolean;
};
/**
* A <select> HTML Element. These elements also share all of the properties and methods of other HTML elements via the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement)
*/
interface HTMLSelectElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/autocomplete) */
autocomplete: AutoFill;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/disabled) */
disabled: boolean;
/**
* Retrieves a reference to the form that the object is embedded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/form)
*/
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/**
* Sets or retrieves the number of objects in a collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/length)
*/
length: number;
/**
* Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/multiple)
*/
multiple: boolean;
/**
* Sets or retrieves the name of the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/name)
*/
name: string;
/**
* Returns an HTMLOptionsCollection of the list of options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/options)
*/
readonly options: HTMLOptionsCollection;
/**
* When present, marks an element that can't be submitted without a value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/required)
*/
required: boolean;
/**
* Sets or retrieves the index of the selected option in a select object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedIndex)
*/
selectedIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/selectedOptions) */
readonly selectedOptions: HTMLCollectionOf<HTMLOptionElement>;
/**
* Sets or retrieves the number of rows in the list box.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/size)
*/
size: number;
/**
* Retrieves the type of select control based on the value of the MULTIPLE attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/type)
*/
readonly type: string;
/**
* Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validationMessage)
*/
readonly validationMessage: string;
/**
* Returns a ValidityState object that represents the validity states of an element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/validity)
*/
readonly validity: ValidityState;
/**
* Sets or retrieves the value which is returned to the server when the form control is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/value)
*/
value: string;
/**
* Returns whether an element will successfully validate based on forms validation rules and constraints.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/willValidate)
*/
readonly willValidate: boolean;
/**
* Adds an element to the areas, controlRange, or options collection.
* @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
* @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/add)
*/
add(element: HTMLOptionElement | HTMLOptGroupElement, before?: HTMLElement | number | null): void;
/**
* Returns whether a form will validate when it is submitted, without having to submit it.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/checkValidity)
*/
checkValidity(): boolean;
/**
* Retrieves a select object or an object from an options collection.
* @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
* @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/item)
*/
item(index: number): HTMLOptionElement | null;
/**
* Retrieves a select object or an object from an options collection.
* @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/namedItem)
*/
namedItem(name: string): HTMLOptionElement | null;
/**
* Removes an element from the collection.
* @param index Number that specifies the zero-based index of the element to remove from the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/remove)
*/
remove(): void;
remove(index: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/reportValidity) */
reportValidity(): boolean;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/setCustomValidity)
*/
setCustomValidity(error: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSelectElement/showPicker) */
showPicker(): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSelectElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[name: number]: HTMLOptionElement | HTMLOptGroupElement;
}
declare var HTMLSelectElement: {
prototype: HTMLSelectElement;
new(): HTMLSelectElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement) */
interface HTMLSlotElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assign) */
assign(...nodes: (Element | Text)[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedElements) */
assignedElements(options?: AssignedNodesOptions): Element[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/assignedNodes) */
assignedNodes(options?: AssignedNodesOptions): Node[];
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSlotElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSlotElement: {
prototype: HTMLSlotElement;
new(): HTMLSlotElement;
};
/**
* Provides special properties (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating <source> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement)
*/
interface HTMLSourceElement extends HTMLElement {
height: number;
/**
* Gets or sets the intended media type of the media source.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/media)
*/
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/sizes) */
sizes: string;
/**
* The address or URL of the a media resource that is to be considered.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/src)
*/
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/srcset) */
srcset: string;
/**
* Gets or sets the MIME type of a media resource.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSourceElement/type)
*/
type: string;
width: number;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSourceElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSourceElement: {
prototype: HTMLSourceElement;
new(): HTMLSourceElement;
};
/**
* A <span> element and derives from the HTMLElement interface, but without implementing any additional properties or methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSpanElement)
*/
interface HTMLSpanElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLSpanElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLSpanElement: {
prototype: HTMLSpanElement;
new(): HTMLSpanElement;
};
/**
* A <style> element. It inherits properties and methods from its parent, HTMLElement, and from LinkStyle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement)
*/
interface HTMLStyleElement extends HTMLElement, LinkStyle {
/**
* Enables or disables the style sheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/disabled)
*/
disabled: boolean;
/**
* Sets or retrieves the media type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/media)
*/
media: string;
/**
* Retrieves the CSS language in which the style sheet is written.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLStyleElement/type)
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLStyleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLStyleElement: {
prototype: HTMLStyleElement;
new(): HTMLStyleElement;
};
/**
* Special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating table caption elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement)
*/
interface HTMLTableCaptionElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the caption or legend.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCaptionElement/align)
*/
align: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCaptionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCaptionElement: {
prototype: HTMLTableCaptionElement;
new(): HTMLTableCaptionElement;
};
/**
* Provides special properties and methods (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of table cells, either header or data cells, in an HTML document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement)
*/
interface HTMLTableCellElement extends HTMLElement {
/**
* Sets or retrieves abbreviated text for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/abbr)
*/
abbr: string;
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/align)
*/
align: string;
/**
* Sets or retrieves a comma-delimited list of conceptual categories associated with the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/axis)
*/
axis: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/bgColor)
*/
bgColor: string;
/**
* Retrieves the position of the object in the cells collection of a row.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/cellIndex)
*/
readonly cellIndex: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number columns in the table that the object should span.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/colSpan)
*/
colSpan: number;
/**
* Sets or retrieves a list of header cells that provide information for the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/headers)
*/
headers: string;
/**
* Sets or retrieves the height of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/height)
*/
height: string;
/**
* Sets or retrieves whether the browser automatically performs wordwrap.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/noWrap)
*/
noWrap: boolean;
/**
* Sets or retrieves how many rows in a table the cell should span.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/rowSpan)
*/
rowSpan: number;
/**
* Sets or retrieves the group of cells in a table to which the object's information applies.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/scope)
*/
scope: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/vAlign)
*/
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableCellElement/width)
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableCellElement: {
prototype: HTMLTableCellElement;
new(): HTMLTableCellElement;
};
/**
* Provides special properties (beyond the HTMLElement interface it also has available to it inheritance) for manipulating single or grouped table column elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement)
*/
interface HTMLTableColElement extends HTMLElement {
/**
* Sets or retrieves the alignment of the object relative to the display or table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number of columns in the group.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/span)
*/
span: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/vAlign)
*/
vAlign: string;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableColElement/width)
*/
width: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableColElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableColElement: {
prototype: HTMLTableColElement;
new(): HTMLTableColElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableDataCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableDataCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/**
* Provides special properties and methods (beyond the regular HTMLElement object interface it also has available to it by inheritance) for manipulating the layout and presentation of tables in an HTML document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement)
*/
interface HTMLTableElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/bgColor)
*/
bgColor: string;
/**
* Sets or retrieves the width of the border to draw around the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/border)
*/
border: string;
/**
* Retrieves the caption object of a table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/caption)
*/
caption: HTMLTableCaptionElement | null;
/**
* Sets or retrieves the amount of space between the border of the cell and the content of the cell.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellPadding)
*/
cellPadding: string;
/**
* Sets or retrieves the amount of space between cells in a table.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/cellSpacing)
*/
cellSpacing: string;
/**
* Sets or retrieves the way the border frame around the table is displayed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/frame)
*/
frame: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* Sets or retrieves which dividing lines (inner borders) are displayed.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/rules)
*/
rules: string;
/**
* Sets or retrieves a description and/or structure of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/summary)
*/
summary: string;
/**
* Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tBodies)
*/
readonly tBodies: HTMLCollectionOf<HTMLTableSectionElement>;
/**
* Retrieves the tFoot object of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tFoot)
*/
tFoot: HTMLTableSectionElement | null;
/**
* Retrieves the tHead object of the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/tHead)
*/
tHead: HTMLTableSectionElement | null;
/**
* Sets or retrieves the width of the object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/width)
*/
width: string;
/**
* Creates an empty caption element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createCaption)
*/
createCaption(): HTMLTableCaptionElement;
/**
* Creates an empty tBody element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTBody)
*/
createTBody(): HTMLTableSectionElement;
/**
* Creates an empty tFoot element in the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTFoot)
*/
createTFoot(): HTMLTableSectionElement;
/**
* Returns the tHead element object if successful, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/createTHead)
*/
createTHead(): HTMLTableSectionElement;
/**
* Deletes the caption element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteCaption)
*/
deleteCaption(): void;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteRow)
*/
deleteRow(index: number): void;
/**
* Deletes the tFoot element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTFoot)
*/
deleteTFoot(): void;
/**
* Deletes the tHead element and its contents from the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/deleteTHead)
*/
deleteTHead(): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableElement/insertRow)
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableElement: {
prototype: HTMLTableElement;
new(): HTMLTableElement;
};
/** @deprecated prefer HTMLTableCellElement */
interface HTMLTableHeaderCellElement extends HTMLTableCellElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableHeaderCellElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/**
* Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement)
*/
interface HTMLTableRowElement extends HTMLElement {
/**
* Sets or retrieves how the object is aligned with adjacent text.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/bgColor)
*/
bgColor: string;
/**
* Retrieves a collection of all cells in the table row.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/cells)
*/
readonly cells: HTMLCollectionOf<HTMLTableCellElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/chOff)
*/
chOff: string;
/**
* Retrieves the position of the object in the rows collection for the table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/rowIndex)
*/
readonly rowIndex: number;
/**
* Retrieves the position of the object in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/sectionRowIndex)
*/
readonly sectionRowIndex: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/vAlign)
*/
vAlign: string;
/**
* Removes the specified cell from the table row, as well as from the cells collection.
* @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/deleteCell)
*/
deleteCell(index: number): void;
/**
* Creates a new cell in the table row, and adds the cell to the cells collection.
* @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableRowElement/insertCell)
*/
insertCell(index?: number): HTMLTableCellElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableRowElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableRowElement: {
prototype: HTMLTableRowElement;
new(): HTMLTableRowElement;
};
/**
* Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of sections, that is headers, footers and bodies, in an HTML table.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement)
*/
interface HTMLTableSectionElement extends HTMLElement {
/**
* Sets or retrieves a value that indicates the table alignment.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/align)
*/
align: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/ch)
*/
ch: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/chOff)
*/
chOff: string;
/**
* Sets or retrieves the number of horizontal rows contained in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/rows)
*/
readonly rows: HTMLCollectionOf<HTMLTableRowElement>;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/vAlign)
*/
vAlign: string;
/**
* Removes the specified row (tr) from the element and from the rows collection.
* @param index Number that specifies the zero-based position in the rows collection of the row to remove.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/deleteRow)
*/
deleteRow(index: number): void;
/**
* Creates a new row (tr) in the table, and adds the row to the rows collection.
* @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTableSectionElement/insertRow)
*/
insertRow(index?: number): HTMLTableRowElement;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTableSectionElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTableSectionElement: {
prototype: HTMLTableSectionElement;
new(): HTMLTableSectionElement;
};
/**
* Enables access to the contents of an HTML <template> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement)
*/
interface HTMLTemplateElement extends HTMLElement {
/**
* Returns the template contents (a DocumentFragment).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTemplateElement/content)
*/
readonly content: DocumentFragment;
shadowRootMode: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTemplateElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTemplateElement: {
prototype: HTMLTemplateElement;
new(): HTMLTemplateElement;
};
/**
* Provides special properties and methods for manipulating the layout and presentation of <textarea> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement)
*/
interface HTMLTextAreaElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/autocomplete) */
autocomplete: AutoFill;
/** Sets or retrieves the width of the object. */
cols: number;
/** Sets or retrieves the initial contents of the object. */
defaultValue: string;
dirName: string;
disabled: boolean;
/** Retrieves a reference to the form that the object is embedded in. */
readonly form: HTMLFormElement | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/labels) */
readonly labels: NodeListOf<HTMLLabelElement>;
/** Sets or retrieves the maximum number of characters that the user can enter in a text control. */
maxLength: number;
minLength: number;
/** Sets or retrieves the name of the object. */
name: string;
/** Gets or sets a text string that is displayed in an input field as a hint or prompt to users as the format or type of information they need to enter.The text appears in an input field until the user puts focus on the field. */
placeholder: string;
/** Sets or retrieves the value indicated whether the content of the object is read-only. */
readOnly: boolean;
/** When present, marks an element that can't be submitted without a value. */
required: boolean;
/** Sets or retrieves the number of horizontal rows contained in the object. */
rows: number;
selectionDirection: "forward" | "backward" | "none";
/** Gets or sets the end position or offset of a text selection. */
selectionEnd: number;
/** Gets or sets the starting position or offset of a text selection. */
selectionStart: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/textLength) */
readonly textLength: number;
/** Retrieves the type of control. */
readonly type: string;
/** Returns the error message that would be displayed if the user submits the form, or an empty string if no error message. It also triggers the standard error message, such as "this is a required field". The result is that the user sees validation messages without actually submitting. */
readonly validationMessage: string;
/** Returns a ValidityState object that represents the validity states of an element. */
readonly validity: ValidityState;
/** Retrieves or sets the text in the entry field of the textArea element. */
value: string;
/** Returns whether an element will successfully validate based on forms validation rules and constraints. */
readonly willValidate: boolean;
/** Sets or retrieves how to handle wordwrapping in the object. */
wrap: string;
/** Returns whether a form will validate when it is submitted, without having to submit it. */
checkValidity(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTextAreaElement/reportValidity) */
reportValidity(): boolean;
/** Highlights the input area of a form element. */
select(): void;
/**
* Sets a custom error message that is displayed when a form is submitted.
* @param error Sets a custom error message that is displayed when a form is submitted.
*/
setCustomValidity(error: string): void;
setRangeText(replacement: string): void;
setRangeText(replacement: string, start: number, end: number, selectionMode?: SelectionMode): void;
/**
* Sets the start and end positions of a selection in a text field.
* @param start The offset into the text field for the start of the selection.
* @param end The offset into the text field for the end of the selection.
* @param direction The direction in which the selection is performed.
*/
setSelectionRange(start: number | null, end: number | null, direction?: "forward" | "backward" | "none"): void;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTextAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTextAreaElement: {
prototype: HTMLTextAreaElement;
new(): HTMLTextAreaElement;
};
/**
* Provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <time> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement)
*/
interface HTMLTimeElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTimeElement/dateTime) */
dateTime: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTimeElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTimeElement: {
prototype: HTMLTimeElement;
new(): HTMLTimeElement;
};
/**
* Contains the title for a document. This element inherits all of the properties and methods of the HTMLElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement)
*/
interface HTMLTitleElement extends HTMLElement {
/**
* Retrieves or sets the text of the object as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTitleElement/text)
*/
text: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTitleElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTitleElement: {
prototype: HTMLTitleElement;
new(): HTMLTitleElement;
};
/**
* The HTMLTrackElement
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement)
*/
interface HTMLTrackElement extends HTMLElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/default) */
default: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/kind) */
kind: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/label) */
label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/readyState) */
readonly readyState: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/src) */
src: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/srclang) */
srclang: string;
/**
* Returns the TextTrack object corresponding to the text track of the track element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/track)
*/
readonly track: TextTrack;
readonly NONE: 0;
readonly LOADING: 1;
readonly LOADED: 2;
readonly ERROR: 3;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLTrackElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLTrackElement: {
prototype: HTMLTrackElement;
new(): HTMLTrackElement;
readonly NONE: 0;
readonly LOADING: 1;
readonly LOADED: 2;
readonly ERROR: 3;
};
/**
* Provides special properties (beyond those defined on the regular HTMLElement interface it also has available to it by inheritance) for manipulating unordered list elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement)
*/
interface HTMLUListElement extends HTMLElement {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/compact)
*/
compact: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUListElement/type)
*/
type: string;
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUListElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUListElement: {
prototype: HTMLUListElement;
new(): HTMLUListElement;
};
/**
* An invalid HTML element and derives from the HTMLElement interface, but without implementing any additional properties or methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLUnknownElement)
*/
interface HTMLUnknownElement extends HTMLElement {
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLUnknownElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLUnknownElement: {
prototype: HTMLUnknownElement;
new(): HTMLUnknownElement;
};
interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap {
"enterpictureinpicture": Event;
"leavepictureinpicture": Event;
}
/**
* Provides special properties and methods for manipulating video objects. It also inherits properties and methods of HTMLMediaElement and HTMLElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement)
*/
interface HTMLVideoElement extends HTMLMediaElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/disablePictureInPicture) */
disablePictureInPicture: boolean;
/**
* Gets or sets the height of the video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/height)
*/
height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/enterpictureinpicture_event) */
onenterpictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/leavepictureinpicture_event) */
onleavepictureinpicture: ((this: HTMLVideoElement, ev: Event) => any) | null;
/** Gets or sets the playsinline of the video element. for example, On iPhone, video elements will now be allowed to play inline, and will not automatically enter fullscreen mode when playback begins. */
playsInline: boolean;
/**
* Gets or sets a URL of an image to display, for example, like a movie poster. This can be a still frame from the video, or another image if no video data is available.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/poster)
*/
poster: string;
/**
* Gets the intrinsic height of a video in CSS pixels, or zero if the dimensions are not known.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoHeight)
*/
readonly videoHeight: number;
/**
* Gets the intrinsic width of a video in CSS pixels, or zero if the dimensions are not known.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/videoWidth)
*/
readonly videoWidth: number;
/**
* Gets or sets the width of the video element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/width)
*/
width: number;
cancelVideoFrameCallback(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality) */
getVideoPlaybackQuality(): VideoPlaybackQuality;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/requestPictureInPicture) */
requestPictureInPicture(): Promise<PictureInPictureWindow>;
requestVideoFrameCallback(callback: VideoFrameRequestCallback): number;
addEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof HTMLVideoElementEventMap>(type: K, listener: (this: HTMLVideoElement, ev: HTMLVideoElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var HTMLVideoElement: {
prototype: HTMLVideoElement;
new(): HTMLVideoElement;
};
/**
* Events that fire when the fragment identifier of the URL has changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent)
*/
interface HashChangeEvent extends Event {
/**
* Returns the URL of the session history entry that is now current.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/newURL)
*/
readonly newURL: string;
/**
* Returns the URL of the session history entry that was previously current.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HashChangeEvent/oldURL)
*/
readonly oldURL: string;
}
declare var HashChangeEvent: {
prototype: HashChangeEvent;
new(type: string, eventInitDict?: HashChangeEventInit): HashChangeEvent;
};
/**
* This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
*/
interface Headers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */
append(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
get(name: string): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
getSetCookie(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight) */
interface Highlight {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/priority) */
priority: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Highlight/type) */
type: HighlightType;
forEach(callbackfn: (value: AbstractRange, key: AbstractRange, parent: Highlight) => void, thisArg?: any): void;
}
declare var Highlight: {
prototype: Highlight;
new(...initialRanges: AbstractRange[]): Highlight;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HighlightRegistry) */
interface HighlightRegistry {
forEach(callbackfn: (value: Highlight, key: string, parent: HighlightRegistry) => void, thisArg?: any): void;
}
declare var HighlightRegistry: {
prototype: HighlightRegistry;
new(): HighlightRegistry;
};
/**
* Allows\xA0manipulation of\xA0the browser session history, that is the pages visited in the tab or frame that the current page is loaded in.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/History)
*/
interface History {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/scrollRestoration) */
scrollRestoration: ScrollRestoration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/state) */
readonly state: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/back) */
back(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/forward) */
forward(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/go) */
go(delta?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/pushState) */
pushState(data: any, unused: string, url?: string | URL | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/History/replaceState) */
replaceState(data: any, unused: string, url?: string | URL | null): void;
}
declare var History: {
prototype: History;
new(): History;
};
/**
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
*/
interface IDBCursor {
/**
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
*/
readonly direction: IDBCursorDirection;
/**
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
*/
readonly key: IDBValidKey;
/**
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
*/
readonly primaryKey: IDBValidKey;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */
readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* Advances the cursor through the next count records in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
*/
advance(count: number): void;
/**
* Advances the cursor to the next record in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
*/
continue(key?: IDBValidKey): void;
/**
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
*/
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/**
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
*/
interface IDBCursorWithValue extends IDBCursor {
/**
* Returns the cursor's current value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)
*/
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/**
* This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
*/
interface IDBDatabase extends EventTarget {
/**
* Returns the name of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
*/
readonly name: string;
/**
* Returns a list of the names of object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/**
* Returns the version of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
*/
readonly version: number;
/**
* Closes the connection once all running transactions have finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
*/
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
*/
deleteObjectStore(name: string): void;
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/**
* In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
*/
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
*/
cmp(first: any, second: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */
databases(): Promise<IDBDatabaseInfo[]>;
/**
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
*/
deleteDatabase(name: string): IDBOpenDBRequest;
/**
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
*/
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/**
* IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
*/
interface IDBIndex {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */
readonly keyPath: string | string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */
readonly multiEntry: boolean;
/**
* Returns the name of the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
*/
name: string;
/**
* Returns the IDBObjectStore the index belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
*/
readonly objectStore: IDBObjectStore;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/**
* A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
*/
interface IDBKeyRange {
/**
* Returns lower bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
*/
readonly lower: any;
/**
* Returns true if the lower open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
*/
readonly lowerOpen: boolean;
/**
* Returns upper bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
*/
readonly upper: any;
/**
* Returns true if the upper open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
*/
readonly upperOpen: boolean;
/**
* Returns true if key is included in the range, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
*/
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
*/
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning only key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
*/
only(value: any): IDBKeyRange;
/**
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
*/
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/**
* This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
*/
interface IDBObjectStore {
/**
* Returns true if the store has a key generator, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
*/
readonly autoIncrement: boolean;
/**
* Returns a list of the names of indexes in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
*/
readonly indexNames: DOMStringList;
/**
* Returns the key path of the store, or null if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
*/
readonly keyPath: string | string[];
/**
* Returns the name of the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
*/
name: string;
/**
* Returns the associated transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
*/
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": IDBVersionChangeEvent;
"upgradeneeded": IDBVersionChangeEvent;
}
/**
* Also inherits methods from its parents IDBRequest and EventTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
*/
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/**
* The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
*/
interface IDBRequest<T = any> extends EventTarget {
/**
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
*/
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/**
* Returns "pending" until a request is complete, then returns "done".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
*/
readonly readyState: IDBRequestReadyState;
/**
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
*/
readonly result: T;
/**
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
*/
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
*/
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */
interface IDBTransaction extends EventTarget {
/**
* Returns the transaction's connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
*/
readonly db: IDBDatabase;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */
readonly durability: IDBTransactionDurability;
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
*/
readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
*/
readonly mode: IDBTransactionMode;
/**
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/**
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */
commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
*/
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/**
* This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
*/
interface IDBVersionChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */
readonly newVersion: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/**
* The\xA0IIRFilterNode\xA0interface of the\xA0Web Audio API\xA0is a AudioNode processor which implements a general infinite impulse response (IIR)\xA0 filter; this type of filter can be used to implement tone control devices and graphic equalizers as well. It lets the parameters of the filter response be specified, so that it can be tuned as needed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode)
*/
interface IIRFilterNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IIRFilterNode/getFrequencyResponse) */
getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;
}
declare var IIRFilterNode: {
prototype: IIRFilterNode;
new(context: BaseAudioContext, options: IIRFilterOptions): IIRFilterNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline) */
interface IdleDeadline {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/didTimeout) */
readonly didTimeout: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IdleDeadline/timeRemaining) */
timeRemaining(): DOMHighResTimeStamp;
}
declare var IdleDeadline: {
prototype: IdleDeadline;
new(): IdleDeadline;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
*/
readonly height: number;
/**
* Returns the intrinsic width of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
*/
readonly width: number;
/**
* Releases imageBitmap's underlying bitmap data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
interface ImageBitmapRenderingContext {
/** Returns the canvas element that the context is bound to. */
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
/**
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/**
* The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
*/
interface ImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */
readonly colorSpace: PredefinedColorSpace;
/**
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
*/
readonly height: number;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
*/
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
interface InnerHTML {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/innerHTML) */
innerHTML: string;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo)
*/
interface InputDeviceInfo extends MediaDeviceInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputDeviceInfo/getCapabilities) */
getCapabilities(): MediaTrackCapabilities;
}
declare var InputDeviceInfo: {
prototype: InputDeviceInfo;
new(): InputDeviceInfo;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent) */
interface InputEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/data) */
readonly data: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/dataTransfer) */
readonly dataTransfer: DataTransfer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/inputType) */
readonly inputType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/isComposing) */
readonly isComposing: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/InputEvent/getTargetRanges) */
getTargetRanges(): StaticRange[];
}
declare var InputEvent: {
prototype: InputEvent;
new(type: string, eventInitDict?: InputEventInit): InputEvent;
};
/**
* provides a way to asynchronously observe changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver)
*/
interface IntersectionObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/root) */
readonly root: Element | Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/rootMargin) */
readonly rootMargin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/thresholds) */
readonly thresholds: ReadonlyArray<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/observe) */
observe(target: Element): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/takeRecords) */
takeRecords(): IntersectionObserverEntry[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserver/unobserve) */
unobserve(target: Element): void;
}
declare var IntersectionObserver: {
prototype: IntersectionObserver;
new(callback: IntersectionObserverCallback, options?: IntersectionObserverInit): IntersectionObserver;
};
/**
* This Intersection Observer API interface describes the intersection between the target element and its root container at a specific moment of transition.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry)
*/
interface IntersectionObserverEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/boundingClientRect) */
readonly boundingClientRect: DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRatio) */
readonly intersectionRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/intersectionRect) */
readonly intersectionRect: DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/isIntersecting) */
readonly isIntersecting: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/rootBounds) */
readonly rootBounds: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/target) */
readonly target: Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IntersectionObserverEntry/time) */
readonly time: DOMHighResTimeStamp;
}
declare var IntersectionObserverEntry: {
prototype: IntersectionObserverEntry;
new(intersectionObserverEntryInit: IntersectionObserverEntryInit): IntersectionObserverEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/**
* KeyboardEvent objects describe a user interaction with the keyboard; each event describes a single interaction between the user and a key (or combination of a key with modifier keys) on the keyboard.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent)
*/
interface KeyboardEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/altKey) */
readonly altKey: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/charCode)
*/
readonly charCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/code) */
readonly code: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/isComposing) */
readonly isComposing: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/key) */
readonly key: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/keyCode)
*/
readonly keyCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/location) */
readonly location: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/repeat) */
readonly repeat: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/getModifierState) */
getModifierState(keyArg: string): boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyboardEvent/initKeyboardEvent)
*/
initKeyboardEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, keyArg?: string, locationArg?: number, ctrlKey?: boolean, altKey?: boolean, shiftKey?: boolean, metaKey?: boolean): void;
readonly DOM_KEY_LOCATION_STANDARD: 0x00;
readonly DOM_KEY_LOCATION_LEFT: 0x01;
readonly DOM_KEY_LOCATION_RIGHT: 0x02;
readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
}
declare var KeyboardEvent: {
prototype: KeyboardEvent;
new(type: string, eventInitDict?: KeyboardEventInit): KeyboardEvent;
readonly DOM_KEY_LOCATION_STANDARD: 0x00;
readonly DOM_KEY_LOCATION_LEFT: 0x01;
readonly DOM_KEY_LOCATION_RIGHT: 0x02;
readonly DOM_KEY_LOCATION_NUMPAD: 0x03;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect) */
interface KeyframeEffect extends AnimationEffect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/composite) */
composite: CompositeOperation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/iterationComposite) */
iterationComposite: IterationCompositeOperation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/pseudoElement) */
pseudoElement: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/target) */
target: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/getKeyframes) */
getKeyframes(): ComputedKeyframe[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KeyframeEffect/setKeyframes) */
setKeyframes(keyframes: Keyframe[] | PropertyIndexedKeyframes | null): void;
}
declare var KeyframeEffect: {
prototype: KeyframeEffect;
new(target: Element | null, keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions): KeyframeEffect;
new(source: KeyframeEffect): KeyframeEffect;
};
interface LinkStyle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLLinkElement/sheet) */
readonly sheet: CSSStyleSheet | null;
}
/**
* The location (URL) of the object it is linked to. Changes done on it are reflected on the object it relates to. Both the Document and Window interface have such a linked Location, accessible via Document.location and Window.location respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location)
*/
interface Location {
/**
* Returns a DOMStringList object listing the origins of the ancestor browsing contexts, from the parent browsing context to the top-level browsing context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/ancestorOrigins)
*/
readonly ancestorOrigins: DOMStringList;
/**
* Returns the Location object's URL's fragment (includes leading "#" if non-empty).
*
* Can be set, to navigate to the same URL with a changed fragment (ignores leading "#").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hash)
*/
hash: string;
/**
* Returns the Location object's URL's host and port (if different from the default port for the scheme).
*
* Can be set, to navigate to the same URL with a changed host and port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/host)
*/
host: string;
/**
* Returns the Location object's URL's host.
*
* Can be set, to navigate to the same URL with a changed host.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/hostname)
*/
hostname: string;
/**
* Returns the Location object's URL.
*
* Can be set, to navigate to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/href)
*/
href: string;
toString(): string;
/**
* Returns the Location object's URL's origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/origin)
*/
readonly origin: string;
/**
* Returns the Location object's URL's path.
*
* Can be set, to navigate to the same URL with a changed path.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/pathname)
*/
pathname: string;
/**
* Returns the Location object's URL's port.
*
* Can be set, to navigate to the same URL with a changed port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/port)
*/
port: string;
/**
* Returns the Location object's URL's scheme.
*
* Can be set, to navigate to the same URL with a changed scheme.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/protocol)
*/
protocol: string;
/**
* Returns the Location object's URL's query (includes leading "?" if non-empty).
*
* Can be set, to navigate to the same URL with a changed query (ignores leading "?").
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/search)
*/
search: string;
/**
* Navigates to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/assign)
*/
assign(url: string | URL): void;
/**
* Reloads the current page.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/reload)
*/
reload(): void;
/**
* Removes the current page from the session history and navigates to the given URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Location/replace)
*/
replace(url: string | URL): void;
}
declare var Location: {
prototype: Location;
new(): Location;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
*/
interface Lock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */
readonly mode: LockMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
*/
interface LockManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
query(): Promise<LockManagerSnapshot>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
interface MIDIAccessEventMap {
"statechange": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess)
*/
interface MIDIAccess extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/inputs) */
readonly inputs: MIDIInputMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/statechange_event) */
onstatechange: ((this: MIDIAccess, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/outputs) */
readonly outputs: MIDIOutputMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIAccess/sysexEnabled) */
readonly sysexEnabled: boolean;
addEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIAccessEventMap>(type: K, listener: (this: MIDIAccess, ev: MIDIAccessEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIAccess: {
prototype: MIDIAccess;
new(): MIDIAccess;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent)
*/
interface MIDIConnectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIConnectionEvent/port) */
readonly port: MIDIPort | null;
}
declare var MIDIConnectionEvent: {
prototype: MIDIConnectionEvent;
new(type: string, eventInitDict?: MIDIConnectionEventInit): MIDIConnectionEvent;
};
interface MIDIInputEventMap extends MIDIPortEventMap {
"midimessage": MIDIMessageEvent;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput)
*/
interface MIDIInput extends MIDIPort {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInput/midimessage_event) */
onmidimessage: ((this: MIDIInput, ev: MIDIMessageEvent) => any) | null;
addEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIInputEventMap>(type: K, listener: (this: MIDIInput, ev: MIDIInputEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIInput: {
prototype: MIDIInput;
new(): MIDIInput;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIInputMap)
*/
interface MIDIInputMap {
forEach(callbackfn: (value: MIDIInput, key: string, parent: MIDIInputMap) => void, thisArg?: any): void;
}
declare var MIDIInputMap: {
prototype: MIDIInputMap;
new(): MIDIInputMap;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent)
*/
interface MIDIMessageEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIMessageEvent/data) */
readonly data: Uint8Array | null;
}
declare var MIDIMessageEvent: {
prototype: MIDIMessageEvent;
new(type: string, eventInitDict?: MIDIMessageEventInit): MIDIMessageEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput)
*/
interface MIDIOutput extends MIDIPort {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
send(data: number[], timestamp?: DOMHighResTimeStamp): void;
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIOutput, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIOutput: {
prototype: MIDIOutput;
new(): MIDIOutput;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutputMap)
*/
interface MIDIOutputMap {
forEach(callbackfn: (value: MIDIOutput, key: string, parent: MIDIOutputMap) => void, thisArg?: any): void;
}
declare var MIDIOutputMap: {
prototype: MIDIOutputMap;
new(): MIDIOutputMap;
};
interface MIDIPortEventMap {
"statechange": MIDIConnectionEvent;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort)
*/
interface MIDIPort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/connection) */
readonly connection: MIDIPortConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/manufacturer) */
readonly manufacturer: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/name) */
readonly name: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/statechange_event) */
onstatechange: ((this: MIDIPort, ev: MIDIConnectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/state) */
readonly state: MIDIPortDeviceState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/type) */
readonly type: MIDIPortType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/version) */
readonly version: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/close) */
close(): Promise<MIDIPort>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIPort/open) */
open(): Promise<MIDIPort>;
addEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MIDIPortEventMap>(type: K, listener: (this: MIDIPort, ev: MIDIPortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MIDIPort: {
prototype: MIDIPort;
new(): MIDIPort;
};
interface MathMLElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MathMLElement) */
interface MathMLElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
addEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MathMLElementEventMap>(type: K, listener: (this: MathMLElement, ev: MathMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MathMLElement: {
prototype: MathMLElement;
new(): MathMLElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */
interface MediaCapabilities {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* The MediaDevicesInfo interface contains information that describes a single media input or output device.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo)
*/
interface MediaDeviceInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/deviceId) */
readonly deviceId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/groupId) */
readonly groupId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/kind) */
readonly kind: MediaDeviceKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDeviceInfo/toJSON) */
toJSON(): any;
}
declare var MediaDeviceInfo: {
prototype: MediaDeviceInfo;
new(): MediaDeviceInfo;
};
interface MediaDevicesEventMap {
"devicechange": Event;
}
/**
* Provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices)
*/
interface MediaDevices extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/devicechange_event) */
ondevicechange: ((this: MediaDevices, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/enumerateDevices) */
enumerateDevices(): Promise<MediaDeviceInfo[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getDisplayMedia) */
getDisplayMedia(options?: DisplayMediaStreamOptions): Promise<MediaStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getSupportedConstraints) */
getSupportedConstraints(): MediaTrackSupportedConstraints;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaDevices/getUserMedia) */
getUserMedia(constraints?: MediaStreamConstraints): Promise<MediaStream>;
addEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaDevicesEventMap>(type: K, listener: (this: MediaDevices, ev: MediaDevicesEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaDevices: {
prototype: MediaDevices;
new(): MediaDevices;
};
/**
* A MediaElementSourceNode has no inputs and exactly one output, and is created using the AudioContext.createMediaElementSource method. The amount of channels in the output equals the number of channels of the audio referenced by the HTMLMediaElement used in the creation of the node, or is 1 if the HTMLMediaElement has no audio.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode)
*/
interface MediaElementAudioSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaElementAudioSourceNode/mediaElement) */
readonly mediaElement: HTMLMediaElement;
}
declare var MediaElementAudioSourceNode: {
prototype: MediaElementAudioSourceNode;
new(context: AudioContext, options: MediaElementAudioSourceOptions): MediaElementAudioSourceNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent) */
interface MediaEncryptedEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initData) */
readonly initData: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaEncryptedEvent/initDataType) */
readonly initDataType: string;
}
declare var MediaEncryptedEvent: {
prototype: MediaEncryptedEvent;
new(type: string, eventInitDict?: MediaEncryptedEventInit): MediaEncryptedEvent;
};
/**
* An error which occurred while handling media in an HTML media element based on HTMLMediaElement, such as <audio> or <video>.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError)
*/
interface MediaError {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/code) */
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaError/message) */
readonly message: string;
readonly MEDIA_ERR_ABORTED: 1;
readonly MEDIA_ERR_NETWORK: 2;
readonly MEDIA_ERR_DECODE: 3;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
}
declare var MediaError: {
prototype: MediaError;
new(): MediaError;
readonly MEDIA_ERR_ABORTED: 1;
readonly MEDIA_ERR_NETWORK: 2;
readonly MEDIA_ERR_DECODE: 3;
readonly MEDIA_ERR_SRC_NOT_SUPPORTED: 4;
};
/**
* This EncryptedMediaExtensions API interface contains the content and related data when the content decryption module generates a message for the session.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent)
*/
interface MediaKeyMessageEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/message) */
readonly message: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyMessageEvent/messageType) */
readonly messageType: MediaKeyMessageType;
}
declare var MediaKeyMessageEvent: {
prototype: MediaKeyMessageEvent;
new(type: string, eventInitDict: MediaKeyMessageEventInit): MediaKeyMessageEvent;
};
interface MediaKeySessionEventMap {
"keystatuseschange": Event;
"message": MediaKeyMessageEvent;
}
/**
* This EncryptedMediaExtensions API interface represents a\xA0context for message exchange with a content decryption module (CDM).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession)
*/
interface MediaKeySession extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/closed) */
readonly closed: Promise<MediaKeySessionClosedReason>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/expiration) */
readonly expiration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keyStatuses) */
readonly keyStatuses: MediaKeyStatusMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/keystatuseschange_event) */
onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/message_event) */
onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/sessionId) */
readonly sessionId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/generateRequest) */
generateRequest(initDataType: string, initData: BufferSource): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/load) */
load(sessionId: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/remove) */
remove(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySession/update) */
update(response: BufferSource): Promise<void>;
addEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaKeySessionEventMap>(type: K, listener: (this: MediaKeySession, ev: MediaKeySessionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaKeySession: {
prototype: MediaKeySession;
new(): MediaKeySession;
};
/**
* This EncryptedMediaExtensions API interface is a read-only map of media key statuses by key IDs.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap)
*/
interface MediaKeyStatusMap {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/get) */
get(keyId: BufferSource): MediaKeyStatus | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeyStatusMap/has) */
has(keyId: BufferSource): boolean;
forEach(callbackfn: (value: MediaKeyStatus, key: BufferSource, parent: MediaKeyStatusMap) => void, thisArg?: any): void;
}
declare var MediaKeyStatusMap: {
prototype: MediaKeyStatusMap;
new(): MediaKeyStatusMap;
};
/**
* This EncryptedMediaExtensions API interface provides access to a Key System for decryption and/or a content protection provider. You can request an instance of this object using the Navigator.requestMediaKeySystemAccess method.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess)
*/
interface MediaKeySystemAccess {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/keySystem) */
readonly keySystem: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/createMediaKeys) */
createMediaKeys(): Promise<MediaKeys>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeySystemAccess/getConfiguration) */
getConfiguration(): MediaKeySystemConfiguration;
}
declare var MediaKeySystemAccess: {
prototype: MediaKeySystemAccess;
new(): MediaKeySystemAccess;
};
/**
* This EncryptedMediaExtensions API interface the represents a set of keys that an associated HTMLMediaElement can use for decryption of media data during playback.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys)
*/
interface MediaKeys {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/createSession) */
createSession(sessionType?: MediaKeySessionType): MediaKeySession;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaKeys/setServerCertificate) */
setServerCertificate(serverCertificate: BufferSource): Promise<boolean>;
}
declare var MediaKeys: {
prototype: MediaKeys;
new(): MediaKeys;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList) */
interface MediaList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/mediaText) */
mediaText: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/appendMedium) */
appendMedium(medium: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/deleteMedium) */
deleteMedium(medium: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaList/item) */
item(index: number): string | null;
[index: number]: string;
}
declare var MediaList: {
prototype: MediaList;
new(): MediaList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata) */
interface MediaMetadata {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/album) */
album: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artist) */
artist: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/artwork) */
artwork: ReadonlyArray<MediaImage>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaMetadata/title) */
title: string;
}
declare var MediaMetadata: {
prototype: MediaMetadata;
new(init?: MediaMetadataInit): MediaMetadata;
};
interface MediaQueryListEventMap {
"change": MediaQueryListEvent;
}
/**
* Stores information on a media query applied to a document, and handles sending notifications to listeners when the media query state change (i.e. when the media query test starts or stops evaluating to true).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList)
*/
interface MediaQueryList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/matches) */
readonly matches: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/media) */
readonly media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/change_event) */
onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/addListener)
*/
addListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryList/removeListener)
*/
removeListener(callback: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null): void;
addEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaQueryListEventMap>(type: K, listener: (this: MediaQueryList, ev: MediaQueryListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaQueryList: {
prototype: MediaQueryList;
new(): MediaQueryList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent) */
interface MediaQueryListEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/matches) */
readonly matches: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaQueryListEvent/media) */
readonly media: string;
}
declare var MediaQueryListEvent: {
prototype: MediaQueryListEvent;
new(type: string, eventInitDict?: MediaQueryListEventInit): MediaQueryListEvent;
};
interface MediaRecorderEventMap {
"dataavailable": BlobEvent;
"error": Event;
"pause": Event;
"resume": Event;
"start": Event;
"stop": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder) */
interface MediaRecorder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/audioBitsPerSecond) */
readonly audioBitsPerSecond: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/mimeType) */
readonly mimeType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/dataavailable_event) */
ondataavailable: ((this: MediaRecorder, ev: BlobEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/error_event) */
onerror: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause_event) */
onpause: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume_event) */
onresume: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start_event) */
onstart: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop_event) */
onstop: ((this: MediaRecorder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/state) */
readonly state: RecordingState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stream) */
readonly stream: MediaStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/videoBitsPerSecond) */
readonly videoBitsPerSecond: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/requestData) */
requestData(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/resume) */
resume(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/start) */
start(timeslice?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/stop) */
stop(): void;
addEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaRecorderEventMap>(type: K, listener: (this: MediaRecorder, ev: MediaRecorderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaRecorder: {
prototype: MediaRecorder;
new(stream: MediaStream, options?: MediaRecorderOptions): MediaRecorder;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaRecorder/isTypeSupported_static) */
isTypeSupported(type: string): boolean;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession) */
interface MediaSession {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/metadata) */
metadata: MediaMetadata | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/playbackState) */
playbackState: MediaSessionPlaybackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setActionHandler) */
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSession/setPositionState) */
setPositionState(state?: MediaPositionState): void;
}
declare var MediaSession: {
prototype: MediaSession;
new(): MediaSession;
};
interface MediaSourceEventMap {
"sourceclose": Event;
"sourceended": Event;
"sourceopen": Event;
}
/**
* This Media Source Extensions API interface represents a source of media data for an HTMLMediaElement object. A MediaSource object can be attached to a HTMLMediaElement to be played in the user agent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource)
*/
interface MediaSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/activeSourceBuffers) */
readonly activeSourceBuffers: SourceBufferList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/duration) */
duration: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceclose_event) */
onsourceclose: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceended_event) */
onsourceended: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceopen_event) */
onsourceopen: ((this: MediaSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/readyState) */
readonly readyState: ReadyState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/sourceBuffers) */
readonly sourceBuffers: SourceBufferList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/addSourceBuffer) */
addSourceBuffer(type: string): SourceBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/clearLiveSeekableRange) */
clearLiveSeekableRange(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/endOfStream) */
endOfStream(error?: EndOfStreamError): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/removeSourceBuffer) */
removeSourceBuffer(sourceBuffer: SourceBuffer): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/setLiveSeekableRange) */
setLiveSeekableRange(start: number, end: number): void;
addEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaSourceEventMap>(type: K, listener: (this: MediaSource, ev: MediaSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaSource: {
prototype: MediaSource;
new(): MediaSource;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaSource/isTypeSupported_static) */
isTypeSupported(type: string): boolean;
};
interface MediaStreamEventMap {
"addtrack": MediaStreamTrackEvent;
"removetrack": MediaStreamTrackEvent;
}
/**
* A stream of media content. A stream consists of several tracks such as\xA0video or audio tracks. Each track is specified as an instance of MediaStreamTrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream)
*/
interface MediaStream extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/active) */
readonly active: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addtrack_event) */
onaddtrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removetrack_event) */
onremovetrack: ((this: MediaStream, ev: MediaStreamTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/addTrack) */
addTrack(track: MediaStreamTrack): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/clone) */
clone(): MediaStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getAudioTracks) */
getAudioTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTrackById) */
getTrackById(trackId: string): MediaStreamTrack | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getTracks) */
getTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/getVideoTracks) */
getVideoTracks(): MediaStreamTrack[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStream/removeTrack) */
removeTrack(track: MediaStreamTrack): void;
addEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamEventMap>(type: K, listener: (this: MediaStream, ev: MediaStreamEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStream: {
prototype: MediaStream;
new(): MediaStream;
new(stream: MediaStream): MediaStream;
new(tracks: MediaStreamTrack[]): MediaStream;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode) */
interface MediaStreamAudioDestinationNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioDestinationNode/stream) */
readonly stream: MediaStream;
}
declare var MediaStreamAudioDestinationNode: {
prototype: MediaStreamAudioDestinationNode;
new(context: AudioContext, options?: AudioNodeOptions): MediaStreamAudioDestinationNode;
};
/**
* A type of AudioNode which operates as an audio source whose media is received from a MediaStream obtained using the WebRTC or Media Capture and Streams APIs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode)
*/
interface MediaStreamAudioSourceNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamAudioSourceNode/mediaStream) */
readonly mediaStream: MediaStream;
}
declare var MediaStreamAudioSourceNode: {
prototype: MediaStreamAudioSourceNode;
new(context: AudioContext, options: MediaStreamAudioSourceOptions): MediaStreamAudioSourceNode;
};
interface MediaStreamTrackEventMap {
"ended": Event;
"mute": Event;
"unmute": Event;
}
/**
* A single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack)
*/
interface MediaStreamTrack extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/contentHint) */
contentHint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/enabled) */
enabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/kind) */
readonly kind: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/muted) */
readonly muted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/ended_event) */
onended: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/mute_event) */
onmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/unmute_event) */
onunmute: ((this: MediaStreamTrack, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/readyState) */
readonly readyState: MediaStreamTrackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/applyConstraints) */
applyConstraints(constraints?: MediaTrackConstraints): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/clone) */
clone(): MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getCapabilities) */
getCapabilities(): MediaTrackCapabilities;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getConstraints) */
getConstraints(): MediaTrackConstraints;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/getSettings) */
getSettings(): MediaTrackSettings;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrack/stop) */
stop(): void;
addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: MediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MediaStreamTrack: {
prototype: MediaStreamTrack;
new(): MediaStreamTrack;
};
/**
* Events which indicate that a MediaStream has had tracks added to or removed from the stream through calls to Media Stream API methods. These events are sent to the stream when these changes occur.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent)
*/
interface MediaStreamTrackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaStreamTrackEvent/track) */
readonly track: MediaStreamTrack;
}
declare var MediaStreamTrackEvent: {
prototype: MediaStreamTrackEvent;
new(type: string, eventInitDict: MediaStreamTrackEventInit): MediaStreamTrackEvent;
};
/**
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
*/
interface MessageChannel {
/**
* Returns the first MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
*/
readonly port1: MessagePort;
/**
* Returns the second MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/**
* A message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
*/
interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
*/
readonly data: T;
/**
* Returns the last event ID string, for server-sent events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* Returns the origin of the message, for server-sent events and cross-document messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
*/
readonly origin: string;
/**
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
*/
interface MessagePort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
*/
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Begins dispatching messages received on the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
*/
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/**
* Provides contains information about a MIME type associated with a particular plugin. NavigatorPlugins.mimeTypes returns an array of this object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType)
*/
interface MimeType {
/**
* Returns the MIME type's description.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/description)
*/
readonly description: string;
/**
* Returns the Plugin object that implements this MIME type.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/enabledPlugin)
*/
readonly enabledPlugin: Plugin;
/**
* Returns the MIME type's typical file extensions, in a comma-separated list.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/suffixes)
*/
readonly suffixes: string;
/**
* Returns the MIME type.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeType/type)
*/
readonly type: string;
}
/** @deprecated */
declare var MimeType: {
prototype: MimeType;
new(): MimeType;
};
/**
* Returns an array of MimeType instances, each of which contains information\xA0about a supported browser plugins. This object is returned by NavigatorPlugins.mimeTypes.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray)
*/
interface MimeTypeArray {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/length)
*/
readonly length: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/item)
*/
item(index: number): MimeType | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MimeTypeArray/namedItem)
*/
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var MimeTypeArray: {
prototype: MimeTypeArray;
new(): MimeTypeArray;
};
/**
* Events that occur due to the user interacting with a pointing device (such as a mouse). Common events using this interface include click, dblclick, mouseup, mousedown.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent)
*/
interface MouseEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/altKey) */
readonly altKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/button) */
readonly button: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/buttons) */
readonly buttons: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientX) */
readonly clientX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/clientY) */
readonly clientY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerX) */
readonly layerX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/layerY) */
readonly layerY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementX) */
readonly movementX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/movementY) */
readonly movementY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetX) */
readonly offsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/offsetY) */
readonly offsetY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageX) */
readonly pageX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/pageY) */
readonly pageY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/relatedTarget) */
readonly relatedTarget: EventTarget | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/getModifierState) */
getModifierState(keyArg: string): boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MouseEvent/initMouseEvent)
*/
initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget | null): void;
}
declare var MouseEvent: {
prototype: MouseEvent;
new(type: string, eventInitDict?: MouseEventInit): MouseEvent;
};
/**
* Provides event properties that are specific to modifications to the Document Object Model (DOM) hierarchy and nodes.
* @deprecated DOM4 [DOM] provides a new mechanism using a MutationObserver interface which addresses the use cases that mutation events solve, but in a more performant manner. Thus, this specification describes mutation events for reference and completeness of legacy behavior, but deprecates the use of the MutationEvent interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent)
*/
interface MutationEvent extends Event {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrChange)
*/
readonly attrChange: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/attrName)
*/
readonly attrName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/newValue)
*/
readonly newValue: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/prevValue)
*/
readonly prevValue: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/relatedNode)
*/
readonly relatedNode: Node | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationEvent/initMutationEvent)
*/
initMutationEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, relatedNodeArg?: Node | null, prevValueArg?: string, newValueArg?: string, attrNameArg?: string, attrChangeArg?: number): void;
readonly MODIFICATION: 1;
readonly ADDITION: 2;
readonly REMOVAL: 3;
}
/** @deprecated */
declare var MutationEvent: {
prototype: MutationEvent;
new(): MutationEvent;
readonly MODIFICATION: 1;
readonly ADDITION: 2;
readonly REMOVAL: 3;
};
/**
* Provides the ability to watch for changes being made to the DOM tree. It is designed as a replacement for the older Mutation Events feature which was part of the DOM3 Events specification.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver)
*/
interface MutationObserver {
/**
* Stops observer from observing any mutations. Until the observe() method is used again, observer's callback will not be invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/disconnect)
*/
disconnect(): void;
/**
* Instructs the user agent to observe a given target (a node) and report any mutations based on the criteria given by options (an object).
*
* The options argument allows for setting mutation observation options via object members.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/observe)
*/
observe(target: Node, options?: MutationObserverInit): void;
/**
* Empties the record queue and returns what was in there.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationObserver/takeRecords)
*/
takeRecords(): MutationRecord[];
}
declare var MutationObserver: {
prototype: MutationObserver;
new(callback: MutationCallback): MutationObserver;
};
/**
* A MutationRecord represents an individual DOM mutation. It is the object that is passed to MutationObserver's callback.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord)
*/
interface MutationRecord {
/**
* Return the nodes added and removed respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/addedNodes)
*/
readonly addedNodes: NodeList;
/**
* Returns the local name of the changed attribute, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeName)
*/
readonly attributeName: string | null;
/**
* Returns the namespace of the changed attribute, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/attributeNamespace)
*/
readonly attributeNamespace: string | null;
/**
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/nextSibling)
*/
readonly nextSibling: Node | null;
/**
* The return value depends on type. For "attributes", it is the value of the changed attribute before the change. For "characterData", it is the data of the changed node before the change. For "childList", it is null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/oldValue)
*/
readonly oldValue: string | null;
/**
* Return the previous and next sibling respectively of the added or removed nodes, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/previousSibling)
*/
readonly previousSibling: Node | null;
/**
* Return the nodes added and removed respectively.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/removedNodes)
*/
readonly removedNodes: NodeList;
/**
* Returns the node the mutation affected, depending on the type. For "attributes", it is the element whose attribute changed. For "characterData", it is the CharacterData node. For "childList", it is the node whose children changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/target)
*/
readonly target: Node;
/**
* Returns "attributes" if it was an attribute mutation. "characterData" if it was a mutation to a CharacterData node. And "childList" if it was a mutation to the tree of nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MutationRecord/type)
*/
readonly type: MutationRecordType;
}
declare var MutationRecord: {
prototype: MutationRecord;
new(): MutationRecord;
};
/**
* A collection of Attr objects. Objects inside a NamedNodeMap are not in any particular order, unlike NodeList, although they may be accessed by an index as in an array.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap)
*/
interface NamedNodeMap {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItem) */
getNamedItem(qualifiedName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/getNamedItemNS) */
getNamedItemNS(namespace: string | null, localName: string): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/item) */
item(index: number): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItem) */
removeNamedItem(qualifiedName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/removeNamedItemNS) */
removeNamedItemNS(namespace: string | null, localName: string): Attr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItem) */
setNamedItem(attr: Attr): Attr | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NamedNodeMap/setNamedItemNS) */
setNamedItemNS(attr: Attr): Attr | null;
[index: number]: Attr;
}
declare var NamedNodeMap: {
prototype: NamedNodeMap;
new(): NamedNodeMap;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
*/
interface NavigationPreloadManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */
disable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */
enable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */
getState(): Promise<NavigationPreloadState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/**
* The state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator)
*/
interface Navigator extends NavigatorAutomationInformation, NavigatorBadge, NavigatorConcurrentHardware, NavigatorContentUtils, NavigatorCookies, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorPlugins, NavigatorStorage {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clipboard)
*/
readonly clipboard: Clipboard;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/credentials)
*/
readonly credentials: CredentialsContainer;
readonly doNotTrack: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/geolocation) */
readonly geolocation: Geolocation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/maxTouchPoints) */
readonly maxTouchPoints: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaCapabilities) */
readonly mediaCapabilities: MediaCapabilities;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaDevices)
*/
readonly mediaDevices: MediaDevices;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/mediaSession) */
readonly mediaSession: MediaSession;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/permissions) */
readonly permissions: Permissions;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/serviceWorker)
*/
readonly serviceWorker: ServiceWorkerContainer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userActivation) */
readonly userActivation: UserActivation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/wakeLock) */
readonly wakeLock: WakeLock;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/canShare)
*/
canShare(data?: ShareData): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/getGamepads) */
getGamepads(): (Gamepad | null)[];
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMIDIAccess)
*/
requestMIDIAccess(options?: MIDIOptions): Promise<MIDIAccess>;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
*/
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): Promise<MediaKeySystemAccess>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/sendBeacon) */
sendBeacon(url: string | URL, data?: BodyInit | null): boolean;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/share)
*/
share(data?: ShareData): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
vibrate(pattern: VibratePattern): boolean;
}
declare var Navigator: {
prototype: Navigator;
new(): Navigator;
};
interface NavigatorAutomationInformation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/webdriver) */
readonly webdriver: boolean;
}
/** Available only in secure contexts. */
interface NavigatorBadge {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */
clearAppBadge(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */
setAppBadge(contents?: number): Promise<void>;
}
interface NavigatorConcurrentHardware {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */
readonly hardwareConcurrency: number;
}
interface NavigatorContentUtils {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/registerProtocolHandler)
*/
registerProtocolHandler(scheme: string, url: string | URL): void;
}
interface NavigatorCookies {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/cookieEnabled) */
readonly cookieEnabled: boolean;
}
interface NavigatorID {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
*/
readonly appCodeName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
*/
readonly appName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
*/
readonly appVersion: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
*/
readonly platform: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
*/
readonly product: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/productSub)
*/
readonly productSub: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
readonly userAgent: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendor)
*/
readonly vendor: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vendorSub)
*/
readonly vendorSub: string;
}
interface NavigatorLanguage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */
readonly language: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */
readonly locks: LockManager;
}
interface NavigatorOnLine {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */
readonly onLine: boolean;
}
interface NavigatorPlugins {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigatorPlugins/mimeTypes)
*/
readonly mimeTypes: MimeTypeArray;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/pdfViewerEnabled) */
readonly pdfViewerEnabled: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/plugins)
*/
readonly plugins: PluginArray;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/javaEnabled)
*/
javaEnabled(): boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */
readonly storage: StorageManager;
}
/**
* Node is an interface from which a number of DOM API object types inherit. It allows those types to be treated similarly; for example, inheriting the same set of methods, or being tested in the same way.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node)
*/
interface Node extends EventTarget {
/**
* Returns node's node document's document base URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/baseURI)
*/
readonly baseURI: string;
/**
* Returns the children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/childNodes)
*/
readonly childNodes: NodeListOf<ChildNode>;
/**
* Returns the first child.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/firstChild)
*/
readonly firstChild: ChildNode | null;
/**
* Returns true if node is connected and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isConnected)
*/
readonly isConnected: boolean;
/**
* Returns the last child.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lastChild)
*/
readonly lastChild: ChildNode | null;
/**
* Returns the next sibling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nextSibling)
*/
readonly nextSibling: ChildNode | null;
/**
* Returns a string appropriate for the type of node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeName)
*/
readonly nodeName: string;
/**
* Returns the type of node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeType)
*/
readonly nodeType: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/nodeValue) */
nodeValue: string | null;
/**
* Returns the node document. Returns null for documents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/ownerDocument)
*/
readonly ownerDocument: Document | null;
/**
* Returns the parent element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentElement)
*/
readonly parentElement: HTMLElement | null;
/**
* Returns the parent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/parentNode)
*/
readonly parentNode: ParentNode | null;
/**
* Returns the previous sibling.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/previousSibling)
*/
readonly previousSibling: ChildNode | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/textContent) */
textContent: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/appendChild) */
appendChild<T extends Node>(node: T): T;
/**
* Returns a copy of node. If deep is true, the copy also includes the node's descendants.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/cloneNode)
*/
cloneNode(deep?: boolean): Node;
/**
* Returns a bitmask indicating the position of other relative to node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/compareDocumentPosition)
*/
compareDocumentPosition(other: Node): number;
/**
* Returns true if other is an inclusive descendant of node, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/contains)
*/
contains(other: Node | null): boolean;
/**
* Returns node's root.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/getRootNode)
*/
getRootNode(options?: GetRootNodeOptions): Node;
/**
* Returns whether node has children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/hasChildNodes)
*/
hasChildNodes(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/insertBefore) */
insertBefore<T extends Node>(node: T, child: Node | null): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isDefaultNamespace) */
isDefaultNamespace(namespace: string | null): boolean;
/**
* Returns whether node and otherNode have the same properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isEqualNode)
*/
isEqualNode(otherNode: Node | null): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/isSameNode) */
isSameNode(otherNode: Node | null): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupNamespaceURI) */
lookupNamespaceURI(prefix: string | null): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/lookupPrefix) */
lookupPrefix(namespace: string | null): string | null;
/**
* Removes empty exclusive Text nodes and concatenates the data of remaining contiguous exclusive Text nodes into the first of their nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/normalize)
*/
normalize(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/removeChild) */
removeChild<T extends Node>(child: T): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/replaceChild) */
replaceChild<T extends Node>(node: Node, child: T): T;
/** node is an element. */
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
readonly TEXT_NODE: 3;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: 7;
/** node is a Comment node. */
readonly COMMENT_NODE: 8;
/** node is a document. */
readonly DOCUMENT_NODE: 9;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: 10;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: 0x02;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: 0x08;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
}
declare var Node: {
prototype: Node;
new(): Node;
/** node is an element. */
readonly ELEMENT_NODE: 1;
readonly ATTRIBUTE_NODE: 2;
/** node is a Text node. */
readonly TEXT_NODE: 3;
/** node is a CDATASection node. */
readonly CDATA_SECTION_NODE: 4;
readonly ENTITY_REFERENCE_NODE: 5;
readonly ENTITY_NODE: 6;
/** node is a ProcessingInstruction node. */
readonly PROCESSING_INSTRUCTION_NODE: 7;
/** node is a Comment node. */
readonly COMMENT_NODE: 8;
/** node is a document. */
readonly DOCUMENT_NODE: 9;
/** node is a doctype. */
readonly DOCUMENT_TYPE_NODE: 10;
/** node is a DocumentFragment node. */
readonly DOCUMENT_FRAGMENT_NODE: 11;
readonly NOTATION_NODE: 12;
/** Set when node and other are not in the same tree. */
readonly DOCUMENT_POSITION_DISCONNECTED: 0x01;
/** Set when other is preceding node. */
readonly DOCUMENT_POSITION_PRECEDING: 0x02;
/** Set when other is following node. */
readonly DOCUMENT_POSITION_FOLLOWING: 0x04;
/** Set when other is an ancestor of node. */
readonly DOCUMENT_POSITION_CONTAINS: 0x08;
/** Set when other is a descendant of node. */
readonly DOCUMENT_POSITION_CONTAINED_BY: 0x10;
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 0x20;
};
/**
* An iterator over the members of a list of the nodes in a subtree of the DOM. The nodes will be returned in document order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator)
*/
interface NodeIterator {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/filter) */
readonly filter: NodeFilter | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/pointerBeforeReferenceNode) */
readonly pointerBeforeReferenceNode: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/referenceNode) */
readonly referenceNode: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/root) */
readonly root: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/whatToShow) */
readonly whatToShow: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/detach)
*/
detach(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/nextNode) */
nextNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeIterator/previousNode) */
previousNode(): Node | null;
}
declare var NodeIterator: {
prototype: NodeIterator;
new(): NodeIterator;
};
/**
* NodeList objects are collections of nodes, usually returned by properties such as Node.childNodes and methods such as document.querySelectorAll().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList)
*/
interface NodeList {
/**
* Returns the number of nodes in the collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/length)
*/
readonly length: number;
/**
* Returns the node with index index from the collection. The nodes are sorted in tree order.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NodeList/item)
*/
item(index: number): Node | null;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: Node, key: number, parent: NodeList) => void, thisArg?: any): void;
[index: number]: Node;
}
declare var NodeList: {
prototype: NodeList;
new(): NodeList;
};
interface NodeListOf<TNode extends Node> extends NodeList {
item(index: number): TNode;
/**
* Performs the specified action for each node in an list.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the list.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: TNode, key: number, parent: NodeListOf<TNode>) => void, thisArg?: any): void;
[index: number]: TNode;
}
interface NonDocumentTypeChildNode {
/**
* Returns the first following sibling that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/nextElementSibling)
*/
readonly nextElementSibling: Element | null;
/**
* Returns the first preceding sibling that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CharacterData/previousElementSibling)
*/
readonly previousElementSibling: Element | null;
}
interface NonElementParentNode {
/**
* Returns the first element within node's descendants whose ID is elementId.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/getElementById)
*/
getElementById(elementId: string): Element | null;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/**
* This Notifications API interface is used to configure and display desktop notifications to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
*/
interface Notification extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */
readonly badge: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */
readonly body: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */
readonly dir: NotificationDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */
readonly icon: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */
onclick: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */
onclose: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */
onerror: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
onshow: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
readonly requireInteraction: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
readonly silent: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
readonly tag: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
readonly title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
readonly permission: NotificationPermission;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requestPermission_static) */
requestPermission(deprecatedCallback?: NotificationPermissionCallback): Promise<NotificationPermission>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */
interface OES_draw_buffers_indexed {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */
blendEquationiOES(buf: GLuint, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */
disableiOES(target: GLenum, index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */
enableiOES(target: GLenum, index: GLuint): void;
}
/**
* The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
*/
interface OES_element_index_uint {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */
interface OES_fbo_render_mipmap {
}
/**
* The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
*/
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/**
* The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
*/
interface OES_texture_float {
}
/**
* The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
*/
interface OES_texture_float_linear {
}
/**
* The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
*/
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: 0x8D61;
}
/**
* The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
*/
interface OES_texture_half_float_linear {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */
interface OES_vertex_array_object {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */
interface OVR_multiview2 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
readonly MAX_VIEWS_OVR: 0x9631;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
/**
* The Web Audio API OfflineAudioCompletionEvent interface represents events that occur when the processing of an OfflineAudioContext is terminated. The complete event implements this interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent)
*/
interface OfflineAudioCompletionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer) */
readonly renderedBuffer: AudioBuffer;
}
declare var OfflineAudioCompletionEvent: {
prototype: OfflineAudioCompletionEvent;
new(type: string, eventInitDict: OfflineAudioCompletionEventInit): OfflineAudioCompletionEvent;
};
interface OfflineAudioContextEventMap extends BaseAudioContextEventMap {
"complete": OfflineAudioCompletionEvent;
}
/**
* An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext)
*/
interface OfflineAudioContext extends BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/complete_event) */
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/resume) */
resume(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/startRendering) */
startRendering(): Promise<AudioBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OfflineAudioContext/suspend) */
suspend(suspendTime: number): Promise<void>;
addEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OfflineAudioContextEventMap>(type: K, listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OfflineAudioContext: {
prototype: OfflineAudioContext;
new(contextOptions: OfflineAudioContextOptions): OfflineAudioContext;
new(numberOfChannels: number, length: number, sampleRate: number): OfflineAudioContext;
};
interface OffscreenCanvasEventMap {
"contextlost": Event;
"contextrestored": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
height: number;
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
*/
getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/**
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
*/
transferToImageBitmap(): ImageBitmap;
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/**
* The OscillatorNode\xA0interface represents a periodic waveform, such as a sine wave. It is an AudioScheduledSourceNode audio-processing module that causes a specified frequency\xA0of a given wave to be created\u2014in effect, a constant tone.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode)
*/
interface OscillatorNode extends AudioScheduledSourceNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/detune) */
readonly detune: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/frequency) */
readonly frequency: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/type) */
type: OscillatorType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OscillatorNode/setPeriodicWave) */
setPeriodicWave(periodicWave: PeriodicWave): void;
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(type: K, listener: (this: OscillatorNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OscillatorNode: {
prototype: OscillatorNode;
new(context: BaseAudioContext, options?: OscillatorOptions): OscillatorNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError) */
interface OverconstrainedError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OverconstrainedError/constraint) */
readonly constraint: string;
}
declare var OverconstrainedError: {
prototype: OverconstrainedError;
new(constraint: string, message?: string): OverconstrainedError;
};
/**
* The PageTransitionEvent is fired when a document is being loaded or unloaded.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent)
*/
interface PageTransitionEvent extends Event {
/**
* For the pageshow event, returns false if the page is newly being loaded (and the load event will fire). Otherwise, returns true.
*
* For the pagehide event, returns false if the page is going away for the last time. Otherwise, returns true, meaning that (if nothing conspires to make the page unsalvageable) the page might be reused if the user navigates back to this page.
*
* Things that can cause the page to be unsalvageable include:
*
* The user agent decided to not keep the Document alive in a session history entry after unload
* Having iframes that are not salvageable
* Active WebSocket objects
* Aborting a Document
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PageTransitionEvent/persisted)
*/
readonly persisted: boolean;
}
declare var PageTransitionEvent: {
prototype: PageTransitionEvent;
new(type: string, eventInitDict?: PageTransitionEventInit): PageTransitionEvent;
};
/**
* A PannerNode always has exactly one input and one output: the input can be mono or stereo but the output is always stereo (2 channels); you can't have panning effects without at least two audio channels!
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode)
*/
interface PannerNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneInnerAngle) */
coneInnerAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterAngle) */
coneOuterAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/coneOuterGain) */
coneOuterGain: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/distanceModel) */
distanceModel: DistanceModelType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/maxDistance) */
maxDistance: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationX) */
readonly orientationX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationY) */
readonly orientationY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/orientationZ) */
readonly orientationZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/panningModel) */
panningModel: PanningModelType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionX) */
readonly positionX: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionY) */
readonly positionY: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/positionZ) */
readonly positionZ: AudioParam;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/refDistance) */
refDistance: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/rolloffFactor) */
rolloffFactor: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setOrientation)
*/
setOrientation(x: number, y: number, z: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PannerNode/setPosition)
*/
setPosition(x: number, y: number, z: number): void;
}
declare var PannerNode: {
prototype: PannerNode;
new(context: BaseAudioContext, options?: PannerOptions): PannerNode;
};
interface ParentNode extends Node {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/childElementCount) */
readonly childElementCount: number;
/**
* Returns the child elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/children)
*/
readonly children: HTMLCollection;
/**
* Returns the first child that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/firstElementChild)
*/
readonly firstElementChild: Element | null;
/**
* Returns the last child that is an element, and null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/lastElementChild)
*/
readonly lastElementChild: Element | null;
/**
* Inserts nodes after the last child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/append)
*/
append(...nodes: (Node | string)[]): void;
/**
* Inserts nodes before the first child of node, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/prepend)
*/
prepend(...nodes: (Node | string)[]): void;
/**
* Returns the first element that is a descendant of node that matches selectors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelector)
*/
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
/** @deprecated */
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
querySelector<E extends Element = Element>(selectors: string): E | null;
/**
* Returns all element descendants of node that match selectors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/querySelectorAll)
*/
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
/** @deprecated */
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
/**
* Replace all children of node with nodes, while replacing strings in nodes with equivalent Text nodes.
*
* Throws a "HierarchyRequestError" DOMException if the constraints of the node tree are violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/replaceChildren)
*/
replaceChildren(...nodes: (Node | string)[]): void;
}
/**
* This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
*/
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
*/
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent)
*/
interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodDetails) */
readonly methodDetails: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentMethodChangeEvent/methodName) */
readonly methodName: string;
}
declare var PaymentMethodChangeEvent: {
prototype: PaymentMethodChangeEvent;
new(type: string, eventInitDict?: PaymentMethodChangeEventInit): PaymentMethodChangeEvent;
};
interface PaymentRequestEventMap {
"paymentmethodchange": Event;
}
/**
* This Payment Request API interface is the primary access point into the API, and lets web content and apps accept payments from the end user.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest)
*/
interface PaymentRequest extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/paymentmethodchange_event) */
onpaymentmethodchange: ((this: PaymentRequest, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/abort) */
abort(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/canMakePayment) */
canMakePayment(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequest/show) */
show(detailsPromise?: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): Promise<PaymentResponse>;
addEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PaymentRequestEventMap>(type: K, listener: (this: PaymentRequest, ev: PaymentRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PaymentRequest: {
prototype: PaymentRequest;
new(methodData: PaymentMethodData[], details: PaymentDetailsInit): PaymentRequest;
};
/**
* This Payment Request API interface enables a web page to update the details of a PaymentRequest in response to a user action.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent)
*/
interface PaymentRequestUpdateEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentRequestUpdateEvent/updateWith) */
updateWith(detailsPromise: PaymentDetailsUpdate | PromiseLike<PaymentDetailsUpdate>): void;
}
declare var PaymentRequestUpdateEvent: {
prototype: PaymentRequestUpdateEvent;
new(type: string, eventInitDict?: PaymentRequestUpdateEventInit): PaymentRequestUpdateEvent;
};
/**
* This Payment Request API interface is returned after a user selects a payment method and approves a payment request.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse)
*/
interface PaymentResponse extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/details) */
readonly details: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/methodName) */
readonly methodName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/requestId) */
readonly requestId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/complete) */
complete(result?: PaymentComplete): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/retry) */
retry(errorFields?: PaymentValidationErrors): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PaymentResponse/toJSON) */
toJSON(): any;
}
declare var PaymentResponse: {
prototype: PaymentResponse;
new(): PaymentResponse;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/**
* Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
*/
interface Performance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/eventCounts) */
readonly eventCounts: EventCounts;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/navigation)
*/
readonly navigation: PerformanceNavigation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */
readonly timeOrigin: DOMHighResTimeStamp;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timing)
*/
readonly timing: PerformanceTiming;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */
clearMarks(markName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */
clearMeasures(measureName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */
clearResourceTimings(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */
now(): DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */
setResourceTimingBufferSize(maxSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/**
* Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
*/
interface PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */
readonly entryType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */
readonly startTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming) */
interface PerformanceEventTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/cancelable) */
readonly cancelable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingEnd) */
readonly processingEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/processingStart) */
readonly processingStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/target) */
readonly target: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEventTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceEventTiming: {
prototype: PerformanceEventTiming;
new(): PerformanceEventTiming;
};
/**
* PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
*/
interface PerformanceMark extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/**
* PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
*/
interface PerformanceMeasure extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/**
* The legacy PerformanceNavigation interface represents information about how the navigation to the current document was done.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation)
*/
interface PerformanceNavigation {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/redirectCount)
*/
readonly redirectCount: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/type)
*/
readonly type: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigation/toJSON)
*/
toJSON(): any;
readonly TYPE_NAVIGATE: 0;
readonly TYPE_RELOAD: 1;
readonly TYPE_BACK_FORWARD: 2;
readonly TYPE_RESERVED: 255;
}
/** @deprecated */
declare var PerformanceNavigation: {
prototype: PerformanceNavigation;
new(): PerformanceNavigation;
readonly TYPE_NAVIGATE: 0;
readonly TYPE_RELOAD: 1;
readonly TYPE_BACK_FORWARD: 2;
readonly TYPE_RESERVED: 255;
};
/**
* Provides methods and properties to store and retrieve metrics regarding the browser's document navigation events. For example, this interface can be used to determine how much time it takes to load or unload a document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming)
*/
interface PerformanceNavigationTiming extends PerformanceResourceTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domComplete) */
readonly domComplete: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd) */
readonly domContentLoadedEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart) */
readonly domContentLoadedEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/domInteractive) */
readonly domInteractive: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventEnd) */
readonly loadEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/loadEventStart) */
readonly loadEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/redirectCount) */
readonly redirectCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/type) */
readonly type: NavigationTimingType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd) */
readonly unloadEventEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/unloadEventStart) */
readonly unloadEventStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceNavigationTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceNavigationTiming: {
prototype: PerformanceNavigationTiming;
new(): PerformanceNavigationTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */
interface PerformanceObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */
observe(options?: PerformanceObserverInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
readonly supportedEntryTypes: ReadonlyArray<string>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */
interface PerformanceObserverEntryList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformancePaintTiming) */
interface PerformancePaintTiming extends PerformanceEntry {
}
declare var PerformancePaintTiming: {
prototype: PerformancePaintTiming;
new(): PerformancePaintTiming;
};
/**
* Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
*/
interface PerformanceResourceTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */
readonly connectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */
readonly connectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */
readonly decodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */
readonly domainLookupEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */
readonly domainLookupStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */
readonly encodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */
readonly fetchStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */
readonly initiatorType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */
readonly nextHopProtocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */
readonly redirectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */
readonly redirectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */
readonly requestStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */
readonly responseEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */
readonly responseStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */
readonly secureConnectionStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */
readonly transferSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */
readonly workerStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */
interface PerformanceServerTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */
readonly description: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
/**
* A legacy interface kept for backwards compatibility and contains properties that offer performance timing information for various events which occur during the loading and use of the current page. You get a PerformanceTiming object describing your page using the window.performance.timing property.
* @deprecated This interface is deprecated in the Navigation Timing Level 2 specification. Please use the PerformanceNavigationTiming interface instead.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming)
*/
interface PerformanceTiming {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectEnd)
*/
readonly connectEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/connectStart)
*/
readonly connectStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domComplete)
*/
readonly domComplete: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)
*/
readonly domContentLoadedEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)
*/
readonly domContentLoadedEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domInteractive)
*/
readonly domInteractive: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domLoading)
*/
readonly domLoading: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupEnd)
*/
readonly domainLookupEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/domainLookupStart)
*/
readonly domainLookupStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/fetchStart)
*/
readonly fetchStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventEnd)
*/
readonly loadEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/loadEventStart)
*/
readonly loadEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/navigationStart)
*/
readonly navigationStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectEnd)
*/
readonly redirectEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/redirectStart)
*/
readonly redirectStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/requestStart)
*/
readonly requestStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseEnd)
*/
readonly responseEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/responseStart)
*/
readonly responseStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/secureConnectionStart)
*/
readonly secureConnectionStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventEnd)
*/
readonly unloadEventEnd: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/unloadEventStart)
*/
readonly unloadEventStart: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceTiming/toJSON)
*/
toJSON(): any;
}
/** @deprecated */
declare var PerformanceTiming: {
prototype: PerformanceTiming;
new(): PerformanceTiming;
};
/**
* PeriodicWave has no inputs or outputs; it is used to define custom oscillators when calling OscillatorNode.setPeriodicWave(). The PeriodicWave itself is created/returned by AudioContext.createPeriodicWave().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PeriodicWave)
*/
interface PeriodicWave {
}
declare var PeriodicWave: {
prototype: PeriodicWave;
new(context: BaseAudioContext, options?: PeriodicWaveOptions): PeriodicWave;
};
interface PermissionStatusEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */
interface PermissionStatus extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */
interface Permissions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent) */
interface PictureInPictureEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureEvent/pictureInPictureWindow) */
readonly pictureInPictureWindow: PictureInPictureWindow;
}
declare var PictureInPictureEvent: {
prototype: PictureInPictureEvent;
new(type: string, eventInitDict: PictureInPictureEventInit): PictureInPictureEvent;
};
interface PictureInPictureWindowEventMap {
"resize": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow) */
interface PictureInPictureWindow extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/resize_event) */
onresize: ((this: PictureInPictureWindow, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PictureInPictureWindow/width) */
readonly width: number;
addEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PictureInPictureWindowEventMap>(type: K, listener: (this: PictureInPictureWindow, ev: PictureInPictureWindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PictureInPictureWindow: {
prototype: PictureInPictureWindow;
new(): PictureInPictureWindow;
};
/**
* Provides information about a browser plugin.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin)
*/
interface Plugin {
/**
* Returns the plugin's description.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/description)
*/
readonly description: string;
/**
* Returns the plugin library's filename, if applicable on the current platform.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/filename)
*/
readonly filename: string;
/**
* Returns the number of MIME types, represented by MimeType objects, supported by the plugin.
* @deprecated
*/
readonly length: number;
/**
* Returns the plugin's name.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/name)
*/
readonly name: string;
/**
* Returns the specified MimeType object.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/item)
*/
item(index: number): MimeType | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Plugin/namedItem)
*/
namedItem(name: string): MimeType | null;
[index: number]: MimeType;
}
/** @deprecated */
declare var Plugin: {
prototype: Plugin;
new(): Plugin;
};
/**
* Used to store a list of Plugin objects describing the available plugins; it's returned by the window.navigator.plugins\xA0property. The PluginArray is not a JavaScript array, but has the length property and supports accessing individual items using bracket notation (plugins[2]), as well as via item(index) and namedItem("name") methods.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray)
*/
interface PluginArray {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/length)
*/
readonly length: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/item)
*/
item(index: number): Plugin | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/namedItem)
*/
namedItem(name: string): Plugin | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PluginArray/refresh)
*/
refresh(): void;
[index: number]: Plugin;
}
/** @deprecated */
declare var PluginArray: {
prototype: PluginArray;
new(): PluginArray;
};
/**
* The state of a DOM event produced by a pointer such as the geometry of the contact point, the device type that generated the event, the amount of pressure that was applied on the contact surface, etc.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent)
*/
interface PointerEvent extends MouseEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/isPrimary) */
readonly isPrimary: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerId) */
readonly pointerId: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pointerType) */
readonly pointerType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/pressure) */
readonly pressure: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tangentialPressure) */
readonly tangentialPressure: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltX) */
readonly tiltX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/tiltY) */
readonly tiltY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/twist) */
readonly twist: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/width) */
readonly width: number;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getCoalescedEvents)
*/
getCoalescedEvents(): PointerEvent[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PointerEvent/getPredictedEvents) */
getPredictedEvents(): PointerEvent[];
}
declare var PointerEvent: {
prototype: PointerEvent;
new(type: string, eventInitDict?: PointerEventInit): PointerEvent;
};
/**
* PopStateEvent is an event handler for the popstate event on the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent)
*/
interface PopStateEvent extends Event {
/**
* Returns a copy of the information that was provided to pushState() or replaceState().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PopStateEvent/state)
*/
readonly state: any;
}
declare var PopStateEvent: {
prototype: PopStateEvent;
new(type: string, eventInitDict?: PopStateEventInit): PopStateEvent;
};
interface PopoverInvokerElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetAction) */
popoverTargetAction: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLButtonElement/popoverTargetElement) */
popoverTargetElement: Element | null;
}
/**
* A processing instruction embeds application-specific instructions in XML which can be ignored by other applications that don't recognize them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction)
*/
interface ProcessingInstruction extends CharacterData, LinkStyle {
readonly ownerDocument: Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction/target) */
readonly target: string;
}
declare var ProcessingInstruction: {
prototype: ProcessingInstruction;
new(): ProcessingInstruction;
};
/**
* Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
*/
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */
readonly lengthComputable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */
readonly loaded: number;
readonly target: T | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
interface PromiseRejectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
readonly promise: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential)
*/
interface PublicKeyCredential extends Credential {
readonly authenticatorAttachment: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/rawId) */
readonly rawId: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/response) */
readonly response: AuthenticatorResponse;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/getClientExtensionResults) */
getClientExtensionResults(): AuthenticationExtensionsClientOutputs;
}
declare var PublicKeyCredential: {
prototype: PublicKeyCredential;
new(): PublicKeyCredential;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable) */
isConditionalMediationAvailable(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable_static) */
isUserVerifyingPlatformAuthenticatorAvailable(): Promise<boolean>;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
*/
interface PushManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */
getSubscription(): Promise<PushSubscription | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
*/
interface PushSubscription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */
readonly endpoint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */
readonly expirationTime: EpochTimeStamp | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */
readonly options: PushSubscriptionOptions;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */
toJSON(): PushSubscriptionJSON;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
*/
interface PushSubscriptionOptions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */
readonly applicationServerKey: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate) */
interface RTCCertificate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/expires) */
readonly expires: EpochTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCCertificate/getFingerprints) */
getFingerprints(): RTCDtlsFingerprint[];
}
declare var RTCCertificate: {
prototype: RTCCertificate;
new(): RTCCertificate;
};
interface RTCDTMFSenderEventMap {
"tonechange": RTCDTMFToneChangeEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender) */
interface RTCDTMFSender extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/canInsertDTMF) */
readonly canInsertDTMF: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/tonechange_event) */
ontonechange: ((this: RTCDTMFSender, ev: RTCDTMFToneChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/toneBuffer) */
readonly toneBuffer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFSender/insertDTMF) */
insertDTMF(tones: string, duration?: number, interToneGap?: number): void;
addEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDTMFSenderEventMap>(type: K, listener: (this: RTCDTMFSender, ev: RTCDTMFSenderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDTMFSender: {
prototype: RTCDTMFSender;
new(): RTCDTMFSender;
};
/**
* Events sent to indicate that DTMF tones have started or finished playing. This interface is used by the tonechange event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent)
*/
interface RTCDTMFToneChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDTMFToneChangeEvent/tone) */
readonly tone: string;
}
declare var RTCDTMFToneChangeEvent: {
prototype: RTCDTMFToneChangeEvent;
new(type: string, eventInitDict?: RTCDTMFToneChangeEventInit): RTCDTMFToneChangeEvent;
};
interface RTCDataChannelEventMap {
"bufferedamountlow": Event;
"close": Event;
"closing": Event;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel) */
interface RTCDataChannel extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/binaryType) */
binaryType: BinaryType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmount) */
readonly bufferedAmount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold) */
bufferedAmountLowThreshold: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/id) */
readonly id: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/label) */
readonly label: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxPacketLifeTime) */
readonly maxPacketLifeTime: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/maxRetransmits) */
readonly maxRetransmits: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/negotiated) */
readonly negotiated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/bufferedamountlow_event) */
onbufferedamountlow: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close_event) */
onclose: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/closing_event) */
onclosing: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/error_event) */
onerror: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/message_event) */
onmessage: ((this: RTCDataChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/open_event) */
onopen: ((this: RTCDataChannel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/ordered) */
readonly ordered: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/protocol) */
readonly protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/readyState) */
readonly readyState: RTCDataChannelState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannel/send) */
send(data: string): void;
send(data: Blob): void;
send(data: ArrayBuffer): void;
send(data: ArrayBufferView): void;
addEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDataChannelEventMap>(type: K, listener: (this: RTCDataChannel, ev: RTCDataChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDataChannel: {
prototype: RTCDataChannel;
new(): RTCDataChannel;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent) */
interface RTCDataChannelEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDataChannelEvent/channel) */
readonly channel: RTCDataChannel;
}
declare var RTCDataChannelEvent: {
prototype: RTCDataChannelEvent;
new(type: string, eventInitDict: RTCDataChannelEventInit): RTCDataChannelEvent;
};
interface RTCDtlsTransportEventMap {
"error": Event;
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport) */
interface RTCDtlsTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/iceTransport) */
readonly iceTransport: RTCIceTransport;
onerror: ((this: RTCDtlsTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/statechange_event) */
onstatechange: ((this: RTCDtlsTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/state) */
readonly state: RTCDtlsTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCDtlsTransport/getRemoteCertificates) */
getRemoteCertificates(): ArrayBuffer[];
addEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCDtlsTransportEventMap>(type: K, listener: (this: RTCDtlsTransport, ev: RTCDtlsTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCDtlsTransport: {
prototype: RTCDtlsTransport;
new(): RTCDtlsTransport;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */
interface RTCEncodedAudioFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */
interface RTCEncodedVideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */
readonly type: RTCEncodedVideoFrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError) */
interface RTCError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/errorDetail) */
readonly errorDetail: RTCErrorDetailType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/receivedAlert) */
readonly receivedAlert: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sctpCauseCode) */
readonly sctpCauseCode: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sdpLineNumber) */
readonly sdpLineNumber: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCError/sentAlert) */
readonly sentAlert: number | null;
}
declare var RTCError: {
prototype: RTCError;
new(init: RTCErrorInit, message?: string): RTCError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent) */
interface RTCErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCErrorEvent/error) */
readonly error: RTCError;
}
declare var RTCErrorEvent: {
prototype: RTCErrorEvent;
new(type: string, eventInitDict: RTCErrorEventInit): RTCErrorEvent;
};
/**
* The RTCIceCandidate interface\u2014part of the WebRTC API\u2014represents a candidate Internet Connectivity Establishment (ICE) configuration which may be used to establish an RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate)
*/
interface RTCIceCandidate {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/address) */
readonly address: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/candidate) */
readonly candidate: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/component) */
readonly component: RTCIceComponent | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/foundation) */
readonly foundation: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/port) */
readonly port: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/priority) */
readonly priority: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/protocol) */
readonly protocol: RTCIceProtocol | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedAddress) */
readonly relatedAddress: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/relatedPort) */
readonly relatedPort: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMLineIndex) */
readonly sdpMLineIndex: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/sdpMid) */
readonly sdpMid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/tcpType) */
readonly tcpType: RTCIceTcpCandidateType | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/type) */
readonly type: RTCIceCandidateType | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/usernameFragment) */
readonly usernameFragment: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceCandidate/toJSON) */
toJSON(): RTCIceCandidateInit;
}
declare var RTCIceCandidate: {
prototype: RTCIceCandidate;
new(candidateInitDict?: RTCIceCandidateInit): RTCIceCandidate;
};
interface RTCIceTransportEventMap {
"gatheringstatechange": Event;
"selectedcandidatepairchange": Event;
"statechange": Event;
}
/**
* Provides access to information about the ICE transport layer over which the data is being sent and received.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport)
*/
interface RTCIceTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringState) */
readonly gatheringState: RTCIceGathererState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/gatheringstatechange_event) */
ongatheringstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/selectedcandidatepairchange_event) */
onselectedcandidatepairchange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/statechange_event) */
onstatechange: ((this: RTCIceTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/state) */
readonly state: RTCIceTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCIceTransport/getSelectedCandidatePair) */
getSelectedCandidatePair(): RTCIceCandidatePair | null;
addEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCIceTransportEventMap>(type: K, listener: (this: RTCIceTransport, ev: RTCIceTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCIceTransport: {
prototype: RTCIceTransport;
new(): RTCIceTransport;
};
interface RTCPeerConnectionEventMap {
"connectionstatechange": Event;
"datachannel": RTCDataChannelEvent;
"icecandidate": RTCPeerConnectionIceEvent;
"icecandidateerror": RTCPeerConnectionIceErrorEvent;
"iceconnectionstatechange": Event;
"icegatheringstatechange": Event;
"negotiationneeded": Event;
"signalingstatechange": Event;
"track": RTCTrackEvent;
}
/**
* A WebRTC connection between the local computer and a remote peer. It provides methods to connect to a remote peer, maintain and monitor the connection, and close the connection once it's no longer needed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection)
*/
interface RTCPeerConnection extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates) */
readonly canTrickleIceCandidates: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionState) */
readonly connectionState: RTCPeerConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentLocalDescription) */
readonly currentLocalDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/currentRemoteDescription) */
readonly currentRemoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceConnectionState) */
readonly iceConnectionState: RTCIceConnectionState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceGatheringState) */
readonly iceGatheringState: RTCIceGatheringState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/localDescription) */
readonly localDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/connectionstatechange_event) */
onconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/datachannel_event) */
ondatachannel: ((this: RTCPeerConnection, ev: RTCDataChannelEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidate_event) */
onicecandidate: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icecandidateerror_event) */
onicecandidateerror: ((this: RTCPeerConnection, ev: RTCPeerConnectionIceErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/iceconnectionstatechange_event) */
oniceconnectionstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/icegatheringstatechange_event) */
onicegatheringstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/negotiationneeded_event) */
onnegotiationneeded: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingstatechange_event) */
onsignalingstatechange: ((this: RTCPeerConnection, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/track_event) */
ontrack: ((this: RTCPeerConnection, ev: RTCTrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingLocalDescription) */
readonly pendingLocalDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/pendingRemoteDescription) */
readonly pendingRemoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/remoteDescription) */
readonly remoteDescription: RTCSessionDescription | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/sctp) */
readonly sctp: RTCSctpTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/signalingState) */
readonly signalingState: RTCSignalingState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addIceCandidate) */
addIceCandidate(candidate?: RTCIceCandidateInit): Promise<void>;
/** @deprecated */
addIceCandidate(candidate: RTCIceCandidateInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTrack) */
addTrack(track: MediaStreamTrack, ...streams: MediaStream[]): RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/addTransceiver) */
addTransceiver(trackOrKind: MediaStreamTrack | string, init?: RTCRtpTransceiverInit): RTCRtpTransceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createAnswer) */
createAnswer(options?: RTCAnswerOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createAnswer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createDataChannel) */
createDataChannel(label: string, dataChannelDict?: RTCDataChannelInit): RTCDataChannel;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/createOffer) */
createOffer(options?: RTCOfferOptions): Promise<RTCSessionDescriptionInit>;
/** @deprecated */
createOffer(successCallback: RTCSessionDescriptionCallback, failureCallback: RTCPeerConnectionErrorCallback, options?: RTCOfferOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getConfiguration) */
getConfiguration(): RTCConfiguration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getReceivers) */
getReceivers(): RTCRtpReceiver[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getSenders) */
getSenders(): RTCRtpSender[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getStats) */
getStats(selector?: MediaStreamTrack | null): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/getTransceivers) */
getTransceivers(): RTCRtpTransceiver[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/removeTrack) */
removeTrack(sender: RTCRtpSender): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/restartIce) */
restartIce(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setConfiguration) */
setConfiguration(configuration?: RTCConfiguration): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setLocalDescription) */
setLocalDescription(description?: RTCLocalSessionDescriptionInit): Promise<void>;
/** @deprecated */
setLocalDescription(description: RTCLocalSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/setRemoteDescription) */
setRemoteDescription(description: RTCSessionDescriptionInit): Promise<void>;
/** @deprecated */
setRemoteDescription(description: RTCSessionDescriptionInit, successCallback: VoidFunction, failureCallback: RTCPeerConnectionErrorCallback): Promise<void>;
addEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCPeerConnectionEventMap>(type: K, listener: (this: RTCPeerConnection, ev: RTCPeerConnectionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCPeerConnection: {
prototype: RTCPeerConnection;
new(configuration?: RTCConfiguration): RTCPeerConnection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnection/generateCertificate_static) */
generateCertificate(keygenAlgorithm: AlgorithmIdentifier): Promise<RTCCertificate>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent) */
interface RTCPeerConnectionIceErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/address) */
readonly address: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorCode) */
readonly errorCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/errorText) */
readonly errorText: string;
readonly port: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceErrorEvent/url) */
readonly url: string;
}
declare var RTCPeerConnectionIceErrorEvent: {
prototype: RTCPeerConnectionIceErrorEvent;
new(type: string, eventInitDict: RTCPeerConnectionIceErrorEventInit): RTCPeerConnectionIceErrorEvent;
};
/**
* Events that occurs in relation to ICE candidates with the target, usually an RTCPeerConnection. Only one event is of this type: icecandidate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent)
*/
interface RTCPeerConnectionIceEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCPeerConnectionIceEvent/candidate) */
readonly candidate: RTCIceCandidate | null;
}
declare var RTCPeerConnectionIceEvent: {
prototype: RTCPeerConnectionIceEvent;
new(type: string, eventInitDict?: RTCPeerConnectionIceEventInit): RTCPeerConnectionIceEvent;
};
/**
* This WebRTC API interface manages the reception and decoding of data for a\xA0MediaStreamTrack on an\xA0RTCPeerConnection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver)
*/
interface RTCRtpReceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/track) */
readonly track: MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transform) */
transform: RTCRtpTransform | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/transport) */
readonly transport: RTCDtlsTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getContributingSources) */
getContributingSources(): RTCRtpContributingSource[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getParameters) */
getParameters(): RTCRtpReceiveParameters;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getStats) */
getStats(): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getSynchronizationSources) */
getSynchronizationSources(): RTCRtpSynchronizationSource[];
}
declare var RTCRtpReceiver: {
prototype: RTCRtpReceiver;
new(): RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpReceiver/getCapabilities_static) */
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransform) */
interface RTCRtpScriptTransform {
}
declare var RTCRtpScriptTransform: {
prototype: RTCRtpScriptTransform;
new(worker: Worker, options?: any, transfer?: any[]): RTCRtpScriptTransform;
};
/**
* Provides the ability to control and obtain details about how a particular MediaStreamTrack is encoded and sent to a remote peer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender)
*/
interface RTCRtpSender {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/dtmf) */
readonly dtmf: RTCDTMFSender | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/track) */
readonly track: MediaStreamTrack | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transform) */
transform: RTCRtpTransform | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/transport) */
readonly transport: RTCDtlsTransport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getParameters) */
getParameters(): RTCRtpSendParameters;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getStats) */
getStats(): Promise<RTCStatsReport>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/replaceTrack) */
replaceTrack(withTrack: MediaStreamTrack | null): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setParameters) */
setParameters(parameters: RTCRtpSendParameters, setParameterOptions?: RTCSetParameterOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/setStreams) */
setStreams(...streams: MediaStream[]): void;
}
declare var RTCRtpSender: {
prototype: RTCRtpSender;
new(): RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpSender/getCapabilities_static) */
getCapabilities(kind: string): RTCRtpCapabilities | null;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver) */
interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/currentDirection) */
readonly currentDirection: RTCRtpTransceiverDirection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/direction) */
direction: RTCRtpTransceiverDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/mid) */
readonly mid: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/receiver) */
readonly receiver: RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/sender) */
readonly sender: RTCRtpSender;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/stop) */
stop(): void;
}
declare var RTCRtpTransceiver: {
prototype: RTCRtpTransceiver;
new(): RTCRtpTransceiver;
};
interface RTCSctpTransportEventMap {
"statechange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport) */
interface RTCSctpTransport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxChannels) */
readonly maxChannels: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/maxMessageSize) */
readonly maxMessageSize: number;
onstatechange: ((this: RTCSctpTransport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/state) */
readonly state: RTCSctpTransportState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSctpTransport/transport) */
readonly transport: RTCDtlsTransport;
addEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RTCSctpTransportEventMap>(type: K, listener: (this: RTCSctpTransport, ev: RTCSctpTransportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RTCSctpTransport: {
prototype: RTCSctpTransport;
new(): RTCSctpTransport;
};
/**
* One end of a connection\u2014or potential connection\u2014and how it's configured. Each RTCSessionDescription consists of a description type indicating which part of the offer/answer negotiation process it describes and of the SDP descriptor of the session.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription)
*/
interface RTCSessionDescription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/sdp) */
readonly sdp: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/type) */
readonly type: RTCSdpType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCSessionDescription/toJSON) */
toJSON(): any;
}
declare var RTCSessionDescription: {
prototype: RTCSessionDescription;
new(descriptionInitDict: RTCSessionDescriptionInit): RTCSessionDescription;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCStatsReport) */
interface RTCStatsReport {
forEach(callbackfn: (value: any, key: string, parent: RTCStatsReport) => void, thisArg?: any): void;
}
declare var RTCStatsReport: {
prototype: RTCStatsReport;
new(): RTCStatsReport;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent) */
interface RTCTrackEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/receiver) */
readonly receiver: RTCRtpReceiver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/streams) */
readonly streams: ReadonlyArray<MediaStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/track) */
readonly track: MediaStreamTrack;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTrackEvent/transceiver) */
readonly transceiver: RTCRtpTransceiver;
}
declare var RTCTrackEvent: {
prototype: RTCTrackEvent;
new(type: string, eventInitDict: RTCTrackEventInit): RTCTrackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList) */
interface RadioNodeList extends NodeList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RadioNodeList/value) */
value: string;
}
declare var RadioNodeList: {
prototype: RadioNodeList;
new(): RadioNodeList;
};
/**
* A fragment of a document that can contain nodes and parts of text nodes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range)
*/
interface Range extends AbstractRange {
/**
* Returns the node, furthest away from the document, that is an ancestor of both range's start node and end node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/commonAncestorContainer)
*/
readonly commonAncestorContainer: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneContents) */
cloneContents(): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/cloneRange) */
cloneRange(): Range;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/collapse) */
collapse(toStart?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/compareBoundaryPoints) */
compareBoundaryPoints(how: number, sourceRange: Range): number;
/**
* Returns \u22121 if the point is before the range, 0 if the point is in the range, and 1 if the point is after the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/comparePoint)
*/
comparePoint(node: Node, offset: number): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/createContextualFragment) */
createContextualFragment(fragment: string): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/deleteContents) */
deleteContents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/detach) */
detach(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/extractContents) */
extractContents(): DocumentFragment;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getBoundingClientRect) */
getBoundingClientRect(): DOMRect;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/getClientRects) */
getClientRects(): DOMRectList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/insertNode) */
insertNode(node: Node): void;
/**
* Returns whether range intersects node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/intersectsNode)
*/
intersectsNode(node: Node): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/isPointInRange) */
isPointInRange(node: Node, offset: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNode) */
selectNode(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/selectNodeContents) */
selectNodeContents(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEnd) */
setEnd(node: Node, offset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndAfter) */
setEndAfter(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setEndBefore) */
setEndBefore(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStart) */
setStart(node: Node, offset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartAfter) */
setStartAfter(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/setStartBefore) */
setStartBefore(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Range/surroundContents) */
surroundContents(newParent: Node): void;
toString(): string;
readonly START_TO_START: 0;
readonly START_TO_END: 1;
readonly END_TO_END: 2;
readonly END_TO_START: 3;
}
declare var Range: {
prototype: Range;
new(): Range;
readonly START_TO_START: 0;
readonly START_TO_END: 1;
readonly END_TO_END: 2;
readonly END_TO_START: 3;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
interface ReadableByteStreamController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
readonly byobRequest: ReadableStreamBYOBRequest | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
enqueue(chunk: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/**
* This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
*/
interface ReadableStream<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
cancel(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
interface ReadableStreamBYOBRequest {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
readonly view: ArrayBufferView | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
respond(bytesWritten: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
interface ReadableStreamDefaultController<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
enqueue(chunk?: R): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
read(): Promise<ReadableStreamReadResult<R>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
cancel(reason?: any): Promise<void>;
}
interface RemotePlaybackEventMap {
"connect": Event;
"connecting": Event;
"disconnect": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback) */
interface RemotePlayback extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connect_event) */
onconnect: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/connecting_event) */
onconnecting: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/disconnect_event) */
ondisconnect: ((this: RemotePlayback, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/state) */
readonly state: RemotePlaybackState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/cancelWatchAvailability) */
cancelWatchAvailability(id?: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/prompt) */
prompt(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RemotePlayback/watchAvailability) */
watchAvailability(callback: RemotePlaybackAvailabilityCallback): Promise<number>;
addEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof RemotePlaybackEventMap>(type: K, listener: (this: RemotePlayback, ev: RemotePlaybackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var RemotePlayback: {
prototype: RemotePlayback;
new(): RemotePlayback;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */
interface Report {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */
readonly body: ReportBody | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */
readonly url: string;
toJSON(): any;
}
declare var Report: {
prototype: Report;
new(): Report;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */
interface ReportBody {
toJSON(): any;
}
declare var ReportBody: {
prototype: ReportBody;
new(): ReportBody;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */
interface ReportingObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */
observe(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */
takeRecords(): ReportList;
}
declare var ReportingObserver: {
prototype: ReportingObserver;
new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};
/**
* This Fetch API interface represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
*/
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
readonly cache: RequestCache;
/**
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
*/
readonly destination: RequestDestination;
/**
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
*/
readonly headers: Headers;
/**
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
*/
readonly method: string;
/**
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
*/
readonly mode: RequestMode;
/**
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
*/
readonly redirect: RequestRedirect;
/**
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
*/
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver) */
interface ResizeObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/observe) */
observe(target: Element, options?: ResizeObserverOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserver/unobserve) */
unobserve(target: Element): void;
}
declare var ResizeObserver: {
prototype: ResizeObserver;
new(callback: ResizeObserverCallback): ResizeObserver;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry) */
interface ResizeObserverEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/borderBoxSize) */
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentBoxSize) */
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/contentRect) */
readonly contentRect: DOMRectReadOnly;
readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverEntry/target) */
readonly target: Element;
}
declare var ResizeObserverEntry: {
prototype: ResizeObserverEntry;
new(): ResizeObserverEntry;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize) */
interface ResizeObserverSize {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/blockSize) */
readonly blockSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ResizeObserverSize/inlineSize) */
readonly inlineSize: number;
}
declare var ResizeObserverSize: {
prototype: ResizeObserverSize;
new(): ResizeObserverSize;
};
/**
* This Fetch API interface represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
*/
interface Response extends Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */
readonly headers: Headers;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */
readonly ok: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */
readonly redirected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */
readonly statusText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */
readonly type: ResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
error(): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
json(data: any, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
redirect(url: string | URL, status?: number): Response;
};
/**
* Provides access to the properties of <a> element, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement)
*/
interface SVGAElement extends SVGGraphicsElement, SVGURIReference {
rel: string;
readonly relList: DOMTokenList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAElement/target) */
readonly target: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAElement: {
prototype: SVGAElement;
new(): SVGAElement;
};
/**
* Used to represent a value that can be an <angle> or <number> value. An SVGAngle reflected through the animVal attribute is always read only.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAngle)
*/
interface SVGAngle {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_ANGLETYPE_UNKNOWN: 0;
readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
readonly SVG_ANGLETYPE_DEG: 2;
readonly SVG_ANGLETYPE_RAD: 3;
readonly SVG_ANGLETYPE_GRAD: 4;
}
declare var SVGAngle: {
prototype: SVGAngle;
new(): SVGAngle;
readonly SVG_ANGLETYPE_UNKNOWN: 0;
readonly SVG_ANGLETYPE_UNSPECIFIED: 1;
readonly SVG_ANGLETYPE_DEG: 2;
readonly SVG_ANGLETYPE_RAD: 3;
readonly SVG_ANGLETYPE_GRAD: 4;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateElement) */
interface SVGAnimateElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateElement: {
prototype: SVGAnimateElement;
new(): SVGAnimateElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateMotionElement) */
interface SVGAnimateMotionElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateMotionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateMotionElement: {
prototype: SVGAnimateMotionElement;
new(): SVGAnimateMotionElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimateTransformElement) */
interface SVGAnimateTransformElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimateTransformElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimateTransformElement: {
prototype: SVGAnimateTransformElement;
new(): SVGAnimateTransformElement;
};
/**
* Used for attributes of basic type <angle> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedAngle)
*/
interface SVGAnimatedAngle {
readonly animVal: SVGAngle;
readonly baseVal: SVGAngle;
}
declare var SVGAnimatedAngle: {
prototype: SVGAnimatedAngle;
new(): SVGAnimatedAngle;
};
/**
* Used for attributes of type boolean which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedBoolean)
*/
interface SVGAnimatedBoolean {
readonly animVal: boolean;
baseVal: boolean;
}
declare var SVGAnimatedBoolean: {
prototype: SVGAnimatedBoolean;
new(): SVGAnimatedBoolean;
};
/**
* Used for attributes whose value must be a constant from a particular enumeration and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedEnumeration)
*/
interface SVGAnimatedEnumeration {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedEnumeration: {
prototype: SVGAnimatedEnumeration;
new(): SVGAnimatedEnumeration;
};
/**
* Used for attributes of basic type <integer> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedInteger)
*/
interface SVGAnimatedInteger {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedInteger: {
prototype: SVGAnimatedInteger;
new(): SVGAnimatedInteger;
};
/**
* Used for attributes of basic type <length> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLength)
*/
interface SVGAnimatedLength {
readonly animVal: SVGLength;
readonly baseVal: SVGLength;
}
declare var SVGAnimatedLength: {
prototype: SVGAnimatedLength;
new(): SVGAnimatedLength;
};
/**
* Used for attributes of type SVGLengthList which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedLengthList)
*/
interface SVGAnimatedLengthList {
readonly animVal: SVGLengthList;
readonly baseVal: SVGLengthList;
}
declare var SVGAnimatedLengthList: {
prototype: SVGAnimatedLengthList;
new(): SVGAnimatedLengthList;
};
/**
* Used for attributes of basic type <Number> which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumber)
*/
interface SVGAnimatedNumber {
readonly animVal: number;
baseVal: number;
}
declare var SVGAnimatedNumber: {
prototype: SVGAnimatedNumber;
new(): SVGAnimatedNumber;
};
/**
* The SVGAnimatedNumber interface is used for attributes which take a list of numbers and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedNumberList)
*/
interface SVGAnimatedNumberList {
readonly animVal: SVGNumberList;
readonly baseVal: SVGNumberList;
}
declare var SVGAnimatedNumberList: {
prototype: SVGAnimatedNumberList;
new(): SVGAnimatedNumberList;
};
interface SVGAnimatedPoints {
readonly animatedPoints: SVGPointList;
readonly points: SVGPointList;
}
/**
* Used for attributes of type SVGPreserveAspectRatio which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedPreserveAspectRatio)
*/
interface SVGAnimatedPreserveAspectRatio {
readonly animVal: SVGPreserveAspectRatio;
readonly baseVal: SVGPreserveAspectRatio;
}
declare var SVGAnimatedPreserveAspectRatio: {
prototype: SVGAnimatedPreserveAspectRatio;
new(): SVGAnimatedPreserveAspectRatio;
};
/**
* Used for attributes of basic SVGRect which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedRect)
*/
interface SVGAnimatedRect {
readonly animVal: DOMRectReadOnly;
readonly baseVal: DOMRect;
}
declare var SVGAnimatedRect: {
prototype: SVGAnimatedRect;
new(): SVGAnimatedRect;
};
/**
* The SVGAnimatedString\xA0interface represents string attributes which can be animated from each SVG declaration. You need to create SVG attribute before doing anything else, everything should be declared\xA0inside this.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString)
*/
interface SVGAnimatedString {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/animVal) */
readonly animVal: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedString/baseVal) */
baseVal: string;
}
declare var SVGAnimatedString: {
prototype: SVGAnimatedString;
new(): SVGAnimatedString;
};
/**
* Used for attributes which take a list of numbers and which can be animated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimatedTransformList)
*/
interface SVGAnimatedTransformList {
readonly animVal: SVGTransformList;
readonly baseVal: SVGTransformList;
}
declare var SVGAnimatedTransformList: {
prototype: SVGAnimatedTransformList;
new(): SVGAnimatedTransformList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement) */
interface SVGAnimationElement extends SVGElement, SVGTests {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGAnimationElement/targetElement) */
readonly targetElement: SVGElement | null;
beginElement(): void;
beginElementAt(offset: number): void;
endElement(): void;
endElementAt(offset: number): void;
getCurrentTime(): number;
getSimpleDuration(): number;
getStartTime(): number;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGAnimationElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGAnimationElement: {
prototype: SVGAnimationElement;
new(): SVGAnimationElement;
};
/**
* An interface for the <circle> element. The circle element is defined by the cx and cy attributes that denote the coordinates of the centre of the circle.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement)
*/
interface SVGCircleElement extends SVGGeometryElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cx) */
readonly cx: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/cy) */
readonly cy: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGCircleElement/r) */
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGCircleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGCircleElement: {
prototype: SVGCircleElement;
new(): SVGCircleElement;
};
/**
* Provides access to the properties of <clipPath> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement)
*/
interface SVGClipPathElement extends SVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/clipPathUnits) */
readonly clipPathUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGClipPathElement/transform) */
readonly transform: SVGAnimatedTransformList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGClipPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGClipPathElement: {
prototype: SVGClipPathElement;
new(): SVGClipPathElement;
};
/**
* A base interface used by the component transfer function interfaces.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGComponentTransferFunctionElement)
*/
interface SVGComponentTransferFunctionElement extends SVGElement {
readonly amplitude: SVGAnimatedNumber;
readonly exponent: SVGAnimatedNumber;
readonly intercept: SVGAnimatedNumber;
readonly offset: SVGAnimatedNumber;
readonly slope: SVGAnimatedNumber;
readonly tableValues: SVGAnimatedNumberList;
readonly type: SVGAnimatedEnumeration;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGComponentTransferFunctionElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGComponentTransferFunctionElement: {
prototype: SVGComponentTransferFunctionElement;
new(): SVGComponentTransferFunctionElement;
readonly SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: 0;
readonly SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: 1;
readonly SVG_FECOMPONENTTRANSFER_TYPE_TABLE: 2;
readonly SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: 3;
readonly SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: 4;
readonly SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: 5;
};
/**
* Corresponds to the <defs> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDefsElement)
*/
interface SVGDefsElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDefsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDefsElement: {
prototype: SVGDefsElement;
new(): SVGDefsElement;
};
/**
* Corresponds to the <desc> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGDescElement)
*/
interface SVGDescElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGDescElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGDescElement: {
prototype: SVGDescElement;
new(): SVGDescElement;
};
interface SVGElementEventMap extends ElementEventMap, GlobalEventHandlersEventMap {
}
/**
* All of the SVG DOM interfaces that correspond directly to elements in the SVG language derive from the SVGElement interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement)
*/
interface SVGElement extends Element, ElementCSSInlineStyle, GlobalEventHandlers, HTMLOrSVGElement {
/** @deprecated */
readonly className: any;
readonly ownerSVGElement: SVGSVGElement | null;
readonly viewportElement: SVGElement | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGElement: {
prototype: SVGElement;
new(): SVGElement;
};
/**
* Provides access to the properties of <ellipse> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGEllipseElement)
*/
interface SVGEllipseElement extends SVGGeometryElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGEllipseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGEllipseElement: {
prototype: SVGEllipseElement;
new(): SVGEllipseElement;
};
/**
* Corresponds to the <feBlend> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEBlendElement)
*/
interface SVGFEBlendElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly mode: SVGAnimatedEnumeration;
readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
readonly SVG_FEBLEND_MODE_NORMAL: 1;
readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
readonly SVG_FEBLEND_MODE_SCREEN: 3;
readonly SVG_FEBLEND_MODE_DARKEN: 4;
readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
readonly SVG_FEBLEND_MODE_OVERLAY: 6;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
readonly SVG_FEBLEND_MODE_HUE: 13;
readonly SVG_FEBLEND_MODE_SATURATION: 14;
readonly SVG_FEBLEND_MODE_COLOR: 15;
readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEBlendElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEBlendElement: {
prototype: SVGFEBlendElement;
new(): SVGFEBlendElement;
readonly SVG_FEBLEND_MODE_UNKNOWN: 0;
readonly SVG_FEBLEND_MODE_NORMAL: 1;
readonly SVG_FEBLEND_MODE_MULTIPLY: 2;
readonly SVG_FEBLEND_MODE_SCREEN: 3;
readonly SVG_FEBLEND_MODE_DARKEN: 4;
readonly SVG_FEBLEND_MODE_LIGHTEN: 5;
readonly SVG_FEBLEND_MODE_OVERLAY: 6;
readonly SVG_FEBLEND_MODE_COLOR_DODGE: 7;
readonly SVG_FEBLEND_MODE_COLOR_BURN: 8;
readonly SVG_FEBLEND_MODE_HARD_LIGHT: 9;
readonly SVG_FEBLEND_MODE_SOFT_LIGHT: 10;
readonly SVG_FEBLEND_MODE_DIFFERENCE: 11;
readonly SVG_FEBLEND_MODE_EXCLUSION: 12;
readonly SVG_FEBLEND_MODE_HUE: 13;
readonly SVG_FEBLEND_MODE_SATURATION: 14;
readonly SVG_FEBLEND_MODE_COLOR: 15;
readonly SVG_FEBLEND_MODE_LUMINOSITY: 16;
};
/**
* Corresponds to the <feColorMatrix> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement)
*/
interface SVGFEColorMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/in1) */
readonly in1: SVGAnimatedString;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/type) */
readonly type: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEColorMatrixElement/values) */
readonly values: SVGAnimatedNumberList;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEColorMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEColorMatrixElement: {
prototype: SVGFEColorMatrixElement;
new(): SVGFEColorMatrixElement;
readonly SVG_FECOLORMATRIX_TYPE_UNKNOWN: 0;
readonly SVG_FECOLORMATRIX_TYPE_MATRIX: 1;
readonly SVG_FECOLORMATRIX_TYPE_SATURATE: 2;
readonly SVG_FECOLORMATRIX_TYPE_HUEROTATE: 3;
readonly SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: 4;
};
/**
* Corresponds to the <feComponentTransfer> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEComponentTransferElement)
*/
interface SVGFEComponentTransferElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEComponentTransferElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEComponentTransferElement: {
prototype: SVGFEComponentTransferElement;
new(): SVGFEComponentTransferElement;
};
/**
* Corresponds to the <feComposite> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFECompositeElement)
*/
interface SVGFECompositeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly k1: SVGAnimatedNumber;
readonly k2: SVGAnimatedNumber;
readonly k3: SVGAnimatedNumber;
readonly k4: SVGAnimatedNumber;
readonly operator: SVGAnimatedEnumeration;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFECompositeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFECompositeElement: {
prototype: SVGFECompositeElement;
new(): SVGFECompositeElement;
readonly SVG_FECOMPOSITE_OPERATOR_UNKNOWN: 0;
readonly SVG_FECOMPOSITE_OPERATOR_OVER: 1;
readonly SVG_FECOMPOSITE_OPERATOR_IN: 2;
readonly SVG_FECOMPOSITE_OPERATOR_OUT: 3;
readonly SVG_FECOMPOSITE_OPERATOR_ATOP: 4;
readonly SVG_FECOMPOSITE_OPERATOR_XOR: 5;
readonly SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: 6;
};
/**
* Corresponds to the <feConvolveMatrix> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEConvolveMatrixElement)
*/
interface SVGFEConvolveMatrixElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly bias: SVGAnimatedNumber;
readonly divisor: SVGAnimatedNumber;
readonly edgeMode: SVGAnimatedEnumeration;
readonly in1: SVGAnimatedString;
readonly kernelMatrix: SVGAnimatedNumberList;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly orderX: SVGAnimatedInteger;
readonly orderY: SVGAnimatedInteger;
readonly preserveAlpha: SVGAnimatedBoolean;
readonly targetX: SVGAnimatedInteger;
readonly targetY: SVGAnimatedInteger;
readonly SVG_EDGEMODE_UNKNOWN: 0;
readonly SVG_EDGEMODE_DUPLICATE: 1;
readonly SVG_EDGEMODE_WRAP: 2;
readonly SVG_EDGEMODE_NONE: 3;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEConvolveMatrixElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEConvolveMatrixElement: {
prototype: SVGFEConvolveMatrixElement;
new(): SVGFEConvolveMatrixElement;
readonly SVG_EDGEMODE_UNKNOWN: 0;
readonly SVG_EDGEMODE_DUPLICATE: 1;
readonly SVG_EDGEMODE_WRAP: 2;
readonly SVG_EDGEMODE_NONE: 3;
};
/**
* Corresponds to the <feDiffuseLighting> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDiffuseLightingElement)
*/
interface SVGFEDiffuseLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly diffuseConstant: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDiffuseLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDiffuseLightingElement: {
prototype: SVGFEDiffuseLightingElement;
new(): SVGFEDiffuseLightingElement;
};
/**
* Corresponds to the <feDisplacementMap> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDisplacementMapElement)
*/
interface SVGFEDisplacementMapElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly in2: SVGAnimatedString;
readonly scale: SVGAnimatedNumber;
readonly xChannelSelector: SVGAnimatedEnumeration;
readonly yChannelSelector: SVGAnimatedEnumeration;
readonly SVG_CHANNEL_UNKNOWN: 0;
readonly SVG_CHANNEL_R: 1;
readonly SVG_CHANNEL_G: 2;
readonly SVG_CHANNEL_B: 3;
readonly SVG_CHANNEL_A: 4;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDisplacementMapElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDisplacementMapElement: {
prototype: SVGFEDisplacementMapElement;
new(): SVGFEDisplacementMapElement;
readonly SVG_CHANNEL_UNKNOWN: 0;
readonly SVG_CHANNEL_R: 1;
readonly SVG_CHANNEL_G: 2;
readonly SVG_CHANNEL_B: 3;
readonly SVG_CHANNEL_A: 4;
};
/**
* Corresponds to the <feDistantLight> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDistantLightElement)
*/
interface SVGFEDistantLightElement extends SVGElement {
readonly azimuth: SVGAnimatedNumber;
readonly elevation: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDistantLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDistantLightElement: {
prototype: SVGFEDistantLightElement;
new(): SVGFEDistantLightElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEDropShadowElement) */
interface SVGFEDropShadowElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEDropShadowElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEDropShadowElement: {
prototype: SVGFEDropShadowElement;
new(): SVGFEDropShadowElement;
};
/**
* Corresponds to the <feFlood> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFloodElement)
*/
interface SVGFEFloodElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFloodElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFloodElement: {
prototype: SVGFEFloodElement;
new(): SVGFEFloodElement;
};
/**
* Corresponds to the <feFuncA> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncAElement)
*/
interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncAElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncAElement: {
prototype: SVGFEFuncAElement;
new(): SVGFEFuncAElement;
};
/**
* Corresponds to the <feFuncB> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncBElement)
*/
interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncBElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncBElement: {
prototype: SVGFEFuncBElement;
new(): SVGFEFuncBElement;
};
/**
* Corresponds to the <feFuncG> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncGElement)
*/
interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncGElement: {
prototype: SVGFEFuncGElement;
new(): SVGFEFuncGElement;
};
/**
* Corresponds to the <feFuncR> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEFuncRElement)
*/
interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEFuncRElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEFuncRElement: {
prototype: SVGFEFuncRElement;
new(): SVGFEFuncRElement;
};
/**
* Corresponds to the <feGaussianBlur> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEGaussianBlurElement)
*/
interface SVGFEGaussianBlurElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly stdDeviationX: SVGAnimatedNumber;
readonly stdDeviationY: SVGAnimatedNumber;
setStdDeviation(stdDeviationX: number, stdDeviationY: number): void;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEGaussianBlurElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEGaussianBlurElement: {
prototype: SVGFEGaussianBlurElement;
new(): SVGFEGaussianBlurElement;
};
/**
* Corresponds to the <feImage> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEImageElement)
*/
interface SVGFEImageElement extends SVGElement, SVGFilterPrimitiveStandardAttributes, SVGURIReference {
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEImageElement: {
prototype: SVGFEImageElement;
new(): SVGFEImageElement;
};
/**
* Corresponds to the <feMerge> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeElement)
*/
interface SVGFEMergeElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeElement: {
prototype: SVGFEMergeElement;
new(): SVGFEMergeElement;
};
/**
* Corresponds to the <feMergeNode> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMergeNodeElement)
*/
interface SVGFEMergeNodeElement extends SVGElement {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMergeNodeElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMergeNodeElement: {
prototype: SVGFEMergeNodeElement;
new(): SVGFEMergeNodeElement;
};
/**
* Corresponds to the <feMorphology> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEMorphologyElement)
*/
interface SVGFEMorphologyElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly operator: SVGAnimatedEnumeration;
readonly radiusX: SVGAnimatedNumber;
readonly radiusY: SVGAnimatedNumber;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEMorphologyElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEMorphologyElement: {
prototype: SVGFEMorphologyElement;
new(): SVGFEMorphologyElement;
readonly SVG_MORPHOLOGY_OPERATOR_UNKNOWN: 0;
readonly SVG_MORPHOLOGY_OPERATOR_ERODE: 1;
readonly SVG_MORPHOLOGY_OPERATOR_DILATE: 2;
};
/**
* Corresponds to the <feOffset> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEOffsetElement)
*/
interface SVGFEOffsetElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly dx: SVGAnimatedNumber;
readonly dy: SVGAnimatedNumber;
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEOffsetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEOffsetElement: {
prototype: SVGFEOffsetElement;
new(): SVGFEOffsetElement;
};
/**
* Corresponds to the <fePointLight> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFEPointLightElement)
*/
interface SVGFEPointLightElement extends SVGElement {
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFEPointLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFEPointLightElement: {
prototype: SVGFEPointLightElement;
new(): SVGFEPointLightElement;
};
/**
* Corresponds to the <feSpecularLighting> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpecularLightingElement)
*/
interface SVGFESpecularLightingElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
readonly kernelUnitLengthX: SVGAnimatedNumber;
readonly kernelUnitLengthY: SVGAnimatedNumber;
readonly specularConstant: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly surfaceScale: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpecularLightingElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpecularLightingElement: {
prototype: SVGFESpecularLightingElement;
new(): SVGFESpecularLightingElement;
};
/**
* Corresponds to the <feSpotLight> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFESpotLightElement)
*/
interface SVGFESpotLightElement extends SVGElement {
readonly limitingConeAngle: SVGAnimatedNumber;
readonly pointsAtX: SVGAnimatedNumber;
readonly pointsAtY: SVGAnimatedNumber;
readonly pointsAtZ: SVGAnimatedNumber;
readonly specularExponent: SVGAnimatedNumber;
readonly x: SVGAnimatedNumber;
readonly y: SVGAnimatedNumber;
readonly z: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFESpotLightElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFESpotLightElement: {
prototype: SVGFESpotLightElement;
new(): SVGFESpotLightElement;
};
/**
* Corresponds to the <feTile> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETileElement)
*/
interface SVGFETileElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly in1: SVGAnimatedString;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETileElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETileElement: {
prototype: SVGFETileElement;
new(): SVGFETileElement;
};
/**
* Corresponds to the <feTurbulence> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFETurbulenceElement)
*/
interface SVGFETurbulenceElement extends SVGElement, SVGFilterPrimitiveStandardAttributes {
readonly baseFrequencyX: SVGAnimatedNumber;
readonly baseFrequencyY: SVGAnimatedNumber;
readonly numOctaves: SVGAnimatedInteger;
readonly seed: SVGAnimatedNumber;
readonly stitchTiles: SVGAnimatedEnumeration;
readonly type: SVGAnimatedEnumeration;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
readonly SVG_STITCHTYPE_UNKNOWN: 0;
readonly SVG_STITCHTYPE_STITCH: 1;
readonly SVG_STITCHTYPE_NOSTITCH: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFETurbulenceElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFETurbulenceElement: {
prototype: SVGFETurbulenceElement;
new(): SVGFETurbulenceElement;
readonly SVG_TURBULENCE_TYPE_UNKNOWN: 0;
readonly SVG_TURBULENCE_TYPE_FRACTALNOISE: 1;
readonly SVG_TURBULENCE_TYPE_TURBULENCE: 2;
readonly SVG_STITCHTYPE_UNKNOWN: 0;
readonly SVG_STITCHTYPE_STITCH: 1;
readonly SVG_STITCHTYPE_NOSTITCH: 2;
};
/**
* Provides access to the properties of <filter> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGFilterElement)
*/
interface SVGFilterElement extends SVGElement, SVGURIReference {
readonly filterUnits: SVGAnimatedEnumeration;
readonly height: SVGAnimatedLength;
readonly primitiveUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGFilterElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGFilterElement: {
prototype: SVGFilterElement;
new(): SVGFilterElement;
};
interface SVGFilterPrimitiveStandardAttributes {
readonly height: SVGAnimatedLength;
readonly result: SVGAnimatedString;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
}
interface SVGFitToViewBox {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/preserveAspectRatio) */
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/viewBox) */
readonly viewBox: SVGAnimatedRect;
}
/**
* Provides access to the properties of <foreignObject> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGForeignObjectElement)
*/
interface SVGForeignObjectElement extends SVGGraphicsElement {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGForeignObjectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGForeignObjectElement: {
prototype: SVGForeignObjectElement;
new(): SVGForeignObjectElement;
};
/**
* Corresponds to the <g> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGElement)
*/
interface SVGGElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGElement: {
prototype: SVGGElement;
new(): SVGGElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement) */
interface SVGGeometryElement extends SVGGraphicsElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/pathLength) */
readonly pathLength: SVGAnimatedNumber;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getPointAtLength) */
getPointAtLength(distance: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/getTotalLength) */
getTotalLength(): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInFill) */
isPointInFill(point?: DOMPointInit): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGeometryElement/isPointInStroke) */
isPointInStroke(point?: DOMPointInit): boolean;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGeometryElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGeometryElement: {
prototype: SVGGeometryElement;
new(): SVGGeometryElement;
};
/**
* The SVGGradient interface is a base interface used by SVGLinearGradientElement and SVGRadialGradientElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGradientElement)
*/
interface SVGGradientElement extends SVGElement, SVGURIReference {
readonly gradientTransform: SVGAnimatedTransformList;
readonly gradientUnits: SVGAnimatedEnumeration;
readonly spreadMethod: SVGAnimatedEnumeration;
readonly SVG_SPREADMETHOD_UNKNOWN: 0;
readonly SVG_SPREADMETHOD_PAD: 1;
readonly SVG_SPREADMETHOD_REFLECT: 2;
readonly SVG_SPREADMETHOD_REPEAT: 3;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGradientElement: {
prototype: SVGGradientElement;
new(): SVGGradientElement;
readonly SVG_SPREADMETHOD_UNKNOWN: 0;
readonly SVG_SPREADMETHOD_PAD: 1;
readonly SVG_SPREADMETHOD_REFLECT: 2;
readonly SVG_SPREADMETHOD_REPEAT: 3;
};
/**
* SVG elements whose primary purpose is to directly render graphics into a group.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement)
*/
interface SVGGraphicsElement extends SVGElement, SVGTests {
readonly transform: SVGAnimatedTransformList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGGraphicsElement/getBBox) */
getBBox(options?: SVGBoundingBoxOptions): DOMRect;
getCTM(): DOMMatrix | null;
getScreenCTM(): DOMMatrix | null;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGGraphicsElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGGraphicsElement: {
prototype: SVGGraphicsElement;
new(): SVGGraphicsElement;
};
/**
* Corresponds to the <image> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement)
*/
interface SVGImageElement extends SVGGraphicsElement, SVGURIReference {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/crossorigin) */
crossOrigin: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/height) */
readonly height: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/preserveAspectRatio) */
readonly preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/width) */
readonly width: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/x) */
readonly x: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGImageElement/y) */
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGImageElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGImageElement: {
prototype: SVGImageElement;
new(): SVGImageElement;
};
/**
* Correspond to the <length> basic data type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLength)
*/
interface SVGLength {
readonly unitType: number;
value: number;
valueAsString: string;
valueInSpecifiedUnits: number;
convertToSpecifiedUnits(unitType: number): void;
newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
readonly SVG_LENGTHTYPE_UNKNOWN: 0;
readonly SVG_LENGTHTYPE_NUMBER: 1;
readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
readonly SVG_LENGTHTYPE_EMS: 3;
readonly SVG_LENGTHTYPE_EXS: 4;
readonly SVG_LENGTHTYPE_PX: 5;
readonly SVG_LENGTHTYPE_CM: 6;
readonly SVG_LENGTHTYPE_MM: 7;
readonly SVG_LENGTHTYPE_IN: 8;
readonly SVG_LENGTHTYPE_PT: 9;
readonly SVG_LENGTHTYPE_PC: 10;
}
declare var SVGLength: {
prototype: SVGLength;
new(): SVGLength;
readonly SVG_LENGTHTYPE_UNKNOWN: 0;
readonly SVG_LENGTHTYPE_NUMBER: 1;
readonly SVG_LENGTHTYPE_PERCENTAGE: 2;
readonly SVG_LENGTHTYPE_EMS: 3;
readonly SVG_LENGTHTYPE_EXS: 4;
readonly SVG_LENGTHTYPE_PX: 5;
readonly SVG_LENGTHTYPE_CM: 6;
readonly SVG_LENGTHTYPE_MM: 7;
readonly SVG_LENGTHTYPE_IN: 8;
readonly SVG_LENGTHTYPE_PT: 9;
readonly SVG_LENGTHTYPE_PC: 10;
};
/**
* The SVGLengthList defines a list of SVGLength objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLengthList)
*/
interface SVGLengthList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGLength): SVGLength;
clear(): void;
getItem(index: number): SVGLength;
initialize(newItem: SVGLength): SVGLength;
insertItemBefore(newItem: SVGLength, index: number): SVGLength;
removeItem(index: number): SVGLength;
replaceItem(newItem: SVGLength, index: number): SVGLength;
[index: number]: SVGLength;
}
declare var SVGLengthList: {
prototype: SVGLengthList;
new(): SVGLengthList;
};
/**
* Provides access to the properties of <line> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLineElement)
*/
interface SVGLineElement extends SVGGeometryElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLineElement: {
prototype: SVGLineElement;
new(): SVGLineElement;
};
/**
* Corresponds to the <linearGradient> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGLinearGradientElement)
*/
interface SVGLinearGradientElement extends SVGGradientElement {
readonly x1: SVGAnimatedLength;
readonly x2: SVGAnimatedLength;
readonly y1: SVGAnimatedLength;
readonly y2: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGLinearGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGLinearGradientElement: {
prototype: SVGLinearGradientElement;
new(): SVGLinearGradientElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMPathElement) */
interface SVGMPathElement extends SVGElement, SVGURIReference {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMPathElement: {
prototype: SVGMPathElement;
new(): SVGMPathElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement) */
interface SVGMarkerElement extends SVGElement, SVGFitToViewBox {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerHeight) */
readonly markerHeight: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerUnits) */
readonly markerUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/markerWidth) */
readonly markerWidth: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientAngle) */
readonly orientAngle: SVGAnimatedAngle;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/orientType) */
readonly orientType: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refX) */
readonly refX: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/refY) */
readonly refY: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAngle) */
setOrientToAngle(angle: SVGAngle): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMarkerElement/setOrientToAuto) */
setOrientToAuto(): void;
readonly SVG_MARKERUNITS_UNKNOWN: 0;
readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
readonly SVG_MARKER_ORIENT_AUTO: 1;
readonly SVG_MARKER_ORIENT_ANGLE: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMarkerElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMarkerElement: {
prototype: SVGMarkerElement;
new(): SVGMarkerElement;
readonly SVG_MARKERUNITS_UNKNOWN: 0;
readonly SVG_MARKERUNITS_USERSPACEONUSE: 1;
readonly SVG_MARKERUNITS_STROKEWIDTH: 2;
readonly SVG_MARKER_ORIENT_UNKNOWN: 0;
readonly SVG_MARKER_ORIENT_AUTO: 1;
readonly SVG_MARKER_ORIENT_ANGLE: 2;
};
/**
* Provides access to the properties of <mask> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement)
*/
interface SVGMaskElement extends SVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/height) */
readonly height: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskContentUnits) */
readonly maskContentUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/maskUnits) */
readonly maskUnits: SVGAnimatedEnumeration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/width) */
readonly width: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/x) */
readonly x: SVGAnimatedLength;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMaskElement/y) */
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMaskElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMaskElement: {
prototype: SVGMaskElement;
new(): SVGMaskElement;
};
/**
* Corresponds to the <metadata> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGMetadataElement)
*/
interface SVGMetadataElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGMetadataElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGMetadataElement: {
prototype: SVGMetadataElement;
new(): SVGMetadataElement;
};
/**
* Corresponds to the <number> basic data type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumber)
*/
interface SVGNumber {
value: number;
}
declare var SVGNumber: {
prototype: SVGNumber;
new(): SVGNumber;
};
/**
* The SVGNumberList defines a list of SVGNumber objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGNumberList)
*/
interface SVGNumberList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGNumber): SVGNumber;
clear(): void;
getItem(index: number): SVGNumber;
initialize(newItem: SVGNumber): SVGNumber;
insertItemBefore(newItem: SVGNumber, index: number): SVGNumber;
removeItem(index: number): SVGNumber;
replaceItem(newItem: SVGNumber, index: number): SVGNumber;
[index: number]: SVGNumber;
}
declare var SVGNumberList: {
prototype: SVGNumberList;
new(): SVGNumberList;
};
/**
* Corresponds to the <path> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPathElement)
*/
interface SVGPathElement extends SVGGeometryElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPathElement: {
prototype: SVGPathElement;
new(): SVGPathElement;
};
/**
* Corresponds to the <pattern> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPatternElement)
*/
interface SVGPatternElement extends SVGElement, SVGFitToViewBox, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly patternContentUnits: SVGAnimatedEnumeration;
readonly patternTransform: SVGAnimatedTransformList;
readonly patternUnits: SVGAnimatedEnumeration;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPatternElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPatternElement: {
prototype: SVGPatternElement;
new(): SVGPatternElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList) */
interface SVGPointList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/numberOfItems) */
readonly numberOfItems: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/appendItem) */
appendItem(newItem: DOMPoint): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/clear) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/getItem) */
getItem(index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/initialize) */
initialize(newItem: DOMPoint): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/insertItemBefore) */
insertItemBefore(newItem: DOMPoint, index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/removeItem) */
removeItem(index: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPointList/replaceItem) */
replaceItem(newItem: DOMPoint, index: number): DOMPoint;
[index: number]: DOMPoint;
}
declare var SVGPointList: {
prototype: SVGPointList;
new(): SVGPointList;
};
/**
* Provides access to the properties of <polygon> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolygonElement)
*/
interface SVGPolygonElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolygonElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolygonElement: {
prototype: SVGPolygonElement;
new(): SVGPolygonElement;
};
/**
* Provides access to the properties of <polyline> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPolylineElement)
*/
interface SVGPolylineElement extends SVGGeometryElement, SVGAnimatedPoints {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGPolylineElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGPolylineElement: {
prototype: SVGPolylineElement;
new(): SVGPolylineElement;
};
/**
* Corresponds to the preserveAspectRatio attribute, which is available for some of SVG's elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGPreserveAspectRatio)
*/
interface SVGPreserveAspectRatio {
align: number;
meetOrSlice: number;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
readonly SVG_MEETORSLICE_UNKNOWN: 0;
readonly SVG_MEETORSLICE_MEET: 1;
readonly SVG_MEETORSLICE_SLICE: 2;
}
declare var SVGPreserveAspectRatio: {
prototype: SVGPreserveAspectRatio;
new(): SVGPreserveAspectRatio;
readonly SVG_PRESERVEASPECTRATIO_UNKNOWN: 0;
readonly SVG_PRESERVEASPECTRATIO_NONE: 1;
readonly SVG_PRESERVEASPECTRATIO_XMINYMIN: 2;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMIN: 3;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMIN: 4;
readonly SVG_PRESERVEASPECTRATIO_XMINYMID: 5;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMID: 6;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMID: 7;
readonly SVG_PRESERVEASPECTRATIO_XMINYMAX: 8;
readonly SVG_PRESERVEASPECTRATIO_XMIDYMAX: 9;
readonly SVG_PRESERVEASPECTRATIO_XMAXYMAX: 10;
readonly SVG_MEETORSLICE_UNKNOWN: 0;
readonly SVG_MEETORSLICE_MEET: 1;
readonly SVG_MEETORSLICE_SLICE: 2;
};
/**
* Corresponds to the <RadialGradient> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRadialGradientElement)
*/
interface SVGRadialGradientElement extends SVGGradientElement {
readonly cx: SVGAnimatedLength;
readonly cy: SVGAnimatedLength;
readonly fr: SVGAnimatedLength;
readonly fx: SVGAnimatedLength;
readonly fy: SVGAnimatedLength;
readonly r: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRadialGradientElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRadialGradientElement: {
prototype: SVGRadialGradientElement;
new(): SVGRadialGradientElement;
};
/**
* Provides access to the properties of <rect> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGRectElement)
*/
interface SVGRectElement extends SVGGeometryElement {
readonly height: SVGAnimatedLength;
readonly rx: SVGAnimatedLength;
readonly ry: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGRectElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGRectElement: {
prototype: SVGRectElement;
new(): SVGRectElement;
};
interface SVGSVGElementEventMap extends SVGElementEventMap, WindowEventHandlersEventMap {
}
/**
* Provides access to the properties of <svg> elements, as well as methods to manipulate them. This interface contains also various miscellaneous commonly-used utility methods, such as matrix operations and the ability to control the time of redraw on visual rendering devices.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSVGElement)
*/
interface SVGSVGElement extends SVGGraphicsElement, SVGFitToViewBox, WindowEventHandlers {
currentScale: number;
readonly currentTranslate: DOMPointReadOnly;
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
animationsPaused(): boolean;
checkEnclosure(element: SVGElement, rect: DOMRectReadOnly): boolean;
checkIntersection(element: SVGElement, rect: DOMRectReadOnly): boolean;
createSVGAngle(): SVGAngle;
createSVGLength(): SVGLength;
createSVGMatrix(): DOMMatrix;
createSVGNumber(): SVGNumber;
createSVGPoint(): DOMPoint;
createSVGRect(): DOMRect;
createSVGTransform(): SVGTransform;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
deselectAll(): void;
/** @deprecated */
forceRedraw(): void;
getCurrentTime(): number;
getElementById(elementId: string): Element;
getEnclosureList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
getIntersectionList(rect: DOMRectReadOnly, referenceElement: SVGElement | null): NodeListOf<SVGCircleElement | SVGEllipseElement | SVGImageElement | SVGLineElement | SVGPathElement | SVGPolygonElement | SVGPolylineElement | SVGRectElement | SVGTextElement | SVGUseElement>;
pauseAnimations(): void;
setCurrentTime(seconds: number): void;
/** @deprecated */
suspendRedraw(maxWaitMilliseconds: number): number;
unpauseAnimations(): void;
/** @deprecated */
unsuspendRedraw(suspendHandleID: number): void;
/** @deprecated */
unsuspendRedrawAll(): void;
addEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGSVGElementEventMap>(type: K, listener: (this: SVGSVGElement, ev: SVGSVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSVGElement: {
prototype: SVGSVGElement;
new(): SVGSVGElement;
};
/**
* Corresponds to the SVG <script> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGScriptElement)
*/
interface SVGScriptElement extends SVGElement, SVGURIReference {
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGScriptElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGScriptElement: {
prototype: SVGScriptElement;
new(): SVGScriptElement;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSetElement) */
interface SVGSetElement extends SVGAnimationElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSetElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSetElement: {
prototype: SVGSetElement;
new(): SVGSetElement;
};
/**
* Corresponds to the <stop> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStopElement)
*/
interface SVGStopElement extends SVGElement {
readonly offset: SVGAnimatedNumber;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStopElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStopElement: {
prototype: SVGStopElement;
new(): SVGStopElement;
};
/**
* The SVGStringList defines a list of DOMString objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStringList)
*/
interface SVGStringList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: string): string;
clear(): void;
getItem(index: number): string;
initialize(newItem: string): string;
insertItemBefore(newItem: string, index: number): string;
removeItem(index: number): string;
replaceItem(newItem: string, index: number): string;
[index: number]: string;
}
declare var SVGStringList: {
prototype: SVGStringList;
new(): SVGStringList;
};
/**
* Corresponds to the SVG <style> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement)
*/
interface SVGStyleElement extends SVGElement, LinkStyle {
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/media) */
media: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/title) */
title: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGStyleElement/type)
*/
type: string;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGStyleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGStyleElement: {
prototype: SVGStyleElement;
new(): SVGStyleElement;
};
/**
* Corresponds to the <switch> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSwitchElement)
*/
interface SVGSwitchElement extends SVGGraphicsElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSwitchElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSwitchElement: {
prototype: SVGSwitchElement;
new(): SVGSwitchElement;
};
/**
* Corresponds to the <symbol> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGSymbolElement)
*/
interface SVGSymbolElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGSymbolElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGSymbolElement: {
prototype: SVGSymbolElement;
new(): SVGSymbolElement;
};
/**
* A <tspan> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTSpanElement)
*/
interface SVGTSpanElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTSpanElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTSpanElement: {
prototype: SVGTSpanElement;
new(): SVGTSpanElement;
};
interface SVGTests {
readonly requiredExtensions: SVGStringList;
readonly systemLanguage: SVGStringList;
}
/**
* Implemented by elements that support rendering child text content. It is inherited by various text-related interfaces, such as SVGTextElement, SVGTSpanElement, SVGTRefElement, SVGAltGlyphElement and SVGTextPathElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextContentElement)
*/
interface SVGTextContentElement extends SVGGraphicsElement {
readonly lengthAdjust: SVGAnimatedEnumeration;
readonly textLength: SVGAnimatedLength;
getCharNumAtPosition(point?: DOMPointInit): number;
getComputedTextLength(): number;
getEndPositionOfChar(charnum: number): DOMPoint;
getExtentOfChar(charnum: number): DOMRect;
getNumberOfChars(): number;
getRotationOfChar(charnum: number): number;
getStartPositionOfChar(charnum: number): DOMPoint;
getSubStringLength(charnum: number, nchars: number): number;
/** @deprecated */
selectSubString(charnum: number, nchars: number): void;
readonly LENGTHADJUST_UNKNOWN: 0;
readonly LENGTHADJUST_SPACING: 1;
readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextContentElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextContentElement: {
prototype: SVGTextContentElement;
new(): SVGTextContentElement;
readonly LENGTHADJUST_UNKNOWN: 0;
readonly LENGTHADJUST_SPACING: 1;
readonly LENGTHADJUST_SPACINGANDGLYPHS: 2;
};
/**
* Corresponds to the <text> elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextElement)
*/
interface SVGTextElement extends SVGTextPositioningElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextElement: {
prototype: SVGTextElement;
new(): SVGTextElement;
};
/**
* Corresponds to the <textPath> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPathElement)
*/
interface SVGTextPathElement extends SVGTextContentElement, SVGURIReference {
readonly method: SVGAnimatedEnumeration;
readonly spacing: SVGAnimatedEnumeration;
readonly startOffset: SVGAnimatedLength;
readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
readonly TEXTPATH_METHODTYPE_ALIGN: 1;
readonly TEXTPATH_METHODTYPE_STRETCH: 2;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPathElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPathElement: {
prototype: SVGTextPathElement;
new(): SVGTextPathElement;
readonly TEXTPATH_METHODTYPE_UNKNOWN: 0;
readonly TEXTPATH_METHODTYPE_ALIGN: 1;
readonly TEXTPATH_METHODTYPE_STRETCH: 2;
readonly TEXTPATH_SPACINGTYPE_UNKNOWN: 0;
readonly TEXTPATH_SPACINGTYPE_AUTO: 1;
readonly TEXTPATH_SPACINGTYPE_EXACT: 2;
};
/**
* Implemented by elements that support attributes that position individual text glyphs. It is inherited by SVGTextElement, SVGTSpanElement, SVGTRefElement and SVGAltGlyphElement.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTextPositioningElement)
*/
interface SVGTextPositioningElement extends SVGTextContentElement {
readonly dx: SVGAnimatedLengthList;
readonly dy: SVGAnimatedLengthList;
readonly rotate: SVGAnimatedNumberList;
readonly x: SVGAnimatedLengthList;
readonly y: SVGAnimatedLengthList;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTextPositioningElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTextPositioningElement: {
prototype: SVGTextPositioningElement;
new(): SVGTextPositioningElement;
};
/**
* Corresponds to the <title> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTitleElement)
*/
interface SVGTitleElement extends SVGElement {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGTitleElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGTitleElement: {
prototype: SVGTitleElement;
new(): SVGTitleElement;
};
/**
* SVGTransform is the interface for one of the component transformations within an SVGTransformList; thus, an SVGTransform object corresponds to a single component (e.g., scale(\u2026) or matrix(\u2026)) within a transform attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransform)
*/
interface SVGTransform {
readonly angle: number;
readonly matrix: DOMMatrix;
readonly type: number;
setMatrix(matrix?: DOMMatrix2DInit): void;
setRotate(angle: number, cx: number, cy: number): void;
setScale(sx: number, sy: number): void;
setSkewX(angle: number): void;
setSkewY(angle: number): void;
setTranslate(tx: number, ty: number): void;
readonly SVG_TRANSFORM_UNKNOWN: 0;
readonly SVG_TRANSFORM_MATRIX: 1;
readonly SVG_TRANSFORM_TRANSLATE: 2;
readonly SVG_TRANSFORM_SCALE: 3;
readonly SVG_TRANSFORM_ROTATE: 4;
readonly SVG_TRANSFORM_SKEWX: 5;
readonly SVG_TRANSFORM_SKEWY: 6;
}
declare var SVGTransform: {
prototype: SVGTransform;
new(): SVGTransform;
readonly SVG_TRANSFORM_UNKNOWN: 0;
readonly SVG_TRANSFORM_MATRIX: 1;
readonly SVG_TRANSFORM_TRANSLATE: 2;
readonly SVG_TRANSFORM_SCALE: 3;
readonly SVG_TRANSFORM_ROTATE: 4;
readonly SVG_TRANSFORM_SKEWX: 5;
readonly SVG_TRANSFORM_SKEWY: 6;
};
/**
* The SVGTransformList defines a list of SVGTransform objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGTransformList)
*/
interface SVGTransformList {
readonly length: number;
readonly numberOfItems: number;
appendItem(newItem: SVGTransform): SVGTransform;
clear(): void;
consolidate(): SVGTransform | null;
createSVGTransformFromMatrix(matrix?: DOMMatrix2DInit): SVGTransform;
getItem(index: number): SVGTransform;
initialize(newItem: SVGTransform): SVGTransform;
insertItemBefore(newItem: SVGTransform, index: number): SVGTransform;
removeItem(index: number): SVGTransform;
replaceItem(newItem: SVGTransform, index: number): SVGTransform;
[index: number]: SVGTransform;
}
declare var SVGTransformList: {
prototype: SVGTransformList;
new(): SVGTransformList;
};
interface SVGURIReference {
readonly href: SVGAnimatedString;
}
/**
* A commonly used set of constants used for reflecting gradientUnits, patternContentUnits and other similar attributes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUnitTypes)
*/
interface SVGUnitTypes {
readonly SVG_UNIT_TYPE_UNKNOWN: 0;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
}
declare var SVGUnitTypes: {
prototype: SVGUnitTypes;
new(): SVGUnitTypes;
readonly SVG_UNIT_TYPE_UNKNOWN: 0;
readonly SVG_UNIT_TYPE_USERSPACEONUSE: 1;
readonly SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: 2;
};
/**
* Corresponds to the <use> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGUseElement)
*/
interface SVGUseElement extends SVGGraphicsElement, SVGURIReference {
readonly height: SVGAnimatedLength;
readonly width: SVGAnimatedLength;
readonly x: SVGAnimatedLength;
readonly y: SVGAnimatedLength;
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGUseElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGUseElement: {
prototype: SVGUseElement;
new(): SVGUseElement;
};
/**
* Provides access to the properties of <view> elements, as well as methods to manipulate them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGViewElement)
*/
interface SVGViewElement extends SVGElement, SVGFitToViewBox {
addEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SVGElementEventMap>(type: K, listener: (this: SVGViewElement, ev: SVGElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SVGViewElement: {
prototype: SVGViewElement;
new(): SVGViewElement;
};
/**
* A screen, usually the one on which the current window is being rendered, and is obtained using window.screen.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen)
*/
interface Screen {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availHeight) */
readonly availHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/availWidth) */
readonly availWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/colorDepth) */
readonly colorDepth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/orientation) */
readonly orientation: ScreenOrientation;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/pixelDepth) */
readonly pixelDepth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Screen/width) */
readonly width: number;
}
declare var Screen: {
prototype: Screen;
new(): Screen;
};
interface ScreenOrientationEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation) */
interface ScreenOrientation extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/angle) */
readonly angle: number;
onchange: ((this: ScreenOrientation, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/type) */
readonly type: OrientationType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScreenOrientation/unlock) */
unlock(): void;
addEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScreenOrientationEventMap>(type: K, listener: (this: ScreenOrientation, ev: ScreenOrientationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ScreenOrientation: {
prototype: ScreenOrientation;
new(): ScreenOrientation;
};
interface ScriptProcessorNodeEventMap {
"audioprocess": AudioProcessingEvent;
}
/**
* Allows the generation, processing, or analyzing of audio using JavaScript.
* @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode)
*/
interface ScriptProcessorNode extends AudioNode {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/bufferSize)
*/
readonly bufferSize: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ScriptProcessorNode/audioprocess_event)
*/
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(type: K, listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
new(): ScriptProcessorNode;
};
/**
* Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
*/
interface SecurityPolicyViolationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */
readonly blockedURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */
readonly columnNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */
readonly disposition: SecurityPolicyViolationEventDisposition;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */
readonly documentURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */
readonly effectiveDirective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */
readonly lineNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */
readonly originalPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */
readonly referrer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */
readonly sample: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */
readonly sourceFile: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */
readonly statusCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
/**
* A Selection object\xA0represents the range of text selected by the user or the current position of the caret. To obtain a Selection object for examination or\xA0modification, call Window.getSelection().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection)
*/
interface Selection {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorNode) */
readonly anchorNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/anchorOffset) */
readonly anchorOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusNode) */
readonly focusNode: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/focusOffset) */
readonly focusOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/isCollapsed) */
readonly isCollapsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/rangeCount) */
readonly rangeCount: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/addRange) */
addRange(range: Range): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */
collapse(node: Node | null, offset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToEnd) */
collapseToEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapseToStart) */
collapseToStart(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/containsNode) */
containsNode(node: Node, allowPartialContainment?: boolean): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/deleteFromDocument) */
deleteFromDocument(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */
empty(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/extend) */
extend(node: Node, offset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/getRangeAt) */
getRangeAt(index: number): Range;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/modify) */
modify(alter?: string, direction?: string, granularity?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeAllRanges) */
removeAllRanges(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/removeRange) */
removeRange(range: Range): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/selectAllChildren) */
selectAllChildren(node: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/setBaseAndExtent) */
setBaseAndExtent(anchorNode: Node, anchorOffset: number, focusNode: Node, focusOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Selection/collapse) */
setPosition(node: Node | null, offset?: number): void;
toString(): string;
}
declare var Selection: {
prototype: Selection;
new(): Selection;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */
readonly scriptURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */
readonly state: ServiceWorkerState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
*/
interface ServiceWorkerContainer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */
readonly controller: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
readonly ready: Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
*/
interface ServiceWorkerRegistration extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */
readonly active: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */
readonly installing: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */
readonly navigationPreload: NavigationPreloadManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
readonly pushManager: PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */
readonly scope: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */
readonly updateViaCache: ServiceWorkerUpdateViaCache;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */
readonly waiting: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */
showNotification(title: string, options?: NotificationOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
unregister(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface ShadowRootEventMap {
"slotchange": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot) */
interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/delegatesFocus) */
readonly delegatesFocus: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/host) */
readonly host: Element;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/mode) */
readonly mode: ShadowRootMode;
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ShadowRoot/slotAssignment) */
readonly slotAssignment: SlotAssignmentMode;
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ShadowRoot: {
prototype: ShadowRoot;
new(): ShadowRoot;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker) */
interface SharedWorker extends EventTarget, AbstractWorker {
/**
* Returns sharedWorker's MessagePort object which can be used to communicate with the global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorker/port)
*/
readonly port: MessagePort;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: SharedWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorker: {
prototype: SharedWorker;
new(scriptURL: string | URL, options?: string | WorkerOptions): SharedWorker;
};
interface Slottable {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/assignedSlot) */
readonly assignedSlot: HTMLSlotElement | null;
}
interface SourceBufferEventMap {
"abort": Event;
"error": Event;
"update": Event;
"updateend": Event;
"updatestart": Event;
}
/**
* A chunk of media to be passed into an HTMLMediaElement and played, via a MediaSource\xA0object. This can be made up of one or several media segments.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer)
*/
interface SourceBuffer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowEnd) */
appendWindowEnd: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendWindowStart) */
appendWindowStart: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/buffered) */
readonly buffered: TimeRanges;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/mode) */
mode: AppendMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort_event) */
onabort: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/error_event) */
onerror: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/update_event) */
onupdate: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updateend_event) */
onupdateend: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updatestart_event) */
onupdatestart: ((this: SourceBuffer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/timestampOffset) */
timestampOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/updating) */
readonly updating: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/appendBuffer) */
appendBuffer(data: BufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/changeType) */
changeType(type: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBuffer/remove) */
remove(start: number, end: number): void;
addEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferEventMap>(type: K, listener: (this: SourceBuffer, ev: SourceBufferEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SourceBuffer: {
prototype: SourceBuffer;
new(): SourceBuffer;
};
interface SourceBufferListEventMap {
"addsourcebuffer": Event;
"removesourcebuffer": Event;
}
/**
* A simple container list for multiple SourceBuffer objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList)
*/
interface SourceBufferList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/addsourcebuffer_event) */
onaddsourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SourceBufferList/removesourcebuffer_event) */
onremovesourcebuffer: ((this: SourceBufferList, ev: Event) => any) | null;
addEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SourceBufferListEventMap>(type: K, listener: (this: SourceBufferList, ev: SourceBufferListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: SourceBuffer;
}
declare var SourceBufferList: {
prototype: SourceBufferList;
new(): SourceBufferList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative) */
interface SpeechRecognitionAlternative {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/confidence) */
readonly confidence: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionAlternative/transcript) */
readonly transcript: string;
}
declare var SpeechRecognitionAlternative: {
prototype: SpeechRecognitionAlternative;
new(): SpeechRecognitionAlternative;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult) */
interface SpeechRecognitionResult {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/isFinal) */
readonly isFinal: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResult/item) */
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
declare var SpeechRecognitionResult: {
prototype: SpeechRecognitionResult;
new(): SpeechRecognitionResult;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList) */
interface SpeechRecognitionResultList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechRecognitionResultList/item) */
item(index: number): SpeechRecognitionResult;
[index: number]: SpeechRecognitionResult;
}
declare var SpeechRecognitionResultList: {
prototype: SpeechRecognitionResultList;
new(): SpeechRecognitionResultList;
};
interface SpeechSynthesisEventMap {
"voiceschanged": Event;
}
/**
* This Web Speech API interface is the controller interface for the speech service; this can be used to retrieve information about the synthesis voices available on the device, start and pause speech, and other commands besides.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis)
*/
interface SpeechSynthesis extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/voiceschanged_event) */
onvoiceschanged: ((this: SpeechSynthesis, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/paused) */
readonly paused: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pending) */
readonly pending: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speaking) */
readonly speaking: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/cancel) */
cancel(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/getVoices) */
getVoices(): SpeechSynthesisVoice[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/pause) */
pause(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/resume) */
resume(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesis/speak) */
speak(utterance: SpeechSynthesisUtterance): void;
addEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisEventMap>(type: K, listener: (this: SpeechSynthesis, ev: SpeechSynthesisEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesis: {
prototype: SpeechSynthesis;
new(): SpeechSynthesis;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent) */
interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisErrorEvent/error) */
readonly error: SpeechSynthesisErrorCode;
}
declare var SpeechSynthesisErrorEvent: {
prototype: SpeechSynthesisErrorEvent;
new(type: string, eventInitDict: SpeechSynthesisErrorEventInit): SpeechSynthesisErrorEvent;
};
/**
* This Web Speech API interface contains information about the current state of SpeechSynthesisUtterance objects that have been processed in the speech service.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent)
*/
interface SpeechSynthesisEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charIndex) */
readonly charIndex: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/charLength) */
readonly charLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisEvent/utterance) */
readonly utterance: SpeechSynthesisUtterance;
}
declare var SpeechSynthesisEvent: {
prototype: SpeechSynthesisEvent;
new(type: string, eventInitDict: SpeechSynthesisEventInit): SpeechSynthesisEvent;
};
interface SpeechSynthesisUtteranceEventMap {
"boundary": SpeechSynthesisEvent;
"end": SpeechSynthesisEvent;
"error": SpeechSynthesisErrorEvent;
"mark": SpeechSynthesisEvent;
"pause": SpeechSynthesisEvent;
"resume": SpeechSynthesisEvent;
"start": SpeechSynthesisEvent;
}
/**
* This Web Speech API interface represents a speech request. It contains the content the speech service should read and information about how to read it (e.g. language, pitch and volume.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance)
*/
interface SpeechSynthesisUtterance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/lang) */
lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/boundary_event) */
onboundary: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/end_event) */
onend: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/error_event) */
onerror: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/mark_event) */
onmark: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pause_event) */
onpause: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/resume_event) */
onresume: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/start_event) */
onstart: ((this: SpeechSynthesisUtterance, ev: SpeechSynthesisEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/pitch) */
pitch: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/rate) */
rate: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/text) */
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/voice) */
voice: SpeechSynthesisVoice | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisUtterance/volume) */
volume: number;
addEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SpeechSynthesisUtteranceEventMap>(type: K, listener: (this: SpeechSynthesisUtterance, ev: SpeechSynthesisUtteranceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SpeechSynthesisUtterance: {
prototype: SpeechSynthesisUtterance;
new(text?: string): SpeechSynthesisUtterance;
};
/**
* This Web Speech API interface represents a voice that the system supports. Every SpeechSynthesisVoice has its own relative speech service including information about language, name and URI.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice)
*/
interface SpeechSynthesisVoice {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/default) */
readonly default: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/localService) */
readonly localService: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SpeechSynthesisVoice/voiceURI) */
readonly voiceURI: string;
}
declare var SpeechSynthesisVoice: {
prototype: SpeechSynthesisVoice;
new(): SpeechSynthesisVoice;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StaticRange) */
interface StaticRange extends AbstractRange {
}
declare var StaticRange: {
prototype: StaticRange;
new(init: StaticRangeInit): StaticRange;
};
/**
* The pan property takes a unitless value between -1 (full left pan) and 1 (full right pan). This interface was introduced as a much simpler way to apply a simple panning effect than having to use a full PannerNode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode)
*/
interface StereoPannerNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StereoPannerNode/pan) */
readonly pan: AudioParam;
}
declare var StereoPannerNode: {
prototype: StereoPannerNode;
new(context: BaseAudioContext, options?: StereoPannerOptions): StereoPannerNode;
};
/**
* This Web Storage API interface provides access to a particular domain's session or local storage. It allows, for example, the addition, modification, or deletion of stored data items.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage)
*/
interface Storage {
/**
* Returns the number of key/value pairs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length)
*/
readonly length: number;
/**
* Removes all key/value pairs, if there are any.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/clear)
*/
clear(): void;
/**
* Returns the current value associated with the given key, or null if the given key does not exist.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/getItem)
*/
getItem(key: string): string | null;
/**
* Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/key)
*/
key(index: number): string | null;
/**
* Removes the key/value pair with the given key, if a key/value pair with the given key exists.
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/removeItem)
*/
removeItem(key: string): void;
/**
* Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
*
* Throws a "QuotaExceededError" DOMException exception if the new value couldn't be set. (Setting could fail if, e.g., the user has disabled storage for the site, or if the quota has been exceeded.)
*
* Dispatches a storage event on Window objects holding an equivalent Storage object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/setItem)
*/
setItem(key: string, value: string): void;
[name: string]: any;
}
declare var Storage: {
prototype: Storage;
new(): Storage;
};
/**
* A StorageEvent is sent to a window when a storage area it has access to is changed within the context of another document.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent)
*/
interface StorageEvent extends Event {
/**
* Returns the key of the storage item being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/key)
*/
readonly key: string | null;
/**
* Returns the new value of the key of the storage item whose value is being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/newValue)
*/
readonly newValue: string | null;
/**
* Returns the old value of the key of the storage item whose value is being changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/oldValue)
*/
readonly oldValue: string | null;
/**
* Returns the Storage object that was affected.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/storageArea)
*/
readonly storageArea: Storage | null;
/**
* Returns the URL of the document whose storage item changed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/url)
*/
readonly url: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageEvent/initStorageEvent)
*/
initStorageEvent(type: string, bubbles?: boolean, cancelable?: boolean, key?: string | null, oldValue?: string | null, newValue?: string | null, url?: string | URL, storageArea?: Storage | null): void;
}
declare var StorageEvent: {
prototype: StorageEvent;
new(type: string, eventInitDict?: StorageEventInit): StorageEvent;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
*/
interface StorageManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */
estimate(): Promise<StorageEstimate>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */
getDirectory(): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persist) */
persist(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** @deprecated */
interface StyleMedia {
type: string;
matchMedium(mediaquery: string): boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap) */
interface StylePropertyMap extends StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/append) */
append(property: string, ...values: (CSSStyleValue | string)[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/clear) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/delete) */
delete(property: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMap/set) */
set(property: string, ...values: (CSSStyleValue | string)[]): void;
}
declare var StylePropertyMap: {
prototype: StylePropertyMap;
new(): StylePropertyMap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */
interface StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */
get(property: string): undefined | CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */
getAll(property: string): CSSStyleValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */
has(property: string): boolean;
forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
}
declare var StylePropertyMapReadOnly: {
prototype: StylePropertyMapReadOnly;
new(): StylePropertyMapReadOnly;
};
/**
* A single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet)
*/
interface StyleSheet {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/disabled) */
disabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/href) */
readonly href: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/media) */
readonly media: MediaList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/ownerNode) */
readonly ownerNode: Element | ProcessingInstruction | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/parentStyleSheet) */
readonly parentStyleSheet: CSSStyleSheet | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/title) */
readonly title: string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheet/type) */
readonly type: string;
}
declare var StyleSheet: {
prototype: StyleSheet;
new(): StyleSheet;
};
/**
* A list of StyleSheet.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList)
*/
interface StyleSheetList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StyleSheetList/item) */
item(index: number): CSSStyleSheet | null;
[index: number]: CSSStyleSheet;
}
declare var StyleSheetList: {
prototype: StyleSheetList;
new(): StyleSheetList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent) */
interface SubmitEvent extends Event {
/**
* Returns the element representing the submit button that triggered the form submission, or null if the submission was not triggered by a button.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubmitEvent/submitter)
*/
readonly submitter: HTMLElement | null;
}
declare var SubmitEvent: {
prototype: SubmitEvent;
new(type: string, eventInitDict?: SubmitEventInit): SubmitEvent;
};
/**
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
*/
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/**
* The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text)
*/
interface Text extends CharacterData, Slottable {
/**
* Returns the combined data of all direct Text node siblings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/wholeText)
*/
readonly wholeText: string;
/**
* Splits data at the given offset and returns the remainder as Text node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Text/splitText)
*/
splitText(offset: number): Text;
}
declare var Text: {
prototype: Text;
new(data?: string): Text;
};
/**
* A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
*/
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
*/
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/**
* Returns encoding's name, lowercased.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
*/
readonly encoding: string;
/**
* Returns true if error mode is "fatal", otherwise false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
*/
readonly fatal: boolean;
/**
* Returns the value of ignore BOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
*/
readonly ignoreBOM: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/**
* TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
*/
interface TextEncoder extends TextEncoderCommon {
/**
* Returns the result of running UTF-8's encoder.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
*/
encode(input?: string): Uint8Array;
/**
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
*/
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/**
* Returns "utf-8".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
*/
readonly encoding: string;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/**
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
*/
interface TextMetrics {
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
*/
readonly actualBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
*/
readonly actualBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
*/
readonly actualBoundingBoxLeft: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
*/
readonly alphabeticBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
interface TextTrackEventMap {
"cuechange": Event;
}
/**
* This interface also inherits properties from EventTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack)
*/
interface TextTrack extends EventTarget {
/**
* Returns the text track cues from the text track list of cues that are currently active (i.e. that start before the current playback position and end after it), as a TextTrackCueList object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/activeCues)
*/
readonly activeCues: TextTrackCueList | null;
/**
* Returns the text track list of cues, as a TextTrackCueList object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cues)
*/
readonly cues: TextTrackCueList | null;
/**
* Returns the ID of the given track.
*
* For in-band tracks, this is the ID that can be used with a fragment if the format supports media fragment syntax, and that can be used with the getTrackById() method.
*
* For TextTrack objects corresponding to track elements, this is the ID of the track element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/id)
*/
readonly id: string;
/**
* Returns the text track in-band metadata track dispatch type string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)
*/
readonly inBandMetadataTrackDispatchType: string;
/**
* Returns the text track kind string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/kind)
*/
readonly kind: TextTrackKind;
/**
* Returns the text track label, if there is one, or the empty string otherwise (indicating that a custom label probably needs to be generated from the other attributes of the object if the object is exposed to the user).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/label)
*/
readonly label: string;
/**
* Returns the text track language string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/language)
*/
readonly language: string;
/**
* Returns the text track mode, represented by a string from the following list:
*
* Can be set, to change the mode.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/mode)
*/
mode: TextTrackMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/cuechange_event) */
oncuechange: ((this: TextTrack, ev: Event) => any) | null;
/**
* Adds the given cue to textTrack's text track list of cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/addCue)
*/
addCue(cue: TextTrackCue): void;
/**
* Removes the given cue from textTrack's text track list of cues.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrack/removeCue)
*/
removeCue(cue: TextTrackCue): void;
addEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackEventMap>(type: K, listener: (this: TextTrack, ev: TextTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrack: {
prototype: TextTrack;
new(): TextTrack;
};
interface TextTrackCueEventMap {
"enter": Event;
"exit": Event;
}
/**
* TextTrackCues represent a string of text that will be displayed for some duration of time on a TextTrack. This includes the start and end times that the cue will be displayed. A TextTrackCue cannot be used directly, instead one of the derived types (e.g. VTTCue) must be used.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue)
*/
interface TextTrackCue extends EventTarget {
/**
* Returns the text track cue end time, in seconds.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/endTime)
*/
endTime: number;
/**
* Returns the text track cue identifier.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/id)
*/
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/enter_event) */
onenter: ((this: TextTrackCue, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/exit_event) */
onexit: ((this: TextTrackCue, ev: Event) => any) | null;
/**
* Returns true if the text track cue pause-on-exit flag is set, false otherwise.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/pauseOnExit)
*/
pauseOnExit: boolean;
/**
* Returns the text track cue start time, in seconds.
*
* Can be set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/startTime)
*/
startTime: number;
/**
* Returns the TextTrack object to which this text track cue belongs, if any, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCue/track)
*/
readonly track: TextTrack | null;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: TextTrackCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var TextTrackCue: {
prototype: TextTrackCue;
new(): TextTrackCue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList) */
interface TextTrackCueList {
/**
* Returns the number of cues in the list.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/length)
*/
readonly length: number;
/**
* Returns the first text track cue (in text track cue order) with text track cue identifier id.
*
* Returns null if none of the cues have the given identifier or if the argument is the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackCueList/getCueById)
*/
getCueById(id: string): TextTrackCue | null;
[index: number]: TextTrackCue;
}
declare var TextTrackCueList: {
prototype: TextTrackCueList;
new(): TextTrackCueList;
};
interface TextTrackListEventMap {
"addtrack": TrackEvent;
"change": Event;
"removetrack": TrackEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList) */
interface TextTrackList extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/addtrack_event) */
onaddtrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/change_event) */
onchange: ((this: TextTrackList, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/removetrack_event) */
onremovetrack: ((this: TextTrackList, ev: TrackEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextTrackList/getTrackById) */
getTrackById(id: string): TextTrack | null;
addEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackListEventMap>(type: K, listener: (this: TextTrackList, ev: TextTrackListEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: TextTrack;
}
declare var TextTrackList: {
prototype: TextTrackList;
new(): TextTrackList;
};
/**
* Used to represent a set of time ranges, primarily for the purpose of tracking which portions of media have been buffered when loading it for use by the <audio> and <video>\xA0elements.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges)
*/
interface TimeRanges {
/**
* Returns the number of ranges in the object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/length)
*/
readonly length: number;
/**
* Returns the time for the end of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/end)
*/
end(index: number): number;
/**
* Returns the time for the start of the range with the given index.
*
* Throws an "IndexSizeError" DOMException if the index is out of range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TimeRanges/start)
*/
start(index: number): number;
}
declare var TimeRanges: {
prototype: TimeRanges;
new(): TimeRanges;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
interface ToggleEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
readonly newState: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
readonly oldState: string;
}
declare var ToggleEvent: {
prototype: ToggleEvent;
new(type: string, eventInitDict?: ToggleEventInit): ToggleEvent;
};
/**
* A single contact point on a touch-sensitive device. The contact point is commonly a finger or stylus and the device may be a touchscreen or trackpad.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch)
*/
interface Touch {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientX) */
readonly clientX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/clientY) */
readonly clientY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/force) */
readonly force: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/identifier) */
readonly identifier: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageX) */
readonly pageX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/pageY) */
readonly pageY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusX) */
readonly radiusX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/radiusY) */
readonly radiusY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/rotationAngle) */
readonly rotationAngle: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Touch/target) */
readonly target: EventTarget;
}
declare var Touch: {
prototype: Touch;
new(touchInitDict: TouchInit): Touch;
};
/**
* An event sent when the state of contacts with a touch-sensitive surface changes. This surface can be a touch screen or trackpad, for example. The event can describe one or more points of contact with the screen and includes support for detecting movement, addition and removal of contact points, and so forth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent)
*/
interface TouchEvent extends UIEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/altKey) */
readonly altKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/changedTouches) */
readonly changedTouches: TouchList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/ctrlKey) */
readonly ctrlKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/metaKey) */
readonly metaKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/shiftKey) */
readonly shiftKey: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/targetTouches) */
readonly targetTouches: TouchList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchEvent/touches) */
readonly touches: TouchList;
}
declare var TouchEvent: {
prototype: TouchEvent;
new(type: string, eventInitDict?: TouchEventInit): TouchEvent;
};
/**
* A list of contact points on a touch surface. For example, if the user has three fingers on the touch surface (such as a screen or trackpad), the corresponding TouchList object would have one Touch object for each finger, for a total of three entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList)
*/
interface TouchList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TouchList/item) */
item(index: number): Touch | null;
[index: number]: Touch;
}
declare var TouchList: {
prototype: TouchList;
new(): TouchList;
};
/**
* The TrackEvent interface, part of the HTML DOM specification, is used for events which represent changes to the set of available tracks on an HTML media element; these events are addtrack and removetrack.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent)
*/
interface TrackEvent extends Event {
/**
* Returns the track object (TextTrack, AudioTrack, or VideoTrack) to which the event relates.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TrackEvent/track)
*/
readonly track: TextTrack | null;
}
declare var TrackEvent: {
prototype: TrackEvent;
new(type: string, eventInitDict?: TrackEventInit): TrackEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
interface TransformStream<I = any, O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
readonly readable: ReadableStream<O>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
interface TransformStreamDefaultController<O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
enqueue(chunk?: O): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
error(reason?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/**
* Events providing information related to transitions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent)
*/
interface TransitionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/elapsedTime) */
readonly elapsedTime: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/propertyName) */
readonly propertyName: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransitionEvent/pseudoElement) */
readonly pseudoElement: string;
}
declare var TransitionEvent: {
prototype: TransitionEvent;
new(type: string, transitionEventInitDict?: TransitionEventInit): TransitionEvent;
};
/**
* The nodes of a document subtree and a position within them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker)
*/
interface TreeWalker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/currentNode) */
currentNode: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/filter) */
readonly filter: NodeFilter | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/root) */
readonly root: Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/whatToShow) */
readonly whatToShow: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/firstChild) */
firstChild(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/lastChild) */
lastChild(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextNode) */
nextNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/nextSibling) */
nextSibling(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/parentNode) */
parentNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousNode) */
previousNode(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TreeWalker/previousSibling) */
previousSibling(): Node | null;
}
declare var TreeWalker: {
prototype: TreeWalker;
new(): TreeWalker;
};
/**
* Simple user interface events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent)
*/
interface UIEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/detail) */
readonly detail: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/view) */
readonly view: Window | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/which)
*/
readonly which: number;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/UIEvent/initUIEvent)
*/
initUIEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: Window | null, detailArg?: number): void;
}
declare var UIEvent: {
prototype: UIEvent;
new(type: string, eventInitDict?: UIEventInit): UIEvent;
};
/**
* The URL\xA0interface represents an object providing static methods used for creating object URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
*/
interface URL {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
password: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
search: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
readonly searchParams: URLSearchParams;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
username: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
canParse(url: string | URL, base?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
createObjectURL(obj: Blob | MediaSource): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
revokeObjectURL(url: string): void;
};
type webkitURL = URL;
declare var webkitURL: typeof URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
interface URLSearchParams {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
readonly size: number;
/**
* Appends a specified key/value pair as a new search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
*/
delete(name: string, value?: string): void;
/**
* Returns the first value associated to the given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
*/
get(name: string): string | null;
/**
* Returns all the values association with a given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
*/
getAll(name: string): string[];
/**
* Returns a Boolean indicating if such a search parameter exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
*/
has(name: string, value?: string): boolean;
/**
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
*/
set(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation) */
interface UserActivation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */
readonly hasBeenActive: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/UserActivation/hasBeenActive) */
readonly isActive: boolean;
}
declare var UserActivation: {
prototype: UserActivation;
new(): UserActivation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue) */
interface VTTCue extends TextTrackCue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/align) */
align: AlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/line) */
line: LineAndPositionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/lineAlign) */
lineAlign: LineAlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/position) */
position: LineAndPositionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/positionAlign) */
positionAlign: PositionAlignSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/region) */
region: VTTRegion | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/size) */
size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/snapToLines) */
snapToLines: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/text) */
text: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/vertical) */
vertical: DirectionSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTCue/getCueAsHTML) */
getCueAsHTML(): DocumentFragment;
addEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof TextTrackCueEventMap>(type: K, listener: (this: VTTCue, ev: TextTrackCueEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VTTCue: {
prototype: VTTCue;
new(startTime: number, endTime: number, text: string): VTTCue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion) */
interface VTTRegion {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/id) */
id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/lines) */
lines: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorX) */
regionAnchorX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/regionAnchorY) */
regionAnchorY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/scroll) */
scroll: ScrollSetting;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorX) */
viewportAnchorX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/viewportAnchorY) */
viewportAnchorY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VTTRegion/width) */
width: number;
}
declare var VTTRegion: {
prototype: VTTRegion;
new(): VTTRegion;
};
/**
* The validity states that an element can be in, with respect to constraint validation. Together, they help explain why an element's value fails to validate, if it's not valid.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState)
*/
interface ValidityState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/badInput) */
readonly badInput: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/customError) */
readonly customError: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/patternMismatch) */
readonly patternMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeOverflow) */
readonly rangeOverflow: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/rangeUnderflow) */
readonly rangeUnderflow: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/stepMismatch) */
readonly stepMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooLong) */
readonly tooLong: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/tooShort) */
readonly tooShort: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/typeMismatch) */
readonly typeMismatch: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valid) */
readonly valid: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ValidityState/valueMissing) */
readonly valueMissing: boolean;
}
declare var ValidityState: {
prototype: ValidityState;
new(): ValidityState;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */
interface VideoColorSpace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */
readonly fullRange: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */
readonly matrix: VideoMatrixCoefficients | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */
readonly primaries: VideoColorPrimaries | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */
readonly transfer: VideoTransferCharacteristics | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
interface VideoDecoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
*/
interface VideoDecoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */
readonly decodeQueueSize: number;
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */
configure(config: VideoDecoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */
decode(chunk: EncodedVideoChunk): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoDecoder: {
prototype: VideoDecoder;
new(init: VideoDecoderInit): VideoDecoder;
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
interface VideoEncoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
*/
interface VideoEncoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */
readonly encodeQueueSize: number;
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */
configure(config: VideoEncoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoEncoder: {
prototype: VideoEncoder;
new(init: VideoEncoderInit): VideoEncoder;
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */
interface VideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */
readonly codedHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */
readonly codedRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */
readonly codedWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */
readonly colorSpace: VideoColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */
readonly displayHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */
readonly displayWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */
readonly format: VideoPixelFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */
readonly visibleRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */
allocationSize(options?: VideoFrameCopyToOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */
clone(): VideoFrame;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
close(): void;
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
declare var VideoFrame: {
prototype: VideoFrame;
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};
/**
* Returned by the HTMLVideoElement.getVideoPlaybackQuality() method and contains metrics that can be used to determine the playback quality of a video.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality)
*/
interface VideoPlaybackQuality {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)
*/
readonly corruptedVideoFrames: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/creationTime) */
readonly creationTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames) */
readonly droppedVideoFrames: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoPlaybackQuality/totalVideoFrames) */
readonly totalVideoFrames: number;
}
declare var VideoPlaybackQuality: {
prototype: VideoPlaybackQuality;
new(): VideoPlaybackQuality;
};
interface VisualViewportEventMap {
"resize": Event;
"scroll": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport) */
interface VisualViewport extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetLeft) */
readonly offsetLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/offsetTop) */
readonly offsetTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/resize_event) */
onresize: ((this: VisualViewport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scroll_event) */
onscroll: ((this: VisualViewport, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageLeft) */
readonly pageLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/pageTop) */
readonly pageTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/scale) */
readonly scale: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VisualViewport/width) */
readonly width: number;
addEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VisualViewportEventMap>(type: K, listener: (this: VisualViewport, ev: VisualViewportEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VisualViewport: {
prototype: VisualViewport;
new(): VisualViewport;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */
interface WEBGL_compressed_texture_astc {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: 0x9270;
readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
readonly COMPRESSED_RG11_EAC: 0x9272;
readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
readonly COMPRESSED_RGB8_ETC2: 0x9274;
readonly COMPRESSED_SRGB8_ETC2: 0x9275;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
}
/**
* The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
*/
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}
/**
* The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
*/
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */
interface WEBGL_debug_shaders {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */
getTranslatedShaderSource(shader: WebGLShader): string;
}
/**
* The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
*/
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
readonly DRAW_BUFFER0_WEBGL: 0x8825;
readonly DRAW_BUFFER1_WEBGL: 0x8826;
readonly DRAW_BUFFER2_WEBGL: 0x8827;
readonly DRAW_BUFFER3_WEBGL: 0x8828;
readonly DRAW_BUFFER4_WEBGL: 0x8829;
readonly DRAW_BUFFER5_WEBGL: 0x882A;
readonly DRAW_BUFFER6_WEBGL: 0x882B;
readonly DRAW_BUFFER7_WEBGL: 0x882C;
readonly DRAW_BUFFER8_WEBGL: 0x882D;
readonly DRAW_BUFFER9_WEBGL: 0x882E;
readonly DRAW_BUFFER10_WEBGL: 0x882F;
readonly DRAW_BUFFER11_WEBGL: 0x8830;
readonly DRAW_BUFFER12_WEBGL: 0x8831;
readonly DRAW_BUFFER13_WEBGL: 0x8832;
readonly DRAW_BUFFER14_WEBGL: 0x8833;
readonly DRAW_BUFFER15_WEBGL: 0x8834;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */
interface WEBGL_lose_context {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */
loseContext(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */
restoreContext(): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock)
*/
interface WakeLock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLock/request) */
request(type?: WakeLockType): Promise<WakeLockSentinel>;
}
declare var WakeLock: {
prototype: WakeLock;
new(): WakeLock;
};
interface WakeLockSentinelEventMap {
"release": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel)
*/
interface WakeLockSentinel extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release_event) */
onrelease: ((this: WakeLockSentinel, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/released) */
readonly released: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/type) */
readonly type: WakeLockType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WakeLockSentinel/release) */
release(): Promise<void>;
addEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WakeLockSentinelEventMap>(type: K, listener: (this: WakeLockSentinel, ev: WakeLockSentinelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WakeLockSentinel: {
prototype: WakeLockSentinel;
new(): WakeLockSentinel;
};
/**
* A WaveShaperNode always has exactly one input and one output.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode)
*/
interface WaveShaperNode extends AudioNode {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/curve) */
curve: Float32Array | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WaveShaperNode/oversample) */
oversample: OverSampleType;
}
declare var WaveShaperNode: {
prototype: WaveShaperNode;
new(context: BaseAudioContext, options?: WaveShaperOptions): WaveShaperNode;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */
beginQuery(target: GLenum, query: WebGLQuery): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */
beginTransformFeedback(primitiveMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */
bindVertexArray(array: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
createQuery(): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
createSampler(): WebGLSampler | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
createTransformFeedback(): WebGLTransformFeedback | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
createVertexArray(): WebGLVertexArrayObject | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
deleteQuery(query: WebGLQuery | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
deleteSampler(sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */
deleteSync(sync: WebGLSync | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */
endQuery(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */
endTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
getFragDataLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
getIndexedParameter(target: GLenum, index: GLuint): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */
isQuery(query: WebGLQuery | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */
isSampler(sampler: WebGLSampler | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */
isSync(sync: WebGLSync | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */
pauseTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */
readBuffer(src: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */
resumeTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
}
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
*/
interface WebGLActiveInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */
readonly size: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/**
* Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
*/
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/**
* The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
*/
interface WebGLContextEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/**
* Part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
*/
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/**
* The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
*/
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/**
* Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
*/
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/**
* Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
*/
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/canvas) */
readonly canvas: HTMLCanvasElement | OffscreenCanvas;
drawingBufferColorSpace: PredefinedColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
readonly drawingBufferHeight: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
readonly drawingBufferWidth: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
activeTexture(texture: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
attachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */
blendEquation(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */
checkFramebufferStatus(target: GLenum): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */
clear(mask: GLbitfield): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */
clearDepth(depth: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */
clearStencil(s: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */
compileShader(shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
createBuffer(): WebGLBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
createFramebuffer(): WebGLFramebuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
createProgram(): WebGLProgram | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
createRenderbuffer(): WebGLRenderbuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
createShader(type: GLenum): WebGLShader | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
createTexture(): WebGLTexture | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
cullFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
deleteBuffer(buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */
deleteProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */
deleteShader(shader: WebGLShader | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */
deleteTexture(texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */
depthFunc(func: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */
depthMask(flag: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */
depthRange(zNear: GLclampf, zFar: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */
detachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */
disable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */
disableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */
enable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */
enableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */
frontFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */
generateMipmap(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */
getAttribLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */
getBufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */
getContextAttributes(): WebGLContextAttributes | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
getError(): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
getExtension(name: string): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
getParameter(pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */
getProgramInfoLog(program: WebGLProgram): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */
getShaderInfoLog(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */
getShaderSource(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */
getSupportedExtensions(): string[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */
getTexParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */
getVertexAttrib(index: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */
hint(target: GLenum, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */
isBuffer(buffer: WebGLBuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */
isEnabled(cap: GLenum): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */
isProgram(program: WebGLProgram | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */
isShader(shader: WebGLShader | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
linkProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */
polygonOffset(factor: GLfloat, units: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */
sampleCoverage(value: GLclampf, invert: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */
shaderSource(shader: WebGLShader, source: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */
stencilMask(mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */
useProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */
validateProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1f(index: GLuint, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/**
* The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
*/
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
*/
interface WebGLShaderPrecisionFormat {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */
readonly precision: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */
readonly rangeMax: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/**
* Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
*/
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/**
* Part of the WebGL API and represents the location of a uniform variable in a shader program.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
*/
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/**
* Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
*/
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* Returns the extensions selected by the server, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
*/
readonly extensions: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */
onerror: ((this: WebSocket, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
onopen: ((this: WebSocket, ev: Event) => any) | null;
/**
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
*/
readonly protocol: string;
/**
* Returns the state of the WebSocket object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
*/
readonly readyState: number;
/**
* Returns the URL that was used to establish the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
close(code?: number, reason?: string): void;
/**
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
*/
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
*/
interface WebTransport {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
readonly closed: Promise<WebTransportCloseInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
readonly datagrams: WebTransportDatagramDuplexStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
readonly incomingBidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
readonly incomingUnidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
close(closeInfo?: WebTransportCloseInfo): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
}
declare var WebTransport: {
prototype: WebTransport;
new(url: string | URL, options?: WebTransportOptions): WebTransport;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
*/
interface WebTransportBidirectionalStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportBidirectionalStream: {
prototype: WebTransportBidirectionalStream;
new(): WebTransportBidirectionalStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
*/
interface WebTransportDatagramDuplexStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
incomingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
incomingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
readonly maxDatagramSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
outgoingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
outgoingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportDatagramDuplexStream: {
prototype: WebTransportDatagramDuplexStream;
new(): WebTransportDatagramDuplexStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
*/
interface WebTransportError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
readonly source: WebTransportErrorSource;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
readonly streamErrorCode: number | null;
}
declare var WebTransportError: {
prototype: WebTransportError;
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};
/**
* Events that occur due to the user moving a mouse wheel or similar input device.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent)
*/
interface WheelEvent extends MouseEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaMode) */
readonly deltaMode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaX) */
readonly deltaX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaY) */
readonly deltaY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WheelEvent/deltaZ) */
readonly deltaZ: number;
readonly DOM_DELTA_PIXEL: 0x00;
readonly DOM_DELTA_LINE: 0x01;
readonly DOM_DELTA_PAGE: 0x02;
}
declare var WheelEvent: {
prototype: WheelEvent;
new(type: string, eventInitDict?: WheelEventInit): WheelEvent;
readonly DOM_DELTA_PIXEL: 0x00;
readonly DOM_DELTA_LINE: 0x01;
readonly DOM_DELTA_PAGE: 0x02;
};
interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandlersEventMap {
"DOMContentLoaded": Event;
"devicemotion": DeviceMotionEvent;
"deviceorientation": DeviceOrientationEvent;
"deviceorientationabsolute": DeviceOrientationEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"orientationchange": Event;
}
/**
* A window containing a DOM document; the document property points to the DOM document loaded in that window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window)
*/
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
/**
* @deprecated This is a legacy alias of \`navigator\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
*/
readonly clientInformation: Navigator;
/**
* Returns true if the window has been closed, false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
*/
readonly closed: boolean;
/**
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
*/
readonly customElements: CustomElementRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */
readonly devicePixelRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */
readonly document: Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
*/
readonly event: Event | undefined;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
*/
readonly external: External;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */
readonly frameElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */
readonly frames: WindowProxy;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */
readonly history: History;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */
readonly innerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */
readonly innerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */
get location(): Location;
set location(href: string | Location);
/**
* Returns true if the location bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
*/
readonly locationbar: BarProp;
/**
* Returns true if the menu bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
*/
readonly menubar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */
name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */
readonly navigator: Navigator;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)
*/
ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
*/
ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
*/
ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)
*/
onorientationchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */
opener: any;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
*/
readonly orientation: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */
readonly outerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
readonly outerWidth: number;
/**
* @deprecated This is a legacy alias of \`scrollX\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
*/
readonly pageXOffset: number;
/**
* @deprecated This is a legacy alias of \`scrollY\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
*/
readonly pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
*/
readonly parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
*/
readonly personalbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */
readonly screen: Screen;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */
readonly screenLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */
readonly screenTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */
readonly screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */
readonly screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
readonly scrollX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
readonly scrollY: number;
/**
* Returns true if the scrollbars are visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
*/
readonly scrollbars: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */
readonly self: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */
readonly speechSynthesis: SpeechSynthesis;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
*/
status: string;
/**
* Returns true if the status bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
*/
readonly statusbar: BarProp;
/**
* Returns true if the toolbar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
*/
readonly toolbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */
readonly top: WindowProxy | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */
readonly visualViewport: VisualViewport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
readonly window: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
alert(message?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
cancelIdleCallback(handle: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
*/
captureEvents(): void;
/**
* Closes the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
*/
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */
confirm(message?: string): boolean;
/**
* Moves the focus to the window's browsing context, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
*/
focus(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */
getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */
getSelection(): Selection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */
matchMedia(query: string): MediaQueryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */
moveBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */
open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
*/
postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
postMessage(message: any, options?: WindowPostMessageOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */
print(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */
prompt(message?: string, _default?: string): string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
*/
releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */
requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */
resizeBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */
resizeTo(width: number, height: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */
scroll(options?: ScrollToOptions): void;
scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */
scrollBy(options?: ScrollToOptions): void;
scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */
scrollTo(options?: ScrollToOptions): void;
scrollTo(x: number, y: number): void;
/**
* Cancels the document load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
*/
stop(): void;
addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
[index: number]: Window;
}
declare var Window: {
prototype: Window;
new(): Window;
};
interface WindowEventHandlersEventMap {
"afterprint": Event;
"beforeprint": Event;
"beforeunload": BeforeUnloadEvent;
"gamepadconnected": GamepadEvent;
"gamepaddisconnected": GamepadEvent;
"hashchange": HashChangeEvent;
"languagechange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
"offline": Event;
"online": Event;
"pagehide": PageTransitionEvent;
"pageshow": PageTransitionEvent;
"popstate": PopStateEvent;
"rejectionhandled": PromiseRejectionEvent;
"storage": StorageEvent;
"unhandledrejection": PromiseRejectionEvent;
"unload": Event;
}
interface WindowEventHandlers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */
onafterprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */
onbeforeprint: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */
onbeforeunload: ((this: WindowEventHandlers, ev: BeforeUnloadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */
ongamepadconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */
ongamepaddisconnected: ((this: WindowEventHandlers, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */
onhashchange: ((this: WindowEventHandlers, ev: HashChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */
onlanguagechange: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */
onmessage: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */
onmessageerror: ((this: WindowEventHandlers, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */
onoffline: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */
ononline: ((this: WindowEventHandlers, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */
onpagehide: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */
onpageshow: ((this: WindowEventHandlers, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */
onpopstate: ((this: WindowEventHandlers, ev: PopStateEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */
onrejectionhandled: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */
onstorage: ((this: WindowEventHandlers, ev: StorageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
onunhandledrejection: ((this: WindowEventHandlers, ev: PromiseRejectionEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
*/
onunload: ((this: WindowEventHandlers, ev: Event) => any) | null;
addEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WindowEventHandlersEventMap>(type: K, listener: (this: WindowEventHandlers, ev: WindowEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface WindowLocalStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
readonly localStorage: Storage;
}
interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
readonly caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
readonly crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
readonly indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
readonly isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
readonly performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}
interface WindowSessionStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */
readonly sessionStorage: Storage;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
*/
interface Worker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/**
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Aborts worker's associated global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
*/
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet)
*/
interface Worklet {
/**
* Loads and executes the module script given by moduleURL into all of worklet's global scopes. It can also create additional global scopes as part of this process, depending on the worklet type. The returned promise will fulfill once the script has been successfully loaded and run in all global scopes.
*
* The credentials option can be set to a credentials mode to modify the script-fetching process. It defaults to "same-origin".
*
* Any failures in fetching the script or its dependencies will cause the returned promise to be rejected with an "AbortError" DOMException. Any errors in parsing the script or its dependencies will cause the returned promise to be rejected with the exception generated during parsing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worklet/addModule)
*/
addModule(moduleURL: string | URL, options?: WorkletOptions): Promise<void>;
}
declare var Worklet: {
prototype: Worklet;
new(): Worklet;
};
/**
* This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
*/
interface WritableStream<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/**
* This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
*/
interface WritableStreamDefaultController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
readonly signal: AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/**
* This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
*/
interface WritableStreamDefaultWriter<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
releaseLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
/**
* An XML document. It inherits from the generic Document and does not add any specific methods or properties to it: nevertheless, several algorithms behave differently with the two types of documents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLDocument)
*/
interface XMLDocument extends Document {
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: XMLDocument, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLDocument: {
prototype: XMLDocument;
new(): XMLDocument;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/**
* Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
*/
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/**
* Returns client's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
*/
readonly readyState: number;
/**
* Returns the response body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
*/
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
*/
responseType: XMLHttpRequestResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */
readonly responseURL: string;
/**
* Returns the response as document.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "document".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseXML)
*/
readonly responseXML: Document | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
*/
timeout: number;
/**
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
*/
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
*/
withCredentials: boolean;
/**
* Cancels any network activity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */
getAllResponseHeaders(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
*/
send(body?: Document | XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
*/
setRequestHeader(name: string, value: string): void;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
/**
* Provides the serializeToString() method to construct an XML string representing a DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer)
*/
interface XMLSerializer {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLSerializer/serializeToString) */
serializeToString(root: Node): string;
}
declare var XMLSerializer: {
prototype: XMLSerializer;
new(): XMLSerializer;
};
/**
* The\xA0XPathEvaluator interface allows to compile and evaluate XPath expressions.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathEvaluator)
*/
interface XPathEvaluator extends XPathEvaluatorBase {
}
declare var XPathEvaluator: {
prototype: XPathEvaluator;
new(): XPathEvaluator;
};
interface XPathEvaluatorBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createExpression) */
createExpression(expression: string, resolver?: XPathNSResolver | null): XPathExpression;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/createNSResolver) */
createNSResolver(nodeResolver: Node): Node;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/evaluate) */
evaluate(expression: string, contextNode: Node, resolver?: XPathNSResolver | null, type?: number, result?: XPathResult | null): XPathResult;
}
/**
* This interface is a compiled XPath expression that can be evaluated on a document or specific node to return information its DOM tree.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression)
*/
interface XPathExpression {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathExpression/evaluate) */
evaluate(contextNode: Node, type?: number, result?: XPathResult | null): XPathResult;
}
declare var XPathExpression: {
prototype: XPathExpression;
new(): XPathExpression;
};
/**
* The results generated by evaluating an XPath expression within the context of a given node.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult)
*/
interface XPathResult {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/booleanValue) */
readonly booleanValue: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/invalidIteratorState) */
readonly invalidIteratorState: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/numberValue) */
readonly numberValue: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/resultType) */
readonly resultType: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/singleNodeValue) */
readonly singleNodeValue: Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotLength) */
readonly snapshotLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/stringValue) */
readonly stringValue: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/iterateNext) */
iterateNext(): Node | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XPathResult/snapshotItem) */
snapshotItem(index: number): Node | null;
readonly ANY_TYPE: 0;
readonly NUMBER_TYPE: 1;
readonly STRING_TYPE: 2;
readonly BOOLEAN_TYPE: 3;
readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
readonly ORDERED_NODE_ITERATOR_TYPE: 5;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
readonly ANY_UNORDERED_NODE_TYPE: 8;
readonly FIRST_ORDERED_NODE_TYPE: 9;
}
declare var XPathResult: {
prototype: XPathResult;
new(): XPathResult;
readonly ANY_TYPE: 0;
readonly NUMBER_TYPE: 1;
readonly STRING_TYPE: 2;
readonly BOOLEAN_TYPE: 3;
readonly UNORDERED_NODE_ITERATOR_TYPE: 4;
readonly ORDERED_NODE_ITERATOR_TYPE: 5;
readonly UNORDERED_NODE_SNAPSHOT_TYPE: 6;
readonly ORDERED_NODE_SNAPSHOT_TYPE: 7;
readonly ANY_UNORDERED_NODE_TYPE: 8;
readonly FIRST_ORDERED_NODE_TYPE: 9;
};
/**
* An XSLTProcessor applies an XSLT stylesheet transformation to an XML document to produce a new XML document as output. It has methods to load the XSLT stylesheet, to manipulate <xsl:param> parameter values, and to apply the transformation to documents.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor)
*/
interface XSLTProcessor {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/clearParameters) */
clearParameters(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/getParameter) */
getParameter(namespaceURI: string | null, localName: string): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/importStylesheet) */
importStylesheet(style: Node): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/removeParameter) */
removeParameter(namespaceURI: string | null, localName: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/setParameter) */
setParameter(namespaceURI: string | null, localName: string, value: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToDocument) */
transformToDocument(source: Node): Document;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XSLTProcessor/transformToFragment) */
transformToFragment(source: Node, output: Document): DocumentFragment;
}
declare var XSLTProcessor: {
prototype: XSLTProcessor;
new(): XSLTProcessor;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
interface Console {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
assert(condition?: boolean, ...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
dir(item?: any, options?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
dirxml(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
groupCollapsed(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
log(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
timeEnd(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
trace(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
warn(...data: any[]): void;
}
declare var console: Console;
/** Holds useful CSS-related methods. No object with this interface are implemented: it contains only static methods and therefore is a utilitarian interface. */
declare namespace CSS {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/highlights_static) */
var highlights: HighlightRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function Hz(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function Q(value: number): CSSUnitValue;
function cap(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ch(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function cqw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function deg(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dpcm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dpi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dppx(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function dvw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function em(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/escape_static) */
function escape(ident: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ex(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function fr(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function grad(value: number): CSSUnitValue;
function ic(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function kHz(value: number): CSSUnitValue;
function lh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function lvw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function mm(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function ms(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function number(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function pc(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function percent(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function pt(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function px(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function rad(value: number): CSSUnitValue;
function rcap(value: number): CSSUnitValue;
function rch(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/registerProperty_static) */
function registerProperty(definition: PropertyDefinition): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function rem(value: number): CSSUnitValue;
function rex(value: number): CSSUnitValue;
function ric(value: number): CSSUnitValue;
function rlh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function s(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/supports_static) */
function supports(property: string, value: string): boolean;
function supports(conditionText: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function svw(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function turn(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vb(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vh(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vi(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vmax(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vmin(value: number): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSS/factory_functions_static) */
function vw(value: number): CSSUnitValue;
}
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
value: ValueTypeMap[T];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
valueOf(): ValueTypeMap[T];
}
var Global: {
prototype: Global;
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */
interface Instance {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */
interface Memory {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */
readonly buffer: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
exports(moduleObject: Module): ModuleExportDescriptor[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */
interface Table {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */
get(index: number): any;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */
grow(delta: number, value?: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor<T extends ValueType = ValueType> {
mutable?: boolean;
value: T;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface ValueTypeMap {
anyfunc: Function;
externref: any;
f32: number;
f64: number;
i32: number;
i64: bigint;
v128: never;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
type ValueType = keyof ValueTypeMap;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
function compile(bytes: BufferSource): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
function validate(bytes: BufferSource): boolean;
}
interface BlobCallback {
(blob: Blob | null): void;
}
interface CustomElementConstructor {
new (...params: any[]): HTMLElement;
}
interface DecodeErrorCallback {
(error: DOMException): void;
}
interface DecodeSuccessCallback {
(decodedData: AudioBuffer): void;
}
interface EncodedVideoChunkOutputCallback {
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
}
interface ErrorCallback {
(err: DOMException): void;
}
interface FileCallback {
(file: File): void;
}
interface FileSystemEntriesCallback {
(entries: FileSystemEntry[]): void;
}
interface FileSystemEntryCallback {
(entry: FileSystemEntry): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface FunctionStringCallback {
(data: string): void;
}
interface IdleRequestCallback {
(deadline: IdleDeadline): void;
}
interface IntersectionObserverCallback {
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
}
interface LockGrantedCallback {
(lock: Lock | null): any;
}
interface MediaSessionActionHandler {
(details: MediaSessionActionDetails): void;
}
interface MutationCallback {
(mutations: MutationRecord[], observer: MutationObserver): void;
}
interface NotificationPermissionCallback {
(permission: NotificationPermission): void;
}
interface OnBeforeUnloadEventHandlerNonNull {
(event: Event): string | null;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface PositionCallback {
(position: GeolocationPosition): void;
}
interface PositionErrorCallback {
(positionError: GeolocationPositionError): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface RTCPeerConnectionErrorCallback {
(error: DOMException): void;
}
interface RTCSessionDescriptionCallback {
(description: RTCSessionDescriptionInit): void;
}
interface RemotePlaybackAvailabilityCallback {
(available: boolean): void;
}
interface ReportingObserverCallback {
(reports: Report[], observer: ReportingObserver): void;
}
interface ResizeObserverCallback {
(entries: ResizeObserverEntry[], observer: ResizeObserver): void;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VideoFrameOutputCallback {
(output: VideoFrame): void;
}
interface VideoFrameRequestCallback {
(now: DOMHighResTimeStamp, metadata: VideoFrameCallbackMetadata): void;
}
interface VoidFunction {
(): void;
}
interface WebCodecsErrorCallback {
(error: DOMException): void;
}
interface HTMLElementTagNameMap {
"a": HTMLAnchorElement;
"abbr": HTMLElement;
"address": HTMLElement;
"area": HTMLAreaElement;
"article": HTMLElement;
"aside": HTMLElement;
"audio": HTMLAudioElement;
"b": HTMLElement;
"base": HTMLBaseElement;
"bdi": HTMLElement;
"bdo": HTMLElement;
"blockquote": HTMLQuoteElement;
"body": HTMLBodyElement;
"br": HTMLBRElement;
"button": HTMLButtonElement;
"canvas": HTMLCanvasElement;
"caption": HTMLTableCaptionElement;
"cite": HTMLElement;
"code": HTMLElement;
"col": HTMLTableColElement;
"colgroup": HTMLTableColElement;
"data": HTMLDataElement;
"datalist": HTMLDataListElement;
"dd": HTMLElement;
"del": HTMLModElement;
"details": HTMLDetailsElement;
"dfn": HTMLElement;
"dialog": HTMLDialogElement;
"div": HTMLDivElement;
"dl": HTMLDListElement;
"dt": HTMLElement;
"em": HTMLElement;
"embed": HTMLEmbedElement;
"fieldset": HTMLFieldSetElement;
"figcaption": HTMLElement;
"figure": HTMLElement;
"footer": HTMLElement;
"form": HTMLFormElement;
"h1": HTMLHeadingElement;
"h2": HTMLHeadingElement;
"h3": HTMLHeadingElement;
"h4": HTMLHeadingElement;
"h5": HTMLHeadingElement;
"h6": HTMLHeadingElement;
"head": HTMLHeadElement;
"header": HTMLElement;
"hgroup": HTMLElement;
"hr": HTMLHRElement;
"html": HTMLHtmlElement;
"i": HTMLElement;
"iframe": HTMLIFrameElement;
"img": HTMLImageElement;
"input": HTMLInputElement;
"ins": HTMLModElement;
"kbd": HTMLElement;
"label": HTMLLabelElement;
"legend": HTMLLegendElement;
"li": HTMLLIElement;
"link": HTMLLinkElement;
"main": HTMLElement;
"map": HTMLMapElement;
"mark": HTMLElement;
"menu": HTMLMenuElement;
"meta": HTMLMetaElement;
"meter": HTMLMeterElement;
"nav": HTMLElement;
"noscript": HTMLElement;
"object": HTMLObjectElement;
"ol": HTMLOListElement;
"optgroup": HTMLOptGroupElement;
"option": HTMLOptionElement;
"output": HTMLOutputElement;
"p": HTMLParagraphElement;
"picture": HTMLPictureElement;
"pre": HTMLPreElement;
"progress": HTMLProgressElement;
"q": HTMLQuoteElement;
"rp": HTMLElement;
"rt": HTMLElement;
"ruby": HTMLElement;
"s": HTMLElement;
"samp": HTMLElement;
"script": HTMLScriptElement;
"search": HTMLElement;
"section": HTMLElement;
"select": HTMLSelectElement;
"slot": HTMLSlotElement;
"small": HTMLElement;
"source": HTMLSourceElement;
"span": HTMLSpanElement;
"strong": HTMLElement;
"style": HTMLStyleElement;
"sub": HTMLElement;
"summary": HTMLElement;
"sup": HTMLElement;
"table": HTMLTableElement;
"tbody": HTMLTableSectionElement;
"td": HTMLTableCellElement;
"template": HTMLTemplateElement;
"textarea": HTMLTextAreaElement;
"tfoot": HTMLTableSectionElement;
"th": HTMLTableCellElement;
"thead": HTMLTableSectionElement;
"time": HTMLTimeElement;
"title": HTMLTitleElement;
"tr": HTMLTableRowElement;
"track": HTMLTrackElement;
"u": HTMLElement;
"ul": HTMLUListElement;
"var": HTMLElement;
"video": HTMLVideoElement;
"wbr": HTMLElement;
}
interface HTMLElementDeprecatedTagNameMap {
"acronym": HTMLElement;
"applet": HTMLUnknownElement;
"basefont": HTMLElement;
"bgsound": HTMLUnknownElement;
"big": HTMLElement;
"blink": HTMLUnknownElement;
"center": HTMLElement;
"dir": HTMLDirectoryElement;
"font": HTMLFontElement;
"frame": HTMLFrameElement;
"frameset": HTMLFrameSetElement;
"isindex": HTMLUnknownElement;
"keygen": HTMLUnknownElement;
"listing": HTMLPreElement;
"marquee": HTMLMarqueeElement;
"menuitem": HTMLElement;
"multicol": HTMLUnknownElement;
"nextid": HTMLUnknownElement;
"nobr": HTMLElement;
"noembed": HTMLElement;
"noframes": HTMLElement;
"param": HTMLParamElement;
"plaintext": HTMLElement;
"rb": HTMLElement;
"rtc": HTMLElement;
"spacer": HTMLUnknownElement;
"strike": HTMLElement;
"tt": HTMLElement;
"xmp": HTMLPreElement;
}
interface SVGElementTagNameMap {
"a": SVGAElement;
"animate": SVGAnimateElement;
"animateMotion": SVGAnimateMotionElement;
"animateTransform": SVGAnimateTransformElement;
"circle": SVGCircleElement;
"clipPath": SVGClipPathElement;
"defs": SVGDefsElement;
"desc": SVGDescElement;
"ellipse": SVGEllipseElement;
"feBlend": SVGFEBlendElement;
"feColorMatrix": SVGFEColorMatrixElement;
"feComponentTransfer": SVGFEComponentTransferElement;
"feComposite": SVGFECompositeElement;
"feConvolveMatrix": SVGFEConvolveMatrixElement;
"feDiffuseLighting": SVGFEDiffuseLightingElement;
"feDisplacementMap": SVGFEDisplacementMapElement;
"feDistantLight": SVGFEDistantLightElement;
"feDropShadow": SVGFEDropShadowElement;
"feFlood": SVGFEFloodElement;
"feFuncA": SVGFEFuncAElement;
"feFuncB": SVGFEFuncBElement;
"feFuncG": SVGFEFuncGElement;
"feFuncR": SVGFEFuncRElement;
"feGaussianBlur": SVGFEGaussianBlurElement;
"feImage": SVGFEImageElement;
"feMerge": SVGFEMergeElement;
"feMergeNode": SVGFEMergeNodeElement;
"feMorphology": SVGFEMorphologyElement;
"feOffset": SVGFEOffsetElement;
"fePointLight": SVGFEPointLightElement;
"feSpecularLighting": SVGFESpecularLightingElement;
"feSpotLight": SVGFESpotLightElement;
"feTile": SVGFETileElement;
"feTurbulence": SVGFETurbulenceElement;
"filter": SVGFilterElement;
"foreignObject": SVGForeignObjectElement;
"g": SVGGElement;
"image": SVGImageElement;
"line": SVGLineElement;
"linearGradient": SVGLinearGradientElement;
"marker": SVGMarkerElement;
"mask": SVGMaskElement;
"metadata": SVGMetadataElement;
"mpath": SVGMPathElement;
"path": SVGPathElement;
"pattern": SVGPatternElement;
"polygon": SVGPolygonElement;
"polyline": SVGPolylineElement;
"radialGradient": SVGRadialGradientElement;
"rect": SVGRectElement;
"script": SVGScriptElement;
"set": SVGSetElement;
"stop": SVGStopElement;
"style": SVGStyleElement;
"svg": SVGSVGElement;
"switch": SVGSwitchElement;
"symbol": SVGSymbolElement;
"text": SVGTextElement;
"textPath": SVGTextPathElement;
"title": SVGTitleElement;
"tspan": SVGTSpanElement;
"use": SVGUseElement;
"view": SVGViewElement;
}
interface MathMLElementTagNameMap {
"annotation": MathMLElement;
"annotation-xml": MathMLElement;
"maction": MathMLElement;
"math": MathMLElement;
"merror": MathMLElement;
"mfrac": MathMLElement;
"mi": MathMLElement;
"mmultiscripts": MathMLElement;
"mn": MathMLElement;
"mo": MathMLElement;
"mover": MathMLElement;
"mpadded": MathMLElement;
"mphantom": MathMLElement;
"mprescripts": MathMLElement;
"mroot": MathMLElement;
"mrow": MathMLElement;
"ms": MathMLElement;
"mspace": MathMLElement;
"msqrt": MathMLElement;
"mstyle": MathMLElement;
"msub": MathMLElement;
"msubsup": MathMLElement;
"msup": MathMLElement;
"mtable": MathMLElement;
"mtd": MathMLElement;
"mtext": MathMLElement;
"mtr": MathMLElement;
"munder": MathMLElement;
"munderover": MathMLElement;
"semantics": MathMLElement;
}
/** @deprecated Directly use HTMLElementTagNameMap or SVGElementTagNameMap as appropriate, instead. */
type ElementTagNameMap = HTMLElementTagNameMap & Pick<SVGElementTagNameMap, Exclude<keyof SVGElementTagNameMap, keyof HTMLElementTagNameMap>>;
declare var Audio: {
new(src?: string): HTMLAudioElement;
};
declare var Image: {
new(width?: number, height?: number): HTMLImageElement;
};
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
/**
* @deprecated This is a legacy alias of \`navigator\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator)
*/
declare var clientInformation: Navigator;
/**
* Returns true if the window has been closed, false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/closed)
*/
declare var closed: boolean;
/**
* Defines a new custom element, mapping the given name to the given constructor as an autonomous custom element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/customElements)
*/
declare var customElements: CustomElementRegistry;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicePixelRatio) */
declare var devicePixelRatio: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/document) */
declare var document: Document;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/event)
*/
declare var event: Event | undefined;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/external)
*/
declare var external: External;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frameElement) */
declare var frameElement: Element | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/frames) */
declare var frames: WindowProxy;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/history) */
declare var history: History;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerHeight) */
declare var innerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/innerWidth) */
declare var innerWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/length) */
declare var length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/location) */
declare var location: Location;
/**
* Returns true if the location bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/locationbar)
*/
declare var locationbar: BarProp;
/**
* Returns true if the menu bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/menubar)
*/
declare var menubar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/name) */
/** @deprecated */
declare const name: void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/navigator) */
declare var navigator: Navigator;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/devicemotion_event)
*/
declare var ondevicemotion: ((this: Window, ev: DeviceMotionEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientation_event)
*/
declare var ondeviceorientation: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/deviceorientationabsolute_event)
*/
declare var ondeviceorientationabsolute: ((this: Window, ev: DeviceOrientationEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientationchange_event)
*/
declare var onorientationchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/opener) */
declare var opener: any;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/orientation)
*/
declare var orientation: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerHeight) */
declare var outerHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/outerWidth) */
declare var outerWidth: number;
/**
* @deprecated This is a legacy alias of \`scrollX\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX)
*/
declare var pageXOffset: number;
/**
* @deprecated This is a legacy alias of \`scrollY\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY)
*/
declare var pageYOffset: number;
/**
* Refers to either the parent WindowProxy, or itself.
*
* It can rarely be null e.g. for contentWindow of an iframe that is already removed from the parent.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/parent)
*/
declare var parent: WindowProxy;
/**
* Returns true if the personal bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/personalbar)
*/
declare var personalbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screen) */
declare var screen: Screen;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenLeft) */
declare var screenLeft: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenTop) */
declare var screenTop: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenX) */
declare var screenX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/screenY) */
declare var screenY: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollX) */
declare var scrollX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollY) */
declare var scrollY: number;
/**
* Returns true if the scrollbars are visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollbars)
*/
declare var scrollbars: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/self) */
declare var self: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/speechSynthesis) */
declare var speechSynthesis: SpeechSynthesis;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/status)
*/
declare var status: string;
/**
* Returns true if the status bar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/statusbar)
*/
declare var statusbar: BarProp;
/**
* Returns true if the toolbar is visible; otherwise, returns false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/toolbar)
*/
declare var toolbar: BarProp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/top) */
declare var top: WindowProxy | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/visualViewport) */
declare var visualViewport: VisualViewport | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/window) */
declare var window: Window & typeof globalThis;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/alert) */
declare function alert(message?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/blur) */
declare function blur(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/cancelIdleCallback) */
declare function cancelIdleCallback(handle: number): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/captureEvents)
*/
declare function captureEvents(): void;
/**
* Closes the window.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/close)
*/
declare function close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/confirm) */
declare function confirm(message?: string): boolean;
/**
* Moves the focus to the window's browsing context, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/focus)
*/
declare function focus(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getComputedStyle) */
declare function getComputedStyle(elt: Element, pseudoElt?: string | null): CSSStyleDeclaration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/getSelection) */
declare function getSelection(): Selection | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/matchMedia) */
declare function matchMedia(query: string): MediaQueryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveBy) */
declare function moveBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/moveTo) */
declare function moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/open) */
declare function open(url?: string | URL, target?: string, features?: string): WindowProxy | null;
/**
* Posts a message to the given window. Messages can be structured objects, e.g. nested objects and arrays, can contain JavaScript values (strings, numbers, Date objects, etc), and can contain certain data objects such as File Blob, FileList, and ArrayBuffer objects.
*
* Objects listed in the transfer member of options are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* A target origin can be specified using the targetOrigin member of options. If not provided, it defaults to "/". This default restricts the message to same-origin targets only.
*
* If the origin of the target window doesn't match the given target origin, the message is discarded, to avoid information leakage. To send the message to the target regardless of origin, set the target origin to "*".
*
* Throws a "DataCloneError" DOMException if transfer array contains duplicate objects or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/postMessage)
*/
declare function postMessage(message: any, targetOrigin: string, transfer?: Transferable[]): void;
declare function postMessage(message: any, options?: WindowPostMessageOptions): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/print) */
declare function print(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/prompt) */
declare function prompt(message?: string, _default?: string): string | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/releaseEvents)
*/
declare function releaseEvents(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/requestIdleCallback) */
declare function requestIdleCallback(callback: IdleRequestCallback, options?: IdleRequestOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeBy) */
declare function resizeBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/resizeTo) */
declare function resizeTo(width: number, height: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scroll) */
declare function scroll(options?: ScrollToOptions): void;
declare function scroll(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollBy) */
declare function scrollBy(options?: ScrollToOptions): void;
declare function scrollBy(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/scrollTo) */
declare function scrollTo(options?: ScrollToOptions): void;
declare function scrollTo(x: number, y: number): void;
/**
* Cancels the document load.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/stop)
*/
declare function stop(): void;
declare function toString(): string;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
declare function cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
/**
* Fires when the user aborts the download.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/abort_event)
*/
declare var onabort: ((this: Window, ev: UIEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationcancel_event) */
declare var onanimationcancel: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event) */
declare var onanimationend: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event) */
declare var onanimationiteration: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event) */
declare var onanimationstart: ((this: Window, ev: AnimationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/auxclick_event) */
declare var onauxclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/beforeinput_event) */
declare var onbeforeinput: ((this: Window, ev: InputEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/beforetoggle_event) */
declare var onbeforetoggle: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the object loses the input focus.
* @param ev The focus event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/blur_event)
*/
declare var onblur: ((this: Window, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/cancel_event) */
declare var oncancel: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback is possible, but would require further buffering.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplay_event)
*/
declare var oncanplay: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/canplaythrough_event) */
declare var oncanplaythrough: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the contents of the object or selection have changed.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/change_event)
*/
declare var onchange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the left mouse button on the object
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/click_event)
*/
declare var onclick: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDialogElement/close_event) */
declare var onclose: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user clicks the right mouse button in the client area, opening the context menu.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/contextmenu_event)
*/
declare var oncontextmenu: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/copy_event) */
declare var oncopy: ((this: Window, ev: ClipboardEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLTrackElement/cuechange_event) */
declare var oncuechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/cut_event) */
declare var oncut: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Fires when the user double-clicks the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/dblclick_event)
*/
declare var ondblclick: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires on the source object continuously during a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drag_event)
*/
declare var ondrag: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user releases the mouse at the close of a drag operation.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragend_event)
*/
declare var ondragend: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element when the user drags the object to a valid drop target.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragenter_event)
*/
declare var ondragenter: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
* @param ev The drag event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragleave_event)
*/
declare var ondragleave: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the target element continuously while the user drags the object over a valid drop target.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragover_event)
*/
declare var ondragover: ((this: Window, ev: DragEvent) => any) | null;
/**
* Fires on the source object when the user starts to drag a text selection or selected object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dragstart_event)
*/
declare var ondragstart: ((this: Window, ev: DragEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/drop_event) */
declare var ondrop: ((this: Window, ev: DragEvent) => any) | null;
/**
* Occurs when the duration attribute is updated.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/durationchange_event)
*/
declare var ondurationchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the media element is reset to its initial state.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/emptied_event)
*/
declare var onemptied: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the end of playback is reached.
* @param ev The event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ended_event)
*/
declare var onended: ((this: Window, ev: Event) => any) | null;
/**
* Fires when an error occurs during object loading.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/error_event)
*/
declare var onerror: OnErrorEventHandler;
/**
* Fires when the object receives focus.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/focus_event)
*/
declare var onfocus: ((this: Window, ev: FocusEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/formdata_event) */
declare var onformdata: ((this: Window, ev: FormDataEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/gotpointercapture_event) */
declare var ongotpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/input_event) */
declare var oninput: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/invalid_event) */
declare var oninvalid: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user presses a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keydown_event)
*/
declare var onkeydown: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user presses an alphanumeric key.
* @param ev The event.
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keypress_event)
*/
declare var onkeypress: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires when the user releases a key.
* @param ev The keyboard event
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/keyup_event)
*/
declare var onkeyup: ((this: Window, ev: KeyboardEvent) => any) | null;
/**
* Fires immediately after the browser loads the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SVGElement/load_event)
*/
declare var onload: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when media data is loaded at the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadeddata_event)
*/
declare var onloadeddata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the duration and dimensions of the media have been determined.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadedmetadata_event)
*/
declare var onloadedmetadata: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when Internet Explorer begins looking for media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/loadstart_event)
*/
declare var onloadstart: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/lostpointercapture_event) */
declare var onlostpointercapture: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Fires when the user clicks the object with either mouse button.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousedown_event)
*/
declare var onmousedown: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseenter_event) */
declare var onmouseenter: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseleave_event) */
declare var onmouseleave: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mousemove_event)
*/
declare var onmousemove: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer outside the boundaries of the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseout_event)
*/
declare var onmouseout: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user moves the mouse pointer into the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseover_event)
*/
declare var onmouseover: ((this: Window, ev: MouseEvent) => any) | null;
/**
* Fires when the user releases a mouse button while the mouse is over the object.
* @param ev The mouse event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/mouseup_event)
*/
declare var onmouseup: ((this: Window, ev: MouseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/paste_event) */
declare var onpaste: ((this: Window, ev: ClipboardEvent) => any) | null;
/**
* Occurs when playback is paused.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/pause_event)
*/
declare var onpause: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the play method is requested.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/play_event)
*/
declare var onplay: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the audio or video has started playing.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/playing_event)
*/
declare var onplaying: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointercancel_event) */
declare var onpointercancel: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerdown_event) */
declare var onpointerdown: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerenter_event) */
declare var onpointerenter: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerleave_event) */
declare var onpointerleave: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointermove_event) */
declare var onpointermove: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerout_event) */
declare var onpointerout: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerover_event) */
declare var onpointerover: ((this: Window, ev: PointerEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/pointerup_event) */
declare var onpointerup: ((this: Window, ev: PointerEvent) => any) | null;
/**
* Occurs to indicate progress while downloading media data.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/progress_event)
*/
declare var onprogress: ((this: Window, ev: ProgressEvent) => any) | null;
/**
* Occurs when the playback rate is increased or decreased.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/ratechange_event)
*/
declare var onratechange: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the user resets a form.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/reset_event)
*/
declare var onreset: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLVideoElement/resize_event) */
declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
/**
* Fires when the user repositions the scroll box in the scroll bar on the object.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scroll_event)
*/
declare var onscroll: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/scrollend_event) */
declare var onscrollend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/securitypolicyviolation_event) */
declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
/**
* Occurs when the seek operation ends.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeked_event)
*/
declare var onseeked: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the current playback position is moved.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/seeking_event)
*/
declare var onseeking: ((this: Window, ev: Event) => any) | null;
/**
* Fires when the current selection changes.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLInputElement/select_event)
*/
declare var onselect: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/selectionchange_event) */
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Node/selectstart_event) */
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLSlotElement/slotchange_event) */
declare var onslotchange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when the download has stopped.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/stalled_event)
*/
declare var onstalled: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLFormElement/submit_event) */
declare var onsubmit: ((this: Window, ev: SubmitEvent) => any) | null;
/**
* Occurs if the load operation has been intentionally halted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/suspend_event)
*/
declare var onsuspend: ((this: Window, ev: Event) => any) | null;
/**
* Occurs to indicate the current playback position.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/timeupdate_event)
*/
declare var ontimeupdate: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLDetailsElement/toggle_event) */
declare var ontoggle: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchcancel_event) */
declare var ontouchcancel: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchend_event) */
declare var ontouchend: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchmove_event) */
declare var ontouchmove: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/touchstart_event) */
declare var ontouchstart: ((this: Window, ev: TouchEvent) => any) | null | undefined;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitioncancel_event) */
declare var ontransitioncancel: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event) */
declare var ontransitionend: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionrun_event) */
declare var ontransitionrun: ((this: Window, ev: TransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionstart_event) */
declare var ontransitionstart: ((this: Window, ev: TransitionEvent) => any) | null;
/**
* Occurs when the volume is changed, or playback is muted or unmuted.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/volumechange_event)
*/
declare var onvolumechange: ((this: Window, ev: Event) => any) | null;
/**
* Occurs when playback stops because the next frame of a video resource is not available.
* @param ev The event.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLMediaElement/waiting_event)
*/
declare var onwaiting: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationend_event)
*/
declare var onwebkitanimationend: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationiteration\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationiteration_event)
*/
declare var onwebkitanimationiteration: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`onanimationstart\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/animationstart_event)
*/
declare var onwebkitanimationstart: ((this: Window, ev: Event) => any) | null;
/**
* @deprecated This is a legacy alias of \`ontransitionend\`.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/transitionend_event)
*/
declare var onwebkittransitionend: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Element/wheel_event) */
declare var onwheel: ((this: Window, ev: WheelEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/afterprint_event) */
declare var onafterprint: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeprint_event) */
declare var onbeforeprint: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/beforeunload_event) */
declare var onbeforeunload: ((this: Window, ev: BeforeUnloadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepadconnected_event) */
declare var ongamepadconnected: ((this: Window, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/gamepaddisconnected_event) */
declare var ongamepaddisconnected: ((this: Window, ev: GamepadEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/hashchange_event) */
declare var onhashchange: ((this: Window, ev: HashChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/languagechange_event) */
declare var onlanguagechange: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/message_event) */
declare var onmessage: ((this: Window, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/messageerror_event) */
declare var onmessageerror: ((this: Window, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/offline_event) */
declare var onoffline: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/online_event) */
declare var ononline: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pagehide_event) */
declare var onpagehide: ((this: Window, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/pageshow_event) */
declare var onpageshow: ((this: Window, ev: PageTransitionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/popstate_event) */
declare var onpopstate: ((this: Window, ev: PopStateEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/rejectionhandled_event) */
declare var onrejectionhandled: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/storage_event) */
declare var onstorage: ((this: Window, ev: StorageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unhandledrejection_event) */
declare var onunhandledrejection: ((this: Window, ev: PromiseRejectionEvent) => any) | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/unload_event)
*/
declare var onunload: ((this: Window, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/localStorage) */
declare var localStorage: Storage;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Window/sessionStorage) */
declare var sessionStorage: Storage;
declare function addEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof WindowEventMap>(type: K, listener: (this: Window, ev: WindowEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type AutoFill = AutoFillBase | \`\${OptionalPrefixToken<AutoFillSection>}\${OptionalPrefixToken<AutoFillAddressKind>}\${AutoFillField}\${OptionalPostfixToken<AutoFillCredentialField>}\`;
type AutoFillField = AutoFillNormalField | \`\${OptionalPrefixToken<AutoFillContactKind>}\${AutoFillContactField}\`;
type AutoFillSection = \`section-\${string}\`;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type COSEAlgorithmIdentifier = number;
type CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = HTMLOrSVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame;
type ClipboardItemData = Promise<string | Blob>;
type ClipboardItems = ClipboardItem[];
type ConstrainBoolean = boolean | ConstrainBooleanParameters;
type ConstrainDOMString = string | string[] | ConstrainDOMStringParameters;
type ConstrainDouble = number | ConstrainDoubleRange;
type ConstrainULong = number | ConstrainULongRange;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HTMLOrSVGImageElement = HTMLImageElement | SVGImageElement;
type HTMLOrSVGScriptElement = HTMLScriptElement | SVGScriptElement;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type LineAndPositionSetting = number | AutoKeyword;
type MediaProvider = MediaStream | MediaSource | Blob;
type MessageEventSource = WindowProxy | MessagePort | ServiceWorker;
type MutationRecordType = "attributes" | "characterData" | "childList";
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnBeforeUnloadEventHandler = OnBeforeUnloadEventHandlerNonNull | null;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type OptionalPostfixToken<T extends string> = \` \${T}\` | "";
type OptionalPrefixToken<T extends string> = \`\${T} \` | "";
type PerformanceEntryList = PerformanceEntry[];
type RTCRtpTransform = RTCRtpScriptTransform;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type RenderingContext = CanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type VibratePattern = number | number[];
type WindowProxy = Window;
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlignSetting = "center" | "end" | "left" | "right" | "start";
type AlphaOption = "discard" | "keep";
type AnimationPlayState = "finished" | "idle" | "paused" | "running";
type AnimationReplaceState = "active" | "persisted" | "removed";
type AppendMode = "segments" | "sequence";
type AttestationConveyancePreference = "direct" | "enterprise" | "indirect" | "none";
type AudioContextLatencyCategory = "balanced" | "interactive" | "playback";
type AudioContextState = "closed" | "running" | "suspended";
type AuthenticatorAttachment = "cross-platform" | "platform";
type AuthenticatorTransport = "ble" | "hybrid" | "internal" | "nfc" | "usb";
type AutoFillAddressKind = "billing" | "shipping";
type AutoFillBase = "" | "off" | "on";
type AutoFillContactField = "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-local-prefix" | "tel-local-suffix" | "tel-national";
type AutoFillContactKind = "home" | "mobile" | "work";
type AutoFillCredentialField = "webauthn";
type AutoFillNormalField = "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "name" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username";
type AutoKeyword = "auto";
type AutomationRate = "a-rate" | "k-rate";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type BiquadFilterType = "allpass" | "bandpass" | "highpass" | "highshelf" | "lowpass" | "lowshelf" | "notch" | "peaking";
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
type CanPlayTypeResult = "" | "maybe" | "probably";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ChannelCountMode = "clamped-max" | "explicit" | "max";
type ChannelInterpretation = "discrete" | "speakers";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type CodecState = "closed" | "configured" | "unconfigured";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompositeOperation = "accumulate" | "add" | "replace";
type CompositeOperationOrAuto = "accumulate" | "add" | "auto" | "replace";
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
type CredentialMediationRequirement = "conditional" | "optional" | "required" | "silent";
type DOMParserSupportedType = "application/xhtml+xml" | "application/xml" | "image/svg+xml" | "text/html" | "text/xml";
type DirectionSetting = "" | "lr" | "rl";
type DisplayCaptureSurfaceType = "browser" | "monitor" | "window";
type DistanceModelType = "exponential" | "inverse" | "linear";
type DocumentReadyState = "complete" | "interactive" | "loading";
type DocumentVisibilityState = "hidden" | "visible";
type EncodedVideoChunkType = "delta" | "key";
type EndOfStreamError = "decode" | "network";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FillMode = "auto" | "backwards" | "both" | "forwards" | "none";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FullscreenNavigationUI = "auto" | "hide" | "show";
type GamepadHapticActuatorType = "vibration";
type GamepadHapticEffectType = "dual-rumble";
type GamepadHapticsResult = "complete" | "preempted";
type GamepadMappingType = "" | "standard" | "xr-standard";
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type HighlightType = "grammar-error" | "highlight" | "spelling-error";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image" | "none";
type ImageSmoothingQuality = "high" | "low" | "medium";
type InsertPosition = "afterbegin" | "afterend" | "beforebegin" | "beforeend";
type IterationCompositeOperation = "accumulate" | "replace";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LatencyMode = "quality" | "realtime";
type LineAlignSetting = "center" | "end" | "start";
type LockMode = "exclusive" | "shared";
type MIDIPortConnectionState = "closed" | "open" | "pending";
type MIDIPortDeviceState = "connected" | "disconnected";
type MIDIPortType = "input" | "output";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
type MediaEncodingType = "record" | "webrtc";
type MediaKeyMessageType = "individualization-request" | "license-release" | "license-renewal" | "license-request";
type MediaKeySessionClosedReason = "closed-by-application" | "hardware-context-reset" | "internal-error" | "release-acknowledged" | "resource-evicted";
type MediaKeySessionType = "persistent-license" | "temporary";
type MediaKeyStatus = "expired" | "internal-error" | "output-downscaled" | "output-restricted" | "released" | "status-pending" | "usable" | "usable-in-future";
type MediaKeysRequirement = "not-allowed" | "optional" | "required";
type MediaSessionAction = "nexttrack" | "pause" | "play" | "previoustrack" | "seekbackward" | "seekforward" | "seekto" | "skipad" | "stop";
type MediaSessionPlaybackState = "none" | "paused" | "playing";
type MediaStreamTrackState = "ended" | "live";
type NavigationTimingType = "back_forward" | "navigate" | "prerender" | "reload";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type OrientationType = "landscape-primary" | "landscape-secondary" | "portrait-primary" | "portrait-secondary";
type OscillatorType = "custom" | "sawtooth" | "sine" | "square" | "triangle";
type OverSampleType = "2x" | "4x" | "none";
type PanningModelType = "HRTF" | "equalpower";
type PaymentComplete = "fail" | "success" | "unknown";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PlaybackDirection = "alternate" | "alternate-reverse" | "normal" | "reverse";
type PositionAlignSetting = "auto" | "center" | "line-left" | "line-right";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PresentationStyle = "attachment" | "inline" | "unspecified";
type PublicKeyCredentialType = "public-key";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCBundlePolicy = "balanced" | "max-bundle" | "max-compat";
type RTCDataChannelState = "closed" | "closing" | "connecting" | "open";
type RTCDegradationPreference = "balanced" | "maintain-framerate" | "maintain-resolution";
type RTCDtlsTransportState = "closed" | "connected" | "connecting" | "failed" | "new";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type RTCErrorDetailType = "data-channel-failure" | "dtls-failure" | "fingerprint-failure" | "hardware-encoder-error" | "hardware-encoder-not-available" | "sctp-failure" | "sdp-syntax-error";
type RTCIceCandidateType = "host" | "prflx" | "relay" | "srflx";
type RTCIceComponent = "rtcp" | "rtp";
type RTCIceConnectionState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCIceGathererState = "complete" | "gathering" | "new";
type RTCIceGatheringState = "complete" | "gathering" | "new";
type RTCIceProtocol = "tcp" | "udp";
type RTCIceTcpCandidateType = "active" | "passive" | "so";
type RTCIceTransportPolicy = "all" | "relay";
type RTCIceTransportState = "checking" | "closed" | "completed" | "connected" | "disconnected" | "failed" | "new";
type RTCPeerConnectionState = "closed" | "connected" | "connecting" | "disconnected" | "failed" | "new";
type RTCPriorityType = "high" | "low" | "medium" | "very-low";
type RTCRtcpMuxPolicy = "require";
type RTCRtpTransceiverDirection = "inactive" | "recvonly" | "sendonly" | "sendrecv" | "stopped";
type RTCSctpTransportState = "closed" | "connected" | "connecting";
type RTCSdpType = "answer" | "offer" | "pranswer" | "rollback";
type RTCSignalingState = "closed" | "have-local-offer" | "have-local-pranswer" | "have-remote-offer" | "have-remote-pranswer" | "stable";
type RTCStatsIceCandidatePairState = "failed" | "frozen" | "in-progress" | "inprogress" | "succeeded" | "waiting";
type RTCStatsType = "candidate-pair" | "certificate" | "codec" | "data-channel" | "inbound-rtp" | "local-candidate" | "media-playout" | "media-source" | "outbound-rtp" | "peer-connection" | "remote-candidate" | "remote-inbound-rtp" | "remote-outbound-rtp" | "transport";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReadyState = "closed" | "ended" | "open";
type RecordingState = "inactive" | "paused" | "recording";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RemotePlaybackState = "connected" | "connecting" | "disconnected";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestPriority = "auto" | "high" | "low";
type RequestRedirect = "error" | "follow" | "manual";
type ResidentKeyRequirement = "discouraged" | "preferred" | "required";
type ResizeObserverBoxOptions = "border-box" | "content-box" | "device-pixel-content-box";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type ScrollBehavior = "auto" | "instant" | "smooth";
type ScrollLogicalPosition = "center" | "end" | "nearest" | "start";
type ScrollRestoration = "auto" | "manual";
type ScrollSetting = "" | "up";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type SelectionMode = "end" | "preserve" | "select" | "start";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type ShadowRootMode = "closed" | "open";
type SlotAssignmentMode = "manual" | "named";
type SpeechSynthesisErrorCode = "audio-busy" | "audio-hardware" | "canceled" | "interrupted" | "invalid-argument" | "language-unavailable" | "network" | "not-allowed" | "synthesis-failed" | "synthesis-unavailable" | "text-too-long" | "voice-unavailable";
type TextTrackKind = "captions" | "chapters" | "descriptions" | "metadata" | "subtitles";
type TextTrackMode = "disabled" | "hidden" | "showing";
type TouchType = "direct" | "stylus";
type TransferFunction = "hlg" | "pq" | "srgb";
type UserVerificationRequirement = "discouraged" | "preferred" | "required";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
type VideoFacingModeEnum = "environment" | "left" | "right" | "user";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WakeLockType = "screen";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`;Vi["lib.dom.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Window Iterable APIs
/////////////////////////////
interface AudioParam {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AudioParam/setValueCurveAtTime) */
setValueCurveAtTime(values: Iterable<number>, startTime: number, duration: number): AudioParam;
}
interface AudioParamMap extends ReadonlyMap<string, AudioParam> {
}
interface BaseAudioContext {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createIIRFilter) */
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BaseAudioContext/createPeriodicWave) */
createPeriodicWave(real: Iterable<number>, imag: Iterable<number>, constraints?: PeriodicWaveConstraints): PeriodicWave;
}
interface CSSKeyframesRule {
[Symbol.iterator](): IterableIterator<CSSKeyframeRule>;
}
interface CSSNumericArray {
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
entries(): IterableIterator<[number, CSSNumericValue]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSNumericValue>;
}
interface CSSRuleList {
[Symbol.iterator](): IterableIterator<CSSRule>;
}
interface CSSStyleDeclaration {
[Symbol.iterator](): IterableIterator<string>;
}
interface CSSTransformValue {
[Symbol.iterator](): IterableIterator<CSSTransformComponent>;
entries(): IterableIterator<[number, CSSTransformComponent]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSTransformComponent>;
}
interface CSSUnparsedValue {
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
entries(): IterableIterator<[number, CSSUnparsedSegment]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSUnparsedSegment>;
}
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: Iterable<number>): void;
}
interface DOMRectList {
[Symbol.iterator](): IterableIterator<DOMRect>;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface DOMTokenList {
[Symbol.iterator](): IterableIterator<string>;
entries(): IterableIterator<[number, string]>;
keys(): IterableIterator<number>;
values(): IterableIterator<string>;
}
interface DataTransferItemList {
[Symbol.iterator](): IterableIterator<DataTransferItem>;
}
interface EventCounts extends ReadonlyMap<string, number> {
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface HTMLAllCollection {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionBase {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLCollectionOf<T extends Element> {
[Symbol.iterator](): IterableIterator<T>;
}
interface HTMLFormElement {
[Symbol.iterator](): IterableIterator<Element>;
}
interface HTMLSelectElement {
[Symbol.iterator](): IterableIterator<HTMLOptionElement>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface Highlight extends Set<AbstractRange> {
}
interface HighlightRegistry extends Map<string, Highlight> {
}
interface IDBDatabase {
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MIDIInputMap extends ReadonlyMap<string, MIDIInput> {
}
interface MIDIOutput {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MIDIOutput/send) */
send(data: Iterable<number>, timestamp?: DOMHighResTimeStamp): void;
}
interface MIDIOutputMap extends ReadonlyMap<string, MIDIOutput> {
}
interface MediaKeyStatusMap {
[Symbol.iterator](): IterableIterator<[BufferSource, MediaKeyStatus]>;
entries(): IterableIterator<[BufferSource, MediaKeyStatus]>;
keys(): IterableIterator<BufferSource>;
values(): IterableIterator<MediaKeyStatus>;
}
interface MediaList {
[Symbol.iterator](): IterableIterator<string>;
}
interface MessageEvent<T = any> {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface MimeTypeArray {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface NamedNodeMap {
[Symbol.iterator](): IterableIterator<Attr>;
}
interface Navigator {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/requestMediaKeySystemAccess)
*/
requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: Iterable<MediaKeySystemConfiguration>): Promise<MediaKeySystemAccess>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/vibrate) */
vibrate(pattern: Iterable<number>): boolean;
}
interface NodeList {
[Symbol.iterator](): IterableIterator<Node>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, Node]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<Node>;
}
interface NodeListOf<TNode extends Node> {
[Symbol.iterator](): IterableIterator<TNode>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[number, TNode]>;
/** Returns an list of keys in the list. */
keys(): IterableIterator<number>;
/** Returns an list of values in the list. */
values(): IterableIterator<TNode>;
}
interface Plugin {
[Symbol.iterator](): IterableIterator<MimeType>;
}
interface PluginArray {
[Symbol.iterator](): IterableIterator<Plugin>;
}
interface RTCRtpTransceiver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpTransceiver/setCodecPreferences) */
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
}
interface RTCStatsReport extends ReadonlyMap<string, any> {
}
interface SVGLengthList {
[Symbol.iterator](): IterableIterator<SVGLength>;
}
interface SVGNumberList {
[Symbol.iterator](): IterableIterator<SVGNumber>;
}
interface SVGPointList {
[Symbol.iterator](): IterableIterator<DOMPoint>;
}
interface SVGStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface SVGTransformList {
[Symbol.iterator](): IterableIterator<SVGTransform>;
}
interface SourceBufferList {
[Symbol.iterator](): IterableIterator<SourceBuffer>;
}
interface SpeechRecognitionResult {
[Symbol.iterator](): IterableIterator<SpeechRecognitionAlternative>;
}
interface SpeechRecognitionResultList {
[Symbol.iterator](): IterableIterator<SpeechRecognitionResult>;
}
interface StylePropertyMapReadOnly {
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
keys(): IterableIterator<string>;
values(): IterableIterator<Iterable<CSSStyleValue>>;
}
interface StyleSheetList {
[Symbol.iterator](): IterableIterator<CSSStyleSheet>;
}
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface TextTrackCueList {
[Symbol.iterator](): IterableIterator<TextTrackCue>;
}
interface TextTrackList {
[Symbol.iterator](): IterableIterator<TextTrack>;
}
interface TouchList {
[Symbol.iterator](): IterableIterator<Touch>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`;Vi["lib.es2015.collection.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Map<K, V> {
clear(): void;
/**
* @returns true if an element in the Map existed and has been removed, or false if the element does not exist.
*/
delete(key: K): boolean;
/**
* Executes a provided function once per each key/value pair in the Map, in insertion order.
*/
forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void;
/**
* Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
* @returns Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
*/
get(key: K): V | undefined;
/**
* @returns boolean indicating whether an element with the specified key exists or not.
*/
has(key: K): boolean;
/**
* Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
*/
set(key: K, value: V): this;
/**
* @returns the number of elements in the Map.
*/
readonly size: number;
}
interface MapConstructor {
new (): Map<any, any>;
new <K, V>(entries?: readonly (readonly [K, V])[] | null): Map<K, V>;
readonly prototype: Map<any, any>;
}
declare var Map: MapConstructor;
interface ReadonlyMap<K, V> {
forEach(callbackfn: (value: V, key: K, map: ReadonlyMap<K, V>) => void, thisArg?: any): void;
get(key: K): V | undefined;
has(key: K): boolean;
readonly size: number;
}
interface WeakMap<K extends WeakKey, V> {
/**
* Removes the specified element from the WeakMap.
* @returns true if the element was successfully removed, or false if it was not present.
*/
delete(key: K): boolean;
/**
* @returns a specified element.
*/
get(key: K): V | undefined;
/**
* @returns a boolean indicating whether an element with the specified key exists or not.
*/
has(key: K): boolean;
/**
* Adds a new element with a specified key and value.
* @param key Must be an object or symbol.
*/
set(key: K, value: V): this;
}
interface WeakMapConstructor {
new <K extends WeakKey = WeakKey, V = any>(entries?: readonly (readonly [K, V])[] | null): WeakMap<K, V>;
readonly prototype: WeakMap<WeakKey, any>;
}
declare var WeakMap: WeakMapConstructor;
interface Set<T> {
/**
* Appends a new element with a specified value to the end of the Set.
*/
add(value: T): this;
clear(): void;
/**
* Removes a specified value from the Set.
* @returns Returns true if an element in the Set existed and has been removed, or false if the element does not exist.
*/
delete(value: T): boolean;
/**
* Executes a provided function once per each value in the Set object, in insertion order.
*/
forEach(callbackfn: (value: T, value2: T, set: Set<T>) => void, thisArg?: any): void;
/**
* @returns a boolean indicating whether an element with the specified value exists in the Set or not.
*/
has(value: T): boolean;
/**
* @returns the number of (unique) elements in Set.
*/
readonly size: number;
}
interface SetConstructor {
new <T = any>(values?: readonly T[] | null): Set<T>;
readonly prototype: Set<any>;
}
declare var Set: SetConstructor;
interface ReadonlySet<T> {
forEach(callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void, thisArg?: any): void;
has(value: T): boolean;
readonly size: number;
}
interface WeakSet<T extends WeakKey> {
/**
* Appends a new value to the end of the WeakSet.
*/
add(value: T): this;
/**
* Removes the specified element from the WeakSet.
* @returns Returns true if the element existed and has been removed, or false if the element does not exist.
*/
delete(value: T): boolean;
/**
* @returns a boolean indicating whether a value exists in the WeakSet or not.
*/
has(value: T): boolean;
}
interface WeakSetConstructor {
new <T extends WeakKey = WeakKey>(values?: readonly T[] | null): WeakSet<T>;
readonly prototype: WeakSet<WeakKey>;
}
declare var WeakSet: WeakSetConstructor;
`;Vi["lib.es2015.core.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: T[]) => unknown, thisArg?: any): number;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: T, start?: number, end?: number): this;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
}
interface ArrayConstructor {
/**
* Creates an array from an array-like object.
* @param arrayLike An array-like object to convert to an array.
*/
from<T>(arrayLike: ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param arrayLike An array-like object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of<T>(...items: T[]): T[];
}
interface DateConstructor {
new (value: number | string | Date): Date;
}
interface Function {
/**
* Returns the name of the function. Function names are read-only and can not be changed.
*/
readonly name: string;
}
interface Math {
/**
* Returns the number of leading zero bits in the 32-bit binary representation of a number.
* @param x A numeric expression.
*/
clz32(x: number): number;
/**
* Returns the result of 32-bit multiplication of two numbers.
* @param x First number
* @param y Second number
*/
imul(x: number, y: number): number;
/**
* Returns the sign of the x, indicating whether x is positive, negative or zero.
* @param x The numeric expression to test
*/
sign(x: number): number;
/**
* Returns the base 10 logarithm of a number.
* @param x A numeric expression.
*/
log10(x: number): number;
/**
* Returns the base 2 logarithm of a number.
* @param x A numeric expression.
*/
log2(x: number): number;
/**
* Returns the natural logarithm of 1 + x.
* @param x A numeric expression.
*/
log1p(x: number): number;
/**
* Returns the result of (e^x - 1), which is an implementation-dependent approximation to
* subtracting 1 from the exponential function of x (e raised to the power of x, where e
* is the base of the natural logarithms).
* @param x A numeric expression.
*/
expm1(x: number): number;
/**
* Returns the hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cosh(x: number): number;
/**
* Returns the hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sinh(x: number): number;
/**
* Returns the hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tanh(x: number): number;
/**
* Returns the inverse hyperbolic cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
acosh(x: number): number;
/**
* Returns the inverse hyperbolic sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
asinh(x: number): number;
/**
* Returns the inverse hyperbolic tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
atanh(x: number): number;
/**
* Returns the square root of the sum of squares of its arguments.
* @param values Values to compute the square root for.
* If no arguments are passed, the result is +0.
* If there is only one argument, the result is the absolute value.
* If any argument is +Infinity or -Infinity, the result is +Infinity.
* If any argument is NaN, the result is NaN.
* If all arguments are either +0 or \u22120, the result is +0.
*/
hypot(...values: number[]): number;
/**
* Returns the integral part of the a numeric expression, x, removing any fractional digits.
* If x is already an integer, the result is x.
* @param x A numeric expression.
*/
trunc(x: number): number;
/**
* Returns the nearest single precision float representation of a number.
* @param x A numeric expression.
*/
fround(x: number): number;
/**
* Returns an implementation-dependent approximation to the cube root of number.
* @param x A numeric expression.
*/
cbrt(x: number): number;
}
interface NumberConstructor {
/**
* The value of Number.EPSILON is the difference between 1 and the smallest value greater than 1
* that is representable as a Number value, which is approximately:
* 2.2204460492503130808472633361816 x 10\u200D\u2212\u200D16.
*/
readonly EPSILON: number;
/**
* Returns true if passed value is finite.
* Unlike the global isFinite, Number.isFinite doesn't forcibly convert the parameter to a
* number. Only finite values of the type number, result in true.
* @param number A numeric value.
*/
isFinite(number: unknown): boolean;
/**
* Returns true if the value passed is an integer, false otherwise.
* @param number A numeric value.
*/
isInteger(number: unknown): boolean;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a
* number). Unlike the global isNaN(), Number.isNaN() doesn't forcefully convert the parameter
* to a number. Only values of the type number, that are also NaN, result in true.
* @param number A numeric value.
*/
isNaN(number: unknown): boolean;
/**
* Returns true if the value passed is a safe integer.
* @param number A numeric value.
*/
isSafeInteger(number: unknown): boolean;
/**
* The value of the largest integer n such that n and n + 1 are both exactly representable as
* a Number value.
* The value of Number.MAX_SAFE_INTEGER is 9007199254740991 2^53 \u2212 1.
*/
readonly MAX_SAFE_INTEGER: number;
/**
* The value of the smallest integer n such that n and n \u2212 1 are both exactly representable as
* a Number value.
* The value of Number.MIN_SAFE_INTEGER is \u22129007199254740991 (\u2212(2^53 \u2212 1)).
*/
readonly MIN_SAFE_INTEGER: number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
parseFloat(string: string): number;
/**
* Converts A string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
parseInt(string: string, radix?: number): number;
}
interface ObjectConstructor {
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source The source object from which to copy properties.
*/
assign<T extends {}, U>(target: T, source: U): T & U;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
*/
assign<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param source1 The first source object from which to copy properties.
* @param source2 The second source object from which to copy properties.
* @param source3 The third source object from which to copy properties.
*/
assign<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
/**
* Copy the values of all of the enumerable own properties from one or more source objects to a
* target object. Returns the target object.
* @param target The target object to copy to.
* @param sources One or more source objects from which to copy properties
*/
assign(target: object, ...sources: any[]): any;
/**
* Returns an array of all symbol properties found directly on object o.
* @param o Object to retrieve the symbols from.
*/
getOwnPropertySymbols(o: any): symbol[];
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: {}): string[];
/**
* Returns true if the values are the same value, false otherwise.
* @param value1 The first value.
* @param value2 The second value.
*/
is(value1: any, value2: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null. Returns the object o.
* @param o The object to change its prototype.
* @param proto The value of the new prototype or null.
*/
setPrototypeOf(o: any, proto: object | null): any;
}
interface ReadonlyArray<T> {
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find<S extends T>(predicate: (value: T, index: number, obj: readonly T[]) => value is S, thisArg?: any): S | undefined;
find(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: T, index: number, obj: readonly T[]) => unknown, thisArg?: any): number;
}
interface RegExp {
/**
* Returns a string indicating the flags of the regular expression in question. This field is read-only.
* The characters in this string are sequenced and concatenated in the following order:
*
* - "g" for global
* - "i" for ignoreCase
* - "m" for multiline
* - "u" for unicode
* - "y" for sticky
*
* If no flags are set, the value is the empty string.
*/
readonly flags: string;
/**
* Returns a Boolean value indicating the state of the sticky flag (y) used with a regular
* expression. Default is false. Read-only.
*/
readonly sticky: boolean;
/**
* Returns a Boolean value indicating the state of the Unicode flag (u) used with a regular
* expression. Default is false. Read-only.
*/
readonly unicode: boolean;
}
interface RegExpConstructor {
new (pattern: RegExp | string, flags?: string): RegExp;
(pattern: RegExp | string, flags?: string): RegExp;
}
interface String {
/**
* Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point
* value of the UTF-16 encoded code point starting at the string element at position pos in
* the String resulting from converting this object to a String.
* If there is no element at that position, the result is undefined.
* If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.
*/
codePointAt(pos: number): number | undefined;
/**
* Returns true if searchString appears as a substring of the result of converting this
* object to a String, at one or more positions that are
* greater than or equal to position; otherwise, returns false.
* @param searchString search string
* @param position If position is undefined, 0 is assumed, so as to search all of the String.
*/
includes(searchString: string, position?: number): boolean;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* endPosition \u2013 length(this). Otherwise returns false.
*/
endsWith(searchString: string, endPosition?: number): boolean;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
/**
* Returns the String value result of normalizing the string into the normalization form
* named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.
* @param form Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default
* is "NFC"
*/
normalize(form?: string): string;
/**
* Returns a String value that is made from count copies appended together. If count is 0,
* the empty string is returned.
* @param count number of copies to append
*/
repeat(count: number): string;
/**
* Returns true if the sequence of elements of searchString converted to a String is the
* same as the corresponding elements of this object (converted to a String) starting at
* position. Otherwise returns false.
*/
startsWith(searchString: string, position?: number): boolean;
/**
* Returns an \`<a>\` HTML anchor element and sets the name attribute to the text value
* @deprecated A legacy feature for browser compatibility
* @param name
*/
anchor(name: string): string;
/**
* Returns a \`<big>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
big(): string;
/**
* Returns a \`<blink>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
blink(): string;
/**
* Returns a \`<b>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
bold(): string;
/**
* Returns a \`<tt>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
fixed(): string;
/**
* Returns a \`<font>\` HTML element and sets the color attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontcolor(color: string): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: number): string;
/**
* Returns a \`<font>\` HTML element and sets the size attribute value
* @deprecated A legacy feature for browser compatibility
*/
fontsize(size: string): string;
/**
* Returns an \`<i>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
italics(): string;
/**
* Returns an \`<a>\` HTML element and sets the href attribute value
* @deprecated A legacy feature for browser compatibility
*/
link(url: string): string;
/**
* Returns a \`<small>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
small(): string;
/**
* Returns a \`<strike>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
strike(): string;
/**
* Returns a \`<sub>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sub(): string;
/**
* Returns a \`<sup>\` HTML element
* @deprecated A legacy feature for browser compatibility
*/
sup(): string;
}
interface StringConstructor {
/**
* Return the String value whose elements are, in order, the elements in the List elements.
* If length is 0, the empty string is returned.
*/
fromCodePoint(...codePoints: number[]): string;
/**
* String.raw is usually used as a tag function of a Tagged Template String. When called as
* such, the first argument will be a well formed template call site object and the rest
* parameter will contain the substitution values. It can also be called directly, for example,
* to interleave strings and values from your own tag function, and in this case the only thing
* it needs from the first argument is the raw property.
* @param template A well-formed template string call site representation.
* @param substitutions A set of substitution values.
*/
raw(template: { raw: readonly string[] | ArrayLike<string>; }, ...substitutions: any[]): string;
}
`;Vi["lib.es2015.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es5" />
/// <reference lib="es2015.core" />
/// <reference lib="es2015.collection" />
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.generator" />
/// <reference lib="es2015.promise" />
/// <reference lib="es2015.proxy" />
/// <reference lib="es2015.reflect" />
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
`;Vi["lib.es2015.generator.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface Generator<T = unknown, TReturn = any, TNext = unknown> extends Iterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return(value: TReturn): IteratorResult<T, TReturn>;
throw(e: any): IteratorResult<T, TReturn>;
[Symbol.iterator](): Generator<T, TReturn, TNext>;
}
interface GeneratorFunction {
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): Generator;
/**
* Creates a new Generator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): Generator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: Generator;
}
interface GeneratorFunctionConstructor {
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): GeneratorFunction;
/**
* Creates a new Generator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): GeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: GeneratorFunction;
}
`;Vi["lib.es2015.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
readonly iterator: unique symbol;
}
interface IteratorYieldResult<TYield> {
done?: false;
value: TYield;
}
interface IteratorReturnResult<TReturn> {
done: true;
value: TReturn;
}
type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
interface Iterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
return?(value?: TReturn): IteratorResult<T, TReturn>;
throw?(e?: any): IteratorResult<T, TReturn>;
}
interface Iterable<T> {
[Symbol.iterator](): Iterator<T>;
}
interface IterableIterator<T> extends Iterator<T> {
[Symbol.iterator](): IterableIterator<T>;
}
interface Array<T> {
/** Iterator */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface ArrayConstructor {
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
*/
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
/**
* Creates an array from an iterable object.
* @param iterable An iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
}
interface ReadonlyArray<T> {
/** Iterator of values in the array. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, T]>;
/**
* Returns an iterable of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an iterable of values in the array
*/
values(): IterableIterator<T>;
}
interface IArguments {
/** Iterator */
[Symbol.iterator](): IterableIterator<any>;
}
interface Map<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface ReadonlyMap<K, V> {
/** Returns an iterable of entries in the map. */
[Symbol.iterator](): IterableIterator<[K, V]>;
/**
* Returns an iterable of key, value pairs for every entry in the map.
*/
entries(): IterableIterator<[K, V]>;
/**
* Returns an iterable of keys in the map
*/
keys(): IterableIterator<K>;
/**
* Returns an iterable of values in the map
*/
values(): IterableIterator<V>;
}
interface MapConstructor {
new (): Map<any, any>;
new <K, V>(iterable?: Iterable<readonly [K, V]> | null): Map<K, V>;
}
interface WeakMap<K extends WeakKey, V> {}
interface WeakMapConstructor {
new <K extends WeakKey, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
}
interface Set<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface ReadonlySet<T> {
/** Iterates over values in the set. */
[Symbol.iterator](): IterableIterator<T>;
/**
* Returns an iterable of [v,v] pairs for every value \`v\` in the set.
*/
entries(): IterableIterator<[T, T]>;
/**
* Despite its name, returns an iterable of the values in the set.
*/
keys(): IterableIterator<T>;
/**
* Returns an iterable of values in the set.
*/
values(): IterableIterator<T>;
}
interface SetConstructor {
new <T>(iterable?: Iterable<T> | null): Set<T>;
}
interface WeakSet<T extends WeakKey> {}
interface WeakSetConstructor {
new <T extends WeakKey = WeakKey>(iterable: Iterable<T>): WeakSet<T>;
}
interface Promise<T> {}
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An iterable of Promises.
* @returns A new Promise.
*/
race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}
interface String {
/** Iterator */
[Symbol.iterator](): IterableIterator<string>;
}
interface Int8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int8ArrayConstructor {
new (elements: Iterable<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
}
interface Uint8Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ArrayConstructor {
new (elements: Iterable<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
}
interface Uint8ClampedArray {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint8ClampedArrayConstructor {
new (elements: Iterable<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
interface Int16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int16ArrayConstructor {
new (elements: Iterable<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
}
interface Uint16Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint16ArrayConstructor {
new (elements: Iterable<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
}
interface Int32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Int32ArrayConstructor {
new (elements: Iterable<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
}
interface Uint32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Uint32ArrayConstructor {
new (elements: Iterable<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
}
interface Float32Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float32ArrayConstructor {
new (elements: Iterable<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
}
interface Float64Array {
[Symbol.iterator](): IterableIterator<number>;
/**
* Returns an array of key, value pairs for every entry in the array
*/
entries(): IterableIterator<[number, number]>;
/**
* Returns an list of keys in the array
*/
keys(): IterableIterator<number>;
/**
* Returns an list of values in the array
*/
values(): IterableIterator<number>;
}
interface Float64ArrayConstructor {
new (elements: Iterable<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
}
`;Vi["lib.es2015.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Promise<any>;
/**
* Creates a new Promise.
* @param executor A callback used to initialize the promise. This callback is passed two arguments:
* a resolve callback used to resolve the promise with a value or the result of another promise,
* and a reject callback used to reject the promise with a provided reason or error.
*/
new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void): Promise<T>;
/**
* Creates a Promise that is resolved with an array of results when all of the provided Promises
* resolve, or rejected when any Promise is rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
all<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;
// see: lib.es2015.iterable.d.ts
// all<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
/**
* Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
* or rejected.
* @param values An array of Promises.
* @returns A new Promise.
*/
race<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
// see: lib.es2015.iterable.d.ts
// race<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
/**
* Creates a new rejected promise for the provided reason.
* @param reason The reason the promise was rejected.
* @returns A new rejected Promise.
*/
reject<T = never>(reason?: any): Promise<T>;
/**
* Creates a new resolved promise.
* @returns A resolved promise.
*/
resolve(): Promise<void>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T): Promise<Awaited<T>>;
/**
* Creates a new resolved promise for the provided value.
* @param value A promise.
* @returns A promise whose internal state matches the provided promise.
*/
resolve<T>(value: T | PromiseLike<T>): Promise<Awaited<T>>;
}
declare var Promise: PromiseConstructor;
`;Vi["lib.es2015.proxy.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ProxyHandler<T extends object> {
/**
* A trap method for a function call.
* @param target The original callable object which is being proxied.
*/
apply?(target: T, thisArg: any, argArray: any[]): any;
/**
* A trap for the \`new\` operator.
* @param target The original object which is being proxied.
* @param newTarget The constructor that was originally called.
*/
construct?(target: T, argArray: any[], newTarget: Function): object;
/**
* A trap for \`Object.defineProperty()\`.
* @param target The original object which is being proxied.
* @returns A \`Boolean\` indicating whether or not the property has been defined.
*/
defineProperty?(target: T, property: string | symbol, attributes: PropertyDescriptor): boolean;
/**
* A trap for the \`delete\` operator.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to delete.
* @returns A \`Boolean\` indicating whether or not the property was deleted.
*/
deleteProperty?(target: T, p: string | symbol): boolean;
/**
* A trap for getting a property value.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to get.
* @param receiver The proxy or an object that inherits from the proxy.
*/
get?(target: T, p: string | symbol, receiver: any): any;
/**
* A trap for \`Object.getOwnPropertyDescriptor()\`.
* @param target The original object which is being proxied.
* @param p The name of the property whose description should be retrieved.
*/
getOwnPropertyDescriptor?(target: T, p: string | symbol): PropertyDescriptor | undefined;
/**
* A trap for the \`[[GetPrototypeOf]]\` internal method.
* @param target The original object which is being proxied.
*/
getPrototypeOf?(target: T): object | null;
/**
* A trap for the \`in\` operator.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to check for existence.
*/
has?(target: T, p: string | symbol): boolean;
/**
* A trap for \`Object.isExtensible()\`.
* @param target The original object which is being proxied.
*/
isExtensible?(target: T): boolean;
/**
* A trap for \`Reflect.ownKeys()\`.
* @param target The original object which is being proxied.
*/
ownKeys?(target: T): ArrayLike<string | symbol>;
/**
* A trap for \`Object.preventExtensions()\`.
* @param target The original object which is being proxied.
*/
preventExtensions?(target: T): boolean;
/**
* A trap for setting a property value.
* @param target The original object which is being proxied.
* @param p The name or \`Symbol\` of the property to set.
* @param receiver The object to which the assignment was originally directed.
* @returns A \`Boolean\` indicating whether or not the property was set.
*/
set?(target: T, p: string | symbol, newValue: any, receiver: any): boolean;
/**
* A trap for \`Object.setPrototypeOf()\`.
* @param target The original object which is being proxied.
* @param newPrototype The object's new prototype or \`null\`.
*/
setPrototypeOf?(target: T, v: object | null): boolean;
}
interface ProxyConstructor {
/**
* Creates a revocable Proxy object.
* @param target A target object to wrap with Proxy.
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
*/
revocable<T extends object>(target: T, handler: ProxyHandler<T>): { proxy: T; revoke: () => void; };
/**
* Creates a Proxy object. The Proxy object allows you to create an object that can be used in place of the
* original object, but which may redefine fundamental Object operations like getting, setting, and defining
* properties. Proxy objects are commonly used to log property accesses, validate, format, or sanitize inputs.
* @param target A target object to wrap with Proxy.
* @param handler An object whose properties define the behavior of Proxy when an operation is attempted on it.
*/
new <T extends object>(target: T, handler: ProxyHandler<T>): T;
}
declare var Proxy: ProxyConstructor;
`;Vi["lib.es2015.reflect.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Reflect {
/**
* Calls the function with the specified object as the this value
* and the elements of specified array as the arguments.
* @param target The function to call.
* @param thisArgument The object to be used as the this object.
* @param argumentsList An array of argument values to be passed to the function.
*/
function apply<T, A extends readonly any[], R>(
target: (this: T, ...args: A) => R,
thisArgument: T,
argumentsList: Readonly<A>,
): R;
function apply(target: Function, thisArgument: any, argumentsList: ArrayLike<any>): any;
/**
* Constructs the target with the elements of specified array as the arguments
* and the specified constructor as the \`new.target\` value.
* @param target The constructor to invoke.
* @param argumentsList An array of argument values to be passed to the constructor.
* @param newTarget The constructor to be used as the \`new.target\` object.
*/
function construct<A extends readonly any[], R>(
target: new (...args: A) => R,
argumentsList: Readonly<A>,
newTarget?: new (...args: any) => any,
): R;
function construct(target: Function, argumentsList: ArrayLike<any>, newTarget?: Function): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param target Object on which to add or modify the property. This can be a native JavaScript object
* (that is, a user-defined object or a built in object) or a DOM object.
* @param propertyKey The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
function defineProperty(target: object, propertyKey: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): boolean;
/**
* Removes a property from an object, equivalent to \`delete target[propertyKey]\`,
* except it won't throw if \`target[propertyKey]\` is non-configurable.
* @param target Object from which to remove the own property.
* @param propertyKey The property name.
*/
function deleteProperty(target: object, propertyKey: PropertyKey): boolean;
/**
* Gets the property of target, equivalent to \`target[propertyKey]\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey The property name.
* @param receiver The reference to use as the \`this\` value in the getter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function get<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
receiver?: unknown,
): P extends keyof T ? T[P] : any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param target Object that contains the property.
* @param propertyKey The property name.
*/
function getOwnPropertyDescriptor<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
): TypedPropertyDescriptor<P extends keyof T ? T[P] : any> | undefined;
/**
* Returns the prototype of an object.
* @param target The object that references the prototype.
*/
function getPrototypeOf(target: object): object | null;
/**
* Equivalent to \`propertyKey in target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
*/
function has(target: object, propertyKey: PropertyKey): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param target Object to test.
*/
function isExtensible(target: object): boolean;
/**
* Returns the string and symbol keys of the own properties of an object. The own properties of an object
* are those that are defined directly on that object, and are not inherited from the object's prototype.
* @param target Object that contains the own properties.
*/
function ownKeys(target: object): (string | symbol)[];
/**
* Prevents the addition of new properties to an object.
* @param target Object to make non-extensible.
* @return Whether the object has been made non-extensible.
*/
function preventExtensions(target: object): boolean;
/**
* Sets the property of target, equivalent to \`target[propertyKey] = value\` when \`receiver === target\`.
* @param target Object that contains the property on itself or in its prototype chain.
* @param propertyKey Name of the property.
* @param receiver The reference to use as the \`this\` value in the setter function,
* if \`target[propertyKey]\` is an accessor property.
*/
function set<T extends object, P extends PropertyKey>(
target: T,
propertyKey: P,
value: P extends keyof T ? T[P] : any,
receiver?: any,
): boolean;
function set(target: object, propertyKey: PropertyKey, value: any, receiver?: any): boolean;
/**
* Sets the prototype of a specified object o to object proto or null.
* @param target The object to change its prototype.
* @param proto The value of the new prototype or null.
* @return Whether setting the prototype was successful.
*/
function setPrototypeOf(target: object, proto: object | null): boolean;
}
`;Vi["lib.es2015.symbol.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface SymbolConstructor {
/**
* A reference to the prototype.
*/
readonly prototype: Symbol;
/**
* Returns a new unique Symbol value.
* @param description Description of the new Symbol object.
*/
(description?: string | number): symbol;
/**
* Returns a Symbol object from the global symbol registry matching the given key if found.
* Otherwise, returns a new symbol with this key.
* @param key key to search for.
*/
for(key: string): symbol;
/**
* Returns a key from the global symbol registry matching the given Symbol if found.
* Otherwise, returns a undefined.
* @param sym Symbol to find the key for.
*/
keyFor(sym: symbol): string | undefined;
}
declare var Symbol: SymbolConstructor;
`;Vi["lib.es2015.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that determines if a constructor object recognizes an object as one of the
* constructor\u2019s instances. Called by the semantics of the instanceof operator.
*/
readonly hasInstance: unique symbol;
/**
* A Boolean value that if true indicates that an object should flatten to its array elements
* by Array.prototype.concat.
*/
readonly isConcatSpreadable: unique symbol;
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.match method.
*/
readonly match: unique symbol;
/**
* A regular expression method that replaces matched substrings of a string. Called by the
* String.prototype.replace method.
*/
readonly replace: unique symbol;
/**
* A regular expression method that returns the index within a string that matches the
* regular expression. Called by the String.prototype.search method.
*/
readonly search: unique symbol;
/**
* A function valued property that is the constructor function that is used to create
* derived objects.
*/
readonly species: unique symbol;
/**
* A regular expression method that splits a string at the indices that match the regular
* expression. Called by the String.prototype.split method.
*/
readonly split: unique symbol;
/**
* A method that converts an object to a corresponding primitive value.
* Called by the ToPrimitive abstract operation.
*/
readonly toPrimitive: unique symbol;
/**
* A String value that is used in the creation of the default string description of an object.
* Called by the built-in method Object.prototype.toString.
*/
readonly toStringTag: unique symbol;
/**
* An Object whose truthy properties are properties that are excluded from the 'with'
* environment bindings of the associated objects.
*/
readonly unscopables: unique symbol;
}
interface Symbol {
/**
* Converts a Symbol object to a symbol.
*/
[Symbol.toPrimitive](hint: string): symbol;
readonly [Symbol.toStringTag]: string;
}
interface Array<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof any[]]?: boolean;
};
}
interface ReadonlyArray<T> {
/**
* Is an object whose properties have the value 'true'
* when they will be absent when used in a 'with' statement.
*/
readonly [Symbol.unscopables]: {
[K in keyof readonly any[]]?: boolean;
};
}
interface Date {
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "default"): string;
/**
* Converts a Date object to a string.
*/
[Symbol.toPrimitive](hint: "string"): string;
/**
* Converts a Date object to a number.
*/
[Symbol.toPrimitive](hint: "number"): number;
/**
* Converts a Date object to a string or number.
*
* @param hint The strings "number", "string", or "default" to specify what primitive to return.
*
* @throws {TypeError} If 'hint' was given something other than "number", "string", or "default".
* @returns A number if 'hint' was "number", a string if 'hint' was "string" or "default".
*/
[Symbol.toPrimitive](hint: string): string | number;
}
interface Map<K, V> {
readonly [Symbol.toStringTag]: string;
}
interface WeakMap<K extends WeakKey, V> {
readonly [Symbol.toStringTag]: string;
}
interface Set<T> {
readonly [Symbol.toStringTag]: string;
}
interface WeakSet<T extends WeakKey> {
readonly [Symbol.toStringTag]: string;
}
interface JSON {
readonly [Symbol.toStringTag]: string;
}
interface Function {
/**
* Determines whether the given value inherits from this function if this function was used
* as a constructor function.
*
* A constructor function can control which objects are recognized as its instances by
* 'instanceof' by overriding this method.
*/
[Symbol.hasInstance](value: any): boolean;
}
interface GeneratorFunction {
readonly [Symbol.toStringTag]: string;
}
interface Math {
readonly [Symbol.toStringTag]: string;
}
interface Promise<T> {
readonly [Symbol.toStringTag]: string;
}
interface PromiseConstructor {
readonly [Symbol.species]: PromiseConstructor;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an array containing the results of
* that search.
* @param string A string to search within.
*/
[Symbol.match](string: string): RegExpMatchArray | null;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replaceValue A String object or string literal containing the text to replace for every
* successful match of this regular expression.
*/
[Symbol.replace](string: string, replaceValue: string): string;
/**
* Replaces text in a string, using this regular expression.
* @param string A String object or string literal whose contents matching against
* this regular expression will be replaced
* @param replacer A function that returns the replacement text.
*/
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the position beginning first substring match in a regular expression search
* using this regular expression.
*
* @param string The string to search within.
*/
[Symbol.search](string: string): number;
/**
* Returns an array of substrings that were delimited by strings in the original input that
* match against this regular expression.
*
* If the regular expression contains capturing parentheses, then each time this
* regular expression matches, the results (including any undefined results) of the
* capturing parentheses are spliced.
*
* @param string string value to split
* @param limit if not undefined, the output array is truncated so that it contains no more
* than 'limit' elements.
*/
[Symbol.split](string: string, limit?: number): string[];
}
interface RegExpConstructor {
readonly [Symbol.species]: RegExpConstructor;
}
interface String {
/**
* Matches a string or an object that supports being matched against, and returns an array
* containing the results of that search, or null if no matches are found.
* @param matcher An object that supports being matched against.
*/
match(matcher: { [Symbol.match](string: string): RegExpMatchArray | null; }): RegExpMatchArray | null;
/**
* Passes a string and {@linkcode replaceValue} to the \`[Symbol.replace]\` method on {@linkcode searchValue}. This method is expected to implement its own replacement algorithm.
* @param searchValue An object that supports searching for and replacing matches within a string.
* @param replaceValue The replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replaceValue: string): string; }, replaceValue: string): string;
/**
* Replaces text in a string, using an object that supports replacement within a string.
* @param searchValue A object can search for and replace matches within a string.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: { [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string; }, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param searcher An object which supports searching within a string.
*/
search(searcher: { [Symbol.search](string: string): number; }): number;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param splitter An object that can split a string.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(splitter: { [Symbol.split](string: string, limit?: number): string[]; }, limit?: number): string[];
}
interface ArrayBuffer {
readonly [Symbol.toStringTag]: string;
}
interface DataView {
readonly [Symbol.toStringTag]: string;
}
interface Int8Array {
readonly [Symbol.toStringTag]: "Int8Array";
}
interface Uint8Array {
readonly [Symbol.toStringTag]: "Uint8Array";
}
interface Uint8ClampedArray {
readonly [Symbol.toStringTag]: "Uint8ClampedArray";
}
interface Int16Array {
readonly [Symbol.toStringTag]: "Int16Array";
}
interface Uint16Array {
readonly [Symbol.toStringTag]: "Uint16Array";
}
interface Int32Array {
readonly [Symbol.toStringTag]: "Int32Array";
}
interface Uint32Array {
readonly [Symbol.toStringTag]: "Uint32Array";
}
interface Float32Array {
readonly [Symbol.toStringTag]: "Float32Array";
}
interface Float64Array {
readonly [Symbol.toStringTag]: "Float64Array";
}
interface ArrayConstructor {
readonly [Symbol.species]: ArrayConstructor;
}
interface MapConstructor {
readonly [Symbol.species]: MapConstructor;
}
interface SetConstructor {
readonly [Symbol.species]: SetConstructor;
}
interface ArrayBufferConstructor {
readonly [Symbol.species]: ArrayBufferConstructor;
}
`;Vi["lib.es2016.array.include.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface ReadonlyArray<T> {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: T, fromIndex?: number): boolean;
}
interface Int8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint8ClampedArray {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint16Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Int32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Uint32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float32Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
interface Float64Array {
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: number, fromIndex?: number): boolean;
}
`;Vi["lib.es2016.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="es2016.array.include" />
/// <reference lib="es2016.intl" />
`;Vi["lib.es2016.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`;Vi["lib.es2016.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
/**
* The \`Intl.getCanonicalLocales()\` method returns an array containing
* the canonical locale names. Duplicates will be omitted and elements
* will be validated as structurally valid language tags.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/getCanonicalLocales)
*
* @param locale A list of String values for which to get the canonical locale names
* @returns An array containing the canonical and validated locale names.
*/
function getCanonicalLocales(locale?: string | readonly string[]): string[];
}
`;Vi["lib.es2017.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2016" />
/// <reference lib="es2017.object" />
/// <reference lib="es2017.sharedmemory" />
/// <reference lib="es2017.string" />
/// <reference lib="es2017.intl" />
/// <reference lib="es2017.typedarrays" />
/// <reference lib="es2017.date" />
`;Vi["lib.es2017.date.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface DateConstructor {
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, monthIndex?: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
}
`;Vi["lib.es2017.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
`;Vi["lib.es2017.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
day: any;
dayPeriod: any;
era: any;
hour: any;
literal: any;
minute: any;
month: any;
second: any;
timeZoneName: any;
weekday: any;
year: any;
}
type DateTimeFormatPartTypes = keyof DateTimeFormatPartTypesRegistry;
interface DateTimeFormatPart {
type: DateTimeFormatPartTypes;
value: string;
}
interface DateTimeFormat {
formatToParts(date?: Date | number): DateTimeFormatPart[];
}
}
`;Vi["lib.es2017.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Returns an array of values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values<T>(o: { [s: string]: T; } | ArrayLike<T>): T[];
/**
* Returns an array of values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
values(o: {}): any[];
/**
* Returns an array of key/values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries<T>(o: { [s: string]: T; } | ArrayLike<T>): [string, T][];
/**
* Returns an array of key/values of the enumerable properties of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
entries(o: {}): [string, any][];
/**
* Returns an object containing all own property descriptors of an object
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
getOwnPropertyDescriptors<T>(o: T): { [P in keyof T]: TypedPropertyDescriptor<T[P]>; } & { [x: string]: PropertyDescriptor; };
}
`;Vi["lib.es2017.sharedmemory.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.symbol.wellknown" />
interface SharedArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an SharedArrayBuffer.
*/
slice(begin: number, end?: number): SharedArrayBuffer;
readonly [Symbol.species]: SharedArrayBuffer;
readonly [Symbol.toStringTag]: "SharedArrayBuffer";
}
interface SharedArrayBufferConstructor {
readonly prototype: SharedArrayBuffer;
new (byteLength: number): SharedArrayBuffer;
}
declare var SharedArrayBuffer: SharedArrayBufferConstructor;
interface ArrayBufferTypes {
SharedArrayBuffer: SharedArrayBuffer;
}
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, expectedValue: number, replacementValue: number): number;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Returns a value indicating whether high-performance algorithms can use atomic operations
* (\`true\`) or must use locks (\`false\`) for the given number of bytes-per-element of a typed
* array.
*/
isLockFree(size: number): boolean;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number): number;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: Int32Array, index: number, value: number, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared Int32Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: Int32Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: Int8Array | Uint8Array | Int16Array | Uint16Array | Int32Array | Uint32Array, index: number, value: number): number;
readonly [Symbol.toStringTag]: "Atomics";
}
declare var Atomics: Atomics;
`;Vi["lib.es2017.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the start (left) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padStart(maxLength: number, fillString?: string): string;
/**
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
* The padding is applied from the end (right) of the current string.
*
* @param maxLength The length of the resulting string once the current string has been padded.
* If this parameter is smaller than the current string's length, the current string will be returned as it is.
*
* @param fillString The string to pad the current string with.
* If this string is too long, it will be truncated and the left-most part will be applied.
* The default value for this parameter is " " (U+0020).
*/
padEnd(maxLength: number, fillString?: string): string;
}
`;Vi["lib.es2017.typedarrays.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Int8ArrayConstructor {
new (): Int8Array;
}
interface Uint8ArrayConstructor {
new (): Uint8Array;
}
interface Uint8ClampedArrayConstructor {
new (): Uint8ClampedArray;
}
interface Int16ArrayConstructor {
new (): Int16Array;
}
interface Uint16ArrayConstructor {
new (): Uint16Array;
}
interface Int32ArrayConstructor {
new (): Int32Array;
}
interface Uint32ArrayConstructor {
new (): Uint32Array;
}
interface Float32ArrayConstructor {
new (): Float32Array;
}
interface Float64ArrayConstructor {
new (): Float64Array;
}
`;Vi["lib.es2018.asyncgenerator.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.asynciterable" />
interface AsyncGenerator<T = unknown, TReturn = any, TNext = unknown> extends AsyncIterator<T, TReturn, TNext> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return(value: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw(e: any): Promise<IteratorResult<T, TReturn>>;
[Symbol.asyncIterator](): AsyncGenerator<T, TReturn, TNext>;
}
interface AsyncGeneratorFunction {
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
new (...args: any[]): AsyncGenerator;
/**
* Creates a new AsyncGenerator object.
* @param args A list of arguments the function accepts.
*/
(...args: any[]): AsyncGenerator;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGenerator;
}
interface AsyncGeneratorFunctionConstructor {
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): AsyncGeneratorFunction;
/**
* Creates a new AsyncGenerator function.
* @param args A list of arguments the function accepts.
*/
(...args: string[]): AsyncGeneratorFunction;
/**
* The length of the arguments.
*/
readonly length: number;
/**
* Returns the name of the function.
*/
readonly name: string;
/**
* A reference to the prototype.
*/
readonly prototype: AsyncGeneratorFunction;
}
`;Vi["lib.es2018.asynciterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="es2015.iterable" />
interface SymbolConstructor {
/**
* A method that returns the default async iterator for an object. Called by the semantics of
* the for-await-of statement.
*/
readonly asyncIterator: unique symbol;
}
interface AsyncIterator<T, TReturn = any, TNext = undefined> {
// NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
next(...args: [] | [TNext]): Promise<IteratorResult<T, TReturn>>;
return?(value?: TReturn | PromiseLike<TReturn>): Promise<IteratorResult<T, TReturn>>;
throw?(e?: any): Promise<IteratorResult<T, TReturn>>;
}
interface AsyncIterable<T> {
[Symbol.asyncIterator](): AsyncIterator<T>;
}
interface AsyncIterableIterator<T> extends AsyncIterator<T> {
[Symbol.asyncIterator](): AsyncIterableIterator<T>;
}
`;Vi["lib.es2018.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2017" />
/// <reference lib="es2018.asynciterable" />
/// <reference lib="es2018.asyncgenerator" />
/// <reference lib="es2018.promise" />
/// <reference lib="es2018.regexp" />
/// <reference lib="es2018.intl" />
`;Vi["lib.es2018.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`;Vi["lib.es2018.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
// http://cldr.unicode.org/index/cldr-spec/plural-rules#TOC-Determining-Plural-Categories
type LDMLPluralRule = "zero" | "one" | "two" | "few" | "many" | "other";
type PluralRuleType = "cardinal" | "ordinal";
interface PluralRulesOptions {
localeMatcher?: "lookup" | "best fit" | undefined;
type?: PluralRuleType | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedPluralRulesOptions {
locale: string;
pluralCategories: LDMLPluralRule[];
type: PluralRuleType;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
}
interface PluralRules {
resolvedOptions(): ResolvedPluralRulesOptions;
select(n: number): LDMLPluralRule;
}
interface PluralRulesConstructor {
new (locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
(locales?: string | readonly string[], options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: string | readonly string[], options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
}
const PluralRules: PluralRulesConstructor;
// We can only have one definition for 'type' in TypeScript, and so you can learn where the keys come from here:
type ES2018NumberFormatPartType = "literal" | "nan" | "infinity" | "percent" | "integer" | "group" | "decimal" | "fraction" | "plusSign" | "minusSign" | "percentSign" | "currency" | "code" | "symbol" | "name";
type ES2020NumberFormatPartType = "compact" | "exponentInteger" | "exponentMinusSign" | "exponentSeparator" | "unit" | "unknown";
type NumberFormatPartTypes = ES2018NumberFormatPartType | ES2020NumberFormatPartType;
interface NumberFormatPart {
type: NumberFormatPartTypes;
value: string;
}
interface NumberFormat {
formatToParts(number?: number | bigint): NumberFormatPart[];
}
}
`;Vi["lib.es2018.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
}
`;Vi["lib.es2018.regexp.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface RegExpMatchArray {
groups?: {
[key: string]: string;
};
}
interface RegExpExecArray {
groups?: {
[key: string]: string;
};
}
interface RegExp {
/**
* Returns a Boolean value indicating the state of the dotAll flag (s) used with a regular expression.
* Default is false. Read-only.
*/
readonly dotAll: boolean;
}
`;Vi["lib.es2019.array.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
type FlatArray<Arr, Depth extends number> = {
done: Arr;
recur: Arr extends ReadonlyArray<infer InnerArr> ? FlatArray<InnerArr, [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20][Depth]>
: Arr;
}[Depth extends -1 ? "done" : "recur"];
interface ReadonlyArray<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined>(
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This,
): U[];
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D,
): FlatArray<A, D>[];
}
interface Array<T> {
/**
* Calls a defined callback function on each element of an array. Then, flattens the result into
* a new array.
* This is identical to a map followed by flat with depth 1.
*
* @param callback A function that accepts up to three arguments. The flatMap method calls the
* callback function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callback function. If
* thisArg is omitted, undefined is used as the this value.
*/
flatMap<U, This = undefined>(
callback: (this: This, value: T, index: number, array: T[]) => U | ReadonlyArray<U>,
thisArg?: This,
): U[];
/**
* Returns a new array with all sub-array elements concatenated into it recursively up to the
* specified depth.
*
* @param depth The maximum recursion depth
*/
flat<A, D extends number = 1>(
this: A,
depth?: D,
): FlatArray<A, D>[];
}
`;Vi["lib.es2019.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018" />
/// <reference lib="es2019.array" />
/// <reference lib="es2019.object" />
/// <reference lib="es2019.string" />
/// <reference lib="es2019.symbol" />
/// <reference lib="es2019.intl" />
`;Vi["lib.es2019.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`;Vi["lib.es2019.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
unknown: any;
}
}
`;Vi["lib.es2019.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface ObjectConstructor {
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): { [k: string]: T; };
/**
* Returns an object created by key-value entries for properties and methods
* @param entries An iterable object that contains key-value entries for properties and methods.
*/
fromEntries(entries: Iterable<readonly any[]>): any;
}
`;Vi["lib.es2019.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/** Removes the trailing white space and line terminator characters from a string. */
trimEnd(): string;
/** Removes the leading white space and line terminator characters from a string. */
trimStart(): string;
/**
* Removes the leading white space and line terminator characters from a string.
* @deprecated A legacy feature for browser compatibility. Use \`trimStart\` instead
*/
trimLeft(): string;
/**
* Removes the trailing white space and line terminator characters from a string.
* @deprecated A legacy feature for browser compatibility. Use \`trimEnd\` instead
*/
trimRight(): string;
}
`;Vi["lib.es2019.symbol.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Symbol {
/**
* Expose the [[Description]] internal slot of a symbol directly.
*/
readonly description: string | undefined;
}
`;Vi["lib.es2020.bigint.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface BigIntToLocaleStringOptions {
/**
* The locale matching algorithm to use.The default is "best fit". For information about this option, see the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation Intl page}.
*/
localeMatcher?: string;
/**
* The formatting style to use , the default is "decimal".
*/
style?: string;
numberingSystem?: string;
/**
* The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. A subset of units from the full list was selected for use in ECMAScript. Pairs of simple units can be concatenated with "-per-" to make a compound unit. There is no default value; if the style is "unit", the unit property must be provided.
*/
unit?: string;
/**
* The unit formatting style to use in unit formatting, the defaults is "short".
*/
unitDisplay?: string;
/**
* The currency to use in currency formatting. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB \u2014 see the Current currency & funds code list. There is no default value; if the style is "currency", the currency property must be provided. It is only used when [[Style]] has the value "currency".
*/
currency?: string;
/**
* How to display the currency in currency formatting. It is only used when [[Style]] has the value "currency". The default is "symbol".
*
* "symbol" to use a localized currency symbol such as \u20AC,
*
* "code" to use the ISO currency code,
*
* "name" to use a localized currency name such as "dollar"
*/
currencyDisplay?: string;
/**
* Whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. The default is true.
*/
useGrouping?: boolean;
/**
* The minimum number of integer digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumIntegerDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The minimum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number and percent formatting is 0; the default for currency formatting is the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information).
*/
minimumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The maximum number of fraction digits to use. Possible values are from 0 to 20; the default for plain number formatting is the larger of minimumFractionDigits and 3; the default for currency formatting is the larger of minimumFractionDigits and the number of minor unit digits provided by the {@link http://www.currency-iso.org/en/home/tables/table-a1.html ISO 4217 currency codes list} (2 if the list doesn't provide that information); the default for percent formatting is the larger of minimumFractionDigits and 0.
*/
maximumFractionDigits?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
/**
* The minimum number of significant digits to use. Possible values are from 1 to 21; the default is 1.
*/
minimumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The maximum number of significant digits to use. Possible values are from 1 to 21; the default is 21.
*/
maximumSignificantDigits?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21;
/**
* The formatting that should be displayed for the number, the defaults is "standard"
*
* "standard" plain number formatting
*
* "scientific" return the order-of-magnitude for formatted number.
*
* "engineering" return the exponent of ten when divisible by three
*
* "compact" string representing exponent, defaults is using the "short" form
*/
notation?: string;
/**
* used only when notation is "compact"
*/
compactDisplay?: string;
}
interface BigInt {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings.
*/
toString(radix?: number): string;
/** Returns a string representation appropriate to the host environment's current locale. */
toLocaleString(locales?: Intl.LocalesArgument, options?: BigIntToLocaleStringOptions): string;
/** Returns the primitive value of the specified object. */
valueOf(): bigint;
readonly [Symbol.toStringTag]: "BigInt";
}
interface BigIntConstructor {
(value: bigint | boolean | number | string): bigint;
readonly prototype: BigInt;
/**
* Interprets the low bits of a BigInt as a 2's-complement signed integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asIntN(bits: number, int: bigint): bigint;
/**
* Interprets the low bits of a BigInt as an unsigned integer.
* All higher bits are discarded.
* @param bits The number of low bits to use
* @param int The BigInt whose bits to extract
*/
asUintN(bits: number, int: bigint): bigint;
}
declare var BigInt: BigIntConstructor;
/**
* A typed array of 64-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigInt64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigInt64Array) => any, thisArg?: any): BigInt64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigInt64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigInt64Array) => bigint, thisArg?: any): BigInt64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigInt64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigInt64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigInt64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigInt64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigInt64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigInt64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigInt64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigInt64Array";
[index: number]: bigint;
}
interface BigInt64ArrayConstructor {
readonly prototype: BigInt64Array;
new (length?: number): BigInt64Array;
new (array: Iterable<bigint>): BigInt64Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigInt64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigInt64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigInt64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigInt64Array;
}
declare var BigInt64Array: BigInt64ArrayConstructor;
/**
* A typed array of 64-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated, an exception is raised.
*/
interface BigUint64Array {
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/** The ArrayBuffer instance referenced by the array. */
readonly buffer: ArrayBufferLike;
/** The length in bytes of the array. */
readonly byteLength: number;
/** The offset in bytes of the array. */
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/** Yields index, value pairs for every entry in the array. */
entries(): IterableIterator<[number, bigint]>;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns false,
* or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: bigint, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: bigint, index: number, array: BigUint64Array) => any, thisArg?: any): BigUint64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): bigint | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: bigint, index: number, array: BigUint64Array) => void, thisArg?: any): void;
/**
* Determines whether an array includes a certain element, returning true or false as appropriate.
* @param searchElement The element to search for.
* @param fromIndex The position in this array at which to begin searching for searchElement.
*/
includes(searchElement: bigint, fromIndex?: number): boolean;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: bigint, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/** Yields each index in the array. */
keys(): IterableIterator<number>;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: bigint, fromIndex?: number): number;
/** The length of the array. */
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: bigint, index: number, array: BigUint64Array) => bigint, thisArg?: any): BigUint64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: bigint, currentValue: bigint, currentIndex: number, array: BigUint64Array) => bigint): bigint;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: bigint, currentIndex: number, array: BigUint64Array) => U, initialValue: U): U;
/** Reverses the elements in the array. */
reverse(): this;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<bigint>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array.
*/
slice(start?: number, end?: number): BigUint64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls the
* predicate function for each element in the array until the predicate returns true, or until
* the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: bigint, index: number, array: BigUint64Array) => boolean, thisArg?: any): boolean;
/**
* Sorts the array.
* @param compareFn The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
*/
sort(compareFn?: (a: bigint, b: bigint) => number | bigint): this;
/**
* Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): BigUint64Array;
/** Converts the array to a string by using the current locale. */
toLocaleString(): string;
/** Returns a string representation of the array. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): BigUint64Array;
/** Yields each value in the array. */
values(): IterableIterator<bigint>;
[Symbol.iterator](): IterableIterator<bigint>;
readonly [Symbol.toStringTag]: "BigUint64Array";
[index: number]: bigint;
}
interface BigUint64ArrayConstructor {
readonly prototype: BigUint64Array;
new (length?: number): BigUint64Array;
new (array: Iterable<bigint>): BigUint64Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): BigUint64Array;
/** The size in bytes of each element in the array. */
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: bigint[]): BigUint64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(arrayLike: ArrayLike<U>, mapfn: (v: U, k: number) => bigint, thisArg?: any): BigUint64Array;
}
declare var BigUint64Array: BigUint64ArrayConstructor;
interface DataView {
/**
* Gets the BigInt64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getBigInt64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Gets the BigUint64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getBigUint64(byteOffset: number, littleEndian?: boolean): bigint;
/**
* Stores a BigInt64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setBigInt64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
/**
* Stores a BigUint64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setBigUint64(byteOffset: number, value: bigint, littleEndian?: boolean): void;
}
declare namespace Intl {
interface NumberFormat {
format(value: number | bigint): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
}
`;Vi["lib.es2020.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2019" />
/// <reference lib="es2020.bigint" />
/// <reference lib="es2020.date" />
/// <reference lib="es2020.number" />
/// <reference lib="es2020.promise" />
/// <reference lib="es2020.sharedmemory" />
/// <reference lib="es2020.string" />
/// <reference lib="es2020.symbol.wellknown" />
/// <reference lib="es2020.intl" />
`;Vi["lib.es2020.date.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
}
`;Vi["lib.es2020.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`;Vi["lib.es2020.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2018.intl" />
declare namespace Intl {
/**
* A string that is a valid [Unicode BCP 47 Locale Identifier](https://unicode.org/reports/tr35/#Unicode_locale_identifier).
*
* For example: "fa", "es-MX", "zh-Hant-TW".
*
* See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type UnicodeBCP47LocaleIdentifier = string;
/**
* Unit to use in the relative time internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format#Parameters).
*/
type RelativeTimeFormatUnit =
| "year"
| "years"
| "quarter"
| "quarters"
| "month"
| "months"
| "week"
| "weeks"
| "day"
| "days"
| "hour"
| "hours"
| "minute"
| "minutes"
| "second"
| "seconds";
/**
* Value of the \`unit\` property in objects returned by
* \`Intl.RelativeTimeFormat.prototype.formatToParts()\`. \`formatToParts\` and
* \`format\` methods accept either singular or plural unit names as input,
* but \`formatToParts\` only outputs singular (e.g. "day") not plural (e.g.
* "days").
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
type RelativeTimeFormatUnitSingular =
| "year"
| "quarter"
| "month"
| "week"
| "day"
| "hour"
| "minute"
| "second";
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation).
*/
type RelativeTimeFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatNumeric = "always" | "auto";
/**
* The length of the internationalized message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
type RelativeTimeFormatStyle = "long" | "short" | "narrow";
/**
* The locale or locales to use
*
* See [MDN - Intl - locales argument](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locales_argument).
*/
type LocalesArgument = UnicodeBCP47LocaleIdentifier | Locale | readonly (UnicodeBCP47LocaleIdentifier | Locale)[] | undefined;
/**
* An object with some or all of properties of \`options\` parameter
* of \`Intl.RelativeTimeFormat\` constructor.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters).
*/
interface RelativeTimeFormatOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: RelativeTimeFormatLocaleMatcher;
/** The format of output message. */
numeric?: RelativeTimeFormatNumeric;
/** The length of the internationalized message. */
style?: RelativeTimeFormatStyle;
}
/**
* An object with properties reflecting the locale
* and formatting options computed during initialization
* of the \`Intl.RelativeTimeFormat\` object
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions#Description).
*/
interface ResolvedRelativeTimeFormatOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
numeric: RelativeTimeFormatNumeric;
numberingSystem: string;
}
/**
* An object representing the relative time format in parts
* that can be used for custom locale-aware formatting.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts#Using_formatToParts).
*/
type RelativeTimeFormatPart =
| {
type: "literal";
value: string;
}
| {
type: Exclude<NumberFormatPartTypes, "literal">;
value: string;
unit: RelativeTimeFormatUnitSingular;
};
interface RelativeTimeFormat {
/**
* Formats a value and a unit according to the locale
* and formatting options of the given
* [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object.
*
* While this method automatically provides the correct plural forms,
* the grammatical form is otherwise as neutral as possible.
*
* It is the caller's responsibility to handle cut-off logic
* such as deciding between displaying "in 7 days" or "in 1 week".
* This API does not support relative dates involving compound units.
* e.g "in 5 days and 4 hours".
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* @returns {string} Internationalized relative time message as string
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/format).
*/
format(value: number, unit: RelativeTimeFormatUnit): string;
/**
* Returns an array of objects representing the relative time format in parts that can be used for custom locale-aware formatting.
*
* @param value - Numeric value to use in the internationalized relative time message
*
* @param unit - [Unit](https://tc39.es/ecma402/#sec-singularrelativetimeunit) to use in the relative time internationalized message.
*
* @throws \`RangeError\` if \`unit\` was given something other than \`unit\` possible values
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/formatToParts).
*/
formatToParts(value: number, unit: RelativeTimeFormatUnit): RelativeTimeFormatPart[];
/**
* Provides access to the locale and options computed during initialization of this \`Intl.RelativeTimeFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedRelativeTimeFormatOptions;
}
/**
* The [\`Intl.RelativeTimeFormat\`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat)
* object is a constructor for objects that enable language-sensitive relative time formatting.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat#Browser_compatibility).
*/
const RelativeTimeFormat: {
/**
* Creates [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) objects
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of \`RelativeTimeFormatOptions\`.
*
* @returns [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RelativeTimeFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat).
*/
new (
locales?: LocalesArgument,
options?: RelativeTimeFormatOptions,
): RelativeTimeFormat;
/**
* Returns an array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#Parameters)
* with some or all of options of the formatting.
*
* @returns An array containing those of the provided locales
* that are supported in date and time formatting
* without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/supportedLocalesOf).
*/
supportedLocalesOf(
locales?: LocalesArgument,
options?: RelativeTimeFormatOptions,
): UnicodeBCP47LocaleIdentifier[];
};
interface NumberFormatOptions {
compactDisplay?: "short" | "long" | undefined;
notation?: "standard" | "scientific" | "engineering" | "compact" | undefined;
signDisplay?: "auto" | "never" | "always" | "exceptZero" | undefined;
unit?: string | undefined;
unitDisplay?: "short" | "long" | "narrow" | undefined;
currencyDisplay?: string | undefined;
currencySign?: string | undefined;
}
interface ResolvedNumberFormatOptions {
compactDisplay?: "short" | "long";
notation?: "standard" | "scientific" | "engineering" | "compact";
signDisplay?: "auto" | "never" | "always" | "exceptZero";
unit?: string;
unitDisplay?: "short" | "long" | "narrow";
currencyDisplay?: string;
currencySign?: string;
}
interface DateTimeFormatOptions {
calendar?: string | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
numberingSystem?: string | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
hourCycle?: "h11" | "h12" | "h23" | "h24" | undefined;
}
type LocaleHourCycleKey = "h12" | "h23" | "h11" | "h24";
type LocaleCollationCaseFirst = "upper" | "lower" | "false";
interface LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName?: string;
/** The part of the Locale that indicates the locale's calendar era. */
calendar?: string;
/** Flag that defines whether case is taken into account for the locale's collation rules. */
caseFirst?: LocaleCollationCaseFirst;
/** The collation type used for sorting */
collation?: string;
/** The time keeping format convention used by the locale. */
hourCycle?: LocaleHourCycleKey;
/** The primary language subtag associated with the locale. */
language?: string;
/** The numeral system used by the locale. */
numberingSystem?: string;
/** Flag that defines whether the locale has special collation handling for numeric characters. */
numeric?: boolean;
/** The region of the world (usually a country) associated with the locale. Possible values are region codes as defined by ISO 3166-1. */
region?: string;
/** The script used for writing the particular language used in the locale. Possible values are script codes as defined by ISO 15924. */
script?: string;
}
interface Locale extends LocaleOptions {
/** A string containing the language, and the script and region if available. */
baseName: string;
/** The primary language subtag associated with the locale. */
language: string;
/** Gets the most likely values for the language, script, and region of the locale based on existing values. */
maximize(): Locale;
/** Attempts to remove information about the locale that would be added by calling \`Locale.maximize()\`. */
minimize(): Locale;
/** Returns the locale's full locale identifier string. */
toString(): UnicodeBCP47LocaleIdentifier;
}
/**
* Constructor creates [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale)
* objects
*
* @param tag - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646).
* For the general form and interpretation of the locales argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/Locale#Parameters) with some or all of options of the locale.
*
* @returns [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale).
*/
const Locale: {
new (tag: UnicodeBCP47LocaleIdentifier | Locale, options?: LocaleOptions): Locale;
};
type DisplayNamesFallback =
| "code"
| "none";
type DisplayNamesType =
| "language"
| "region"
| "script"
| "calendar"
| "dateTimeField"
| "currency";
type DisplayNamesLanguageDisplay =
| "dialect"
| "standard";
interface DisplayNamesOptions {
localeMatcher?: RelativeTimeFormatLocaleMatcher;
style?: RelativeTimeFormatStyle;
type: DisplayNamesType;
languageDisplay?: DisplayNamesLanguageDisplay;
fallback?: DisplayNamesFallback;
}
interface ResolvedDisplayNamesOptions {
locale: UnicodeBCP47LocaleIdentifier;
style: RelativeTimeFormatStyle;
type: DisplayNamesType;
fallback: DisplayNamesFallback;
languageDisplay?: DisplayNamesLanguageDisplay;
}
interface DisplayNames {
/**
* Receives a code and returns a string based on the locale and options provided when instantiating
* [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
*
* @param code The \`code\` to provide depends on the \`type\` passed to display name during creation:
* - If the type is \`"region"\`, code should be either an [ISO-3166 two letters region code](https://www.iso.org/iso-3166-country-codes.html),
* or a [three digits UN M49 Geographic Regions](https://unstats.un.org/unsd/methodology/m49/).
* - If the type is \`"script"\`, code should be an [ISO-15924 four letters script code](https://unicode.org/iso15924/iso15924-codes.html).
* - If the type is \`"language"\`, code should be a \`languageCode\` ["-" \`scriptCode\`] ["-" \`regionCode\` ] *("-" \`variant\` )
* subsequence of the unicode_language_id grammar in [UTS 35's Unicode Language and Locale Identifiers grammar](https://unicode.org/reports/tr35/#Unicode_language_identifier).
* \`languageCode\` is either a two letters ISO 639-1 language code or a three letters ISO 639-2 language code.
* - If the type is \`"currency"\`, code should be a [3-letter ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/of).
*/
of(code: string): string | undefined;
/**
* Returns a new object with properties reflecting the locale and style formatting options computed during the construction of the current
* [\`Intl/DisplayNames\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/resolvedOptions).
*/
resolvedOptions(): ResolvedDisplayNamesOptions;
}
/**
* The [\`Intl.DisplayNames()\`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames)
* object enables the consistent translation of language, region and script display names.
*
* [Compatibility](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames#browser_compatibility).
*/
const DisplayNames: {
prototype: DisplayNames;
/**
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
* page.
*
* @param options An object for setting up a display name.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/DisplayNames).
*/
new (locales: LocalesArgument, options: DisplayNamesOptions): DisplayNames;
/**
* Returns an array containing those of the provided locales that are supported in display names without having to fall back to the runtime's default locale.
*
* @param locales A string with a BCP 47 language tag, or an array of such strings.
* For the general form and interpretation of the \`locales\` argument, see the [Intl](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation)
* page.
*
* @param options An object with a locale matcher.
*
* @returns An array of strings representing a subset of the given locale tags that are supported in display names without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DisplayNames/supportedLocalesOf).
*/
supportedLocalesOf(locales?: LocalesArgument, options?: { localeMatcher?: RelativeTimeFormatLocaleMatcher; }): UnicodeBCP47LocaleIdentifier[];
};
interface CollatorConstructor {
new (locales?: LocalesArgument, options?: CollatorOptions): Collator;
(locales?: LocalesArgument, options?: CollatorOptions): Collator;
supportedLocalesOf(locales: LocalesArgument, options?: CollatorOptions): string[];
}
interface DateTimeFormatConstructor {
new (locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: LocalesArgument, options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: LocalesArgument, options?: DateTimeFormatOptions): string[];
}
interface NumberFormatConstructor {
new (locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
(locales?: LocalesArgument, options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: LocalesArgument, options?: NumberFormatOptions): string[];
}
interface PluralRulesConstructor {
new (locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
(locales?: LocalesArgument, options?: PluralRulesOptions): PluralRules;
supportedLocalesOf(locales: LocalesArgument, options?: { localeMatcher?: "lookup" | "best fit"; }): string[];
}
}
`;Vi["lib.es2020.number.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020.intl" />
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
}
`;Vi["lib.es2020.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseFulfilledResult<T> {
status: "fulfilled";
value: T;
}
interface PromiseRejectedResult {
status: "rejected";
reason: any;
}
type PromiseSettledResult<T> = PromiseFulfilledResult<T> | PromiseRejectedResult;
interface PromiseConstructor {
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: PromiseSettledResult<Awaited<T[P]>>; }>;
/**
* Creates a Promise that is resolved with an array of results when all
* of the provided Promises resolve or reject.
* @param values An array of Promises.
* @returns A new Promise.
*/
allSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>;
}
`;Vi["lib.es2020.sharedmemory.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Atomics {
/**
* Adds a value to the value at the given position in the array, returning the original value.
* Until this atomic operation completes, any other read or write operation against the array
* will block.
*/
add(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores the bitwise AND of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or
* write operation against the array will block.
*/
and(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Replaces the value at the given position in the array if the original value equals the given
* expected value, returning the original value. Until this atomic operation completes, any
* other read or write operation against the array will block.
*/
compareExchange(typedArray: BigInt64Array | BigUint64Array, index: number, expectedValue: bigint, replacementValue: bigint): bigint;
/**
* Replaces the value at the given position in the array, returning the original value. Until
* this atomic operation completes, any other read or write operation against the array will
* block.
*/
exchange(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Returns the value at the given position in the array. Until this atomic operation completes,
* any other read or write operation against the array will block.
*/
load(typedArray: BigInt64Array | BigUint64Array, index: number): bigint;
/**
* Stores the bitwise OR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
or(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Stores a value at the given position in the array, returning the new value. Until this
* atomic operation completes, any other read or write operation against the array will block.
*/
store(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* Subtracts a value from the value at the given position in the array, returning the original
* value. Until this atomic operation completes, any other read or write operation against the
* array will block.
*/
sub(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
/**
* If the value at the given position in the array is equal to the provided value, the current
* agent is put to sleep causing execution to suspend until the timeout expires (returning
* \`"timed-out"\`) or until the agent is awoken (returning \`"ok"\`); otherwise, returns
* \`"not-equal"\`.
*/
wait(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): "ok" | "not-equal" | "timed-out";
/**
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
* number of agents that were awoken.
* @param typedArray A shared BigInt64Array.
* @param index The position in the typedArray to wake up on.
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
*/
notify(typedArray: BigInt64Array, index: number, count?: number): number;
/**
* Stores the bitwise XOR of a value with the value at the given position in the array,
* returning the original value. Until this atomic operation completes, any other read or write
* operation against the array will block.
*/
xor(typedArray: BigInt64Array | BigUint64Array, index: number, value: bigint): bigint;
}
`;Vi["lib.es2020.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
interface String {
/**
* Matches a string with a regular expression, and returns an iterable of matches
* containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
matchAll(regexp: RegExp): IterableIterator<RegExpExecArray>;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: Intl.LocalesArgument): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: Intl.LocalesArgument): string;
/**
* Determines whether two strings are equivalent in the current or specified locale.
* @param that String to compare to target string
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
}
`;Vi["lib.es2020.symbol.wellknown.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.iterable" />
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A regular expression method that matches the regular expression against a string. Called
* by the String.prototype.matchAll method.
*/
readonly matchAll: unique symbol;
}
interface RegExp {
/**
* Matches a string with this regular expression, and returns an iterable of matches
* containing the results of that search.
* @param string A string to search within.
*/
[Symbol.matchAll](str: string): IterableIterator<RegExpMatchArray>;
}
`;Vi["lib.es2021.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2020" />
/// <reference lib="es2021.promise" />
/// <reference lib="es2021.string" />
/// <reference lib="es2021.weakref" />
/// <reference lib="es2021.intl" />
`;Vi["lib.es2021.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`;Vi["lib.es2021.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface DateTimeFormatPartTypesRegistry {
fractionalSecond: any;
}
interface DateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit" | undefined;
dateStyle?: "full" | "long" | "medium" | "short" | undefined;
timeStyle?: "full" | "long" | "medium" | "short" | undefined;
dayPeriod?: "narrow" | "short" | "long" | undefined;
fractionalSecondDigits?: 1 | 2 | 3 | undefined;
}
interface DateTimeRangeFormatPart extends DateTimeFormatPart {
source: "startRange" | "endRange" | "shared";
}
interface DateTimeFormat {
formatRange(startDate: Date | number | bigint, endDate: Date | number | bigint): string;
formatRangeToParts(startDate: Date | number | bigint, endDate: Date | number | bigint): DateTimeRangeFormatPart[];
}
interface ResolvedDateTimeFormatOptions {
formatMatcher?: "basic" | "best fit" | "best fit";
dateStyle?: "full" | "long" | "medium" | "short";
timeStyle?: "full" | "long" | "medium" | "short";
hourCycle?: "h11" | "h12" | "h23" | "h24";
dayPeriod?: "narrow" | "short" | "long";
fractionalSecondDigits?: 1 | 2 | 3;
}
/**
* The locale matching algorithm to use.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatLocaleMatcher = "lookup" | "best fit";
/**
* The format of output message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatType = "conjunction" | "disjunction" | "unit";
/**
* The length of the formatted message.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
type ListFormatStyle = "long" | "short" | "narrow";
/**
* An object with some or all properties of the \`Intl.ListFormat\` constructor \`options\` parameter.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters).
*/
interface ListFormatOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: ListFormatLocaleMatcher | undefined;
/** The format of output message. */
type?: ListFormatType | undefined;
/** The length of the internationalized message. */
style?: ListFormatStyle | undefined;
}
interface ResolvedListFormatOptions {
locale: string;
style: ListFormatStyle;
type: ListFormatType;
}
interface ListFormat {
/**
* Returns a string with a language-specific representation of the list.
*
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array).
*
* @throws \`TypeError\` if \`list\` includes something other than the possible values.
*
* @returns {string} A language-specific formatted string representing the elements of the list.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/format).
*/
format(list: Iterable<string>): string;
/**
* Returns an Array of objects representing the different components that can be used to format a list of values in a locale-aware fashion.
*
* @param list - An iterable object, such as an [Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array), to be formatted according to a locale.
*
* @throws \`TypeError\` if \`list\` includes something other than the possible values.
*
* @returns {{ type: "element" | "literal", value: string; }[]} An Array of components which contains the formatted parts from the list.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/formatToParts).
*/
formatToParts(list: Iterable<string>): { type: "element" | "literal"; value: string; }[];
/**
* Returns a new object with properties reflecting the locale and style
* formatting options computed during the construction of the current
* \`Intl.ListFormat\` object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/resolvedOptions).
*/
resolvedOptions(): ResolvedListFormatOptions;
}
const ListFormat: {
prototype: ListFormat;
/**
* Creates [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) objects that
* enable language-sensitive list formatting.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/ListFormat#parameters)
* with some or all options of \`ListFormatOptions\`.
*
* @returns [Intl.ListFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat).
*/
new (locales?: LocalesArgument, options?: ListFormatOptions): ListFormat;
/**
* Returns an array containing those of the provided locales that are
* supported in list formatting without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf#parameters).
* with some or all possible options.
*
* @returns An array of strings representing a subset of the given locale tags that are supported in list
* formatting without having to fall back to the runtime's default locale.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat/supportedLocalesOf).
*/
supportedLocalesOf(locales: LocalesArgument, options?: Pick<ListFormatOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
};
}
`;Vi["lib.es2021.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface AggregateError extends Error {
errors: any[];
}
interface AggregateErrorConstructor {
new (errors: Iterable<any>, message?: string): AggregateError;
(errors: Iterable<any>, message?: string): AggregateError;
readonly prototype: AggregateError;
}
declare var AggregateError: AggregateErrorConstructor;
/**
* Represents the completion of an asynchronous operation
*/
interface PromiseConstructor {
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T extends readonly unknown[] | []>(values: T): Promise<Awaited<T[number]>>;
/**
* The any function returns a promise that is fulfilled by the first given promise to be fulfilled, or rejected with an AggregateError containing an array of rejection reasons if all of the given promises are rejected. It resolves all elements of the passed iterable to promises as it runs this algorithm.
* @param values An array or iterable of Promises.
* @returns A new Promise.
*/
any<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>>;
}
`;Vi["lib.es2021.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
*/
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replace all instances of a substring in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
}
`;Vi["lib.es2021.weakref.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakRef<T extends WeakKey> {
readonly [Symbol.toStringTag]: "WeakRef";
/**
* Returns the WeakRef instance's target value, or undefined if the target value has been
* reclaimed.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
*/
deref(): T | undefined;
}
interface WeakRefConstructor {
readonly prototype: WeakRef<any>;
/**
* Creates a WeakRef instance for the given target value.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param target The target value for the WeakRef instance.
*/
new <T extends WeakKey>(target: T): WeakRef<T>;
}
declare var WeakRef: WeakRefConstructor;
interface FinalizationRegistry<T> {
readonly [Symbol.toStringTag]: "FinalizationRegistry";
/**
* Registers a value with the registry.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param target The target value to register.
* @param heldValue The value to pass to the finalizer for this value. This cannot be the
* target value.
* @param unregisterToken The token to pass to the unregister method to unregister the target
* value. If not provided, the target cannot be unregistered.
*/
register(target: WeakKey, heldValue: T, unregisterToken?: WeakKey): void;
/**
* Unregisters a value from the registry.
* In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.
* @param unregisterToken The token that was used as the unregisterToken argument when calling
* register to register the target value.
*/
unregister(unregisterToken: WeakKey): void;
}
interface FinalizationRegistryConstructor {
readonly prototype: FinalizationRegistry<any>;
/**
* Creates a finalization registry with an associated cleanup callback
* @param cleanupCallback The callback to call after a value in the registry has been reclaimed.
*/
new <T>(cleanupCallback: (heldValue: T) => void): FinalizationRegistry<T>;
}
declare var FinalizationRegistry: FinalizationRegistryConstructor;
`;Vi["lib.es2022.array.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): T | undefined;
}
interface ReadonlyArray<T> {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): T | undefined;
}
interface Int8Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint8Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint8ClampedArray {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Int16Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint16Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Int32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Uint32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Float32Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface Float64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): number | undefined;
}
interface BigInt64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): bigint | undefined;
}
interface BigUint64Array {
/**
* Returns the item located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): bigint | undefined;
}
`;Vi["lib.es2022.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2021" />
/// <reference lib="es2022.array" />
/// <reference lib="es2022.error" />
/// <reference lib="es2022.intl" />
/// <reference lib="es2022.object" />
/// <reference lib="es2022.sharedmemory" />
/// <reference lib="es2022.string" />
/// <reference lib="es2022.regexp" />
`;Vi["lib.es2022.error.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ErrorOptions {
cause?: unknown;
}
interface Error {
cause?: unknown;
}
interface ErrorConstructor {
new (message?: string, options?: ErrorOptions): Error;
(message?: string, options?: ErrorOptions): Error;
}
interface EvalErrorConstructor {
new (message?: string, options?: ErrorOptions): EvalError;
(message?: string, options?: ErrorOptions): EvalError;
}
interface RangeErrorConstructor {
new (message?: string, options?: ErrorOptions): RangeError;
(message?: string, options?: ErrorOptions): RangeError;
}
interface ReferenceErrorConstructor {
new (message?: string, options?: ErrorOptions): ReferenceError;
(message?: string, options?: ErrorOptions): ReferenceError;
}
interface SyntaxErrorConstructor {
new (message?: string, options?: ErrorOptions): SyntaxError;
(message?: string, options?: ErrorOptions): SyntaxError;
}
interface TypeErrorConstructor {
new (message?: string, options?: ErrorOptions): TypeError;
(message?: string, options?: ErrorOptions): TypeError;
}
interface URIErrorConstructor {
new (message?: string, options?: ErrorOptions): URIError;
(message?: string, options?: ErrorOptions): URIError;
}
interface AggregateErrorConstructor {
new (
errors: Iterable<any>,
message?: string,
options?: ErrorOptions,
): AggregateError;
(
errors: Iterable<any>,
message?: string,
options?: ErrorOptions,
): AggregateError;
}
`;Vi["lib.es2022.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`;Vi["lib.es2022.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
/**
* An object with some or all properties of the \`Intl.Segmenter\` constructor \`options\` parameter.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
*/
interface SegmenterOptions {
/** The locale matching algorithm to use. For information about this option, see [Intl page](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_negotiation). */
localeMatcher?: "best fit" | "lookup" | undefined;
/** The type of input to be split */
granularity?: "grapheme" | "word" | "sentence" | undefined;
}
interface Segmenter {
/**
* Returns \`Segments\` object containing the segments of the input string, using the segmenter's locale and granularity.
*
* @param input - The text to be segmented as a \`string\`.
*
* @returns A new iterable Segments object containing the segments of the input string, using the segmenter's locale and granularity.
*/
segment(input: string): Segments;
resolvedOptions(): ResolvedSegmenterOptions;
}
interface ResolvedSegmenterOptions {
locale: string;
granularity: "grapheme" | "word" | "sentence";
}
interface Segments {
/**
* Returns an object describing the segment in the original string that includes the code unit at a specified index.
*
* @param codeUnitIndex - A number specifying the index of the code unit in the original input string. If the value is omitted, it defaults to \`0\`.
*/
containing(codeUnitIndex?: number): SegmentData;
/** Returns an iterator to iterate over the segments. */
[Symbol.iterator](): IterableIterator<SegmentData>;
}
interface SegmentData {
/** A string containing the segment extracted from the original input string. */
segment: string;
/** The code unit index in the original input string at which the segment begins. */
index: number;
/** The complete input string that was segmented. */
input: string;
/**
* A boolean value only if granularity is "word"; otherwise, undefined.
* If granularity is "word", then isWordLike is true when the segment is word-like (i.e., consists of letters/numbers/ideographs/etc.); otherwise, false.
*/
isWordLike?: boolean;
}
const Segmenter: {
prototype: Segmenter;
/**
* Creates a new \`Intl.Segmenter\` object.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options - An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/Segmenter#parameters)
* with some or all options of \`SegmenterOptions\`.
*
* @returns [Intl.Segmenter](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segments) object.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter).
*/
new (locales?: LocalesArgument, options?: SegmenterOptions): Segmenter;
/**
* Returns an array containing those of the provided locales that are supported without having to fall back to the runtime's default locale.
*
* @param locales - A string with a [BCP 47 language tag](http://tools.ietf.org/html/rfc5646), or an array of such strings.
* For the general form and interpretation of the \`locales\` argument,
* see the [\`Intl\` page](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation).
*
* @param options An [object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf#parameters).
* with some or all possible options.
*
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Segmenter/supportedLocalesOf)
*/
supportedLocalesOf(locales: LocalesArgument, options?: Pick<SegmenterOptions, "localeMatcher">): UnicodeBCP47LocaleIdentifier[];
};
/**
* Returns a sorted array of the supported collation, calendar, currency, numbering system, timezones, and units by the implementation.
* [MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/supportedValuesOf)
*
* @param key A string indicating the category of values to return.
* @returns A sorted array of the supported values.
*/
function supportedValuesOf(key: "calendar" | "collation" | "currency" | "numberingSystem" | "timeZone" | "unit"): string[];
}
`;Vi["lib.es2022.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Determines whether an object has a property with the specified name.
* @param o An object.
* @param v A property name.
*/
hasOwn(o: object, v: PropertyKey): boolean;
}
`;Vi["lib.es2022.regexp.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface RegExpMatchArray {
indices?: RegExpIndicesArray;
}
interface RegExpExecArray {
indices?: RegExpIndicesArray;
}
interface RegExpIndicesArray extends Array<[number, number]> {
groups?: {
[key: string]: [number, number];
};
}
interface RegExp {
/**
* Returns a Boolean value indicating the state of the hasIndices flag (d) used with with a regular expression.
* Default is false. Read-only.
*/
readonly hasIndices: boolean;
}
`;Vi["lib.es2022.sharedmemory.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Atomics {
/**
* A non-blocking, asynchronous version of wait which is usable on the main thread.
* Waits asynchronously on a shared memory location and returns a Promise
* @param typedArray A shared Int32Array or BigInt64Array.
* @param index The position in the typedArray to wait on.
* @param value The expected value to test.
* @param [timeout] The expected value to test.
*/
waitAsync(typedArray: Int32Array, index: number, value: number, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };
/**
* A non-blocking, asynchronous version of wait which is usable on the main thread.
* Waits asynchronously on a shared memory location and returns a Promise
* @param typedArray A shared Int32Array or BigInt64Array.
* @param index The position in the typedArray to wait on.
* @param value The expected value to test.
* @param [timeout] The expected value to test.
*/
waitAsync(typedArray: BigInt64Array, index: number, value: bigint, timeout?: number): { async: false; value: "not-equal" | "timed-out"; } | { async: true; value: Promise<"ok" | "timed-out">; };
}
`;Vi["lib.es2022.string.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface String {
/**
* Returns a new String consisting of the single UTF-16 code unit located at the specified index.
* @param index The zero-based index of the desired code unit. A negative index will count back from the last item.
*/
at(index: number): string | undefined;
}
`;Vi["lib.es2023.array.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface Array<T> {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S | undefined;
findLast(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): number;
/**
* Returns a copy of an array with its elements reversed.
*/
toReversed(): T[];
/**
* Returns a copy of an array with its elements sorted.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: T, b: T) => number): T[];
/**
* Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the copied array in place of the deleted elements.
* @returns The copied array.
*/
toSpliced(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Copies an array and removes elements while returning the remaining elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount?: number): T[];
/**
* Copies an array, then overwrites the value at the provided index with the
* given value. If the index is negative, then it replaces from the end
* of the array.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to write into the copied array.
* @returns The copied array with the updated value.
*/
with(index: number, value: T): T[];
}
interface ReadonlyArray<T> {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends T>(
predicate: (value: T, index: number, array: readonly T[]) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: T, index: number, array: readonly T[]) => unknown,
thisArg?: any,
): T | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: T, index: number, array: readonly T[]) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copied array with all of its elements reversed.
*/
toReversed(): T[];
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: T, b: T) => number): T[];
/**
* Copies an array and removes elements while, if necessary, inserting new elements in their place, returning the remaining elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the copied array in place of the deleted elements.
* @returns A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Copies an array and removes elements while returning the remaining elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns A copy of the original array with the remaining elements.
*/
toSpliced(start: number, deleteCount?: number): T[];
/**
* Copies an array, then overwrites the value at the provided index with the
* given value. If the index is negative, then it replaces from the end
* of the array
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: T): T[];
}
interface Int8Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Int8Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: Int8Array) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: number, index: number, array: Int8Array) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8Array;
}
interface Uint8Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Uint8Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: Uint8Array) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: number, index: number, array: Uint8Array) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint8Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8Array;
}
interface Uint8ClampedArray {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Uint8ClampedArray,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Uint8ClampedArray,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Uint8ClampedArray,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint8ClampedArray;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint8ClampedArray;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint8ClampedArray;
}
interface Int16Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Int16Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: Int16Array) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: number, index: number, array: Int16Array) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int16Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Int16Array.from([11, 2, -22, 1]);
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Int16Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Int16Array;
}
interface Uint16Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Uint16Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Uint16Array,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Uint16Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint16Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint16Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint16Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint16Array;
}
interface Int32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Int32Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (value: number, index: number, array: Int32Array) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (value: number, index: number, array: Int32Array) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Int32Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Int32Array.from([11, 2, -22, 1]);
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Int32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Int32Array;
}
interface Uint32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Uint32Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Uint32Array,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Uint32Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Uint32Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Uint32Array.from([11, 2, 22, 1]);
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Uint32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Uint32Array;
}
interface Float32Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Float32Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Float32Array,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Float32Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float32Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Float32Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Float32Array;
}
interface Float64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends number>(
predicate: (
value: number,
index: number,
array: Float64Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: number,
index: number,
array: Float64Array,
) => unknown,
thisArg?: any,
): number | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: number,
index: number,
array: Float64Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): Float64Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
* myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
* \`\`\`
*/
toSorted(compareFn?: (a: number, b: number) => number): Float64Array;
/**
* Copies the array and inserts the given number at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: number): Float64Array;
}
interface BigInt64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends bigint>(
predicate: (
value: bigint,
index: number,
array: BigInt64Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: bigint,
index: number,
array: BigInt64Array,
) => unknown,
thisArg?: any,
): bigint | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: bigint,
index: number,
array: BigInt64Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): BigInt64Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
* \`\`\`
*/
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigInt64Array;
/**
* Copies the array and inserts the given bigint at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: bigint): BigInt64Array;
}
interface BigUint64Array {
/**
* Returns the value of the last element in the array where predicate is true, and undefined
* otherwise.
* @param predicate findLast calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found, findLast
* immediately returns that element value. Otherwise, findLast returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLast<S extends bigint>(
predicate: (
value: bigint,
index: number,
array: BigUint64Array,
) => value is S,
thisArg?: any,
): S | undefined;
findLast(
predicate: (
value: bigint,
index: number,
array: BigUint64Array,
) => unknown,
thisArg?: any,
): bigint | undefined;
/**
* Returns the index of the last element in the array where predicate is true, and -1
* otherwise.
* @param predicate findLastIndex calls predicate once for each element of the array, in descending
* order, until it finds one where predicate returns true. If such an element is found,
* findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findLastIndex(
predicate: (
value: bigint,
index: number,
array: BigUint64Array,
) => unknown,
thisArg?: any,
): number;
/**
* Copies the array and returns the copy with the elements in reverse order.
*/
toReversed(): BigUint64Array;
/**
* Copies and sorts the array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
* \`\`\`
*/
toSorted(compareFn?: (a: bigint, b: bigint) => number): BigUint64Array;
/**
* Copies the array and inserts the given bigint at the provided index.
* @param index The index of the value to overwrite. If the index is
* negative, then it replaces from the end of the array.
* @param value The value to insert into the copied array.
* @returns A copy of the original array with the inserted value.
*/
with(index: number, value: bigint): BigUint64Array;
}
`;Vi["lib.es2023.collection.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface WeakKeyTypes {
symbol: symbol;
}
`;Vi["lib.es2023.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2022" />
/// <reference lib="es2023.array" />
/// <reference lib="es2023.collection" />
`;Vi["lib.es2023.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2023" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`;Vi["lib.es5.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="decorators" />
/// <reference lib="decorators.legacy" />
/////////////////////////////
/// ECMAScript APIs
/////////////////////////////
declare var NaN: number;
declare var Infinity: number;
/**
* Evaluates JavaScript code and executes it.
* @param x A String value that contains valid JavaScript code.
*/
declare function eval(x: string): any;
/**
* Converts a string to an integer.
* @param string A string to convert into a number.
* @param radix A value between 2 and 36 that specifies the base of the number in \`string\`.
* If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
* All other strings are considered decimal.
*/
declare function parseInt(string: string, radix?: number): number;
/**
* Converts a string to a floating-point number.
* @param string A string that contains a floating-point number.
*/
declare function parseFloat(string: string): number;
/**
* Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
* @param number A numeric value.
*/
declare function isNaN(number: number): boolean;
/**
* Determines whether a supplied number is finite.
* @param number Any numeric value.
*/
declare function isFinite(number: number): boolean;
/**
* Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
* @param encodedURI A value representing an encoded URI.
*/
declare function decodeURI(encodedURI: string): string;
/**
* Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
* @param encodedURIComponent A value representing an encoded URI component.
*/
declare function decodeURIComponent(encodedURIComponent: string): string;
/**
* Encodes a text string as a valid Uniform Resource Identifier (URI)
* @param uri A value representing an unencoded URI.
*/
declare function encodeURI(uri: string): string;
/**
* Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
* @param uriComponent A value representing an unencoded URI component.
*/
declare function encodeURIComponent(uriComponent: string | number | boolean): string;
/**
* Computes a new string in which certain characters have been replaced by a hexadecimal escape sequence.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function escape(string: string): string;
/**
* Computes a new string in which hexadecimal escape sequences are replaced with the character that it represents.
* @deprecated A legacy feature for browser compatibility
* @param string A string value
*/
declare function unescape(string: string): string;
interface Symbol {
/** Returns a string representation of an object. */
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): symbol;
}
declare type PropertyKey = string | number | symbol;
interface PropertyDescriptor {
configurable?: boolean;
enumerable?: boolean;
value?: any;
writable?: boolean;
get?(): any;
set?(v: any): void;
}
interface PropertyDescriptorMap {
[key: PropertyKey]: PropertyDescriptor;
}
interface Object {
/** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
constructor: Function;
/** Returns a string representation of an object. */
toString(): string;
/** Returns a date converted to a string using the current locale. */
toLocaleString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Object;
/**
* Determines whether an object has a property with the specified name.
* @param v A property name.
*/
hasOwnProperty(v: PropertyKey): boolean;
/**
* Determines whether an object exists in another object's prototype chain.
* @param v Another object whose prototype chain is to be checked.
*/
isPrototypeOf(v: Object): boolean;
/**
* Determines whether a specified property is enumerable.
* @param v A property name.
*/
propertyIsEnumerable(v: PropertyKey): boolean;
}
interface ObjectConstructor {
new (value?: any): Object;
(): any;
(value: any): any;
/** A reference to the prototype for a class of objects. */
readonly prototype: Object;
/**
* Returns the prototype of an object.
* @param o The object that references the prototype.
*/
getPrototypeOf(o: any): any;
/**
* Gets the own property descriptor of the specified object.
* An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
* @param o Object that contains the property.
* @param p Name of the property.
*/
getOwnPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
/**
* Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
* on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
* @param o Object that contains the own properties.
*/
getOwnPropertyNames(o: any): string[];
/**
* Creates an object that has the specified prototype or that has null prototype.
* @param o Object to use as a prototype. May be null.
*/
create(o: object | null): any;
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties.
* @param o Object to use as a prototype. May be null
* @param properties JavaScript object that contains one or more property descriptors.
*/
create(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
/**
* Adds a property to an object, or modifies attributes of an existing property.
* @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
* @param p The property name.
* @param attributes Descriptor for the property. It can be for a data property or an accessor property.
*/
defineProperty<T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>): T;
/**
* Adds one or more properties to an object, and/or modifies attributes of existing properties.
* @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
* @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
*/
defineProperties<T>(o: T, properties: PropertyDescriptorMap & ThisType<any>): T;
/**
* Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
seal<T>(o: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param f Object on which to lock the attributes.
*/
freeze<T extends Function>(f: T): T;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T extends { [idx: string]: U | null | undefined | object; }, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
/**
* Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
* @param o Object on which to lock the attributes.
*/
freeze<T>(o: T): Readonly<T>;
/**
* Prevents the addition of new properties to an object.
* @param o Object to make non-extensible.
*/
preventExtensions<T>(o: T): T;
/**
* Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
* @param o Object to test.
*/
isSealed(o: any): boolean;
/**
* Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
* @param o Object to test.
*/
isFrozen(o: any): boolean;
/**
* Returns a value that indicates whether new properties can be added to an object.
* @param o Object to test.
*/
isExtensible(o: any): boolean;
/**
* Returns the names of the enumerable string properties and methods of an object.
* @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
*/
keys(o: object): string[];
}
/**
* Provides functionality common to all JavaScript objects.
*/
declare var Object: ObjectConstructor;
/**
* Creates a new function.
*/
interface Function {
/**
* Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
* @param thisArg The object to be used as the this object.
* @param argArray A set of arguments to be passed to the function.
*/
apply(this: Function, thisArg: any, argArray?: any): any;
/**
* Calls a method of an object, substituting another object for the current object.
* @param thisArg The object to be used as the current object.
* @param argArray A list of arguments to be passed to the method.
*/
call(this: Function, thisArg: any, ...argArray: any[]): any;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg An object to which the this keyword can refer inside the new function.
* @param argArray A list of arguments to be passed to the new function.
*/
bind(this: Function, thisArg: any, ...argArray: any[]): any;
/** Returns a string representation of a function. */
toString(): string;
prototype: any;
readonly length: number;
// Non-standard extensions
arguments: any;
caller: Function;
}
interface FunctionConstructor {
/**
* Creates a new function.
* @param args A list of arguments the function accepts.
*/
new (...args: string[]): Function;
(...args: string[]): Function;
readonly prototype: Function;
}
declare var Function: FunctionConstructor;
/**
* Extracts the type of the 'this' parameter of a function type, or 'unknown' if the function type has no 'this' parameter.
*/
type ThisParameterType<T> = T extends (this: infer U, ...args: never) => any ? U : unknown;
/**
* Removes the 'this' parameter from a function type.
*/
type OmitThisParameter<T> = unknown extends ThisParameterType<T> ? T : T extends (...args: infer A) => infer R ? (...args: A) => R : T;
interface CallableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
*/
apply<T, R>(this: (this: T) => R, thisArg: T): R;
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, args: A): R;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[], R>(this: (this: T, ...args: A) => R, thisArg: T, ...args: A): R;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
*/
bind<T>(this: T, thisArg: ThisParameterType<T>): OmitThisParameter<T>;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<T, A extends any[], B extends any[], R>(this: (this: T, ...args: [...A, ...B]) => R, thisArg: T, ...args: A): (...args: B) => R;
}
interface NewableFunction extends Function {
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
*/
apply<T>(this: new () => T, thisArg: T): void;
/**
* Calls the function with the specified object as the this value and the elements of specified array as the arguments.
* @param thisArg The object to be used as the this object.
* @param args An array of argument values to be passed to the function.
*/
apply<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, args: A): void;
/**
* Calls the function with the specified object as the this value and the specified rest arguments as the arguments.
* @param thisArg The object to be used as the this object.
* @param args Argument values to be passed to the function.
*/
call<T, A extends any[]>(this: new (...args: A) => T, thisArg: T, ...args: A): void;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
*/
bind<T>(this: T, thisArg: any): T;
/**
* For a given function, creates a bound function that has the same body as the original function.
* The this object of the bound function is associated with the specified object, and has the specified initial parameters.
* @param thisArg The object to be used as the this object.
* @param args Arguments to bind to the parameters of the function.
*/
bind<A extends any[], B extends any[], R>(this: new (...args: [...A, ...B]) => R, thisArg: any, ...args: A): new (...args: B) => R;
}
interface IArguments {
[index: number]: any;
length: number;
callee: Function;
}
interface String {
/** Returns a string representation of a string. */
toString(): string;
/**
* Returns the character at the specified index.
* @param pos The zero-based index of the desired character.
*/
charAt(pos: number): string;
/**
* Returns the Unicode value of the character at the specified location.
* @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
*/
charCodeAt(index: number): number;
/**
* Returns a string that contains the concatenation of two or more strings.
* @param strings The strings to append to the end of the string.
*/
concat(...strings: string[]): string;
/**
* Returns the position of the first occurrence of a substring.
* @param searchString The substring to search for in the string
* @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
*/
indexOf(searchString: string, position?: number): number;
/**
* Returns the last occurrence of a substring in the string.
* @param searchString The substring to search for.
* @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
*/
lastIndexOf(searchString: string, position?: number): number;
/**
* Determines whether two strings are equivalent in the current locale.
* @param that String to compare to target string
*/
localeCompare(that: string): number;
/**
* Matches a string with a regular expression, and returns an array containing the results of that search.
* @param regexp A variable name or string literal containing the regular expression pattern and flags.
*/
match(regexp: string | RegExp): RegExpMatchArray | null;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string or regular expression to search for.
* @param replaceValue A string containing the text to replace. When the {@linkcode searchValue} is a \`RegExp\`, all matches are replaced if the \`g\` flag is set (or only those matches at the beginning, if the \`y\` flag is also present). Otherwise, only the first match of {@linkcode searchValue} is replaced.
*/
replace(searchValue: string | RegExp, replaceValue: string): string;
/**
* Replaces text in a string, using a regular expression or search string.
* @param searchValue A string to search for.
* @param replacer A function that returns the replacement text.
*/
replace(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
/**
* Finds the first substring match in a regular expression search.
* @param regexp The regular expression pattern and applicable flags.
*/
search(regexp: string | RegExp): number;
/**
* Returns a section of a string.
* @param start The index to the beginning of the specified portion of stringObj.
* @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
* If this value is not specified, the substring continues to the end of stringObj.
*/
slice(start?: number, end?: number): string;
/**
* Split a string into substrings using the specified separator and return them as an array.
* @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
* @param limit A value used to limit the number of elements returned in the array.
*/
split(separator: string | RegExp, limit?: number): string[];
/**
* Returns the substring at the specified location within a String object.
* @param start The zero-based index number indicating the beginning of the substring.
* @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
* If end is omitted, the characters from start through the end of the original string are returned.
*/
substring(start: number, end?: number): string;
/** Converts all the alphabetic characters in a string to lowercase. */
toLowerCase(): string;
/** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
toLocaleLowerCase(locales?: string | string[]): string;
/** Converts all the alphabetic characters in a string to uppercase. */
toUpperCase(): string;
/** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
toLocaleUpperCase(locales?: string | string[]): string;
/** Removes the leading and trailing white space and line terminator characters from a string. */
trim(): string;
/** Returns the length of a String object. */
readonly length: number;
// IE extensions
/**
* Gets a substring beginning at the specified location and having the specified length.
* @deprecated A legacy feature for browser compatibility
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
* @param length The number of characters to include in the returned substring.
*/
substr(from: number, length?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): string;
readonly [index: number]: string;
}
interface StringConstructor {
new (value?: any): String;
(value?: any): string;
readonly prototype: String;
fromCharCode(...codes: number[]): string;
}
/**
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
*/
declare var String: StringConstructor;
interface Boolean {
/** Returns the primitive value of the specified object. */
valueOf(): boolean;
}
interface BooleanConstructor {
new (value?: any): Boolean;
<T>(value?: T): boolean;
readonly prototype: Boolean;
}
declare var Boolean: BooleanConstructor;
interface Number {
/**
* Returns a string representation of an object.
* @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
*/
toString(radix?: number): string;
/**
* Returns a string representing a number in fixed-point notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toFixed(fractionDigits?: number): string;
/**
* Returns a string containing a number represented in exponential notation.
* @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
*/
toExponential(fractionDigits?: number): string;
/**
* Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
* @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
*/
toPrecision(precision?: number): string;
/** Returns the primitive value of the specified object. */
valueOf(): number;
}
interface NumberConstructor {
new (value?: any): Number;
(value?: any): number;
readonly prototype: Number;
/** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
readonly MAX_VALUE: number;
/** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
readonly MIN_VALUE: number;
/**
* A value that is not a number.
* In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
*/
readonly NaN: number;
/**
* A value that is less than the largest negative number that can be represented in JavaScript.
* JavaScript displays NEGATIVE_INFINITY values as -infinity.
*/
readonly NEGATIVE_INFINITY: number;
/**
* A value greater than the largest number that can be represented in JavaScript.
* JavaScript displays POSITIVE_INFINITY values as infinity.
*/
readonly POSITIVE_INFINITY: number;
}
/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
declare var Number: NumberConstructor;
interface TemplateStringsArray extends ReadonlyArray<string> {
readonly raw: readonly string[];
}
/**
* The type of \`import.meta\`.
*
* If you need to declare that a given property exists on \`import.meta\`,
* this type may be augmented via interface merging.
*/
interface ImportMeta {
}
/**
* The type for the optional second argument to \`import()\`.
*
* If your host environment supports additional options, this type may be
* augmented via interface merging.
*/
interface ImportCallOptions {
/** @deprecated*/ assert?: ImportAssertions;
with?: ImportAttributes;
}
/**
* The type for the \`assert\` property of the optional second argument to \`import()\`.
* @deprecated
*/
interface ImportAssertions {
[key: string]: string;
}
/**
* The type for the \`with\` property of the optional second argument to \`import()\`.
*/
interface ImportAttributes {
[key: string]: string;
}
interface Math {
/** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
readonly E: number;
/** The natural logarithm of 10. */
readonly LN10: number;
/** The natural logarithm of 2. */
readonly LN2: number;
/** The base-2 logarithm of e. */
readonly LOG2E: number;
/** The base-10 logarithm of e. */
readonly LOG10E: number;
/** Pi. This is the ratio of the circumference of a circle to its diameter. */
readonly PI: number;
/** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
readonly SQRT1_2: number;
/** The square root of 2. */
readonly SQRT2: number;
/**
* Returns the absolute value of a number (the value without regard to whether it is positive or negative).
* For example, the absolute value of -5 is the same as the absolute value of 5.
* @param x A numeric expression for which the absolute value is needed.
*/
abs(x: number): number;
/**
* Returns the arc cosine (or inverse cosine) of a number.
* @param x A numeric expression.
*/
acos(x: number): number;
/**
* Returns the arcsine of a number.
* @param x A numeric expression.
*/
asin(x: number): number;
/**
* Returns the arctangent of a number.
* @param x A numeric expression for which the arctangent is needed.
*/
atan(x: number): number;
/**
* Returns the angle (in radians) from the X axis to a point.
* @param y A numeric expression representing the cartesian y-coordinate.
* @param x A numeric expression representing the cartesian x-coordinate.
*/
atan2(y: number, x: number): number;
/**
* Returns the smallest integer greater than or equal to its numeric argument.
* @param x A numeric expression.
*/
ceil(x: number): number;
/**
* Returns the cosine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
cos(x: number): number;
/**
* Returns e (the base of natural logarithms) raised to a power.
* @param x A numeric expression representing the power of e.
*/
exp(x: number): number;
/**
* Returns the greatest integer less than or equal to its numeric argument.
* @param x A numeric expression.
*/
floor(x: number): number;
/**
* Returns the natural logarithm (base e) of a number.
* @param x A numeric expression.
*/
log(x: number): number;
/**
* Returns the larger of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
max(...values: number[]): number;
/**
* Returns the smaller of a set of supplied numeric expressions.
* @param values Numeric expressions to be evaluated.
*/
min(...values: number[]): number;
/**
* Returns the value of a base expression taken to a specified power.
* @param x The base value of the expression.
* @param y The exponent value of the expression.
*/
pow(x: number, y: number): number;
/** Returns a pseudorandom number between 0 and 1. */
random(): number;
/**
* Returns a supplied numeric expression rounded to the nearest integer.
* @param x The value to be rounded to the nearest integer.
*/
round(x: number): number;
/**
* Returns the sine of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
sin(x: number): number;
/**
* Returns the square root of a number.
* @param x A numeric expression.
*/
sqrt(x: number): number;
/**
* Returns the tangent of a number.
* @param x A numeric expression that contains an angle measured in radians.
*/
tan(x: number): number;
}
/** An intrinsic object that provides basic mathematics functionality and constants. */
declare var Math: Math;
/** Enables basic storage and retrieval of dates and times. */
interface Date {
/** Returns a string representation of a date. The format of the string depends on the locale. */
toString(): string;
/** Returns a date as a string value. */
toDateString(): string;
/** Returns a time as a string value. */
toTimeString(): string;
/** Returns a value as a string value appropriate to the host environment's current locale. */
toLocaleString(): string;
/** Returns a date as a string value appropriate to the host environment's current locale. */
toLocaleDateString(): string;
/** Returns a time as a string value appropriate to the host environment's current locale. */
toLocaleTimeString(): string;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
valueOf(): number;
/** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
getTime(): number;
/** Gets the year, using local time. */
getFullYear(): number;
/** Gets the year using Universal Coordinated Time (UTC). */
getUTCFullYear(): number;
/** Gets the month, using local time. */
getMonth(): number;
/** Gets the month of a Date object using Universal Coordinated Time (UTC). */
getUTCMonth(): number;
/** Gets the day-of-the-month, using local time. */
getDate(): number;
/** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
getUTCDate(): number;
/** Gets the day of the week, using local time. */
getDay(): number;
/** Gets the day of the week using Universal Coordinated Time (UTC). */
getUTCDay(): number;
/** Gets the hours in a date, using local time. */
getHours(): number;
/** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
getUTCHours(): number;
/** Gets the minutes of a Date object, using local time. */
getMinutes(): number;
/** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
getUTCMinutes(): number;
/** Gets the seconds of a Date object, using local time. */
getSeconds(): number;
/** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
getUTCSeconds(): number;
/** Gets the milliseconds of a Date, using local time. */
getMilliseconds(): number;
/** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
getUTCMilliseconds(): number;
/** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
getTimezoneOffset(): number;
/**
* Sets the date and time value in the Date object.
* @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
*/
setTime(time: number): number;
/**
* Sets the milliseconds value in the Date object using local time.
* @param ms A numeric value equal to the millisecond value.
*/
setMilliseconds(ms: number): number;
/**
* Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
* @param ms A numeric value equal to the millisecond value.
*/
setUTCMilliseconds(ms: number): number;
/**
* Sets the seconds value in the Date object using local time.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setSeconds(sec: number, ms?: number): number;
/**
* Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCSeconds(sec: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using local time.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCMinutes(min: number, sec?: number, ms?: number): number;
/**
* Sets the hour value in the Date object using local time.
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the hours value in the Date object using Universal Coordinated Time (UTC).
* @param hours A numeric value equal to the hours value.
* @param min A numeric value equal to the minutes value.
* @param sec A numeric value equal to the seconds value.
* @param ms A numeric value equal to the milliseconds value.
*/
setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
/**
* Sets the numeric day-of-the-month value of the Date object using local time.
* @param date A numeric value equal to the day of the month.
*/
setDate(date: number): number;
/**
* Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
* @param date A numeric value equal to the day of the month.
*/
setUTCDate(date: number): number;
/**
* Sets the month value in the Date object using local time.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
*/
setMonth(month: number, date?: number): number;
/**
* Sets the month value in the Date object using Universal Coordinated Time (UTC).
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
* @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
*/
setUTCMonth(month: number, date?: number): number;
/**
* Sets the year of the Date object using local time.
* @param year A numeric value for the year.
* @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
* @param date A numeric value equal for the day of the month.
*/
setFullYear(year: number, month?: number, date?: number): number;
/**
* Sets the year value in the Date object using Universal Coordinated Time (UTC).
* @param year A numeric value equal to the year.
* @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
* @param date A numeric value equal to the day of the month.
*/
setUTCFullYear(year: number, month?: number, date?: number): number;
/** Returns a date converted to a string using Universal Coordinated Time (UTC). */
toUTCString(): string;
/** Returns a date as a string value in ISO format. */
toISOString(): string;
/** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
toJSON(key?: any): string;
}
interface DateConstructor {
new (): Date;
new (value: number | string): Date;
/**
* Creates a new Date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
new (year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
(): string;
readonly prototype: Date;
/**
* Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
* @param s A date string
*/
parse(s: string): number;
/**
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
* @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
* @param monthIndex The month as a number between 0 and 11 (January to December).
* @param date The date as a number between 1 and 31.
* @param hours Must be supplied if minutes is supplied. A number from 0 to 23 (midnight to 11pm) that specifies the hour.
* @param minutes Must be supplied if seconds is supplied. A number from 0 to 59 that specifies the minutes.
* @param seconds Must be supplied if milliseconds is supplied. A number from 0 to 59 that specifies the seconds.
* @param ms A number from 0 to 999 that specifies the milliseconds.
*/
UTC(year: number, monthIndex: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
/** Returns the number of milliseconds elapsed since midnight, January 1, 1970 Universal Coordinated Time (UTC). */
now(): number;
}
declare var Date: DateConstructor;
interface RegExpMatchArray extends Array<string> {
/**
* The index of the search at which the result was found.
*/
index?: number;
/**
* A copy of the search string.
*/
input?: string;
/**
* The first match. This will always be present because \`null\` will be returned if there are no matches.
*/
0: string;
}
interface RegExpExecArray extends Array<string> {
/**
* The index of the search at which the result was found.
*/
index: number;
/**
* A copy of the search string.
*/
input: string;
/**
* The first match. This will always be present because \`null\` will be returned if there are no matches.
*/
0: string;
}
interface RegExp {
/**
* Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
* @param string The String object or string literal on which to perform the search.
*/
exec(string: string): RegExpExecArray | null;
/**
* Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
* @param string String on which to perform the search.
*/
test(string: string): boolean;
/** Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal. */
readonly source: string;
/** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
readonly global: boolean;
/** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
readonly ignoreCase: boolean;
/** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
readonly multiline: boolean;
lastIndex: number;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
compile(pattern: string, flags?: string): this;
}
interface RegExpConstructor {
new (pattern: RegExp | string): RegExp;
new (pattern: string, flags?: string): RegExp;
(pattern: RegExp | string): RegExp;
(pattern: string, flags?: string): RegExp;
readonly "prototype": RegExp;
// Non-standard extensions
/** @deprecated A legacy feature for browser compatibility */
"$1": string;
/** @deprecated A legacy feature for browser compatibility */
"$2": string;
/** @deprecated A legacy feature for browser compatibility */
"$3": string;
/** @deprecated A legacy feature for browser compatibility */
"$4": string;
/** @deprecated A legacy feature for browser compatibility */
"$5": string;
/** @deprecated A legacy feature for browser compatibility */
"$6": string;
/** @deprecated A legacy feature for browser compatibility */
"$7": string;
/** @deprecated A legacy feature for browser compatibility */
"$8": string;
/** @deprecated A legacy feature for browser compatibility */
"$9": string;
/** @deprecated A legacy feature for browser compatibility */
"input": string;
/** @deprecated A legacy feature for browser compatibility */
"$_": string;
/** @deprecated A legacy feature for browser compatibility */
"lastMatch": string;
/** @deprecated A legacy feature for browser compatibility */
"$&": string;
/** @deprecated A legacy feature for browser compatibility */
"lastParen": string;
/** @deprecated A legacy feature for browser compatibility */
"$+": string;
/** @deprecated A legacy feature for browser compatibility */
"leftContext": string;
/** @deprecated A legacy feature for browser compatibility */
"$\`": string;
/** @deprecated A legacy feature for browser compatibility */
"rightContext": string;
/** @deprecated A legacy feature for browser compatibility */
"$'": string;
}
declare var RegExp: RegExpConstructor;
interface Error {
name: string;
message: string;
stack?: string;
}
interface ErrorConstructor {
new (message?: string): Error;
(message?: string): Error;
readonly prototype: Error;
}
declare var Error: ErrorConstructor;
interface EvalError extends Error {
}
interface EvalErrorConstructor extends ErrorConstructor {
new (message?: string): EvalError;
(message?: string): EvalError;
readonly prototype: EvalError;
}
declare var EvalError: EvalErrorConstructor;
interface RangeError extends Error {
}
interface RangeErrorConstructor extends ErrorConstructor {
new (message?: string): RangeError;
(message?: string): RangeError;
readonly prototype: RangeError;
}
declare var RangeError: RangeErrorConstructor;
interface ReferenceError extends Error {
}
interface ReferenceErrorConstructor extends ErrorConstructor {
new (message?: string): ReferenceError;
(message?: string): ReferenceError;
readonly prototype: ReferenceError;
}
declare var ReferenceError: ReferenceErrorConstructor;
interface SyntaxError extends Error {
}
interface SyntaxErrorConstructor extends ErrorConstructor {
new (message?: string): SyntaxError;
(message?: string): SyntaxError;
readonly prototype: SyntaxError;
}
declare var SyntaxError: SyntaxErrorConstructor;
interface TypeError extends Error {
}
interface TypeErrorConstructor extends ErrorConstructor {
new (message?: string): TypeError;
(message?: string): TypeError;
readonly prototype: TypeError;
}
declare var TypeError: TypeErrorConstructor;
interface URIError extends Error {
}
interface URIErrorConstructor extends ErrorConstructor {
new (message?: string): URIError;
(message?: string): URIError;
readonly prototype: URIError;
}
declare var URIError: URIErrorConstructor;
interface JSON {
/**
* Converts a JavaScript Object Notation (JSON) string into an object.
* @param text A valid JSON string.
* @param reviver A function that transforms the results. This function is called for each member of the object.
* If a member contains nested objects, the nested objects are transformed before the parent object is.
*/
parse(text: string, reviver?: (this: any, key: string, value: any) => any): any;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer A function that transforms the results.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
/**
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
* @param value A JavaScript value, usually an object or array, to be converted.
* @param replacer An array of strings and numbers that acts as an approved list for selecting the object properties that will be stringified.
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
*/
stringify(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
}
/**
* An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
*/
declare var JSON: JSON;
/////////////////////////////
/// ECMAScript Array API (specially handled by compiler)
/////////////////////////////
interface ReadonlyArray<T> {
/**
* Gets the length of the array. This is a number one higher than the highest element defined in an array.
*/
readonly length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* @param items Additional items to add to the end of array1.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): T[];
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): this is readonly S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: readonly T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: readonly T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: readonly T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: readonly T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: readonly T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: readonly T[]) => U, initialValue: U): U;
readonly [n: number]: T;
}
interface ConcatArray<T> {
readonly length: number;
readonly [n: number]: T;
join(separator?: string): string;
slice(start?: number, end?: number): T[];
}
interface Array<T> {
/**
* Gets or sets the length of the array. This is a number one higher than the highest index in the array.
*/
length: number;
/**
* Returns a string representation of an array.
*/
toString(): string;
/**
* Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.
*/
toLocaleString(): string;
/**
* Removes the last element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
pop(): T | undefined;
/**
* Appends new elements to the end of an array, and returns the new length of the array.
* @param items New elements to add to the array.
*/
push(...items: T[]): number;
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: ConcatArray<T>[]): T[];
/**
* Combines two or more arrays.
* This method returns a new array without modifying any existing arrays.
* @param items Additional arrays and/or items to add to the end of the array.
*/
concat(...items: (T | ConcatArray<T>)[]): T[];
/**
* Adds all the elements of an array into a string, separated by the specified separator string.
* @param separator A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Reverses the elements in an array in place.
* This method mutates the array and returns a reference to the same array.
*/
reverse(): T[];
/**
* Removes the first element from an array and returns it.
* If the array is empty, undefined is returned and the array is not modified.
*/
shift(): T | undefined;
/**
* Returns a copy of a section of an array.
* For both start and end, a negative index can be used to indicate an offset from the end of the array.
* For example, -2 refers to the second to last element of the array.
* @param start The beginning index of the specified portion of the array.
* If start is undefined, then the slice begins at index 0.
* @param end The end index of the specified portion of the array. This is exclusive of the element at the index 'end'.
* If end is undefined, then the slice extends to the end of the array.
*/
slice(start?: number, end?: number): T[];
/**
* Sorts an array in place.
* This method mutates the array and returns a reference to the same array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
* value otherwise. If omitted, the elements are sorted in ascending, ASCII character order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: T, b: T) => number): this;
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount?: number): T[];
/**
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
* @param start The zero-based location in the array from which to start removing elements.
* @param deleteCount The number of elements to remove.
* @param items Elements to insert into the array in place of the deleted elements.
* @returns An array containing the elements that were deleted.
*/
splice(start: number, deleteCount: number, ...items: T[]): T[];
/**
* Inserts new elements at the start of an array, and returns the new length of the array.
* @param items Elements to insert at the start of the array.
*/
unshift(...items: T[]): number;
/**
* Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
*/
indexOf(searchElement: T, fromIndex?: number): number;
/**
* Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.
*/
lastIndexOf(searchElement: T, fromIndex?: number): number;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): this is S[];
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): boolean;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
/**
* Calls a defined callback function on each element of an array, and returns an array that contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
*/
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter<S extends T>(predicate: (value: T, index: number, array: T[]) => value is S, thisArg?: any): S[];
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: T, index: number, array: T[]) => unknown, thisArg?: any): T[];
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T): T;
reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue: T): T;
/**
* Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
[n: number]: T;
}
interface ArrayConstructor {
new (arrayLength?: number): any[];
new <T>(arrayLength: number): T[];
new <T>(...items: T[]): T[];
(arrayLength?: number): any[];
<T>(arrayLength: number): T[];
<T>(...items: T[]): T[];
isArray(arg: any): arg is any[];
readonly prototype: any[];
}
declare var Array: ArrayConstructor;
interface TypedPropertyDescriptor<T> {
enumerable?: boolean;
configurable?: boolean;
writable?: boolean;
value?: T;
get?: () => T;
set?: (value: T) => void;
}
declare type PromiseConstructorLike = new <T>(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void) => PromiseLike<T>;
interface PromiseLike<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): PromiseLike<TResult1 | TResult2>;
}
/**
* Represents the completion of an asynchronous operation
*/
interface Promise<T> {
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): Promise<T | TResult>;
}
/**
* Recursively unwraps the "awaited type" of a type. Non-promise "thenables" should resolve to \`never\`. This emulates the behavior of \`await\`.
*/
type Awaited<T> = T extends null | undefined ? T : // special case for \`null | undefined\` when not in \`--strictNullChecks\` mode
T extends object & { then(onfulfilled: infer F, ...args: infer _): any; } ? // \`await\` only unwraps object types with a callable \`then\`. Non-object types are not unwrapped
F extends ((value: infer V, ...args: infer _) => any) ? // if the argument to \`then\` is callable, extracts the first argument
Awaited<V> : // recursively unwrap the value
never : // the argument to \`then\` was not callable
T; // non-object or non-thenable
interface ArrayLike<T> {
readonly length: number;
readonly [n: number]: T;
}
/**
* Make all properties in T optional
*/
type Partial<T> = {
[P in keyof T]?: T[P];
};
/**
* Make all properties in T required
*/
type Required<T> = {
[P in keyof T]-?: T[P];
};
/**
* Make all properties in T readonly
*/
type Readonly<T> = {
readonly [P in keyof T]: T[P];
};
/**
* From T, pick a set of properties whose keys are in the union K
*/
type Pick<T, K extends keyof T> = {
[P in K]: T[P];
};
/**
* Construct a type with a set of properties K of type T
*/
type Record<K extends keyof any, T> = {
[P in K]: T;
};
/**
* Exclude from T those types that are assignable to U
*/
type Exclude<T, U> = T extends U ? never : T;
/**
* Extract from T those types that are assignable to U
*/
type Extract<T, U> = T extends U ? T : never;
/**
* Construct a type with the properties of T except for those in type K.
*/
type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
/**
* Exclude null and undefined from T
*/
type NonNullable<T> = T & {};
/**
* Obtain the parameters of a function type in a tuple
*/
type Parameters<T extends (...args: any) => any> = T extends (...args: infer P) => any ? P : never;
/**
* Obtain the parameters of a constructor function type in a tuple
*/
type ConstructorParameters<T extends abstract new (...args: any) => any> = T extends abstract new (...args: infer P) => any ? P : never;
/**
* Obtain the return type of a function type
*/
type ReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : any;
/**
* Obtain the return type of a constructor function type
*/
type InstanceType<T extends abstract new (...args: any) => any> = T extends abstract new (...args: any) => infer R ? R : any;
/**
* Convert string literal type to uppercase
*/
type Uppercase<S extends string> = intrinsic;
/**
* Convert string literal type to lowercase
*/
type Lowercase<S extends string> = intrinsic;
/**
* Convert first character of string literal type to uppercase
*/
type Capitalize<S extends string> = intrinsic;
/**
* Convert first character of string literal type to lowercase
*/
type Uncapitalize<S extends string> = intrinsic;
/**
* Marker for non-inference type position
*/
type NoInfer<T> = intrinsic;
/**
* Marker for contextual 'this' type
*/
interface ThisType<T> {}
/**
* Stores types to be used with WeakSet, WeakMap, WeakRef, and FinalizationRegistry
*/
interface WeakKeyTypes {
object: object;
}
type WeakKey = WeakKeyTypes[keyof WeakKeyTypes];
/**
* Represents a raw buffer of binary data, which is used to store data for the
* different typed arrays. ArrayBuffers cannot be read from or written to directly,
* but can be passed to a typed array or DataView Object to interpret the raw
* buffer as needed.
*/
interface ArrayBuffer {
/**
* Read-only. The length of the ArrayBuffer (in bytes).
*/
readonly byteLength: number;
/**
* Returns a section of an ArrayBuffer.
*/
slice(begin: number, end?: number): ArrayBuffer;
}
/**
* Allowed ArrayBuffer types for the buffer of an ArrayBufferView and related Typed Arrays.
*/
interface ArrayBufferTypes {
ArrayBuffer: ArrayBuffer;
}
type ArrayBufferLike = ArrayBufferTypes[keyof ArrayBufferTypes];
interface ArrayBufferConstructor {
readonly prototype: ArrayBuffer;
new (byteLength: number): ArrayBuffer;
isView(arg: any): arg is ArrayBufferView;
}
declare var ArrayBuffer: ArrayBufferConstructor;
interface ArrayBufferView {
/**
* The ArrayBuffer instance referenced by the array.
*/
buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
byteLength: number;
/**
* The offset in bytes of the array.
*/
byteOffset: number;
}
interface DataView {
readonly buffer: ArrayBuffer;
readonly byteLength: number;
readonly byteOffset: number;
/**
* Gets the Float32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getFloat32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Float64 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getFloat64(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getInt8(byteOffset: number): number;
/**
* Gets the Int16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getInt16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Int32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getInt32(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint8 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
*/
getUint8(byteOffset: number): number;
/**
* Gets the Uint16 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getUint16(byteOffset: number, littleEndian?: boolean): number;
/**
* Gets the Uint32 value at the specified byte offset from the start of the view. There is
* no alignment constraint; multi-byte values may be fetched from any offset.
* @param byteOffset The place in the buffer at which the value should be retrieved.
* @param littleEndian If false or undefined, a big-endian value should be read.
*/
getUint32(byteOffset: number, littleEndian?: boolean): number;
/**
* Stores an Float32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Float64 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setInt8(byteOffset: number, value: number): void;
/**
* Stores an Int16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Int32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint8 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
*/
setUint8(byteOffset: number, value: number): void;
/**
* Stores an Uint16 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
/**
* Stores an Uint32 value at the specified byte offset from the start of the view.
* @param byteOffset The place in the buffer at which the value should be set.
* @param value The value to set.
* @param littleEndian If false or undefined, a big-endian value should be written.
*/
setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
}
interface DataViewConstructor {
readonly prototype: DataView;
new (buffer: ArrayBufferLike & { BYTES_PER_ELEMENT?: never; }, byteOffset?: number, byteLength?: number): DataView;
}
declare var DataView: DataViewConstructor;
/**
* A typed array of 8-bit integer values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Int8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int8Array) => any, thisArg?: any): Int8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int8Array) => number, thisArg?: any): Int8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int8Array;
[index: number]: number;
}
interface Int8ArrayConstructor {
readonly prototype: Int8Array;
new (length: number): Int8Array;
new (array: ArrayLike<number> | ArrayBufferLike): Int8Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int8Array;
}
declare var Int8Array: Int8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8Array) => any, thisArg?: any): Uint8Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8Array) => number, thisArg?: any): Uint8Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8Array;
[index: number]: number;
}
interface Uint8ArrayConstructor {
readonly prototype: Uint8Array;
new (length: number): Uint8Array;
new (array: ArrayLike<number> | ArrayBufferLike): Uint8Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8Array;
}
declare var Uint8Array: Uint8ArrayConstructor;
/**
* A typed array of 8-bit unsigned integer (clamped) values. The contents are initialized to 0.
* If the requested number of bytes could not be allocated an exception is raised.
*/
interface Uint8ClampedArray {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint8ClampedArray) => any, thisArg?: any): Uint8ClampedArray;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint8ClampedArray) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint8ClampedArray) => number, thisArg?: any): Uint8ClampedArray;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint8ClampedArray) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint8ClampedArray;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint8ClampedArray;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint8ClampedArray) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint8ClampedArray view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint8ClampedArray;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint8ClampedArray;
[index: number]: number;
}
interface Uint8ClampedArrayConstructor {
readonly prototype: Uint8ClampedArray;
new (length: number): Uint8ClampedArray;
new (array: ArrayLike<number> | ArrayBufferLike): Uint8ClampedArray;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint8ClampedArray;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint8ClampedArray;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint8ClampedArray;
}
declare var Uint8ClampedArray: Uint8ClampedArrayConstructor;
/**
* A typed array of 16-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int16Array) => any, thisArg?: any): Int16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int16Array) => number, thisArg?: any): Int16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int16Array;
[index: number]: number;
}
interface Int16ArrayConstructor {
readonly prototype: Int16Array;
new (length: number): Int16Array;
new (array: ArrayLike<number> | ArrayBufferLike): Int16Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int16Array;
}
declare var Int16Array: Int16ArrayConstructor;
/**
* A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint16Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint16Array) => any, thisArg?: any): Uint16Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint16Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint16Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint16Array) => number, thisArg?: any): Uint16Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint16Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint16Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint16Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint16Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint16Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint16Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint16Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint16Array;
[index: number]: number;
}
interface Uint16ArrayConstructor {
readonly prototype: Uint16Array;
new (length: number): Uint16Array;
new (array: ArrayLike<number> | ArrayBufferLike): Uint16Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint16Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint16Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint16Array;
}
declare var Uint16Array: Uint16ArrayConstructor;
/**
* A typed array of 32-bit signed integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Int32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Int32Array) => any, thisArg?: any): Int32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Int32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Int32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Int32Array) => number, thisArg?: any): Int32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Int32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Int32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Int32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Int32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Int32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Int32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Int32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Int32Array;
[index: number]: number;
}
interface Int32ArrayConstructor {
readonly prototype: Int32Array;
new (length: number): Int32Array;
new (array: ArrayLike<number> | ArrayBufferLike): Int32Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Int32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Int32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Int32Array;
}
declare var Int32Array: Int32ArrayConstructor;
/**
* A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the
* requested number of bytes could not be allocated an exception is raised.
*/
interface Uint32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Uint32Array) => any, thisArg?: any): Uint32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Uint32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Uint32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Uint32Array) => number, thisArg?: any): Uint32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Uint32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Uint32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Uint32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Uint32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Uint32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Uint32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Uint32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Uint32Array;
[index: number]: number;
}
interface Uint32ArrayConstructor {
readonly prototype: Uint32Array;
new (length: number): Uint32Array;
new (array: ArrayLike<number> | ArrayBufferLike): Uint32Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Uint32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Uint32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Uint32Array;
}
declare var Uint32Array: Uint32ArrayConstructor;
/**
* A typed array of 32-bit float values. The contents are initialized to 0. If the requested number
* of bytes could not be allocated an exception is raised.
*/
interface Float32Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float32Array) => any, thisArg?: any): Float32Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float32Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float32Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float32Array) => number, thisArg?: any): Float32Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float32Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float32Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float32Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float32Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float32Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Float32Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float32Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float32Array;
[index: number]: number;
}
interface Float32ArrayConstructor {
readonly prototype: Float32Array;
new (length: number): Float32Array;
new (array: ArrayLike<number> | ArrayBufferLike): Float32Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float32Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float32Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float32Array;
}
declare var Float32Array: Float32ArrayConstructor;
/**
* A typed array of 64-bit float values. The contents are initialized to 0. If the requested
* number of bytes could not be allocated an exception is raised.
*/
interface Float64Array {
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* The ArrayBuffer instance referenced by the array.
*/
readonly buffer: ArrayBufferLike;
/**
* The length in bytes of the array.
*/
readonly byteLength: number;
/**
* The offset in bytes of the array.
*/
readonly byteOffset: number;
/**
* Returns the this object after copying a section of the array identified by start and end
* to the same array starting at position target
* @param target If target is negative, it is treated as length+target where length is the
* length of the array.
* @param start If start is negative, it is treated as length+start. If end is negative, it
* is treated as length+end.
* @param end If not specified, length of the this object is used as its default value.
*/
copyWithin(target: number, start: number, end?: number): this;
/**
* Determines whether all the members of an array satisfy the specified test.
* @param predicate A function that accepts up to three arguments. The every method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value false, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
every(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Changes all array elements from \`start\` to \`end\` index to a static \`value\` and returns the modified array
* @param value value to fill array section with
* @param start index to start filling the array at. If start is negative, it is treated as
* length+start where length is the length of the array.
* @param end index to stop filling the array at. If end is negative, it is treated as
* length+end.
*/
fill(value: number, start?: number, end?: number): this;
/**
* Returns the elements of an array that meet the condition specified in a callback function.
* @param predicate A function that accepts up to three arguments. The filter method calls
* the predicate function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
filter(predicate: (value: number, index: number, array: Float64Array) => any, thisArg?: any): Float64Array;
/**
* Returns the value of the first element in the array where predicate is true, and undefined
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found, find
* immediately returns that element value. Otherwise, find returns undefined.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
find(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number | undefined;
/**
* Returns the index of the first element in the array where predicate is true, and -1
* otherwise.
* @param predicate find calls predicate once for each element of the array, in ascending
* order, until it finds one where predicate returns true. If such an element is found,
* findIndex immediately returns that element index. Otherwise, findIndex returns -1.
* @param thisArg If provided, it will be used as the this value for each invocation of
* predicate. If it is not provided, undefined is used instead.
*/
findIndex(predicate: (value: number, index: number, obj: Float64Array) => boolean, thisArg?: any): number;
/**
* Performs the specified action for each element in an array.
* @param callbackfn A function that accepts up to three arguments. forEach calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
forEach(callbackfn: (value: number, index: number, array: Float64Array) => void, thisArg?: any): void;
/**
* Returns the index of the first occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
indexOf(searchElement: number, fromIndex?: number): number;
/**
* Adds all the elements of an array separated by the specified separator string.
* @param separator A string used to separate one element of an array from the next in the
* resulting String. If omitted, the array elements are separated with a comma.
*/
join(separator?: string): string;
/**
* Returns the index of the last occurrence of a value in an array.
* @param searchElement The value to locate in the array.
* @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the
* search starts at index 0.
*/
lastIndexOf(searchElement: number, fromIndex?: number): number;
/**
* The length of the array.
*/
readonly length: number;
/**
* Calls a defined callback function on each element of an array, and returns an array that
* contains the results.
* @param callbackfn A function that accepts up to three arguments. The map method calls the
* callbackfn function one time for each element in the array.
* @param thisArg An object to which the this keyword can refer in the callbackfn function.
* If thisArg is omitted, undefined is used as the this value.
*/
map(callbackfn: (value: number, index: number, array: Float64Array) => number, thisArg?: any): Float64Array;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduce(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array. The return value of
* the callback function is the accumulated result, and is provided as an argument in the next
* call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduce method calls the
* callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduce<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an
* argument instead of an array value.
*/
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number): number;
reduceRight(callbackfn: (previousValue: number, currentValue: number, currentIndex: number, array: Float64Array) => number, initialValue: number): number;
/**
* Calls the specified callback function for all the elements in an array, in descending order.
* The return value of the callback function is the accumulated result, and is provided as an
* argument in the next call to the callback function.
* @param callbackfn A function that accepts up to four arguments. The reduceRight method calls
* the callbackfn function one time for each element in the array.
* @param initialValue If initialValue is specified, it is used as the initial value to start
* the accumulation. The first call to the callbackfn function provides this value as an argument
* instead of an array value.
*/
reduceRight<U>(callbackfn: (previousValue: U, currentValue: number, currentIndex: number, array: Float64Array) => U, initialValue: U): U;
/**
* Reverses the elements in an Array.
*/
reverse(): Float64Array;
/**
* Sets a value or an array of values.
* @param array A typed or untyped array of values to set.
* @param offset The index in the current array at which the values are to be written.
*/
set(array: ArrayLike<number>, offset?: number): void;
/**
* Returns a section of an array.
* @param start The beginning of the specified portion of the array.
* @param end The end of the specified portion of the array. This is exclusive of the element at the index 'end'.
*/
slice(start?: number, end?: number): Float64Array;
/**
* Determines whether the specified callback function returns true for any element of an array.
* @param predicate A function that accepts up to three arguments. The some method calls
* the predicate function for each element in the array until the predicate returns a value
* which is coercible to the Boolean value true, or until the end of the array.
* @param thisArg An object to which the this keyword can refer in the predicate function.
* If thisArg is omitted, undefined is used as the this value.
*/
some(predicate: (value: number, index: number, array: Float64Array) => unknown, thisArg?: any): boolean;
/**
* Sorts an array.
* @param compareFn Function used to determine the order of the elements. It is expected to return
* a negative value if first argument is less than second argument, zero if they're equal and a positive
* value otherwise. If omitted, the elements are sorted in ascending order.
* \`\`\`ts
* [11,2,22,1].sort((a, b) => a - b)
* \`\`\`
*/
sort(compareFn?: (a: number, b: number) => number): this;
/**
* Gets a new Float64Array view of the ArrayBuffer store for this array, referencing the elements
* at begin, inclusive, up to end, exclusive.
* @param begin The index of the beginning of the array.
* @param end The index of the end of the array.
*/
subarray(begin?: number, end?: number): Float64Array;
/**
* Converts a number to a string by using the current locale.
*/
toLocaleString(): string;
/**
* Returns a string representation of an array.
*/
toString(): string;
/** Returns the primitive value of the specified object. */
valueOf(): Float64Array;
[index: number]: number;
}
interface Float64ArrayConstructor {
readonly prototype: Float64Array;
new (length: number): Float64Array;
new (array: ArrayLike<number> | ArrayBufferLike): Float64Array;
new (buffer: ArrayBufferLike, byteOffset?: number, length?: number): Float64Array;
/**
* The size in bytes of each element in the array.
*/
readonly BYTES_PER_ELEMENT: number;
/**
* Returns a new array from a set of elements.
* @param items A set of elements to include in the new array object.
*/
of(...items: number[]): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
*/
from(arrayLike: ArrayLike<number>): Float64Array;
/**
* Creates an array from an array-like or iterable object.
* @param arrayLike An array-like or iterable object to convert to an array.
* @param mapfn A mapping function to call on every element of the array.
* @param thisArg Value of 'this' used to invoke the mapfn.
*/
from<T>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => number, thisArg?: any): Float64Array;
}
declare var Float64Array: Float64ArrayConstructor;
/////////////////////////////
/// ECMAScript Internationalization API
/////////////////////////////
declare namespace Intl {
interface CollatorOptions {
usage?: "sort" | "search" | undefined;
localeMatcher?: "lookup" | "best fit" | undefined;
numeric?: boolean | undefined;
caseFirst?: "upper" | "lower" | "false" | undefined;
sensitivity?: "base" | "accent" | "case" | "variant" | undefined;
collation?: "big5han" | "compat" | "dict" | "direct" | "ducet" | "emoji" | "eor" | "gb2312" | "phonebk" | "phonetic" | "pinyin" | "reformed" | "searchjl" | "stroke" | "trad" | "unihan" | "zhuyin" | undefined;
ignorePunctuation?: boolean | undefined;
}
interface ResolvedCollatorOptions {
locale: string;
usage: string;
sensitivity: string;
ignorePunctuation: boolean;
collation: string;
caseFirst: string;
numeric: boolean;
}
interface Collator {
compare(x: string, y: string): number;
resolvedOptions(): ResolvedCollatorOptions;
}
interface CollatorConstructor {
new (locales?: string | string[], options?: CollatorOptions): Collator;
(locales?: string | string[], options?: CollatorOptions): Collator;
supportedLocalesOf(locales: string | string[], options?: CollatorOptions): string[];
}
var Collator: CollatorConstructor;
interface NumberFormatOptions {
localeMatcher?: string | undefined;
style?: string | undefined;
currency?: string | undefined;
currencySign?: string | undefined;
useGrouping?: boolean | undefined;
minimumIntegerDigits?: number | undefined;
minimumFractionDigits?: number | undefined;
maximumFractionDigits?: number | undefined;
minimumSignificantDigits?: number | undefined;
maximumSignificantDigits?: number | undefined;
}
interface ResolvedNumberFormatOptions {
locale: string;
numberingSystem: string;
style: string;
currency?: string;
minimumIntegerDigits: number;
minimumFractionDigits: number;
maximumFractionDigits: number;
minimumSignificantDigits?: number;
maximumSignificantDigits?: number;
useGrouping: boolean;
}
interface NumberFormat {
format(value: number): string;
resolvedOptions(): ResolvedNumberFormatOptions;
}
interface NumberFormatConstructor {
new (locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
(locales?: string | string[], options?: NumberFormatOptions): NumberFormat;
supportedLocalesOf(locales: string | string[], options?: NumberFormatOptions): string[];
readonly prototype: NumberFormat;
}
var NumberFormat: NumberFormatConstructor;
interface DateTimeFormatOptions {
localeMatcher?: "best fit" | "lookup" | undefined;
weekday?: "long" | "short" | "narrow" | undefined;
era?: "long" | "short" | "narrow" | undefined;
year?: "numeric" | "2-digit" | undefined;
month?: "numeric" | "2-digit" | "long" | "short" | "narrow" | undefined;
day?: "numeric" | "2-digit" | undefined;
hour?: "numeric" | "2-digit" | undefined;
minute?: "numeric" | "2-digit" | undefined;
second?: "numeric" | "2-digit" | undefined;
timeZoneName?: "short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined;
formatMatcher?: "best fit" | "basic" | undefined;
hour12?: boolean | undefined;
timeZone?: string | undefined;
}
interface ResolvedDateTimeFormatOptions {
locale: string;
calendar: string;
numberingSystem: string;
timeZone: string;
hour12?: boolean;
weekday?: string;
era?: string;
year?: string;
month?: string;
day?: string;
hour?: string;
minute?: string;
second?: string;
timeZoneName?: string;
}
interface DateTimeFormat {
format(date?: Date | number): string;
resolvedOptions(): ResolvedDateTimeFormatOptions;
}
interface DateTimeFormatConstructor {
new (locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
(locales?: string | string[], options?: DateTimeFormatOptions): DateTimeFormat;
supportedLocalesOf(locales: string | string[], options?: DateTimeFormatOptions): string[];
readonly prototype: DateTimeFormat;
}
var DateTimeFormat: DateTimeFormatConstructor;
}
interface String {
/**
* Determines whether two strings are equivalent in the current or specified locale.
* @param that String to compare to target string
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
* @param options An object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.
*/
localeCompare(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
}
interface Number {
/**
* Converts a number to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.NumberFormatOptions): string;
}
interface Date {
/**
* Converts a date and time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a date to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleDateString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
/**
* Converts a time to a string by using the current or specified locale.
* @param locales A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used.
* @param options An object that contains one or more properties that specify comparison options.
*/
toLocaleTimeString(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
}
`;Vi["lib.es6.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015" />
/// <reference lib="dom" />
/// <reference lib="dom.iterable" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
`;Vi["lib.esnext.collection.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface MapConstructor {
/**
* Groups members of an iterable according to the return value of the passed callback.
* @param items An iterable.
* @param keySelector A callback which will be invoked for each item in items.
*/
groupBy<K, T>(
items: Iterable<T>,
keySelector: (item: T, index: number) => K,
): Map<K, T[]>;
}
`;Vi["lib.esnext.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2023" />
/// <reference lib="esnext.intl" />
/// <reference lib="esnext.decorators" />
/// <reference lib="esnext.disposable" />
/// <reference lib="esnext.promise" />
/// <reference lib="esnext.object" />
/// <reference lib="esnext.collection" />
`;Vi["lib.esnext.decorators.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
/// <reference lib="decorators" />
interface SymbolConstructor {
readonly metadata: unique symbol;
}
interface Function {
[Symbol.metadata]: DecoratorMetadata | null;
}
`;Vi["lib.esnext.disposable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that is used to release resources held by an object. Called by the semantics of the \`using\` statement.
*/
readonly dispose: unique symbol;
/**
* A method that is used to asynchronously release resources held by an object. Called by the semantics of the \`await using\` statement.
*/
readonly asyncDispose: unique symbol;
}
interface Disposable {
[Symbol.dispose](): void;
}
interface AsyncDisposable {
[Symbol.asyncDispose](): PromiseLike<void>;
}
interface SuppressedError extends Error {
error: any;
suppressed: any;
}
interface SuppressedErrorConstructor {
new (error: any, suppressed: any, message?: string): SuppressedError;
(error: any, suppressed: any, message?: string): SuppressedError;
readonly prototype: SuppressedError;
}
declare var SuppressedError: SuppressedErrorConstructor;
interface DisposableStack {
/**
* Returns a value indicating whether this stack has been disposed.
*/
readonly disposed: boolean;
/**
* Disposes each resource in the stack in the reverse order that they were added.
*/
dispose(): void;
/**
* Adds a disposable resource to the stack, returning the resource.
* @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned.
* @returns The provided {@link value}.
*/
use<T extends Disposable | null | undefined>(value: T): T;
/**
* Adds a value and associated disposal callback as a resource to the stack.
* @param value The value to add.
* @param onDispose The callback to use in place of a \`[Symbol.dispose]()\` method. Will be invoked with \`value\`
* as the first parameter.
* @returns The provided {@link value}.
*/
adopt<T>(value: T, onDispose: (value: T) => void): T;
/**
* Adds a callback to be invoked when the stack is disposed.
*/
defer(onDispose: () => void): void;
/**
* Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed.
* @example
* \`\`\`ts
* class C {
* #res1: Disposable;
* #res2: Disposable;
* #disposables: DisposableStack;
* constructor() {
* // stack will be disposed when exiting constructor for any reason
* using stack = new DisposableStack();
*
* // get first resource
* this.#res1 = stack.use(getResource1());
*
* // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed.
* this.#res2 = stack.use(getResource2());
*
* // all operations succeeded, move resources out of \`stack\` so that they aren't disposed
* // when constructor exits
* this.#disposables = stack.move();
* }
*
* [Symbol.dispose]() {
* this.#disposables.dispose();
* }
* }
* \`\`\`
*/
move(): DisposableStack;
[Symbol.dispose](): void;
readonly [Symbol.toStringTag]: string;
}
interface DisposableStackConstructor {
new (): DisposableStack;
readonly prototype: DisposableStack;
}
declare var DisposableStack: DisposableStackConstructor;
interface AsyncDisposableStack {
/**
* Returns a value indicating whether this stack has been disposed.
*/
readonly disposed: boolean;
/**
* Disposes each resource in the stack in the reverse order that they were added.
*/
disposeAsync(): Promise<void>;
/**
* Adds a disposable resource to the stack, returning the resource.
* @param value The resource to add. \`null\` and \`undefined\` will not be added, but will be returned.
* @returns The provided {@link value}.
*/
use<T extends AsyncDisposable | Disposable | null | undefined>(value: T): T;
/**
* Adds a value and associated disposal callback as a resource to the stack.
* @param value The value to add.
* @param onDisposeAsync The callback to use in place of a \`[Symbol.asyncDispose]()\` method. Will be invoked with \`value\`
* as the first parameter.
* @returns The provided {@link value}.
*/
adopt<T>(value: T, onDisposeAsync: (value: T) => PromiseLike<void> | void): T;
/**
* Adds a callback to be invoked when the stack is disposed.
*/
defer(onDisposeAsync: () => PromiseLike<void> | void): void;
/**
* Move all resources out of this stack and into a new \`DisposableStack\`, and marks this stack as disposed.
* @example
* \`\`\`ts
* class C {
* #res1: Disposable;
* #res2: Disposable;
* #disposables: DisposableStack;
* constructor() {
* // stack will be disposed when exiting constructor for any reason
* using stack = new DisposableStack();
*
* // get first resource
* this.#res1 = stack.use(getResource1());
*
* // get second resource. If this fails, both \`stack\` and \`#res1\` will be disposed.
* this.#res2 = stack.use(getResource2());
*
* // all operations succeeded, move resources out of \`stack\` so that they aren't disposed
* // when constructor exits
* this.#disposables = stack.move();
* }
*
* [Symbol.dispose]() {
* this.#disposables.dispose();
* }
* }
* \`\`\`
*/
move(): AsyncDisposableStack;
[Symbol.asyncDispose](): Promise<void>;
readonly [Symbol.toStringTag]: string;
}
interface AsyncDisposableStackConstructor {
new (): AsyncDisposableStack;
readonly prototype: AsyncDisposableStack;
}
declare var AsyncDisposableStack: AsyncDisposableStackConstructor;
`;Vi["lib.esnext.full.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/// <reference lib="esnext" />
/// <reference lib="dom" />
/// <reference lib="webworker.importscripts" />
/// <reference lib="scripthost" />
/// <reference lib="dom.iterable" />
/// <reference lib="dom.asynciterable" />
`;Vi["lib.esnext.intl.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
declare namespace Intl {
interface NumberRangeFormatPart extends NumberFormatPart {
source: "startRange" | "endRange" | "shared";
}
interface NumberFormat {
formatRange(start: number | bigint, end: number | bigint): string;
formatRangeToParts(start: number | bigint, end: number | bigint): NumberRangeFormatPart[];
}
}
`;Vi["lib.esnext.object.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface ObjectConstructor {
/**
* Groups members of an iterable according to the return value of the passed callback.
* @param items An iterable.
* @param keySelector A callback which will be invoked for each item in items.
*/
groupBy<K extends PropertyKey, T>(
items: Iterable<T>,
keySelector: (item: T, index: number) => K,
): Partial<Record<K, T[]>>;
}
`;Vi["lib.esnext.promise.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
interface PromiseWithResolvers<T> {
promise: Promise<T>;
resolve: (value: T | PromiseLike<T>) => void;
reject: (reason?: any) => void;
}
interface PromiseConstructor {
/**
* Creates a new Promise and returns it in an object, along with its resolve and reject functions.
* @returns An object with the properties \`promise\`, \`resolve\`, and \`reject\`.
*
* \`\`\`ts
* const { promise, resolve, reject } = Promise.withResolvers<T>();
* \`\`\`
*/
withResolvers<T>(): PromiseWithResolvers<T>;
}
`;Vi["lib.scripthost.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Windows Script Host APIS
/////////////////////////////
interface ActiveXObject {
new (s: string): any;
}
declare var ActiveXObject: ActiveXObject;
interface ITextWriter {
Write(s: string): void;
WriteLine(s: string): void;
Close(): void;
}
interface TextStreamBase {
/**
* The column number of the current character position in an input stream.
*/
Column: number;
/**
* The current line number in an input stream.
*/
Line: number;
/**
* Closes a text stream.
* It is not necessary to close standard streams; they close automatically when the process ends. If
* you close a standard stream, be aware that any other pointers to that standard stream become invalid.
*/
Close(): void;
}
interface TextStreamWriter extends TextStreamBase {
/**
* Sends a string to an output stream.
*/
Write(s: string): void;
/**
* Sends a specified number of blank lines (newline characters) to an output stream.
*/
WriteBlankLines(intLines: number): void;
/**
* Sends a string followed by a newline character to an output stream.
*/
WriteLine(s: string): void;
}
interface TextStreamReader extends TextStreamBase {
/**
* Returns a specified number of characters from an input stream, starting at the current pointer position.
* Does not return until the ENTER key is pressed.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
Read(characters: number): string;
/**
* Returns all characters from an input stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadAll(): string;
/**
* Returns an entire line from an input stream.
* Although this method extracts the newline character, it does not add it to the returned string.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
*/
ReadLine(): string;
/**
* Skips a specified number of characters when reading from an input text stream.
* Can only be used on a stream in reading mode; causes an error in writing or appending mode.
* @param characters Positive number of characters to skip forward. (Backward skipping is not supported.)
*/
Skip(characters: number): void;
/**
* Skips the next line when reading from an input text stream.
* Can only be used on a stream in reading mode, not writing or appending mode.
*/
SkipLine(): void;
/**
* Indicates whether the stream pointer position is at the end of a line.
*/
AtEndOfLine: boolean;
/**
* Indicates whether the stream pointer position is at the end of a stream.
*/
AtEndOfStream: boolean;
}
declare var WScript: {
/**
* Outputs text to either a message box (under WScript.exe) or the command console window followed by
* a newline (under CScript.exe).
*/
Echo(s: any): void;
/**
* Exposes the write-only error output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdErr: TextStreamWriter;
/**
* Exposes the write-only output stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdOut: TextStreamWriter;
Arguments: { length: number; Item(n: number): string; };
/**
* The full path of the currently running script.
*/
ScriptFullName: string;
/**
* Forces the script to stop immediately, with an optional exit code.
*/
Quit(exitCode?: number): number;
/**
* The Windows Script Host build version number.
*/
BuildVersion: number;
/**
* Fully qualified path of the host executable.
*/
FullName: string;
/**
* Gets/sets the script mode - interactive(true) or batch(false).
*/
Interactive: boolean;
/**
* The name of the host executable (WScript.exe or CScript.exe).
*/
Name: string;
/**
* Path of the directory containing the host executable.
*/
Path: string;
/**
* The filename of the currently running script.
*/
ScriptName: string;
/**
* Exposes the read-only input stream for the current script.
* Can be accessed only while using CScript.exe.
*/
StdIn: TextStreamReader;
/**
* Windows Script Host version
*/
Version: string;
/**
* Connects a COM object's event sources to functions named with a given prefix, in the form prefix_event.
*/
ConnectObject(objEventSource: any, strPrefix: string): void;
/**
* Creates a COM object.
* @param strProgiID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
CreateObject(strProgID: string, strPrefix?: string): any;
/**
* Disconnects a COM object from its event sources.
*/
DisconnectObject(obj: any): void;
/**
* Retrieves an existing object with the specified ProgID from memory, or creates a new one from a file.
* @param strPathname Fully qualified path to the file containing the object persisted to disk.
* For objects in memory, pass a zero-length string.
* @param strProgID
* @param strPrefix Function names in the form prefix_event will be bound to this object's COM events.
*/
GetObject(strPathname: string, strProgID?: string, strPrefix?: string): any;
/**
* Suspends script execution for a specified length of time, then continues execution.
* @param intTime Interval (in milliseconds) to suspend script execution.
*/
Sleep(intTime: number): void;
};
/**
* WSH is an alias for WScript under Windows Script Host
*/
declare var WSH: typeof WScript;
/**
* Represents an Automation SAFEARRAY
*/
declare class SafeArray<T = any> {
private constructor();
private SafeArray_typekey: SafeArray<T>;
}
/**
* Allows enumerating over a COM collection, which may not have indexed item access.
*/
interface Enumerator<T = any> {
/**
* Returns true if the current item is the last one in the collection, or the collection is empty,
* or the current item is undefined.
*/
atEnd(): boolean;
/**
* Returns the current item in the collection
*/
item(): T;
/**
* Resets the current item in the collection to the first item. If there are no items in the collection,
* the current item is set to undefined.
*/
moveFirst(): void;
/**
* Moves the current item to the next item in the collection. If the enumerator is at the end of
* the collection or the collection is empty, the current item is set to undefined.
*/
moveNext(): void;
}
interface EnumeratorConstructor {
new <T = any>(safearray: SafeArray<T>): Enumerator<T>;
new <T = any>(collection: { Item(index: any): T; }): Enumerator<T>;
new <T = any>(collection: any): Enumerator<T>;
}
declare var Enumerator: EnumeratorConstructor;
/**
* Enables reading from a COM safe array, which might have an alternate lower bound, or multiple dimensions.
*/
interface VBArray<T = any> {
/**
* Returns the number of dimensions (1-based).
*/
dimensions(): number;
/**
* Takes an index for each dimension in the array, and returns the item at the corresponding location.
*/
getItem(dimension1Index: number, ...dimensionNIndexes: number[]): T;
/**
* Returns the smallest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
lbound(dimension?: number): number;
/**
* Returns the largest available index for a given dimension.
* @param dimension 1-based dimension (defaults to 1)
*/
ubound(dimension?: number): number;
/**
* Returns a Javascript array with all the elements in the VBArray. If there are multiple dimensions,
* each successive dimension is appended to the end of the array.
* Example: [[1,2,3],[4,5,6]] becomes [1,2,3,4,5,6]
*/
toArray(): T[];
}
interface VBArrayConstructor {
new <T = any>(safeArray: SafeArray<T>): VBArray<T>;
}
declare var VBArray: VBArrayConstructor;
/**
* Automation date (VT_DATE)
*/
declare class VarDate {
private constructor();
private VarDate_typekey: VarDate;
}
interface DateConstructor {
new (vd: VarDate): Date;
}
interface Date {
getVarDate: () => VarDate;
}
`;Vi["lib.webworker.asynciterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker Async Iterable APIs
/////////////////////////////
interface FileSystemDirectoryHandle {
[Symbol.asyncIterator](): AsyncIterableIterator<[string, FileSystemHandle]>;
entries(): AsyncIterableIterator<[string, FileSystemHandle]>;
keys(): AsyncIterableIterator<string>;
values(): AsyncIterableIterator<FileSystemHandle>;
}
`;Vi["lib.webworker.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker APIs
/////////////////////////////
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
signal?: AbortSignal;
}
interface AesCbcParams extends Algorithm {
iv: BufferSource;
}
interface AesCtrParams extends Algorithm {
counter: BufferSource;
length: number;
}
interface AesDerivedKeyParams extends Algorithm {
length: number;
}
interface AesGcmParams extends Algorithm {
additionalData?: BufferSource;
iv: BufferSource;
tagLength?: number;
}
interface AesKeyAlgorithm extends KeyAlgorithm {
length: number;
}
interface AesKeyGenParams extends Algorithm {
length: number;
}
interface Algorithm {
name: string;
}
interface AudioConfiguration {
bitrate?: number;
channels?: string;
contentType: string;
samplerate?: number;
spatialRendering?: boolean;
}
interface AvcEncoderConfig {
format?: AvcBitstreamFormat;
}
interface BlobPropertyBag {
endings?: EndingType;
type?: string;
}
interface CSSMatrixComponentOptions {
is2D?: boolean;
}
interface CSSNumericType {
angle?: number;
flex?: number;
frequency?: number;
length?: number;
percent?: number;
percentHint?: CSSNumericBaseType;
resolution?: number;
time?: number;
}
interface CacheQueryOptions {
ignoreMethod?: boolean;
ignoreSearch?: boolean;
ignoreVary?: boolean;
}
interface ClientQueryOptions {
includeUncontrolled?: boolean;
type?: ClientTypes;
}
interface CloseEventInit extends EventInit {
code?: number;
reason?: string;
wasClean?: boolean;
}
interface CryptoKeyPair {
privateKey: CryptoKey;
publicKey: CryptoKey;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
interface DOMMatrix2DInit {
a?: number;
b?: number;
c?: number;
d?: number;
e?: number;
f?: number;
m11?: number;
m12?: number;
m21?: number;
m22?: number;
m41?: number;
m42?: number;
}
interface DOMMatrixInit extends DOMMatrix2DInit {
is2D?: boolean;
m13?: number;
m14?: number;
m23?: number;
m24?: number;
m31?: number;
m32?: number;
m33?: number;
m34?: number;
m43?: number;
m44?: number;
}
interface DOMPointInit {
w?: number;
x?: number;
y?: number;
z?: number;
}
interface DOMQuadInit {
p1?: DOMPointInit;
p2?: DOMPointInit;
p3?: DOMPointInit;
p4?: DOMPointInit;
}
interface DOMRectInit {
height?: number;
width?: number;
x?: number;
y?: number;
}
interface EcKeyGenParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcKeyImportParams extends Algorithm {
namedCurve: NamedCurve;
}
interface EcdhKeyDeriveParams extends Algorithm {
public: CryptoKey;
}
interface EcdsaParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface EncodedVideoChunkInit {
data: AllowSharedBufferSource;
duration?: number;
timestamp: number;
type: EncodedVideoChunkType;
}
interface EncodedVideoChunkMetadata {
decoderConfig?: VideoDecoderConfig;
}
interface ErrorEventInit extends EventInit {
colno?: number;
error?: any;
filename?: string;
lineno?: number;
message?: string;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
interface EventSourceInit {
withCredentials?: boolean;
}
interface ExtendableEventInit extends EventInit {
}
interface ExtendableMessageEventInit extends ExtendableEventInit {
data?: any;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: Client | ServiceWorker | MessagePort | null;
}
interface FetchEventInit extends ExtendableEventInit {
clientId?: string;
handled?: Promise<undefined>;
preloadResponse?: Promise<any>;
replacesClientId?: string;
request: Request;
resultingClientId?: string;
}
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
interface FileSystemCreateWritableOptions {
keepExistingData?: boolean;
}
interface FileSystemGetDirectoryOptions {
create?: boolean;
}
interface FileSystemGetFileOptions {
create?: boolean;
}
interface FileSystemReadWriteOptions {
at?: number;
}
interface FileSystemRemoveOptions {
recursive?: boolean;
}
interface FontFaceDescriptors {
ascentOverride?: string;
descentOverride?: string;
display?: FontDisplay;
featureSettings?: string;
lineGapOverride?: string;
stretch?: string;
style?: string;
unicodeRange?: string;
weight?: string;
}
interface FontFaceSetLoadEventInit extends EventInit {
fontfaces?: FontFace[];
}
interface GetNotificationOptions {
tag?: string;
}
interface HkdfParams extends Algorithm {
hash: HashAlgorithmIdentifier;
info: BufferSource;
salt: BufferSource;
}
interface HmacImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface HmacKeyGenParams extends Algorithm {
hash: HashAlgorithmIdentifier;
length?: number;
}
interface IDBDatabaseInfo {
name?: string;
version?: number;
}
interface IDBIndexParameters {
multiEntry?: boolean;
unique?: boolean;
}
interface IDBObjectStoreParameters {
autoIncrement?: boolean;
keyPath?: string | string[] | null;
}
interface IDBTransactionOptions {
durability?: IDBTransactionDurability;
}
interface IDBVersionChangeEventInit extends EventInit {
newVersion?: number | null;
oldVersion?: number;
}
interface ImageBitmapOptions {
colorSpaceConversion?: ColorSpaceConversion;
imageOrientation?: ImageOrientation;
premultiplyAlpha?: PremultiplyAlpha;
resizeHeight?: number;
resizeQuality?: ResizeQuality;
resizeWidth?: number;
}
interface ImageBitmapRenderingContextSettings {
alpha?: boolean;
}
interface ImageDataSettings {
colorSpace?: PredefinedColorSpace;
}
interface ImageEncodeOptions {
quality?: number;
type?: string;
}
interface ImportMeta {
url: string;
}
interface JsonWebKey {
alg?: string;
crv?: string;
d?: string;
dp?: string;
dq?: string;
e?: string;
ext?: boolean;
k?: string;
key_ops?: string[];
kty?: string;
n?: string;
oth?: RsaOtherPrimesInfo[];
p?: string;
q?: string;
qi?: string;
use?: string;
x?: string;
y?: string;
}
interface KeyAlgorithm {
name: string;
}
interface LockInfo {
clientId?: string;
mode?: LockMode;
name?: string;
}
interface LockManagerSnapshot {
held?: LockInfo[];
pending?: LockInfo[];
}
interface LockOptions {
ifAvailable?: boolean;
mode?: LockMode;
signal?: AbortSignal;
steal?: boolean;
}
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaDecodingConfiguration;
}
interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
configuration?: MediaEncodingConfiguration;
}
interface MediaCapabilitiesInfo {
powerEfficient: boolean;
smooth: boolean;
supported: boolean;
}
interface MediaConfiguration {
audio?: AudioConfiguration;
video?: VideoConfiguration;
}
interface MediaDecodingConfiguration extends MediaConfiguration {
type: MediaDecodingType;
}
interface MediaEncodingConfiguration extends MediaConfiguration {
type: MediaEncodingType;
}
interface MessageEventInit<T = any> extends EventInit {
data?: T;
lastEventId?: string;
origin?: string;
ports?: MessagePort[];
source?: MessageEventSource | null;
}
interface MultiCacheQueryOptions extends CacheQueryOptions {
cacheName?: string;
}
interface NavigationPreloadState {
enabled?: boolean;
headerValue?: string;
}
interface NotificationEventInit extends ExtendableEventInit {
action?: string;
notification: Notification;
}
interface NotificationOptions {
badge?: string;
body?: string;
data?: any;
dir?: NotificationDirection;
icon?: string;
lang?: string;
requireInteraction?: boolean;
silent?: boolean | null;
tag?: string;
}
interface Pbkdf2Params extends Algorithm {
hash: HashAlgorithmIdentifier;
iterations: number;
salt: BufferSource;
}
interface PerformanceMarkOptions {
detail?: any;
startTime?: DOMHighResTimeStamp;
}
interface PerformanceMeasureOptions {
detail?: any;
duration?: DOMHighResTimeStamp;
end?: string | DOMHighResTimeStamp;
start?: string | DOMHighResTimeStamp;
}
interface PerformanceObserverInit {
buffered?: boolean;
entryTypes?: string[];
type?: string;
}
interface PermissionDescriptor {
name: PermissionName;
}
interface PlaneLayout {
offset: number;
stride: number;
}
interface ProgressEventInit extends EventInit {
lengthComputable?: boolean;
loaded?: number;
total?: number;
}
interface PromiseRejectionEventInit extends EventInit {
promise: Promise<any>;
reason?: any;
}
interface PushEventInit extends ExtendableEventInit {
data?: PushMessageDataInit;
}
interface PushSubscriptionJSON {
endpoint?: string;
expirationTime?: EpochTimeStamp | null;
keys?: Record<string, string>;
}
interface PushSubscriptionOptionsInit {
applicationServerKey?: BufferSource | string | null;
userVisibleOnly?: boolean;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySize<T>;
}
interface QueuingStrategyInit {
/**
* Creates a new ByteLengthQueuingStrategy with the provided high water mark.
*
* Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.
*/
highWaterMark: number;
}
interface RTCEncodedAudioFrameMetadata {
contributingSources?: number[];
payloadType?: number;
sequenceNumber?: number;
synchronizationSource?: number;
}
interface RTCEncodedVideoFrameMetadata {
contributingSources?: number[];
dependencies?: number[];
frameId?: number;
height?: number;
payloadType?: number;
spatialIndex?: number;
synchronizationSource?: number;
temporalIndex?: number;
timestamp?: number;
width?: number;
}
interface ReadableStreamGetReaderOptions {
/**
* Creates a ReadableStreamBYOBReader and locks the stream to the new reader.
*
* This call behaves the same way as the no-argument variant, except that it only works on readable byte streams, i.e. streams which were constructed specifically with the ability to handle "bring your own buffer" reading. The returned BYOB reader provides the ability to directly read individual chunks from the stream via its read() method, into developer-supplied buffers, allowing more precise control over allocation.
*/
mode?: ReadableStreamReaderMode;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
interface ReadableWritablePair<R = any, W = any> {
readable: ReadableStream<R>;
/**
* Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*/
writable: WritableStream<W>;
}
interface RegistrationOptions {
scope?: string;
type?: WorkerType;
updateViaCache?: ServiceWorkerUpdateViaCache;
}
interface ReportingObserverOptions {
buffered?: boolean;
types?: string[];
}
interface RequestInit {
/** A BodyInit object or null to set request's body. */
body?: BodyInit | null;
/** A string indicating how the request will interact with the browser's cache to set request's cache. */
cache?: RequestCache;
/** A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials. */
credentials?: RequestCredentials;
/** A Headers object, an object literal, or an array of two-item arrays to set request's headers. */
headers?: HeadersInit;
/** A cryptographic hash of the resource to be fetched by request. Sets request's integrity. */
integrity?: string;
/** A boolean to set request's keepalive. */
keepalive?: boolean;
/** A string to set request's method. */
method?: string;
/** A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode. */
mode?: RequestMode;
priority?: RequestPriority;
/** A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect. */
redirect?: RequestRedirect;
/** A string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer. */
referrer?: string;
/** A referrer policy to set request's referrerPolicy. */
referrerPolicy?: ReferrerPolicy;
/** An AbortSignal to set request's signal. */
signal?: AbortSignal | null;
/** Can only be null. Used to disassociate request from any Window. */
window?: null;
}
interface ResponseInit {
headers?: HeadersInit;
status?: number;
statusText?: string;
}
interface RsaHashedImportParams extends Algorithm {
hash: HashAlgorithmIdentifier;
}
interface RsaHashedKeyGenParams extends RsaKeyGenParams {
hash: HashAlgorithmIdentifier;
}
interface RsaKeyGenParams extends Algorithm {
modulusLength: number;
publicExponent: BigInteger;
}
interface RsaOaepParams extends Algorithm {
label?: BufferSource;
}
interface RsaOtherPrimesInfo {
d?: string;
r?: string;
t?: string;
}
interface RsaPssParams extends Algorithm {
saltLength: number;
}
interface SecurityPolicyViolationEventInit extends EventInit {
blockedURI?: string;
columnNumber?: number;
disposition: SecurityPolicyViolationEventDisposition;
documentURI: string;
effectiveDirective: string;
lineNumber?: number;
originalPolicy: string;
referrer?: string;
sample?: string;
sourceFile?: string;
statusCode: number;
violatedDirective: string;
}
interface StorageEstimate {
quota?: number;
usage?: number;
}
interface StreamPipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
/**
* Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.
*
* Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.
*
* Errors and closures of the source and destination streams propagate as follows:
*
* An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.
*
* An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.
*
* When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.
*
* If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.
*
* The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.
*/
preventClose?: boolean;
signal?: AbortSignal;
}
interface StructuredSerializeOptions {
transfer?: Transferable[];
}
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextEncoderEncodeIntoResult {
read: number;
written: number;
}
interface Transformer<I = any, O = any> {
flush?: TransformerFlushCallback<O>;
readableType?: undefined;
start?: TransformerStartCallback<O>;
transform?: TransformerTransformCallback<I, O>;
writableType?: undefined;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableByteStreamController) => void | PromiseLike<void>;
start?: (controller: ReadableByteStreamController) => any;
type: "bytes";
}
interface UnderlyingDefaultSource<R = any> {
cancel?: UnderlyingSourceCancelCallback;
pull?: (controller: ReadableStreamDefaultController<R>) => void | PromiseLike<void>;
start?: (controller: ReadableStreamDefaultController<R>) => any;
type?: undefined;
}
interface UnderlyingSink<W = any> {
abort?: UnderlyingSinkAbortCallback;
close?: UnderlyingSinkCloseCallback;
start?: UnderlyingSinkStartCallback;
type?: undefined;
write?: UnderlyingSinkWriteCallback<W>;
}
interface UnderlyingSource<R = any> {
autoAllocateChunkSize?: number;
cancel?: UnderlyingSourceCancelCallback;
pull?: UnderlyingSourcePullCallback<R>;
start?: UnderlyingSourceStartCallback<R>;
type?: ReadableStreamType;
}
interface VideoColorSpaceInit {
fullRange?: boolean | null;
matrix?: VideoMatrixCoefficients | null;
primaries?: VideoColorPrimaries | null;
transfer?: VideoTransferCharacteristics | null;
}
interface VideoConfiguration {
bitrate: number;
colorGamut?: ColorGamut;
contentType: string;
framerate: number;
hdrMetadataType?: HdrMetadataType;
height: number;
scalabilityMode?: string;
transferFunction?: TransferFunction;
width: number;
}
interface VideoDecoderConfig {
codec: string;
codedHeight?: number;
codedWidth?: number;
colorSpace?: VideoColorSpaceInit;
description?: AllowSharedBufferSource;
displayAspectHeight?: number;
displayAspectWidth?: number;
hardwareAcceleration?: HardwareAcceleration;
optimizeForLatency?: boolean;
}
interface VideoDecoderInit {
error: WebCodecsErrorCallback;
output: VideoFrameOutputCallback;
}
interface VideoDecoderSupport {
config?: VideoDecoderConfig;
supported?: boolean;
}
interface VideoEncoderConfig {
alpha?: AlphaOption;
avc?: AvcEncoderConfig;
bitrate?: number;
bitrateMode?: VideoEncoderBitrateMode;
codec: string;
displayHeight?: number;
displayWidth?: number;
framerate?: number;
hardwareAcceleration?: HardwareAcceleration;
height: number;
latencyMode?: LatencyMode;
scalabilityMode?: string;
width: number;
}
interface VideoEncoderEncodeOptions {
keyFrame?: boolean;
}
interface VideoEncoderInit {
error: WebCodecsErrorCallback;
output: EncodedVideoChunkOutputCallback;
}
interface VideoEncoderSupport {
config?: VideoEncoderConfig;
supported?: boolean;
}
interface VideoFrameBufferInit {
codedHeight: number;
codedWidth: number;
colorSpace?: VideoColorSpaceInit;
displayHeight?: number;
displayWidth?: number;
duration?: number;
format: VideoPixelFormat;
layout?: PlaneLayout[];
timestamp: number;
visibleRect?: DOMRectInit;
}
interface VideoFrameCopyToOptions {
layout?: PlaneLayout[];
rect?: DOMRectInit;
}
interface VideoFrameInit {
alpha?: AlphaOption;
displayHeight?: number;
displayWidth?: number;
duration?: number;
timestamp?: number;
visibleRect?: DOMRectInit;
}
interface WebGLContextAttributes {
alpha?: boolean;
antialias?: boolean;
depth?: boolean;
desynchronized?: boolean;
failIfMajorPerformanceCaveat?: boolean;
powerPreference?: WebGLPowerPreference;
premultipliedAlpha?: boolean;
preserveDrawingBuffer?: boolean;
stencil?: boolean;
}
interface WebGLContextEventInit extends EventInit {
statusMessage?: string;
}
interface WebTransportCloseInfo {
closeCode?: number;
reason?: string;
}
interface WebTransportErrorOptions {
source?: WebTransportErrorSource;
streamErrorCode?: number | null;
}
interface WebTransportHash {
algorithm?: string;
value?: BufferSource;
}
interface WebTransportOptions {
allowPooling?: boolean;
congestionControl?: WebTransportCongestionControl;
requireUnreliable?: boolean;
serverCertificateHashes?: WebTransportHash[];
}
interface WebTransportSendStreamOptions {
sendOrder?: number;
}
interface WorkerOptions {
credentials?: RequestCredentials;
name?: string;
type?: WorkerType;
}
interface WriteParams {
data?: BufferSource | Blob | string | null;
position?: number | null;
size?: number | null;
type: WriteCommandType;
}
/**
* The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays)
*/
interface ANGLE_instanced_arrays {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE) */
drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE) */
drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE) */
vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 0x88FE;
}
/**
* A controller object that allows you to abort one or more DOM requests as and when desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController)
*/
interface AbortController {
/**
* Returns the AbortSignal object associated with this object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/signal)
*/
readonly signal: AbortSignal;
/**
* Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortController/abort)
*/
abort(reason?: any): void;
}
declare var AbortController: {
prototype: AbortController;
new(): AbortController;
};
interface AbortSignalEventMap {
"abort": Event;
}
/**
* A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal)
*/
interface AbortSignal extends EventTarget {
/**
* Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/aborted)
*/
readonly aborted: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_event) */
onabort: ((this: AbortSignal, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/reason) */
readonly reason: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/throwIfAborted) */
throwIfAborted(): void;
addEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var AbortSignal: {
prototype: AbortSignal;
new(): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/abort_static) */
abort(reason?: any): AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/AbortSignal/timeout_static) */
timeout(milliseconds: number): AbortSignal;
};
interface AbstractWorkerEventMap {
"error": ErrorEvent;
}
interface AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/error_event) */
onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;
addEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof AbstractWorkerEventMap>(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
interface AnimationFrameProvider {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
requestAnimationFrame(callback: FrameRequestCallback): number;
}
/**
* A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob)
*/
interface Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
slice(start?: number, end?: number, contentType?: string): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/stream) */
stream(): ReadableStream<Uint8Array>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
text(): Promise<string>;
}
declare var Blob: {
prototype: Blob;
new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */
readonly body: ReadableStream<Uint8Array> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */
readonly bodyUsed: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */
arrayBuffer(): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */
blob(): Promise<Blob>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/formData) */
formData(): Promise<FormData>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/json) */
json(): Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/text) */
text(): Promise<string>;
}
interface BroadcastChannelEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel) */
interface BroadcastChannel extends EventTarget {
/**
* Returns the channel name (as passed to the constructor).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/message_event) */
onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/messageerror_event) */
onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;
/**
* Closes the BroadcastChannel object, opening it up to garbage collection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/close)
*/
close(): void;
/**
* Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/BroadcastChannel/postMessage)
*/
postMessage(message: any): void;
addEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof BroadcastChannelEventMap>(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var BroadcastChannel: {
prototype: BroadcastChannel;
new(name: string): BroadcastChannel;
};
/**
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy)
*/
interface ByteLengthQueuingStrategy extends QueuingStrategy<ArrayBufferView> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ByteLengthQueuingStrategy/size) */
readonly size: QueuingStrategySize<ArrayBufferView>;
}
declare var ByteLengthQueuingStrategy: {
prototype: ByteLengthQueuingStrategy;
new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSImageValue) */
interface CSSImageValue extends CSSStyleValue {
}
declare var CSSImageValue: {
prototype: CSSImageValue;
new(): CSSImageValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue) */
interface CSSKeywordValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSKeywordValue/value) */
value: string;
}
declare var CSSKeywordValue: {
prototype: CSSKeywordValue;
new(value: string): CSSKeywordValue;
};
interface CSSMathClamp extends CSSMathValue {
readonly lower: CSSNumericValue;
readonly upper: CSSNumericValue;
readonly value: CSSNumericValue;
}
declare var CSSMathClamp: {
prototype: CSSMathClamp;
new(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish): CSSMathClamp;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert) */
interface CSSMathInvert extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathInvert/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathInvert: {
prototype: CSSMathInvert;
new(arg: CSSNumberish): CSSMathInvert;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax) */
interface CSSMathMax extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMax/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMax: {
prototype: CSSMathMax;
new(...args: CSSNumberish[]): CSSMathMax;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin) */
interface CSSMathMin extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathMin/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathMin: {
prototype: CSSMathMin;
new(...args: CSSNumberish[]): CSSMathMin;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate) */
interface CSSMathNegate extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathNegate/value) */
readonly value: CSSNumericValue;
}
declare var CSSMathNegate: {
prototype: CSSMathNegate;
new(arg: CSSNumberish): CSSMathNegate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct) */
interface CSSMathProduct extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathProduct/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathProduct: {
prototype: CSSMathProduct;
new(...args: CSSNumberish[]): CSSMathProduct;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum) */
interface CSSMathSum extends CSSMathValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathSum/values) */
readonly values: CSSNumericArray;
}
declare var CSSMathSum: {
prototype: CSSMathSum;
new(...args: CSSNumberish[]): CSSMathSum;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue) */
interface CSSMathValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMathValue/operator) */
readonly operator: CSSMathOperator;
}
declare var CSSMathValue: {
prototype: CSSMathValue;
new(): CSSMathValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent) */
interface CSSMatrixComponent extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSMatrixComponent/matrix) */
matrix: DOMMatrix;
}
declare var CSSMatrixComponent: {
prototype: CSSMatrixComponent;
new(matrix: DOMMatrixReadOnly, options?: CSSMatrixComponentOptions): CSSMatrixComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray) */
interface CSSNumericArray {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericArray/length) */
readonly length: number;
forEach(callbackfn: (value: CSSNumericValue, key: number, parent: CSSNumericArray) => void, thisArg?: any): void;
[index: number]: CSSNumericValue;
}
declare var CSSNumericArray: {
prototype: CSSNumericArray;
new(): CSSNumericArray;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue) */
interface CSSNumericValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/add) */
add(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/div) */
div(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/equals) */
equals(...value: CSSNumberish[]): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/max) */
max(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/min) */
min(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/mul) */
mul(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/sub) */
sub(...values: CSSNumberish[]): CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/to) */
to(unit: string): CSSUnitValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/toSum) */
toSum(...units: string[]): CSSMathSum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSNumericValue/type) */
type(): CSSNumericType;
}
declare var CSSNumericValue: {
prototype: CSSNumericValue;
new(): CSSNumericValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective) */
interface CSSPerspective extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSPerspective/length) */
length: CSSPerspectiveValue;
}
declare var CSSPerspective: {
prototype: CSSPerspective;
new(length: CSSPerspectiveValue): CSSPerspective;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate) */
interface CSSRotate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/angle) */
angle: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSRotate/z) */
z: CSSNumberish;
}
declare var CSSRotate: {
prototype: CSSRotate;
new(angle: CSSNumericValue): CSSRotate;
new(x: CSSNumberish, y: CSSNumberish, z: CSSNumberish, angle: CSSNumericValue): CSSRotate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale) */
interface CSSScale extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/x) */
x: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/y) */
y: CSSNumberish;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSScale/z) */
z: CSSNumberish;
}
declare var CSSScale: {
prototype: CSSScale;
new(x: CSSNumberish, y: CSSNumberish, z?: CSSNumberish): CSSScale;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew) */
interface CSSSkew extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ax) */
ax: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkew/ay) */
ay: CSSNumericValue;
}
declare var CSSSkew: {
prototype: CSSSkew;
new(ax: CSSNumericValue, ay: CSSNumericValue): CSSSkew;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX) */
interface CSSSkewX extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewX/ax) */
ax: CSSNumericValue;
}
declare var CSSSkewX: {
prototype: CSSSkewX;
new(ax: CSSNumericValue): CSSSkewX;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY) */
interface CSSSkewY extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSSkewY/ay) */
ay: CSSNumericValue;
}
declare var CSSSkewY: {
prototype: CSSSkewY;
new(ay: CSSNumericValue): CSSSkewY;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSStyleValue) */
interface CSSStyleValue {
toString(): string;
}
declare var CSSStyleValue: {
prototype: CSSStyleValue;
new(): CSSStyleValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent) */
interface CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/is2D) */
is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformComponent/toMatrix) */
toMatrix(): DOMMatrix;
toString(): string;
}
declare var CSSTransformComponent: {
prototype: CSSTransformComponent;
new(): CSSTransformComponent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue) */
interface CSSTransformValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTransformValue/toMatrix) */
toMatrix(): DOMMatrix;
forEach(callbackfn: (value: CSSTransformComponent, key: number, parent: CSSTransformValue) => void, thisArg?: any): void;
[index: number]: CSSTransformComponent;
}
declare var CSSTransformValue: {
prototype: CSSTransformValue;
new(transforms: CSSTransformComponent[]): CSSTransformValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate) */
interface CSSTranslate extends CSSTransformComponent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/x) */
x: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/y) */
y: CSSNumericValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSTranslate/z) */
z: CSSNumericValue;
}
declare var CSSTranslate: {
prototype: CSSTranslate;
new(x: CSSNumericValue, y: CSSNumericValue, z?: CSSNumericValue): CSSTranslate;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue) */
interface CSSUnitValue extends CSSNumericValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/unit) */
readonly unit: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnitValue/value) */
value: number;
}
declare var CSSUnitValue: {
prototype: CSSUnitValue;
new(value: number, unit: string): CSSUnitValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue) */
interface CSSUnparsedValue extends CSSStyleValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSUnparsedValue/length) */
readonly length: number;
forEach(callbackfn: (value: CSSUnparsedSegment, key: number, parent: CSSUnparsedValue) => void, thisArg?: any): void;
[index: number]: CSSUnparsedSegment;
}
declare var CSSUnparsedValue: {
prototype: CSSUnparsedValue;
new(members: CSSUnparsedSegment[]): CSSUnparsedValue;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue) */
interface CSSVariableReferenceValue {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/fallback) */
readonly fallback: CSSUnparsedValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CSSVariableReferenceValue/variable) */
variable: string;
}
declare var CSSVariableReferenceValue: {
prototype: CSSVariableReferenceValue;
new(variable: string, fallback?: CSSUnparsedValue | null): CSSVariableReferenceValue;
};
/**
* Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache)
*/
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/add) */
add(request: RequestInfo | URL): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: RequestInfo[]): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/delete) */
delete(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/keys) */
keys(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Request>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/match) */
match(request: RequestInfo | URL, options?: CacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/matchAll) */
matchAll(request?: RequestInfo | URL, options?: CacheQueryOptions): Promise<ReadonlyArray<Response>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/put) */
put(request: RequestInfo | URL, response: Response): Promise<void>;
}
declare var Cache: {
prototype: Cache;
new(): Cache;
};
/**
* The storage for Cache objects.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage)
*/
interface CacheStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/delete) */
delete(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/has) */
has(cacheName: string): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/keys) */
keys(): Promise<string[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/match) */
match(request: RequestInfo | URL, options?: MultiCacheQueryOptions): Promise<Response | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CacheStorage/open) */
open(cacheName: string): Promise<Cache>;
}
declare var CacheStorage: {
prototype: CacheStorage;
new(): CacheStorage;
};
interface CanvasCompositing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalAlpha) */
globalAlpha: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation) */
globalCompositeOperation: GlobalCompositeOperation;
}
interface CanvasDrawImage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/drawImage) */
drawImage(image: CanvasImageSource, dx: number, dy: number): void;
drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;
drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;
}
interface CanvasDrawPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/beginPath) */
beginPath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clip) */
clip(fillRule?: CanvasFillRule): void;
clip(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fill) */
fill(fillRule?: CanvasFillRule): void;
fill(path: Path2D, fillRule?: CanvasFillRule): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInPath) */
isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;
isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/isPointInStroke) */
isPointInStroke(x: number, y: number): boolean;
isPointInStroke(path: Path2D, x: number, y: number): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/stroke) */
stroke(): void;
stroke(path: Path2D): void;
}
interface CanvasFillStrokeStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillStyle) */
fillStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeStyle) */
strokeStyle: string | CanvasGradient | CanvasPattern;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createConicGradient) */
createConicGradient(startAngle: number, x: number, y: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createLinearGradient) */
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createPattern) */
createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createRadialGradient) */
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
}
interface CanvasFilters {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/filter) */
filter: string;
}
/**
* An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient)
*/
interface CanvasGradient {
/**
* Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.
*
* Throws an "IndexSizeError" DOMException if the offset is out of range. Throws a "SyntaxError" DOMException if the color cannot be parsed.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasGradient/addColorStop)
*/
addColorStop(offset: number, color: string): void;
}
declare var CanvasGradient: {
prototype: CanvasGradient;
new(): CanvasGradient;
};
interface CanvasImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/createImageData) */
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getImageData) */
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/putImageData) */
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
interface CanvasImageSmoothing {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled) */
imageSmoothingEnabled: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/imageSmoothingQuality) */
imageSmoothingQuality: ImageSmoothingQuality;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arc) */
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/arcTo) */
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo) */
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/closePath) */
closePath(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/ellipse) */
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineTo) */
lineTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/moveTo) */
moveTo(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo) */
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rect) */
rect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | (number | DOMPointInit)[]): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineCap) */
lineCap: CanvasLineCap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineDashOffset) */
lineDashOffset: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineJoin) */
lineJoin: CanvasLineJoin;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/lineWidth) */
lineWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/miterLimit) */
miterLimit: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getLineDash) */
getLineDash(): number[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: number[]): void;
}
/**
* An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern)
*/
interface CanvasPattern {
/**
* Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasPattern/setTransform)
*/
setTransform(transform?: DOMMatrix2DInit): void;
}
declare var CanvasPattern: {
prototype: CanvasPattern;
new(): CanvasPattern;
};
interface CanvasRect {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/clearRect) */
clearRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillRect) */
fillRect(x: number, y: number, w: number, h: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeRect) */
strokeRect(x: number, y: number, w: number, h: number): void;
}
interface CanvasShadowStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowBlur) */
shadowBlur: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowColor) */
shadowColor: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX) */
shadowOffsetX: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY) */
shadowOffsetY: number;
}
interface CanvasState {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/reset) */
reset(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/restore) */
restore(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/save) */
save(): void;
}
interface CanvasText {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fillText) */
fillText(text: string, x: number, y: number, maxWidth?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/measureText) */
measureText(text: string): TextMetrics;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/strokeText) */
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
interface CanvasTextDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/direction) */
direction: CanvasDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/font) */
font: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontKerning) */
fontKerning: CanvasFontKerning;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontStretch) */
fontStretch: CanvasFontStretch;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/fontVariantCaps) */
fontVariantCaps: CanvasFontVariantCaps;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/letterSpacing) */
letterSpacing: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textAlign) */
textAlign: CanvasTextAlign;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textBaseline) */
textBaseline: CanvasTextBaseline;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/textRendering) */
textRendering: CanvasTextRendering;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/wordSpacing) */
wordSpacing: string;
}
interface CanvasTransform {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/getTransform) */
getTransform(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/resetTransform) */
resetTransform(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/rotate) */
rotate(angle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/scale) */
scale(x: number, y: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setTransform) */
setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;
setTransform(transform?: DOMMatrix2DInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/transform) */
transform(a: number, b: number, c: number, d: number, e: number, f: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/translate) */
translate(x: number, y: number): void;
}
/**
* The Client\xA0interface represents an executable context such as a Worker, or a SharedWorker. Window clients are represented by the more-specific\xA0WindowClient. You can get\xA0Client/WindowClient\xA0objects from methods such as Clients.matchAll() and\xA0Clients.get().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client)
*/
interface Client {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/frameType) */
readonly frameType: FrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/id) */
readonly id: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/type) */
readonly type: ClientTypes;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Client/postMessage) */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
}
declare var Client: {
prototype: Client;
new(): Client;
};
/**
* Provides access to\xA0Client\xA0objects. Access it\xA0via self.clients\xA0within a\xA0service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients)
*/
interface Clients {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/claim) */
claim(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/get) */
get(id: string): Promise<Client | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/matchAll) */
matchAll<T extends ClientQueryOptions>(options?: T): Promise<ReadonlyArray<T["type"] extends "window" ? WindowClient : Client>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Clients/openWindow) */
openWindow(url: string | URL): Promise<WindowClient | null>;
}
declare var Clients: {
prototype: Clients;
new(): Clients;
};
/**
* A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent)
*/
interface CloseEvent extends Event {
/**
* Returns the WebSocket connection close code provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/code)
*/
readonly code: number;
/**
* Returns the WebSocket connection close reason provided by the server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/reason)
*/
readonly reason: string;
/**
* Returns true if the connection closed cleanly; false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CloseEvent/wasClean)
*/
readonly wasClean: boolean;
}
declare var CloseEvent: {
prototype: CloseEvent;
new(type: string, eventInitDict?: CloseEventInit): CloseEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream) */
interface CompressionStream extends GenericTransformStream {
}
declare var CompressionStream: {
prototype: CompressionStream;
new(format: CompressionFormat): CompressionStream;
};
/**
* This Streams API interface provides\xA0a built-in byte length queuing strategy that can be used when constructing streams.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy)
*/
interface CountQueuingStrategy extends QueuingStrategy {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/highWaterMark) */
readonly highWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CountQueuingStrategy/size) */
readonly size: QueuingStrategySize;
}
declare var CountQueuingStrategy: {
prototype: CountQueuingStrategy;
new(init: QueuingStrategyInit): CountQueuingStrategy;
};
/**
* Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto)
*/
interface Crypto {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/subtle)
*/
readonly subtle: SubtleCrypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
getRandomValues<T extends ArrayBufferView | null>(array: T): T;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/randomUUID)
*/
randomUUID(): \`\${string}-\${string}-\${string}-\${string}-\${string}\`;
}
declare var Crypto: {
prototype: Crypto;
new(): Crypto;
};
/**
* The CryptoKey dictionary of the Web Crypto API represents a cryptographic key.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey)
*/
interface CryptoKey {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/algorithm) */
readonly algorithm: KeyAlgorithm;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/extractable) */
readonly extractable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/type) */
readonly type: KeyType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CryptoKey/usages) */
readonly usages: KeyUsage[];
}
declare var CryptoKey: {
prototype: CryptoKey;
new(): CryptoKey;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent) */
interface CustomEvent<T = any> extends Event {
/**
* Returns any custom data event was created with. Typically used for synthetic events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/detail)
*/
readonly detail: T;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/CustomEvent/initCustomEvent)
*/
initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;
}
declare var CustomEvent: {
prototype: CustomEvent;
new<T>(type: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>;
};
/**
* An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException)
*/
interface DOMException extends Error {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/code)
*/
readonly code: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/message) */
readonly message: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMException/name) */
readonly name: string;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
}
declare var DOMException: {
prototype: DOMException;
new(message?: string, name?: string): DOMException;
readonly INDEX_SIZE_ERR: 1;
readonly DOMSTRING_SIZE_ERR: 2;
readonly HIERARCHY_REQUEST_ERR: 3;
readonly WRONG_DOCUMENT_ERR: 4;
readonly INVALID_CHARACTER_ERR: 5;
readonly NO_DATA_ALLOWED_ERR: 6;
readonly NO_MODIFICATION_ALLOWED_ERR: 7;
readonly NOT_FOUND_ERR: 8;
readonly NOT_SUPPORTED_ERR: 9;
readonly INUSE_ATTRIBUTE_ERR: 10;
readonly INVALID_STATE_ERR: 11;
readonly SYNTAX_ERR: 12;
readonly INVALID_MODIFICATION_ERR: 13;
readonly NAMESPACE_ERR: 14;
readonly INVALID_ACCESS_ERR: 15;
readonly VALIDATION_ERR: 16;
readonly TYPE_MISMATCH_ERR: 17;
readonly SECURITY_ERR: 18;
readonly NETWORK_ERR: 19;
readonly ABORT_ERR: 20;
readonly URL_MISMATCH_ERR: 21;
readonly QUOTA_EXCEEDED_ERR: 22;
readonly TIMEOUT_ERR: 23;
readonly INVALID_NODE_TYPE_ERR: 24;
readonly DATA_CLONE_ERR: 25;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix) */
interface DOMMatrix extends DOMMatrixReadOnly {
a: number;
b: number;
c: number;
d: number;
e: number;
f: number;
m11: number;
m12: number;
m13: number;
m14: number;
m21: number;
m22: number;
m23: number;
m24: number;
m31: number;
m32: number;
m33: number;
m34: number;
m41: number;
m42: number;
m43: number;
m44: number;
invertSelf(): DOMMatrix;
multiplySelf(other?: DOMMatrixInit): DOMMatrix;
preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;
rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;
rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scale3dSelf) */
scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrix/scaleSelf) */
scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
skewXSelf(sx?: number): DOMMatrix;
skewYSelf(sy?: number): DOMMatrix;
translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrix: {
prototype: DOMMatrix;
new(init?: string | number[]): DOMMatrix;
fromFloat32Array(array32: Float32Array): DOMMatrix;
fromFloat64Array(array64: Float64Array): DOMMatrix;
fromMatrix(other?: DOMMatrixInit): DOMMatrix;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly) */
interface DOMMatrixReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/a) */
readonly a: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/b) */
readonly b: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/c) */
readonly c: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/d) */
readonly d: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/e) */
readonly e: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/f) */
readonly f: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/is2D) */
readonly is2D: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/isIdentity) */
readonly isIdentity: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m11) */
readonly m11: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m12) */
readonly m12: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m13) */
readonly m13: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m14) */
readonly m14: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m21) */
readonly m21: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m22) */
readonly m22: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m23) */
readonly m23: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m24) */
readonly m24: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m31) */
readonly m31: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m32) */
readonly m32: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m33) */
readonly m33: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m34) */
readonly m34: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m41) */
readonly m41: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m42) */
readonly m42: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m43) */
readonly m43: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/m44) */
readonly m44: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipX) */
flipX(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/flipY) */
flipY(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/inverse) */
inverse(): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/multiply) */
multiply(other?: DOMMatrixInit): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotate) */
rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle) */
rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/rotateFromVector) */
rotateFromVector(x?: number, y?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale) */
scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scale3d) */
scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)
*/
scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewX) */
skewX(sx?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/skewY) */
skewY(sy?: number): DOMMatrix;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat32Array) */
toFloat32Array(): Float32Array;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/toFloat64Array) */
toFloat64Array(): Float64Array;
toJSON(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/transformPoint) */
transformPoint(point?: DOMPointInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMMatrixReadOnly/translate) */
translate(tx?: number, ty?: number, tz?: number): DOMMatrix;
}
declare var DOMMatrixReadOnly: {
prototype: DOMMatrixReadOnly;
new(init?: string | number[]): DOMMatrixReadOnly;
fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;
fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;
fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint) */
interface DOMPoint extends DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/w) */
w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/x) */
x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/y) */
y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/z) */
z: number;
}
declare var DOMPoint: {
prototype: DOMPoint;
new(x?: number, y?: number, z?: number, w?: number): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPoint/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPoint;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly) */
interface DOMPointReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/w) */
readonly w: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/y) */
readonly y: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/z) */
readonly z: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/matrixTransform) */
matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/toJSON) */
toJSON(): any;
}
declare var DOMPointReadOnly: {
prototype: DOMPointReadOnly;
new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMPointReadOnly/fromPoint_static) */
fromPoint(other?: DOMPointInit): DOMPointReadOnly;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad) */
interface DOMQuad {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p1) */
readonly p1: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p2) */
readonly p2: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p3) */
readonly p3: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/p4) */
readonly p4: DOMPoint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMQuad/getBounds) */
getBounds(): DOMRect;
toJSON(): any;
}
declare var DOMQuad: {
prototype: DOMQuad;
new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;
fromQuad(other?: DOMQuadInit): DOMQuad;
fromRect(other?: DOMRectInit): DOMQuad;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRect) */
interface DOMRect extends DOMRectReadOnly {
height: number;
width: number;
x: number;
y: number;
}
declare var DOMRect: {
prototype: DOMRect;
new(x?: number, y?: number, width?: number, height?: number): DOMRect;
fromRect(other?: DOMRectInit): DOMRect;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly) */
interface DOMRectReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/bottom) */
readonly bottom: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/height) */
readonly height: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/left) */
readonly left: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/right) */
readonly right: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/top) */
readonly top: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/width) */
readonly width: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/x) */
readonly x: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/y) */
readonly y: number;
toJSON(): any;
}
declare var DOMRectReadOnly: {
prototype: DOMRectReadOnly;
new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMRectReadOnly/fromRect_static) */
fromRect(other?: DOMRectInit): DOMRectReadOnly;
};
/**
* A type returned by some APIs which contains a list of DOMString (strings).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList)
*/
interface DOMStringList {
/**
* Returns the number of strings in strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/length)
*/
readonly length: number;
/**
* Returns true if strings contains string, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/contains)
*/
contains(string: string): boolean;
/**
* Returns the string with index index from strings.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DOMStringList/item)
*/
item(index: number): string | null;
[index: number]: string;
}
declare var DOMStringList: {
prototype: DOMStringList;
new(): DOMStringList;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DecompressionStream) */
interface DecompressionStream extends GenericTransformStream {
}
declare var DecompressionStream: {
prototype: DecompressionStream;
new(format: CompressionFormat): DecompressionStream;
};
interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
"rtctransform": Event;
}
/**
* (the Worker global scope) is accessible through the self keyword. Some additional global functions, namespaces objects, and constructors, not typically associated with the worker global scope, but available on it, are listed in the JavaScript Reference. See also: Functions available to workers.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope)
*/
interface DedicatedWorkerGlobalScope extends WorkerGlobalScope, AnimationFrameProvider {
/**
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/**
* Aborts dedicatedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
*/
close(): void;
/**
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var DedicatedWorkerGlobalScope: {
prototype: DedicatedWorkerGlobalScope;
new(): DedicatedWorkerGlobalScope;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_blend_minmax) */
interface EXT_blend_minmax {
readonly MIN_EXT: 0x8007;
readonly MAX_EXT: 0x8008;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_float) */
interface EXT_color_buffer_float {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_color_buffer_half_float) */
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: 0x881A;
readonly RGB16F_EXT: 0x881B;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_float_blend) */
interface EXT_float_blend {
}
/**
* The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_frag_depth)
*/
interface EXT_frag_depth {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_sRGB) */
interface EXT_sRGB {
readonly SRGB_EXT: 0x8C40;
readonly SRGB_ALPHA_EXT: 0x8C42;
readonly SRGB8_ALPHA8_EXT: 0x8C43;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: 0x8210;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_shader_texture_lod) */
interface EXT_shader_texture_lod {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_bptc) */
interface EXT_texture_compression_bptc {
readonly COMPRESSED_RGBA_BPTC_UNORM_EXT: 0x8E8C;
readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: 0x8E8D;
readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: 0x8E8E;
readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: 0x8E8F;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_compression_rgtc) */
interface EXT_texture_compression_rgtc {
readonly COMPRESSED_RED_RGTC1_EXT: 0x8DBB;
readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: 0x8DBC;
readonly COMPRESSED_RED_GREEN_RGTC2_EXT: 0x8DBD;
readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: 0x8DBE;
}
/**
* The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_filter_anisotropic)
*/
interface EXT_texture_filter_anisotropic {
readonly TEXTURE_MAX_ANISOTROPY_EXT: 0x84FE;
readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84FF;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EXT_texture_norm16) */
interface EXT_texture_norm16 {
readonly R16_EXT: 0x822A;
readonly RG16_EXT: 0x822C;
readonly RGB16_EXT: 0x8054;
readonly RGBA16_EXT: 0x805B;
readonly R16_SNORM_EXT: 0x8F98;
readonly RG16_SNORM_EXT: 0x8F99;
readonly RGB16_SNORM_EXT: 0x8F9A;
readonly RGBA16_SNORM_EXT: 0x8F9B;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk) */
interface EncodedVideoChunk {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/byteLength) */
readonly byteLength: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/type) */
readonly type: EncodedVideoChunkType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EncodedVideoChunk/copyTo) */
copyTo(destination: AllowSharedBufferSource): void;
}
declare var EncodedVideoChunk: {
prototype: EncodedVideoChunk;
new(init: EncodedVideoChunkInit): EncodedVideoChunk;
};
/**
* Events providing information related to errors in scripts or in files.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent)
*/
interface ErrorEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/colno) */
readonly colno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/error) */
readonly error: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/filename) */
readonly filename: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/lineno) */
readonly lineno: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ErrorEvent/message) */
readonly message: string;
}
declare var ErrorEvent: {
prototype: ErrorEvent;
new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;
};
/**
* An event which takes place in the DOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event)
*/
interface Event {
/**
* Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/bubbles)
*/
readonly bubbles: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelBubble)
*/
cancelBubble: boolean;
/**
* Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/cancelable)
*/
readonly cancelable: boolean;
/**
* Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composed)
*/
readonly composed: boolean;
/**
* Returns the object whose event listener's callback is currently being invoked.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/currentTarget)
*/
readonly currentTarget: EventTarget | null;
/**
* Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/defaultPrevented)
*/
readonly defaultPrevented: boolean;
/**
* Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/eventPhase)
*/
readonly eventPhase: number;
/**
* Returns true if event was dispatched by the user agent, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/isTrusted)
*/
readonly isTrusted: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/returnValue)
*/
returnValue: boolean;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/srcElement)
*/
readonly srcElement: EventTarget | null;
/**
* Returns the object to which event is dispatched (its target).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/target)
*/
readonly target: EventTarget | null;
/**
* Returns the event's timestamp as the number of milliseconds measured relative to the time origin.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/timeStamp)
*/
readonly timeStamp: DOMHighResTimeStamp;
/**
* Returns the type of event, e.g. "click", "hashchange", or "submit".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/type)
*/
readonly type: string;
/**
* Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/composedPath)
*/
composedPath(): EventTarget[];
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/initEvent)
*/
initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;
/**
* If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/preventDefault)
*/
preventDefault(): void;
/**
* Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopImmediatePropagation)
*/
stopImmediatePropagation(): void;
/**
* When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation)
*/
stopPropagation(): void;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
}
declare var Event: {
prototype: Event;
new(type: string, eventInitDict?: EventInit): Event;
readonly NONE: 0;
readonly CAPTURING_PHASE: 1;
readonly AT_TARGET: 2;
readonly BUBBLING_PHASE: 3;
};
interface EventListener {
(evt: Event): void;
}
interface EventListenerObject {
handleEvent(object: Event): void;
}
interface EventSourceEventMap {
"error": Event;
"message": MessageEvent;
"open": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource) */
interface EventSource extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/error_event) */
onerror: ((this: EventSource, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/message_event) */
onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/open_event) */
onopen: ((this: EventSource, ev: Event) => any) | null;
/**
* Returns the state of this EventSource object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/readyState)
*/
readonly readyState: number;
/**
* Returns the URL providing the event stream.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/url)
*/
readonly url: string;
/**
* Returns true if the credentials mode for connection requests to the URL providing the event stream is set to "include", and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/withCredentials)
*/
readonly withCredentials: boolean;
/**
* Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventSource/close)
*/
close(): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: (this: EventSource, event: MessageEvent) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var EventSource: {
prototype: EventSource;
new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSED: 2;
};
/**
* EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget)
*/
interface EventTarget {
/**
* Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.
*
* The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in \xA7 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.
*
* If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.
*
* The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/addEventListener)
*/
addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
dispatchEvent(event: Event): boolean;
/**
* Removes the event listener in target's event listener list with the same type, callback, and options.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/removeEventListener)
*/
removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;
}
declare var EventTarget: {
prototype: EventTarget;
new(): EventTarget;
};
/**
* Extends the lifetime of the install and activate events dispatched on the global scope as part of the service worker lifecycle. This ensures that any functional events (like FetchEvent) are not dispatched until it upgrades database schemas and deletes the outdated cache entries.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent)
*/
interface ExtendableEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableEvent/waitUntil) */
waitUntil(f: Promise<any>): void;
}
declare var ExtendableEvent: {
prototype: ExtendableEvent;
new(type: string, eventInitDict?: ExtendableEventInit): ExtendableEvent;
};
/**
* This ServiceWorker API interface represents the event object of a message event fired on a service worker (when a channel message is received on the ServiceWorkerGlobalScope from another context) \u2014 extends the lifetime of such events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent)
*/
interface ExtendableMessageEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/lastEventId) */
readonly lastEventId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/ports) */
readonly ports: ReadonlyArray<MessagePort>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ExtendableMessageEvent/source) */
readonly source: Client | ServiceWorker | MessagePort | null;
}
declare var ExtendableMessageEvent: {
prototype: ExtendableMessageEvent;
new(type: string, eventInitDict?: ExtendableMessageEventInit): ExtendableMessageEvent;
};
/**
* This is the event type for fetch\xA0events dispatched on the\xA0service worker global scope. It contains information about the fetch, including the\xA0request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent)
*/
interface FetchEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/clientId) */
readonly clientId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/handled) */
readonly handled: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/preloadResponse) */
readonly preloadResponse: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/request) */
readonly request: Request;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/resultingClientId) */
readonly resultingClientId: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FetchEvent/respondWith) */
respondWith(r: Response | PromiseLike<Response>): void;
}
declare var FetchEvent: {
prototype: FetchEvent;
new(type: string, eventInitDict: FetchEventInit): FetchEvent;
};
/**
* Provides information about files and allows JavaScript in a web page to access their content.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/File)
*/
interface File extends Blob {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
readonly lastModified: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/webkitRelativePath) */
readonly webkitRelativePath: string;
}
declare var File: {
prototype: File;
new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
/**
* An object of this type is returned by the files property of the HTML <input> element; this lets you access the list of files selected with the <input type="file"> element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList)
*/
interface FileList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileList/item) */
item(index: number): File | null;
[index: number]: File;
}
declare var FileList: {
prototype: FileList;
new(): FileList;
};
interface FileReaderEventMap {
"abort": ProgressEvent<FileReader>;
"error": ProgressEvent<FileReader>;
"load": ProgressEvent<FileReader>;
"loadend": ProgressEvent<FileReader>;
"loadstart": ProgressEvent<FileReader>;
"progress": ProgressEvent<FileReader>;
}
/**
* Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader)
*/
interface FileReader extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error) */
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort_event) */
onabort: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/error_event) */
onerror: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/load_event) */
onload: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadend_event) */
onloadend: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/loadstart_event) */
onloadstart: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/progress_event) */
onprogress: ((this: FileReader, ev: ProgressEvent<FileReader>) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readyState) */
readonly readyState: typeof FileReader.EMPTY | typeof FileReader.LOADING | typeof FileReader.DONE;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/result) */
readonly result: string | ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/abort) */
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): void;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsDataURL) */
readAsDataURL(blob: Blob): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReader/readAsText) */
readAsText(blob: Blob, encoding?: string): void;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
addEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FileReaderEventMap>(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FileReader: {
prototype: FileReader;
new(): FileReader;
readonly EMPTY: 0;
readonly LOADING: 1;
readonly DONE: 2;
};
/**
* Allows to read File or Blob objects in a synchronous way.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync)
*/
interface FileReaderSync {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsArrayBuffer) */
readAsArrayBuffer(blob: Blob): ArrayBuffer;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsBinaryString)
*/
readAsBinaryString(blob: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsDataURL) */
readAsDataURL(blob: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileReaderSync/readAsText) */
readAsText(blob: Blob, encoding?: string): string;
}
declare var FileReaderSync: {
prototype: FileReaderSync;
new(): FileReaderSync;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle)
*/
interface FileSystemDirectoryHandle extends FileSystemHandle {
readonly kind: "directory";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getDirectoryHandle) */
getDirectoryHandle(name: string, options?: FileSystemGetDirectoryOptions): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/getFileHandle) */
getFileHandle(name: string, options?: FileSystemGetFileOptions): Promise<FileSystemFileHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/removeEntry) */
removeEntry(name: string, options?: FileSystemRemoveOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemDirectoryHandle/resolve) */
resolve(possibleDescendant: FileSystemHandle): Promise<string[] | null>;
}
declare var FileSystemDirectoryHandle: {
prototype: FileSystemDirectoryHandle;
new(): FileSystemDirectoryHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle)
*/
interface FileSystemFileHandle extends FileSystemHandle {
readonly kind: "file";
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createSyncAccessHandle) */
createSyncAccessHandle(): Promise<FileSystemSyncAccessHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/createWritable) */
createWritable(options?: FileSystemCreateWritableOptions): Promise<FileSystemWritableFileStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemFileHandle/getFile) */
getFile(): Promise<File>;
}
declare var FileSystemFileHandle: {
prototype: FileSystemFileHandle;
new(): FileSystemFileHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle)
*/
interface FileSystemHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/kind) */
readonly kind: FileSystemHandleKind;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemHandle/isSameEntry) */
isSameEntry(other: FileSystemHandle): Promise<boolean>;
}
declare var FileSystemHandle: {
prototype: FileSystemHandle;
new(): FileSystemHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle)
*/
interface FileSystemSyncAccessHandle {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/getSize) */
getSize(): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/read) */
read(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/truncate) */
truncate(newSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemSyncAccessHandle/write) */
write(buffer: AllowSharedBufferSource, options?: FileSystemReadWriteOptions): number;
}
declare var FileSystemSyncAccessHandle: {
prototype: FileSystemSyncAccessHandle;
new(): FileSystemSyncAccessHandle;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream)
*/
interface FileSystemWritableFileStream extends WritableStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/seek) */
seek(position: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/truncate) */
truncate(size: number): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FileSystemWritableFileStream/write) */
write(data: FileSystemWriteChunkType): Promise<void>;
}
declare var FileSystemWritableFileStream: {
prototype: FileSystemWritableFileStream;
new(): FileSystemWritableFileStream;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace) */
interface FontFace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/ascentOverride) */
ascentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/descentOverride) */
descentOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/display) */
display: FontDisplay;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/family) */
family: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/featureSettings) */
featureSettings: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/lineGapOverride) */
lineGapOverride: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/loaded) */
readonly loaded: Promise<FontFace>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/status) */
readonly status: FontFaceLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/stretch) */
stretch: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/style) */
style: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/unicodeRange) */
unicodeRange: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/weight) */
weight: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFace/load) */
load(): Promise<FontFace>;
}
declare var FontFace: {
prototype: FontFace;
new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;
};
interface FontFaceSetEventMap {
"loading": Event;
"loadingdone": Event;
"loadingerror": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet) */
interface FontFaceSet extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loading_event) */
onloading: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingdone_event) */
onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/loadingerror_event) */
onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/ready) */
readonly ready: Promise<FontFaceSet>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/status) */
readonly status: FontFaceSetLoadStatus;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check) */
check(font: string, text?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load) */
load(font: string, text?: string): Promise<FontFace[]>;
forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;
addEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof FontFaceSetEventMap>(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var FontFaceSet: {
prototype: FontFaceSet;
new(initialFaces: FontFace[]): FontFaceSet;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent) */
interface FontFaceSetLoadEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FontFaceSetLoadEvent/fontfaces) */
readonly fontfaces: ReadonlyArray<FontFace>;
}
declare var FontFaceSetLoadEvent: {
prototype: FontFaceSetLoadEvent;
new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;
};
interface FontFaceSource {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
readonly fonts: FontFaceSet;
}
/**
* Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData)
*/
interface FormData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/append) */
append(name: string, value: string | Blob): void;
append(name: string, value: string): void;
append(name: string, blobValue: Blob, filename?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/get) */
get(name: string): FormDataEntryValue | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/getAll) */
getAll(name: string): FormDataEntryValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/FormData/set) */
set(name: string, value: string | Blob): void;
set(name: string, value: string): void;
set(name: string, blobValue: Blob, filename?: string): void;
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
}
declare var FormData: {
prototype: FormData;
new(): FormData;
};
interface GenericTransformStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CompressionStream/writable) */
readonly writable: WritableStream;
}
/**
* This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists\xA0of zero or more name and value pairs. \xA0You can add to this using methods like append() (see Examples.)\xA0In all methods of this interface, header names are matched by case-insensitive byte sequence.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers)
*/
interface Headers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/append) */
append(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/delete) */
delete(name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/get) */
get(name: string): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/getSetCookie) */
getSetCookie(): string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/has) */
has(name: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Headers/set) */
set(name: string, value: string): void;
forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
}
declare var Headers: {
prototype: Headers;
new(init?: HeadersInit): Headers;
};
/**
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor)
*/
interface IDBCursor {
/**
* Returns the direction ("next", "nextunique", "prev" or "prevunique") of the cursor.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/direction)
*/
readonly direction: IDBCursorDirection;
/**
* Returns the key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/key)
*/
readonly key: IDBValidKey;
/**
* Returns the effective key of the cursor. Throws a "InvalidStateError" DOMException if the cursor is advancing or is finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/primaryKey)
*/
readonly primaryKey: IDBValidKey;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/request) */
readonly request: IDBRequest;
/**
* Returns the IDBObjectStore or IDBIndex the cursor was opened from.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/source)
*/
readonly source: IDBObjectStore | IDBIndex;
/**
* Advances the cursor through the next count records in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/advance)
*/
advance(count: number): void;
/**
* Advances the cursor to the next record in range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continue)
*/
continue(key?: IDBValidKey): void;
/**
* Advances the cursor to the next record in range matching or after key and primaryKey. Throws an "InvalidAccessError" DOMException if the source is not an index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/continuePrimaryKey)
*/
continuePrimaryKey(key: IDBValidKey, primaryKey: IDBValidKey): void;
/**
* Delete the record pointed at by the cursor with a new value.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/delete)
*/
delete(): IDBRequest<undefined>;
/**
* Updated the record pointed at by the cursor with a new value.
*
* Throws a "DataError" DOMException if the effective object store uses in-line keys and the key would have changed.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursor/update)
*/
update(value: any): IDBRequest<IDBValidKey>;
}
declare var IDBCursor: {
prototype: IDBCursor;
new(): IDBCursor;
};
/**
* This IndexedDB API interface represents a cursor for traversing or iterating over multiple records in a database. It is the same as the IDBCursor, except that it includes the value property.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue)
*/
interface IDBCursorWithValue extends IDBCursor {
/**
* Returns the cursor's current value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBCursorWithValue/value)
*/
readonly value: any;
}
declare var IDBCursorWithValue: {
prototype: IDBCursorWithValue;
new(): IDBCursorWithValue;
};
interface IDBDatabaseEventMap {
"abort": Event;
"close": Event;
"error": Event;
"versionchange": IDBVersionChangeEvent;
}
/**
* This IndexedDB API interface provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase)
*/
interface IDBDatabase extends EventTarget {
/**
* Returns the name of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/name)
*/
readonly name: string;
/**
* Returns a list of the names of object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
onabort: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close_event) */
onclose: ((this: IDBDatabase, ev: Event) => any) | null;
onerror: ((this: IDBDatabase, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/versionchange_event) */
onversionchange: ((this: IDBDatabase, ev: IDBVersionChangeEvent) => any) | null;
/**
* Returns the version of the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/version)
*/
readonly version: number;
/**
* Closes the connection once all running transactions have finished.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/close)
*/
close(): void;
/**
* Creates a new object store with the given name and options and returns a new IDBObjectStore.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/createObjectStore)
*/
createObjectStore(name: string, options?: IDBObjectStoreParameters): IDBObjectStore;
/**
* Deletes the object store with the given name.
*
* Throws a "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/deleteObjectStore)
*/
deleteObjectStore(name: string): void;
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | string[], mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
addEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBDatabaseEventMap>(type: K, listener: (this: IDBDatabase, ev: IDBDatabaseEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBDatabase: {
prototype: IDBDatabase;
new(): IDBDatabase;
};
/**
* In the following code snippet, we make a request to open a database, and include handlers for the success and error cases. For a full working example, see our To-do Notifications app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory)
*/
interface IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/cmp)
*/
cmp(first: any, second: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/databases) */
databases(): Promise<IDBDatabaseInfo[]>;
/**
* Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/deleteDatabase)
*/
deleteDatabase(name: string): IDBOpenDBRequest;
/**
* Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBFactory/open)
*/
open(name: string, version?: number): IDBOpenDBRequest;
}
declare var IDBFactory: {
prototype: IDBFactory;
new(): IDBFactory;
};
/**
* IDBIndex interface of the IndexedDB API provides asynchronous access to an index in a database. An index is a kind of object store for looking up records in another object store, called the referenced object store. You use this interface to retrieve data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex)
*/
interface IDBIndex {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/keyPath) */
readonly keyPath: string | string[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/multiEntry) */
readonly multiEntry: boolean;
/**
* Returns the name of the index.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/name)
*/
name: string;
/**
* Returns the IDBObjectStore the index belongs to.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/objectStore)
*/
readonly objectStore: IDBObjectStore;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/unique) */
readonly unique: boolean;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursorWithValue, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in index are matched.
*
* If successful, request's result will be an IDBCursor, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBIndex/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
}
declare var IDBIndex: {
prototype: IDBIndex;
new(): IDBIndex;
};
/**
* A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange)
*/
interface IDBKeyRange {
/**
* Returns lower bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lower)
*/
readonly lower: any;
/**
* Returns true if the lower open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerOpen)
*/
readonly lowerOpen: boolean;
/**
* Returns upper bound, or undefined if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upper)
*/
readonly upper: any;
/**
* Returns true if the upper open flag is set, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperOpen)
*/
readonly upperOpen: boolean;
/**
* Returns true if key is included in the range, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/includes)
*/
includes(key: any): boolean;
}
declare var IDBKeyRange: {
prototype: IDBKeyRange;
new(): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning from lower to upper. If lowerOpen is true, lower is not included in the range. If upperOpen is true, upper is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/bound_static)
*/
bound(lower: any, upper: any, lowerOpen?: boolean, upperOpen?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange starting at key with no upper bound. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/lowerBound_static)
*/
lowerBound(lower: any, open?: boolean): IDBKeyRange;
/**
* Returns a new IDBKeyRange spanning only key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/only_static)
*/
only(value: any): IDBKeyRange;
/**
* Returns a new IDBKeyRange with no lower bound and ending at key. If open is true, key is not included in the range.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBKeyRange/upperBound_static)
*/
upperBound(upper: any, open?: boolean): IDBKeyRange;
};
/**
* This example shows a variety of different uses of object stores, from updating the data structure with IDBObjectStore.createIndex\xA0inside an onupgradeneeded function, to adding a new item to our object store with IDBObjectStore.add. For a full working example, see our\xA0To-do Notifications\xA0app (view example live.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore)
*/
interface IDBObjectStore {
/**
* Returns true if the store has a key generator, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/autoIncrement)
*/
readonly autoIncrement: boolean;
/**
* Returns a list of the names of indexes in the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/indexNames)
*/
readonly indexNames: DOMStringList;
/**
* Returns the key path of the store, or null if none.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/keyPath)
*/
readonly keyPath: string | string[];
/**
* Returns the name of the store.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/name)
*/
name: string;
/**
* Returns the associated transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/transaction)
*/
readonly transaction: IDBTransaction;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/add)
*/
add(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
/**
* Deletes all records in store.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/clear)
*/
clear(): IDBRequest<undefined>;
/**
* Retrieves the number of records matching the given key or key range in query.
*
* If successful, request's result will be the count.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/count)
*/
count(query?: IDBValidKey | IDBKeyRange): IDBRequest<number>;
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | string[], options?: IDBIndexParameters): IDBIndex;
/**
* Deletes records in store with the given key or in the given key range in query.
*
* If successful, request's result will be undefined.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/delete)
*/
delete(query: IDBValidKey | IDBKeyRange): IDBRequest<undefined>;
/**
* Deletes the index in store with the given name.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/deleteIndex)
*/
deleteIndex(name: string): void;
/**
* Retrieves the value of the first record matching the given key or key range in query.
*
* If successful, request's result will be the value, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/get)
*/
get(query: IDBValidKey | IDBKeyRange): IDBRequest<any>;
/**
* Retrieves the values of the records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the values.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAll)
*/
getAll(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<any[]>;
/**
* Retrieves the keys of records matching the given key or key range in query (up to count if given).
*
* If successful, request's result will be an Array of the keys.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getAllKeys)
*/
getAllKeys(query?: IDBValidKey | IDBKeyRange | null, count?: number): IDBRequest<IDBValidKey[]>;
/**
* Retrieves the key of the first record matching the given key or key range in query.
*
* If successful, request's result will be the key, or undefined if there was no matching record.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/getKey)
*/
getKey(query: IDBValidKey | IDBKeyRange): IDBRequest<IDBValidKey | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/index) */
index(name: string): IDBIndex;
/**
* Opens a cursor over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursorWithValue pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openCursor)
*/
openCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursorWithValue | null>;
/**
* Opens a cursor with key only flag set over the records matching query, ordered by direction. If query is null, all records in store are matched.
*
* If successful, request's result will be an IDBCursor pointing at the first matching record, or null if there were no matching records.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/openKeyCursor)
*/
openKeyCursor(query?: IDBValidKey | IDBKeyRange | null, direction?: IDBCursorDirection): IDBRequest<IDBCursor | null>;
/**
* Adds or updates a record in store with the given value and key.
*
* If the store uses in-line keys and key is specified a "DataError" DOMException will be thrown.
*
* If put() is used, any existing record with the key will be replaced. If add() is used, and if a record with the key already exists the request will fail, with request's error set to a "ConstraintError" DOMException.
*
* If successful, request's result will be the record's key.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/put)
*/
put(value: any, key?: IDBValidKey): IDBRequest<IDBValidKey>;
}
declare var IDBObjectStore: {
prototype: IDBObjectStore;
new(): IDBObjectStore;
};
interface IDBOpenDBRequestEventMap extends IDBRequestEventMap {
"blocked": IDBVersionChangeEvent;
"upgradeneeded": IDBVersionChangeEvent;
}
/**
* Also inherits methods from its parents IDBRequest and EventTarget.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest)
*/
interface IDBOpenDBRequest extends IDBRequest<IDBDatabase> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/blocked_event) */
onblocked: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBOpenDBRequest/upgradeneeded_event) */
onupgradeneeded: ((this: IDBOpenDBRequest, ev: IDBVersionChangeEvent) => any) | null;
addEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBOpenDBRequestEventMap>(type: K, listener: (this: IDBOpenDBRequest, ev: IDBOpenDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBOpenDBRequest: {
prototype: IDBOpenDBRequest;
new(): IDBOpenDBRequest;
};
interface IDBRequestEventMap {
"error": Event;
"success": Event;
}
/**
* The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest)
*/
interface IDBRequest<T = any> extends EventTarget {
/**
* When a request is completed, returns the error (a DOMException), or null if the request succeeded. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error)
*/
readonly error: DOMException | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/error_event) */
onerror: ((this: IDBRequest<T>, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/success_event) */
onsuccess: ((this: IDBRequest<T>, ev: Event) => any) | null;
/**
* Returns "pending" until a request is complete, then returns "done".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/readyState)
*/
readonly readyState: IDBRequestReadyState;
/**
* When a request is completed, returns the result, or undefined if the request failed. Throws a "InvalidStateError" DOMException if the request is still pending.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/result)
*/
readonly result: T;
/**
* Returns the IDBObjectStore, IDBIndex, or IDBCursor the request was made against, or null if is was an open request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/source)
*/
readonly source: IDBObjectStore | IDBIndex | IDBCursor;
/**
* Returns the IDBTransaction the request was made within. If this as an open request, then it returns an upgrade transaction while it is running, or null otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBRequest/transaction)
*/
readonly transaction: IDBTransaction | null;
addEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBRequestEventMap>(type: K, listener: (this: IDBRequest<T>, ev: IDBRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBRequest: {
prototype: IDBRequest;
new(): IDBRequest;
};
interface IDBTransactionEventMap {
"abort": Event;
"complete": Event;
"error": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction) */
interface IDBTransaction extends EventTarget {
/**
* Returns the transaction's connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/db)
*/
readonly db: IDBDatabase;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/durability) */
readonly durability: IDBTransactionDurability;
/**
* If the transaction was aborted, returns the error (a DOMException) providing the reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error)
*/
readonly error: DOMException | null;
/**
* Returns the mode the transaction was created with ("readonly" or "readwrite"), or "versionchange" for an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/mode)
*/
readonly mode: IDBTransactionMode;
/**
* Returns a list of the names of object stores in the transaction's scope. For an upgrade transaction this is all object stores in the database.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStoreNames)
*/
readonly objectStoreNames: DOMStringList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort_event) */
onabort: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/complete_event) */
oncomplete: ((this: IDBTransaction, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/error_event) */
onerror: ((this: IDBTransaction, ev: Event) => any) | null;
/**
* Aborts the transaction. All pending requests will fail with a "AbortError" DOMException and all changes made to the database will be reverted.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/commit) */
commit(): void;
/**
* Returns an IDBObjectStore in the transaction's scope.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBTransaction/objectStore)
*/
objectStore(name: string): IDBObjectStore;
addEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof IDBTransactionEventMap>(type: K, listener: (this: IDBTransaction, ev: IDBTransactionEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var IDBTransaction: {
prototype: IDBTransaction;
new(): IDBTransaction;
};
/**
* This IndexedDB API interface indicates that the version of the database has changed, as the result of an IDBOpenDBRequest.onupgradeneeded event handler function.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent)
*/
interface IDBVersionChangeEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/newVersion) */
readonly newVersion: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBVersionChangeEvent/oldVersion) */
readonly oldVersion: number;
}
declare var IDBVersionChangeEvent: {
prototype: IDBVersionChangeEvent;
new(type: string, eventInitDict?: IDBVersionChangeEventInit): IDBVersionChangeEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap) */
interface ImageBitmap {
/**
* Returns the intrinsic height of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/height)
*/
readonly height: number;
/**
* Returns the intrinsic width of the image, in CSS pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/width)
*/
readonly width: number;
/**
* Releases imageBitmap's underlying bitmap data.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmap/close)
*/
close(): void;
}
declare var ImageBitmap: {
prototype: ImageBitmap;
new(): ImageBitmap;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext) */
interface ImageBitmapRenderingContext {
/**
* Transfers the underlying bitmap data from imageBitmap to context, and the bitmap becomes the contents of the canvas element to which context is bound.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)
*/
transferFromImageBitmap(bitmap: ImageBitmap | null): void;
}
declare var ImageBitmapRenderingContext: {
prototype: ImageBitmapRenderingContext;
new(): ImageBitmapRenderingContext;
};
/**
* The underlying pixel data of an area of a <canvas> element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData)
*/
interface ImageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/colorSpace) */
readonly colorSpace: PredefinedColorSpace;
/**
* Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/data)
*/
readonly data: Uint8ClampedArray;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/height)
*/
readonly height: number;
/**
* Returns the actual dimensions of the data in the ImageData object, in pixels.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ImageData/width)
*/
readonly width: number;
}
declare var ImageData: {
prototype: ImageData;
new(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
new(data: Uint8ClampedArray, sw: number, sh?: number, settings?: ImageDataSettings): ImageData;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/KHR_parallel_shader_compile) */
interface KHR_parallel_shader_compile {
readonly COMPLETION_STATUS_KHR: 0x91B1;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock)
*/
interface Lock {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/mode) */
readonly mode: LockMode;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Lock/name) */
readonly name: string;
}
declare var Lock: {
prototype: Lock;
new(): Lock;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager)
*/
interface LockManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/query) */
query(): Promise<LockManagerSnapshot>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/LockManager/request) */
request(name: string, callback: LockGrantedCallback): Promise<any>;
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
}
declare var LockManager: {
prototype: LockManager;
new(): LockManager;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities) */
interface MediaCapabilities {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/decodingInfo) */
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MediaCapabilities/encodingInfo) */
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
}
declare var MediaCapabilities: {
prototype: MediaCapabilities;
new(): MediaCapabilities;
};
/**
* This Channel Messaging API interface allows us to create a new message channel and send data through it via its two MessagePort properties.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel)
*/
interface MessageChannel {
/**
* Returns the first MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port1)
*/
readonly port1: MessagePort;
/**
* Returns the second MessagePort object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageChannel/port2)
*/
readonly port2: MessagePort;
}
declare var MessageChannel: {
prototype: MessageChannel;
new(): MessageChannel;
};
/**
* A message received by a target object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent)
*/
interface MessageEvent<T = any> extends Event {
/**
* Returns the data of the message.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/data)
*/
readonly data: T;
/**
* Returns the last event ID string, for server-sent events.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/lastEventId)
*/
readonly lastEventId: string;
/**
* Returns the origin of the message, for server-sent events and cross-document messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/origin)
*/
readonly origin: string;
/**
* Returns the MessagePort array sent with the message, for cross-document messaging and channel messaging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/ports)
*/
readonly ports: ReadonlyArray<MessagePort>;
/**
* Returns the WindowProxy of the source window, for cross-document messaging, and the MessagePort being attached, in the connect event fired at SharedWorkerGlobalScope objects.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/source)
*/
readonly source: MessageEventSource | null;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: MessagePort[]): void;
}
declare var MessageEvent: {
prototype: MessageEvent;
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>;
};
interface MessagePortEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* This Channel Messaging API interface represents one of the two ports of a MessageChannel, allowing messages to be sent from one port and listening out for them arriving at the other.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort)
*/
interface MessagePort extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/message_event) */
onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/messageerror_event) */
onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null;
/**
* Disconnects the port, so that it is no longer active.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/close)
*/
close(): void;
/**
* Posts a message through the channel. Objects listed in transfer are transferred, not just cloned, meaning that they are no longer usable on the sending side.
*
* Throws a "DataCloneError" DOMException if transfer contains duplicate objects or port, or if message could not be cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Begins dispatching messages received on the port.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessagePort/start)
*/
start(): void;
addEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof MessagePortEventMap>(type: K, listener: (this: MessagePort, ev: MessagePortEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var MessagePort: {
prototype: MessagePort;
new(): MessagePort;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager)
*/
interface NavigationPreloadManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/disable) */
disable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/enable) */
enable(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/getState) */
getState(): Promise<NavigationPreloadState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NavigationPreloadManager/setHeaderValue) */
setHeaderValue(value: string): Promise<void>;
}
declare var NavigationPreloadManager: {
prototype: NavigationPreloadManager;
new(): NavigationPreloadManager;
};
/** Available only in secure contexts. */
interface NavigatorBadge {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/clearAppBadge) */
clearAppBadge(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/setAppBadge) */
setAppBadge(contents?: number): Promise<void>;
}
interface NavigatorConcurrentHardware {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/hardwareConcurrency) */
readonly hardwareConcurrency: number;
}
interface NavigatorID {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appCodeName)
*/
readonly appCodeName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appName)
*/
readonly appName: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/appVersion)
*/
readonly appVersion: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/platform)
*/
readonly platform: string;
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/product)
*/
readonly product: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/userAgent) */
readonly userAgent: string;
}
interface NavigatorLanguage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/language) */
readonly language: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/languages) */
readonly languages: ReadonlyArray<string>;
}
/** Available only in secure contexts. */
interface NavigatorLocks {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/locks) */
readonly locks: LockManager;
}
interface NavigatorOnLine {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/onLine) */
readonly onLine: boolean;
}
/** Available only in secure contexts. */
interface NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Navigator/storage) */
readonly storage: StorageManager;
}
interface NotificationEventMap {
"click": Event;
"close": Event;
"error": Event;
"show": Event;
}
/**
* This Notifications API interface is used to configure and display desktop notifications to the user.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification)
*/
interface Notification extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/badge) */
readonly badge: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/body) */
readonly body: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/data) */
readonly data: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/dir) */
readonly dir: NotificationDirection;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/icon) */
readonly icon: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/lang) */
readonly lang: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/click_event) */
onclick: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close_event) */
onclose: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/error_event) */
onerror: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/show_event) */
onshow: ((this: Notification, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/requireInteraction) */
readonly requireInteraction: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/silent) */
readonly silent: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/tag) */
readonly tag: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/title) */
readonly title: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/close) */
close(): void;
addEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof NotificationEventMap>(type: K, listener: (this: Notification, ev: NotificationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Notification: {
prototype: Notification;
new(title: string, options?: NotificationOptions): Notification;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Notification/permission_static) */
readonly permission: NotificationPermission;
};
/**
* The parameter passed into the onnotificationclick handler, the NotificationEvent interface represents a notification click event that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent)
*/
interface NotificationEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/action) */
readonly action: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/NotificationEvent/notification) */
readonly notification: Notification;
}
declare var NotificationEvent: {
prototype: NotificationEvent;
new(type: string, eventInitDict: NotificationEventInit): NotificationEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed) */
interface OES_draw_buffers_indexed {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationSeparateiOES) */
blendEquationSeparateiOES(buf: GLuint, modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendEquationiOES) */
blendEquationiOES(buf: GLuint, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFuncSeparateiOES) */
blendFuncSeparateiOES(buf: GLuint, srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/blendFunciOES) */
blendFunciOES(buf: GLuint, src: GLenum, dst: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/colorMaskiOES) */
colorMaskiOES(buf: GLuint, r: GLboolean, g: GLboolean, b: GLboolean, a: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/disableiOES) */
disableiOES(target: GLenum, index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_draw_buffers_indexed/enableiOES) */
enableiOES(target: GLenum, index: GLuint): void;
}
/**
* The OES_element_index_uint extension is part of the WebGL API and adds support for gl.UNSIGNED_INT types to WebGLRenderingContext.drawElements().
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_element_index_uint)
*/
interface OES_element_index_uint {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_fbo_render_mipmap) */
interface OES_fbo_render_mipmap {
}
/**
* The OES_standard_derivatives extension is part of the WebGL API and adds the GLSL derivative functions dFdx, dFdy, and fwidth.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_standard_derivatives)
*/
interface OES_standard_derivatives {
readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES: 0x8B8B;
}
/**
* The OES_texture_float extension is part of the WebGL API and exposes floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float)
*/
interface OES_texture_float {
}
/**
* The OES_texture_float_linear extension is part of the WebGL API and allows linear filtering with floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_float_linear)
*/
interface OES_texture_float_linear {
}
/**
* The OES_texture_half_float extension is part of the WebGL API and adds texture formats with 16- (aka half float) and 32-bit floating-point components.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float)
*/
interface OES_texture_half_float {
readonly HALF_FLOAT_OES: 0x8D61;
}
/**
* The OES_texture_half_float_linear extension is part of the WebGL API and allows linear filtering with half floating-point pixel types for textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_texture_half_float_linear)
*/
interface OES_texture_half_float_linear {
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object) */
interface OES_vertex_array_object {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES) */
bindVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/createVertexArrayOES) */
createVertexArrayOES(): WebGLVertexArrayObjectOES | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES) */
deleteVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OES_vertex_array_object/isVertexArrayOES) */
isVertexArrayOES(arrayObject: WebGLVertexArrayObjectOES | null): GLboolean;
readonly VERTEX_ARRAY_BINDING_OES: 0x85B5;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2) */
interface OVR_multiview2 {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR) */
framebufferTextureMultiviewOVR(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, baseViewIndex: GLint, numViews: GLsizei): void;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: 0x9630;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: 0x9632;
readonly MAX_VIEWS_OVR: 0x9631;
readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: 0x9633;
}
interface OffscreenCanvasEventMap {
"contextlost": Event;
"contextrestored": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas) */
interface OffscreenCanvas extends EventTarget {
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/height)
*/
height: number;
oncontextlost: ((this: OffscreenCanvas, ev: Event) => any) | null;
oncontextrestored: ((this: OffscreenCanvas, ev: Event) => any) | null;
/**
* These attributes return the dimensions of the OffscreenCanvas object's bitmap.
*
* They can be set, to replace the bitmap with a new, transparent black bitmap of the specified dimensions (effectively resizing it).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/width)
*/
width: number;
/**
* Returns a promise that will fulfill with a new Blob object representing a file containing the image in the OffscreenCanvas object.
*
* The argument, if provided, is a dictionary that controls the encoding options of the image file to be created. The type field specifies the file format and has a default value of "image/png"; that type is also used if the requested type isn't supported. If the image format supports variable quality (such as "image/jpeg"), then the quality field is a number in the range 0.0 to 1.0 inclusive indicating the desired quality level for the resulting image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/convertToBlob)
*/
convertToBlob(options?: ImageEncodeOptions): Promise<Blob>;
/**
* Returns an object that exposes an API for drawing on the OffscreenCanvas object. contextId specifies the desired API: "2d", "bitmaprenderer", "webgl", or "webgl2". options is handled by that API.
*
* This specification defines the "2d" context below, which is similar but distinct from the "2d" context that is created from a canvas element. The WebGL specifications define the "webgl" and "webgl2" contexts. [WEBGL]
*
* Returns null if the canvas has already been initialized with another context type (e.g., trying to get a "2d" context after getting a "webgl" context).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/getContext)
*/
getContext(contextId: "2d", options?: any): OffscreenCanvasRenderingContext2D | null;
getContext(contextId: "bitmaprenderer", options?: any): ImageBitmapRenderingContext | null;
getContext(contextId: "webgl", options?: any): WebGLRenderingContext | null;
getContext(contextId: "webgl2", options?: any): WebGL2RenderingContext | null;
getContext(contextId: OffscreenRenderingContextId, options?: any): OffscreenRenderingContext | null;
/**
* Returns a newly created ImageBitmap object with the image in the OffscreenCanvas object. The image in the OffscreenCanvas object is replaced with a new blank image.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvas/transferToImageBitmap)
*/
transferToImageBitmap(): ImageBitmap;
addEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof OffscreenCanvasEventMap>(type: K, listener: (this: OffscreenCanvas, ev: OffscreenCanvasEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var OffscreenCanvas: {
prototype: OffscreenCanvas;
new(width: number, height: number): OffscreenCanvas;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D) */
interface OffscreenCanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform {
readonly canvas: OffscreenCanvas;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/OffscreenCanvasRenderingContext2D/commit) */
commit(): void;
}
declare var OffscreenCanvasRenderingContext2D: {
prototype: OffscreenCanvasRenderingContext2D;
new(): OffscreenCanvasRenderingContext2D;
};
/**
* This Canvas 2D API interface is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, which gives you the convenience of being able to retain and replay your path whenever desired.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D)
*/
interface Path2D extends CanvasPath {
/**
* Adds to the path the path given by the argument.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Path2D/addPath)
*/
addPath(path: Path2D, transform?: DOMMatrix2DInit): void;
}
declare var Path2D: {
prototype: Path2D;
new(path?: Path2D | string): Path2D;
};
interface PerformanceEventMap {
"resourcetimingbufferfull": Event;
}
/**
* Provides access to performance-related information for the current page. It's part of the High Resolution Time API, but is enhanced by the Performance Timeline API, the Navigation Timing API, the User Timing API, and the Resource Timing API.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance)
*/
interface Performance extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/resourcetimingbufferfull_event) */
onresourcetimingbufferfull: ((this: Performance, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/timeOrigin) */
readonly timeOrigin: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMarks) */
clearMarks(markName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearMeasures) */
clearMeasures(measureName?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/clearResourceTimings) */
clearResourceTimings(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/mark) */
mark(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/measure) */
measure(measureName: string, startOrMeasureOptions?: string | PerformanceMeasureOptions, endMark?: string): PerformanceMeasure;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/now) */
now(): DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/setResourceTimingBufferSize) */
setResourceTimingBufferSize(maxSize: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Performance/toJSON) */
toJSON(): any;
addEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PerformanceEventMap>(type: K, listener: (this: Performance, ev: PerformanceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Performance: {
prototype: Performance;
new(): Performance;
};
/**
* Encapsulates a single performance metric that is part of the performance timeline. A performance entry can be directly created by making a performance mark or measure (for example by calling the mark() method) at an explicit point in an application. Performance entries are also created in indirect ways such as loading a resource (such as an image).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry)
*/
interface PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/entryType) */
readonly entryType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/startTime) */
readonly startTime: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceEntry/toJSON) */
toJSON(): any;
}
declare var PerformanceEntry: {
prototype: PerformanceEntry;
new(): PerformanceEntry;
};
/**
* PerformanceMark\xA0is an abstract interface for PerformanceEntry objects with an entryType of "mark". Entries of this type are created by calling performance.mark() to add a named DOMHighResTimeStamp (the mark) to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark)
*/
interface PerformanceMark extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMark/detail) */
readonly detail: any;
}
declare var PerformanceMark: {
prototype: PerformanceMark;
new(markName: string, markOptions?: PerformanceMarkOptions): PerformanceMark;
};
/**
* PerformanceMeasure is an abstract interface for PerformanceEntry objects with an entryType of "measure". Entries of this type are created by calling performance.measure() to add a named DOMHighResTimeStamp (the measure) between two marks to the browser's performance timeline.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure)
*/
interface PerformanceMeasure extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceMeasure/detail) */
readonly detail: any;
}
declare var PerformanceMeasure: {
prototype: PerformanceMeasure;
new(): PerformanceMeasure;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver) */
interface PerformanceObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/observe) */
observe(options?: PerformanceObserverInit): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/takeRecords) */
takeRecords(): PerformanceEntryList;
}
declare var PerformanceObserver: {
prototype: PerformanceObserver;
new(callback: PerformanceObserverCallback): PerformanceObserver;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserver/supportedEntryTypes_static) */
readonly supportedEntryTypes: ReadonlyArray<string>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList) */
interface PerformanceObserverEntryList {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntries) */
getEntries(): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByName) */
getEntriesByName(name: string, type?: string): PerformanceEntryList;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceObserverEntryList/getEntriesByType) */
getEntriesByType(type: string): PerformanceEntryList;
}
declare var PerformanceObserverEntryList: {
prototype: PerformanceObserverEntryList;
new(): PerformanceObserverEntryList;
};
/**
* Enables retrieval and analysis of detailed network timing data regarding the loading of an application's resources. An application can use the timing metrics to determine, for example, the length of time it takes to fetch a specific resource, such as an XMLHttpRequest, <SVG>, image, or script.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming)
*/
interface PerformanceResourceTiming extends PerformanceEntry {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectEnd) */
readonly connectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/connectStart) */
readonly connectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/decodedBodySize) */
readonly decodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupEnd) */
readonly domainLookupEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/domainLookupStart) */
readonly domainLookupStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/encodedBodySize) */
readonly encodedBodySize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/fetchStart) */
readonly fetchStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/initiatorType) */
readonly initiatorType: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/nextHopProtocol) */
readonly nextHopProtocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectEnd) */
readonly redirectEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/redirectStart) */
readonly redirectStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/requestStart) */
readonly requestStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseEnd) */
readonly responseEnd: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/responseStart) */
readonly responseStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/secureConnectionStart) */
readonly secureConnectionStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/serverTiming) */
readonly serverTiming: ReadonlyArray<PerformanceServerTiming>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/transferSize) */
readonly transferSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/workerStart) */
readonly workerStart: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceResourceTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceResourceTiming: {
prototype: PerformanceResourceTiming;
new(): PerformanceResourceTiming;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming) */
interface PerformanceServerTiming {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/description) */
readonly description: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/duration) */
readonly duration: DOMHighResTimeStamp;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PerformanceServerTiming/toJSON) */
toJSON(): any;
}
declare var PerformanceServerTiming: {
prototype: PerformanceServerTiming;
new(): PerformanceServerTiming;
};
interface PermissionStatusEventMap {
"change": Event;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus) */
interface PermissionStatus extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/change_event) */
onchange: ((this: PermissionStatus, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PermissionStatus/state) */
readonly state: PermissionState;
addEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof PermissionStatusEventMap>(type: K, listener: (this: PermissionStatus, ev: PermissionStatusEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var PermissionStatus: {
prototype: PermissionStatus;
new(): PermissionStatus;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions) */
interface Permissions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Permissions/query) */
query(permissionDesc: PermissionDescriptor): Promise<PermissionStatus>;
}
declare var Permissions: {
prototype: Permissions;
new(): Permissions;
};
/**
* Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an <img>, <audio>, <video>, <style> or <link>).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent)
*/
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/lengthComputable) */
readonly lengthComputable: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/loaded) */
readonly loaded: number;
readonly target: T | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProgressEvent/total) */
readonly total: number;
}
declare var ProgressEvent: {
prototype: ProgressEvent;
new(type: string, eventInitDict?: ProgressEventInit): ProgressEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent) */
interface PromiseRejectionEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/promise) */
readonly promise: Promise<any>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PromiseRejectionEvent/reason) */
readonly reason: any;
}
declare var PromiseRejectionEvent: {
prototype: PromiseRejectionEvent;
new(type: string, eventInitDict: PromiseRejectionEventInit): PromiseRejectionEvent;
};
/**
* This Push API interface represents a push message that has been received. This event is sent to the global scope of a ServiceWorker. It contains the information sent from an application server to a PushSubscription.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent)
*/
interface PushEvent extends ExtendableEvent {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushEvent/data) */
readonly data: PushMessageData | null;
}
declare var PushEvent: {
prototype: PushEvent;
new(type: string, eventInitDict?: PushEventInit): PushEvent;
};
/**
* This Push API interface provides a way to receive notifications from third-party servers as well as request URLs for push notifications.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager)
*/
interface PushManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/getSubscription) */
getSubscription(): Promise<PushSubscription | null>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/permissionState) */
permissionState(options?: PushSubscriptionOptionsInit): Promise<PermissionState>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/subscribe) */
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
}
declare var PushManager: {
prototype: PushManager;
new(): PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushManager/supportedContentEncodings_static) */
readonly supportedContentEncodings: ReadonlyArray<string>;
};
/**
* This Push API interface provides methods which let you retrieve the push data sent by a server in various formats.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData)
*/
interface PushMessageData {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/arrayBuffer) */
arrayBuffer(): ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/blob) */
blob(): Blob;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/json) */
json(): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushMessageData/text) */
text(): string;
}
declare var PushMessageData: {
prototype: PushMessageData;
new(): PushMessageData;
};
/**
* This Push API interface provides a subcription's URL endpoint and allows unsubscription from a push service.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription)
*/
interface PushSubscription {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/endpoint) */
readonly endpoint: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/expirationTime) */
readonly expirationTime: EpochTimeStamp | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/options) */
readonly options: PushSubscriptionOptions;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/getKey) */
getKey(name: PushEncryptionKeyName): ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/toJSON) */
toJSON(): PushSubscriptionJSON;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscription/unsubscribe) */
unsubscribe(): Promise<boolean>;
}
declare var PushSubscription: {
prototype: PushSubscription;
new(): PushSubscription;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions)
*/
interface PushSubscriptionOptions {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/applicationServerKey) */
readonly applicationServerKey: ArrayBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/PushSubscriptionOptions/userVisibleOnly) */
readonly userVisibleOnly: boolean;
}
declare var PushSubscriptionOptions: {
prototype: PushSubscriptionOptions;
new(): PushSubscriptionOptions;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame) */
interface RTCEncodedAudioFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedAudioFrame/getMetadata) */
getMetadata(): RTCEncodedAudioFrameMetadata;
}
declare var RTCEncodedAudioFrame: {
prototype: RTCEncodedAudioFrame;
new(): RTCEncodedAudioFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame) */
interface RTCEncodedVideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/data) */
data: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/type) */
readonly type: RTCEncodedVideoFrameType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCEncodedVideoFrame/getMetadata) */
getMetadata(): RTCEncodedVideoFrameMetadata;
}
declare var RTCEncodedVideoFrame: {
prototype: RTCEncodedVideoFrame;
new(): RTCEncodedVideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer) */
interface RTCRtpScriptTransformer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/options) */
readonly options: any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/writable) */
readonly writable: WritableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/generateKeyFrame) */
generateKeyFrame(rid?: string): Promise<number>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCRtpScriptTransformer/sendKeyFrameRequest) */
sendKeyFrameRequest(): Promise<void>;
}
declare var RTCRtpScriptTransformer: {
prototype: RTCRtpScriptTransformer;
new(): RTCRtpScriptTransformer;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent) */
interface RTCTransformEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/RTCTransformEvent/transformer) */
readonly transformer: RTCRtpScriptTransformer;
}
declare var RTCTransformEvent: {
prototype: RTCTransformEvent;
new(): RTCTransformEvent;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController) */
interface ReadableByteStreamController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/byobRequest) */
readonly byobRequest: ReadableStreamBYOBRequest | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/enqueue) */
enqueue(chunk: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableByteStreamController/error) */
error(e?: any): void;
}
declare var ReadableByteStreamController: {
prototype: ReadableByteStreamController;
new(): ReadableByteStreamController;
};
/**
* This Streams API interface represents a readable stream of byte data. The Fetch API offers a concrete instance of a ReadableStream through the body property of a Response object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream)
*/
interface ReadableStream<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/cancel) */
cancel(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/getReader) */
getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
getReader(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<R>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeThrough) */
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/pipeTo) */
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStream/tee) */
tee(): [ReadableStream<R>, ReadableStream<R>];
}
declare var ReadableStream: {
prototype: ReadableStream;
new(underlyingSource: UnderlyingByteSource, strategy?: { highWaterMark?: number }): ReadableStream<Uint8Array>;
new<R = any>(underlyingSource: UnderlyingDefaultSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
new<R = any>(underlyingSource?: UnderlyingSource<R>, strategy?: QueuingStrategy<R>): ReadableStream<R>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader) */
interface ReadableStreamBYOBReader extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/read) */
read<T extends ArrayBufferView>(view: T): Promise<ReadableStreamReadResult<T>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamBYOBReader: {
prototype: ReadableStreamBYOBReader;
new(stream: ReadableStream): ReadableStreamBYOBReader;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest) */
interface ReadableStreamBYOBRequest {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/view) */
readonly view: ArrayBufferView | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respond) */
respond(bytesWritten: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBRequest/respondWithNewView) */
respondWithNewView(view: ArrayBufferView): void;
}
declare var ReadableStreamBYOBRequest: {
prototype: ReadableStreamBYOBRequest;
new(): ReadableStreamBYOBRequest;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController) */
interface ReadableStreamDefaultController<R = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/enqueue) */
enqueue(chunk?: R): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultController/error) */
error(e?: any): void;
}
declare var ReadableStreamDefaultController: {
prototype: ReadableStreamDefaultController;
new(): ReadableStreamDefaultController;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader) */
interface ReadableStreamDefaultReader<R = any> extends ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/read) */
read(): Promise<ReadableStreamReadResult<R>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamDefaultReader/releaseLock) */
releaseLock(): void;
}
declare var ReadableStreamDefaultReader: {
prototype: ReadableStreamDefaultReader;
new<R = any>(stream: ReadableStream<R>): ReadableStreamDefaultReader<R>;
};
interface ReadableStreamGenericReader {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReadableStreamBYOBReader/cancel) */
cancel(reason?: any): Promise<void>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report) */
interface Report {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/body) */
readonly body: ReportBody | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/type) */
readonly type: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Report/url) */
readonly url: string;
toJSON(): any;
}
declare var Report: {
prototype: Report;
new(): Report;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportBody) */
interface ReportBody {
toJSON(): any;
}
declare var ReportBody: {
prototype: ReportBody;
new(): ReportBody;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver) */
interface ReportingObserver {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/disconnect) */
disconnect(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/observe) */
observe(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ReportingObserver/takeRecords) */
takeRecords(): ReportList;
}
declare var ReportingObserver: {
prototype: ReportingObserver;
new(callback: ReportingObserverCallback, options?: ReportingObserverOptions): ReportingObserver;
};
/**
* This Fetch API interface represents a resource request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request)
*/
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/cache)
*/
readonly cache: RequestCache;
/**
* Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/credentials)
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/destination)
*/
readonly destination: RequestDestination;
/**
* Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/headers)
*/
readonly headers: Headers;
/**
* Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI]
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/integrity)
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request can outlive the global in which it was created.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/keepalive)
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/method)
*/
readonly method: string;
/**
* Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/mode)
*/
readonly mode: RequestMode;
/**
* Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/redirect)
*/
readonly redirect: RequestRedirect;
/**
* Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the \`Referer\` header of the request being made.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrer)
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/referrerPolicy)
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* Returns the signal associated with request, which is an AbortSignal object indicating whether or not request has been aborted, and its abort event handler.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/signal)
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/url)
*/
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/clone) */
clone(): Request;
}
declare var Request: {
prototype: Request;
new(input: RequestInfo | URL, init?: RequestInit): Request;
};
/**
* This Fetch API interface represents the response to a request.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response)
*/
interface Response extends Body {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/headers) */
readonly headers: Headers;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/ok) */
readonly ok: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirected) */
readonly redirected: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/statusText) */
readonly statusText: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/type) */
readonly type: ResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/url) */
readonly url: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/clone) */
clone(): Response;
}
declare var Response: {
prototype: Response;
new(body?: BodyInit | null, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/error_static) */
error(): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/json_static) */
json(data: any, init?: ResponseInit): Response;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Response/redirect_static) */
redirect(url: string | URL, status?: number): Response;
};
/**
* Inherits from Event, and represents the event object of an event sent on a document or worker when its content security policy is violated.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent)
*/
interface SecurityPolicyViolationEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/blockedURI) */
readonly blockedURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/columnNumber) */
readonly columnNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/disposition) */
readonly disposition: SecurityPolicyViolationEventDisposition;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/documentURI) */
readonly documentURI: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective) */
readonly effectiveDirective: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/lineNumber) */
readonly lineNumber: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy) */
readonly originalPolicy: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/referrer) */
readonly referrer: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sample) */
readonly sample: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/sourceFile) */
readonly sourceFile: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/statusCode) */
readonly statusCode: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective) */
readonly violatedDirective: string;
}
declare var SecurityPolicyViolationEvent: {
prototype: SecurityPolicyViolationEvent;
new(type: string, eventInitDict?: SecurityPolicyViolationEventInit): SecurityPolicyViolationEvent;
};
interface ServiceWorkerEventMap extends AbstractWorkerEventMap {
"statechange": Event;
}
/**
* This ServiceWorker API interface provides a reference to a service worker. Multiple browsing contexts (e.g. pages, workers, etc.) can be associated with the same service worker, each through a unique ServiceWorker object.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker)
*/
interface ServiceWorker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/statechange_event) */
onstatechange: ((this: ServiceWorker, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/scriptURL) */
readonly scriptURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/state) */
readonly state: ServiceWorkerState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorker/postMessage) */
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
addEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerEventMap>(type: K, listener: (this: ServiceWorker, ev: ServiceWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorker: {
prototype: ServiceWorker;
new(): ServiceWorker;
};
interface ServiceWorkerContainerEventMap {
"controllerchange": Event;
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* The\xA0ServiceWorkerContainer\xA0interface of the\xA0ServiceWorker API\xA0provides an object representing the service worker as an overall unit in the network ecosystem, including facilities to register, unregister and update service workers, and access the state of service workers and their registrations.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer)
*/
interface ServiceWorkerContainer extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controller) */
readonly controller: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/controllerchange_event) */
oncontrollerchange: ((this: ServiceWorkerContainer, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/message_event) */
onmessage: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/messageerror_event) */
onmessageerror: ((this: ServiceWorkerContainer, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/ready) */
readonly ready: Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistration) */
getRegistration(clientURL?: string | URL): Promise<ServiceWorkerRegistration | undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/getRegistrations) */
getRegistrations(): Promise<ReadonlyArray<ServiceWorkerRegistration>>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/register) */
register(scriptURL: string | URL, options?: RegistrationOptions): Promise<ServiceWorkerRegistration>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerContainer/startMessages) */
startMessages(): void;
addEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerContainerEventMap>(type: K, listener: (this: ServiceWorkerContainer, ev: ServiceWorkerContainerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerContainer: {
prototype: ServiceWorkerContainer;
new(): ServiceWorkerContainer;
};
interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"activate": ExtendableEvent;
"fetch": FetchEvent;
"install": ExtendableEvent;
"message": ExtendableMessageEvent;
"messageerror": MessageEvent;
"notificationclick": NotificationEvent;
"notificationclose": NotificationEvent;
"push": PushEvent;
"pushsubscriptionchange": Event;
}
/**
* This ServiceWorker API interface represents the global execution context of a service worker.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope)
*/
interface ServiceWorkerGlobalScope extends WorkerGlobalScope {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/clients) */
readonly clients: Clients;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/activate_event) */
onactivate: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/fetch_event) */
onfetch: ((this: ServiceWorkerGlobalScope, ev: FetchEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/install_event) */
oninstall: ((this: ServiceWorkerGlobalScope, ev: ExtendableEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/message_event) */
onmessage: ((this: ServiceWorkerGlobalScope, ev: ExtendableMessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/messageerror_event) */
onmessageerror: ((this: ServiceWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclick_event) */
onnotificationclick: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/notificationclose_event) */
onnotificationclose: ((this: ServiceWorkerGlobalScope, ev: NotificationEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/push_event) */
onpush: ((this: ServiceWorkerGlobalScope, ev: PushEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/pushsubscriptionchange_event) */
onpushsubscriptionchange: ((this: ServiceWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/registration) */
readonly registration: ServiceWorkerRegistration;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/serviceWorker) */
readonly serviceWorker: ServiceWorker;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting) */
skipWaiting(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerGlobalScopeEventMap>(type: K, listener: (this: ServiceWorkerGlobalScope, ev: ServiceWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerGlobalScope: {
prototype: ServiceWorkerGlobalScope;
new(): ServiceWorkerGlobalScope;
};
interface ServiceWorkerRegistrationEventMap {
"updatefound": Event;
}
/**
* This ServiceWorker API interface represents the service worker registration. You register a service worker to control one or more pages that share the same origin.
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration)
*/
interface ServiceWorkerRegistration extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/active) */
readonly active: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/installing) */
readonly installing: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/navigationPreload) */
readonly navigationPreload: NavigationPreloadManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updatefound_event) */
onupdatefound: ((this: ServiceWorkerRegistration, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/pushManager) */
readonly pushManager: PushManager;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/scope) */
readonly scope: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/updateViaCache) */
readonly updateViaCache: ServiceWorkerUpdateViaCache;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/waiting) */
readonly waiting: ServiceWorker | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/getNotifications) */
getNotifications(filter?: GetNotificationOptions): Promise<Notification[]>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/showNotification) */
showNotification(title: string, options?: NotificationOptions): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/unregister) */
unregister(): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ServiceWorkerRegistration/update) */
update(): Promise<void>;
addEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof ServiceWorkerRegistrationEventMap>(type: K, listener: (this: ServiceWorkerRegistration, ev: ServiceWorkerRegistrationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var ServiceWorkerRegistration: {
prototype: ServiceWorkerRegistration;
new(): ServiceWorkerRegistration;
};
interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap {
"connect": MessageEvent;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope) */
interface SharedWorkerGlobalScope extends WorkerGlobalScope {
/**
* Returns sharedWorkerGlobal's name, i.e. the value given to the SharedWorker constructor. Multiple SharedWorker objects can correspond to the same shared worker (and SharedWorkerGlobalScope), by reusing the same name.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/name)
*/
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/connect_event) */
onconnect: ((this: SharedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/**
* Aborts sharedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SharedWorkerGlobalScope/close)
*/
close(): void;
addEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof SharedWorkerGlobalScopeEventMap>(type: K, listener: (this: SharedWorkerGlobalScope, ev: SharedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var SharedWorkerGlobalScope: {
prototype: SharedWorkerGlobalScope;
new(): SharedWorkerGlobalScope;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager)
*/
interface StorageManager {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/estimate) */
estimate(): Promise<StorageEstimate>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/getDirectory) */
getDirectory(): Promise<FileSystemDirectoryHandle>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StorageManager/persisted) */
persisted(): Promise<boolean>;
}
declare var StorageManager: {
prototype: StorageManager;
new(): StorageManager;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly) */
interface StylePropertyMapReadOnly {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/size) */
readonly size: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/get) */
get(property: string): undefined | CSSStyleValue;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/getAll) */
getAll(property: string): CSSStyleValue[];
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/StylePropertyMapReadOnly/has) */
has(property: string): boolean;
forEach(callbackfn: (value: CSSStyleValue[], key: string, parent: StylePropertyMapReadOnly) => void, thisArg?: any): void;
}
declare var StylePropertyMapReadOnly: {
prototype: StylePropertyMapReadOnly;
new(): StylePropertyMapReadOnly;
};
/**
* This Web Crypto API interface provides a number of low-level cryptographic functions. It is accessed via the Crypto.subtle properties available in a window context (via Window.crypto).
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto)
*/
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/decrypt) */
decrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveBits) */
deriveBits(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, length: number): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/digest) */
digest(algorithm: AlgorithmIdentifier, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/encrypt) */
encrypt(algorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey) */
exportKey(format: "jwk", key: CryptoKey): Promise<JsonWebKey>;
exportKey(format: Exclude<KeyFormat, "jwk">, key: CryptoKey): Promise<ArrayBuffer>;
exportKey(format: KeyFormat, key: CryptoKey): Promise<ArrayBuffer | JsonWebKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKeyPair | CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign) */
sign(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, data: BufferSource): Promise<ArrayBuffer>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: KeyUsage[]): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify) */
verify(algorithm: AlgorithmIdentifier | RsaPssParams | EcdsaParams, key: CryptoKey, signature: BufferSource, data: BufferSource): Promise<boolean>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/wrapKey) */
wrapKey(format: KeyFormat, key: CryptoKey, wrappingKey: CryptoKey, wrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams): Promise<ArrayBuffer>;
}
declare var SubtleCrypto: {
prototype: SubtleCrypto;
new(): SubtleCrypto;
};
/**
* A decoder for a specific method, that is a specific character encoding, like utf-8, iso-8859-2, koi8, cp1261, gbk, etc.\xA0A decoder takes a stream of bytes as input and emits a stream of code points. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder)
*/
interface TextDecoder extends TextDecoderCommon {
/**
* Returns the result of running encoding's decoder. The method can be invoked zero or more times with options's stream set to true, and then once without options's stream (or set to false), to process a fragmented input. If the invocation without options's stream (or set to false) has no input, it's clearest to omit both arguments.
*
* \`\`\`
* var string = "", decoder = new TextDecoder(encoding), buffer;
* while(buffer = next_chunk()) {
* string += decoder.decode(buffer, {stream:true});
* }
* string += decoder.decode(); // end-of-queue
* \`\`\`
*
* If the error mode is "fatal" and encoding's decoder returns error, throws a TypeError.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/decode)
*/
decode(input?: AllowSharedBufferSource, options?: TextDecodeOptions): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new(label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextDecoderCommon {
/**
* Returns encoding's name, lowercased.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/encoding)
*/
readonly encoding: string;
/**
* Returns true if error mode is "fatal", otherwise false.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/fatal)
*/
readonly fatal: boolean;
/**
* Returns the value of ignore BOM.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoder/ignoreBOM)
*/
readonly ignoreBOM: boolean;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) */
interface TextDecoderStream extends GenericTransformStream, TextDecoderCommon {
readonly readable: ReadableStream<string>;
readonly writable: WritableStream<BufferSource>;
}
declare var TextDecoderStream: {
prototype: TextDecoderStream;
new(label?: string, options?: TextDecoderOptions): TextDecoderStream;
};
/**
* TextEncoder takes a stream of code points as input and emits a stream of bytes. For a more scalable, non-native library, see StringView \u2013 a C-like representation of strings based on typed arrays.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder)
*/
interface TextEncoder extends TextEncoderCommon {
/**
* Returns the result of running UTF-8's encoder.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encode)
*/
encode(input?: string): Uint8Array;
/**
* Runs the UTF-8 encoder on source, stores the result of that operation into destination, and returns the progress made as an object wherein read is the number of converted code units of source and written is the number of bytes modified in destination.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encodeInto)
*/
encodeInto(source: string, destination: Uint8Array): TextEncoderEncodeIntoResult;
}
declare var TextEncoder: {
prototype: TextEncoder;
new(): TextEncoder;
};
interface TextEncoderCommon {
/**
* Returns "utf-8".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoder/encoding)
*/
readonly encoding: string;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextEncoderStream) */
interface TextEncoderStream extends GenericTransformStream, TextEncoderCommon {
readonly readable: ReadableStream<Uint8Array>;
readonly writable: WritableStream<string>;
}
declare var TextEncoderStream: {
prototype: TextEncoderStream;
new(): TextEncoderStream;
};
/**
* The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics)
*/
interface TextMetrics {
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxAscent)
*/
readonly actualBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxDescent)
*/
readonly actualBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxLeft)
*/
readonly actualBoundingBoxLeft: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/actualBoundingBoxRight)
*/
readonly actualBoundingBoxRight: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/alphabeticBaseline)
*/
readonly alphabeticBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightAscent)
*/
readonly emHeightAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/emHeightDescent)
*/
readonly emHeightDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxAscent)
*/
readonly fontBoundingBoxAscent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/fontBoundingBoxDescent)
*/
readonly fontBoundingBoxDescent: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/hangingBaseline)
*/
readonly hangingBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/ideographicBaseline)
*/
readonly ideographicBaseline: number;
/**
* Returns the measurement described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/TextMetrics/width)
*/
readonly width: number;
}
declare var TextMetrics: {
prototype: TextMetrics;
new(): TextMetrics;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream) */
interface TransformStream<I = any, O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/readable) */
readonly readable: ReadableStream<O>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStream/writable) */
readonly writable: WritableStream<I>;
}
declare var TransformStream: {
prototype: TransformStream;
new<I = any, O = any>(transformer?: Transformer<I, O>, writableStrategy?: QueuingStrategy<I>, readableStrategy?: QueuingStrategy<O>): TransformStream<I, O>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController) */
interface TransformStreamDefaultController<O = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/enqueue) */
enqueue(chunk?: O): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/error) */
error(reason?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/TransformStreamDefaultController/terminate) */
terminate(): void;
}
declare var TransformStreamDefaultController: {
prototype: TransformStreamDefaultController;
new(): TransformStreamDefaultController;
};
/**
* The URL\xA0interface represents an object providing static methods used for creating object URLs.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL)
*/
interface URL {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hash) */
hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/host) */
host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/hostname) */
hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/href) */
href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/password) */
password: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/pathname) */
pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/port) */
port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/protocol) */
protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/search) */
search: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/searchParams) */
readonly searchParams: URLSearchParams;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/username) */
username: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/toJSON) */
toJSON(): string;
}
declare var URL: {
prototype: URL;
new(url: string | URL, base?: string | URL): URL;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/canParse_static) */
canParse(url: string | URL, base?: string): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/createObjectURL_static) */
createObjectURL(obj: Blob): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URL/revokeObjectURL_static) */
revokeObjectURL(url: string): void;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams) */
interface URLSearchParams {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/size) */
readonly size: number;
/**
* Appends a specified key/value pair as a new search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/append)
*/
append(name: string, value: string): void;
/**
* Deletes the given search parameter, and its associated value, from the list of all search parameters.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/delete)
*/
delete(name: string, value?: string): void;
/**
* Returns the first value associated to the given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/get)
*/
get(name: string): string | null;
/**
* Returns all the values association with a given search parameter.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/getAll)
*/
getAll(name: string): string[];
/**
* Returns a Boolean indicating if such a search parameter exists.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/has)
*/
has(name: string, value?: string): boolean;
/**
* Sets the value associated to a given search parameter to the given value. If there were several values, delete the others.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/set)
*/
set(name: string, value: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/URLSearchParams/sort) */
sort(): void;
/** Returns a string containing a query string suitable for use in a URL. Does not include the question mark. */
toString(): string;
forEach(callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any): void;
}
declare var URLSearchParams: {
prototype: URLSearchParams;
new(init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace) */
interface VideoColorSpace {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/fullRange) */
readonly fullRange: boolean | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/matrix) */
readonly matrix: VideoMatrixCoefficients | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/primaries) */
readonly primaries: VideoColorPrimaries | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/transfer) */
readonly transfer: VideoTransferCharacteristics | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoColorSpace/toJSON) */
toJSON(): VideoColorSpaceInit;
}
declare var VideoColorSpace: {
prototype: VideoColorSpace;
new(init?: VideoColorSpaceInit): VideoColorSpace;
};
interface VideoDecoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder)
*/
interface VideoDecoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decodeQueueSize) */
readonly decodeQueueSize: number;
ondequeue: ((this: VideoDecoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/configure) */
configure(config: VideoDecoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/decode) */
decode(chunk: EncodedVideoChunk): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/flush) */
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoDecoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoDecoderEventMap>(type: K, listener: (this: VideoDecoder, ev: VideoDecoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoDecoder: {
prototype: VideoDecoder;
new(init: VideoDecoderInit): VideoDecoder;
isConfigSupported(config: VideoDecoderConfig): Promise<VideoDecoderSupport>;
};
interface VideoEncoderEventMap {
"dequeue": Event;
}
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder)
*/
interface VideoEncoder extends EventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encodeQueueSize) */
readonly encodeQueueSize: number;
ondequeue: ((this: VideoEncoder, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/state) */
readonly state: CodecState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/close) */
close(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/configure) */
configure(config: VideoEncoderConfig): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/encode) */
encode(frame: VideoFrame, options?: VideoEncoderEncodeOptions): void;
flush(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoEncoder/reset) */
reset(): void;
addEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof VideoEncoderEventMap>(type: K, listener: (this: VideoEncoder, ev: VideoEncoderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var VideoEncoder: {
prototype: VideoEncoder;
new(init: VideoEncoderInit): VideoEncoder;
isConfigSupported(config: VideoEncoderConfig): Promise<VideoEncoderSupport>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame) */
interface VideoFrame {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedHeight) */
readonly codedHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedRect) */
readonly codedRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/codedWidth) */
readonly codedWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/colorSpace) */
readonly colorSpace: VideoColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayHeight) */
readonly displayHeight: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/displayWidth) */
readonly displayWidth: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/duration) */
readonly duration: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/format) */
readonly format: VideoPixelFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/timestamp) */
readonly timestamp: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/visibleRect) */
readonly visibleRect: DOMRectReadOnly | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/allocationSize) */
allocationSize(options?: VideoFrameCopyToOptions): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/clone) */
clone(): VideoFrame;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/VideoFrame/close) */
close(): void;
copyTo(destination: AllowSharedBufferSource, options?: VideoFrameCopyToOptions): Promise<PlaneLayout[]>;
}
declare var VideoFrame: {
prototype: VideoFrame;
new(image: CanvasImageSource, init?: VideoFrameInit): VideoFrame;
new(data: AllowSharedBufferSource, init: VideoFrameBufferInit): VideoFrame;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_color_buffer_float) */
interface WEBGL_color_buffer_float {
readonly RGBA32F_EXT: 0x8814;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: 0x8211;
readonly UNSIGNED_NORMALIZED_EXT: 0x8C17;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc) */
interface WEBGL_compressed_texture_astc {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles) */
getSupportedProfiles(): string[];
readonly COMPRESSED_RGBA_ASTC_4x4_KHR: 0x93B0;
readonly COMPRESSED_RGBA_ASTC_5x4_KHR: 0x93B1;
readonly COMPRESSED_RGBA_ASTC_5x5_KHR: 0x93B2;
readonly COMPRESSED_RGBA_ASTC_6x5_KHR: 0x93B3;
readonly COMPRESSED_RGBA_ASTC_6x6_KHR: 0x93B4;
readonly COMPRESSED_RGBA_ASTC_8x5_KHR: 0x93B5;
readonly COMPRESSED_RGBA_ASTC_8x6_KHR: 0x93B6;
readonly COMPRESSED_RGBA_ASTC_8x8_KHR: 0x93B7;
readonly COMPRESSED_RGBA_ASTC_10x5_KHR: 0x93B8;
readonly COMPRESSED_RGBA_ASTC_10x6_KHR: 0x93B9;
readonly COMPRESSED_RGBA_ASTC_10x8_KHR: 0x93BA;
readonly COMPRESSED_RGBA_ASTC_10x10_KHR: 0x93BB;
readonly COMPRESSED_RGBA_ASTC_12x10_KHR: 0x93BC;
readonly COMPRESSED_RGBA_ASTC_12x12_KHR: 0x93BD;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: 0x93D0;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: 0x93D1;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: 0x93D2;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: 0x93D3;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: 0x93D4;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: 0x93D5;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: 0x93D6;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: 0x93D7;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR: 0x93D8;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR: 0x93D9;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR: 0x93DA;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR: 0x93DB;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR: 0x93DC;
readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR: 0x93DD;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc) */
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: 0x9270;
readonly COMPRESSED_SIGNED_R11_EAC: 0x9271;
readonly COMPRESSED_RG11_EAC: 0x9272;
readonly COMPRESSED_SIGNED_RG11_EAC: 0x9273;
readonly COMPRESSED_RGB8_ETC2: 0x9274;
readonly COMPRESSED_SRGB8_ETC2: 0x9275;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277;
readonly COMPRESSED_RGBA8_ETC2_EAC: 0x9278;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_etc1) */
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: 0x8D64;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_pvrtc) */
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8C00;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8C01;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8C02;
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8C03;
}
/**
* The WEBGL_compressed_texture_s3tc extension is part of the WebGL API and exposes four S3TC compressed texture formats.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc)
*/
interface WEBGL_compressed_texture_s3tc {
readonly COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83F0;
readonly COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83F1;
readonly COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83F2;
readonly COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83F3;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb) */
interface WEBGL_compressed_texture_s3tc_srgb {
readonly COMPRESSED_SRGB_S3TC_DXT1_EXT: 0x8C4C;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: 0x8C4D;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: 0x8C4E;
readonly COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: 0x8C4F;
}
/**
* The WEBGL_debug_renderer_info extension is part of the WebGL API and exposes two constants with information about the graphics driver for debugging purposes.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_renderer_info)
*/
interface WEBGL_debug_renderer_info {
readonly UNMASKED_VENDOR_WEBGL: 0x9245;
readonly UNMASKED_RENDERER_WEBGL: 0x9246;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders) */
interface WEBGL_debug_shaders {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource) */
getTranslatedShaderSource(shader: WebGLShader): string;
}
/**
* The WEBGL_depth_texture extension is part of the WebGL API and defines 2D depth and depth-stencil textures.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_depth_texture)
*/
interface WEBGL_depth_texture {
readonly UNSIGNED_INT_24_8_WEBGL: 0x84FA;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers) */
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: GLenum[]): void;
readonly COLOR_ATTACHMENT0_WEBGL: 0x8CE0;
readonly COLOR_ATTACHMENT1_WEBGL: 0x8CE1;
readonly COLOR_ATTACHMENT2_WEBGL: 0x8CE2;
readonly COLOR_ATTACHMENT3_WEBGL: 0x8CE3;
readonly COLOR_ATTACHMENT4_WEBGL: 0x8CE4;
readonly COLOR_ATTACHMENT5_WEBGL: 0x8CE5;
readonly COLOR_ATTACHMENT6_WEBGL: 0x8CE6;
readonly COLOR_ATTACHMENT7_WEBGL: 0x8CE7;
readonly COLOR_ATTACHMENT8_WEBGL: 0x8CE8;
readonly COLOR_ATTACHMENT9_WEBGL: 0x8CE9;
readonly COLOR_ATTACHMENT10_WEBGL: 0x8CEA;
readonly COLOR_ATTACHMENT11_WEBGL: 0x8CEB;
readonly COLOR_ATTACHMENT12_WEBGL: 0x8CEC;
readonly COLOR_ATTACHMENT13_WEBGL: 0x8CED;
readonly COLOR_ATTACHMENT14_WEBGL: 0x8CEE;
readonly COLOR_ATTACHMENT15_WEBGL: 0x8CEF;
readonly DRAW_BUFFER0_WEBGL: 0x8825;
readonly DRAW_BUFFER1_WEBGL: 0x8826;
readonly DRAW_BUFFER2_WEBGL: 0x8827;
readonly DRAW_BUFFER3_WEBGL: 0x8828;
readonly DRAW_BUFFER4_WEBGL: 0x8829;
readonly DRAW_BUFFER5_WEBGL: 0x882A;
readonly DRAW_BUFFER6_WEBGL: 0x882B;
readonly DRAW_BUFFER7_WEBGL: 0x882C;
readonly DRAW_BUFFER8_WEBGL: 0x882D;
readonly DRAW_BUFFER9_WEBGL: 0x882E;
readonly DRAW_BUFFER10_WEBGL: 0x882F;
readonly DRAW_BUFFER11_WEBGL: 0x8830;
readonly DRAW_BUFFER12_WEBGL: 0x8831;
readonly DRAW_BUFFER13_WEBGL: 0x8832;
readonly DRAW_BUFFER14_WEBGL: 0x8833;
readonly DRAW_BUFFER15_WEBGL: 0x8834;
readonly MAX_COLOR_ATTACHMENTS_WEBGL: 0x8CDF;
readonly MAX_DRAW_BUFFERS_WEBGL: 0x8824;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context) */
interface WEBGL_lose_context {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/loseContext) */
loseContext(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_lose_context/restoreContext) */
restoreContext(): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw) */
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: number, countsList: Int32Array | GLsizei[], countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: number, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: number, drawcount: GLsizei): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext) */
interface WebGL2RenderingContext extends WebGL2RenderingContextBase, WebGL2RenderingContextOverloads, WebGLRenderingContextBase {
}
declare var WebGL2RenderingContext: {
prototype: WebGL2RenderingContext;
new(): WebGL2RenderingContext;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginQuery) */
beginQuery(target: GLenum, query: WebGLQuery): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback) */
beginTransformFeedback(primitiveMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferBase) */
bindBufferBase(target: GLenum, index: GLuint, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindBufferRange) */
bindBufferRange(target: GLenum, index: GLuint, buffer: WebGLBuffer | null, offset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindSampler) */
bindSampler(unit: GLuint, sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback) */
bindTransformFeedback(target: GLenum, tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/bindVertexArray) */
bindVertexArray(array: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/blitFramebuffer) */
blitFramebuffer(srcX0: GLint, srcY0: GLint, srcX1: GLint, srcY1: GLint, dstX0: GLint, dstY0: GLint, dstX1: GLint, dstY1: GLint, mask: GLbitfield, filter: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfi(buffer: GLenum, drawbuffer: GLint, depth: GLfloat, stencil: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Float32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Int32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Uint32List, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clientWaitSync) */
clientWaitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLuint64): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D) */
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage3D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D) */
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyBufferSubData) */
copyBufferSubData(readTarget: GLenum, writeTarget: GLenum, readOffset: GLintptr, writeOffset: GLintptr, size: GLsizeiptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D) */
copyTexSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createQuery) */
createQuery(): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createSampler) */
createSampler(): WebGLSampler | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createTransformFeedback) */
createTransformFeedback(): WebGLTransformFeedback | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/createVertexArray) */
createVertexArray(): WebGLVertexArrayObject | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteQuery) */
deleteQuery(query: WebGLQuery | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSampler) */
deleteSampler(sampler: WebGLSampler | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteSync) */
deleteSync(sync: WebGLSync | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback) */
deleteTransformFeedback(tf: WebGLTransformFeedback | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/deleteVertexArray) */
deleteVertexArray(vertexArray: WebGLVertexArrayObject | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced) */
drawArraysInstanced(mode: GLenum, first: GLint, count: GLsizei, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced) */
drawElementsInstanced(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, instanceCount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawRangeElements) */
drawRangeElements(mode: GLenum, start: GLuint, end: GLuint, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endQuery) */
endQuery(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/endTransformFeedback) */
endTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/fenceSync) */
fenceSync(condition: GLenum, flags: GLbitfield): WebGLSync | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer) */
framebufferTextureLayer(target: GLenum, attachment: GLenum, texture: WebGLTexture | null, level: GLint, layer: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName) */
getActiveUniformBlockName(program: WebGLProgram, uniformBlockIndex: GLuint): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter) */
getActiveUniformBlockParameter(program: WebGLProgram, uniformBlockIndex: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: GLuint[], pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getBufferSubData) */
getBufferSubData(target: GLenum, srcByteOffset: GLintptr, dstBuffer: ArrayBufferView, dstOffset?: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getFragDataLocation) */
getFragDataLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getIndexedParameter) */
getIndexedParameter(target: GLenum, index: GLuint): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter) */
getInternalformatParameter(target: GLenum, internalformat: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQuery) */
getQuery(target: GLenum, pname: GLenum): WebGLQuery | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getQueryParameter) */
getQueryParameter(query: WebGLQuery, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSamplerParameter) */
getSamplerParameter(sampler: WebGLSampler, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getSyncParameter) */
getSyncParameter(sync: WebGLSync, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying) */
getTransformFeedbackVarying(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex) */
getUniformBlockIndex(program: WebGLProgram, uniformBlockName: string): GLuint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: string[]): GLuint[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: GLenum[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: GLenum[], x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isQuery) */
isQuery(query: WebGLQuery | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSampler) */
isSampler(sampler: WebGLSampler | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isSync) */
isSync(sync: WebGLSync | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isTransformFeedback) */
isTransformFeedback(tf: WebGLTransformFeedback | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/isVertexArray) */
isVertexArray(vertexArray: WebGLVertexArrayObject | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback) */
pauseTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/readBuffer) */
readBuffer(src: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample) */
renderbufferStorageMultisample(target: GLenum, samples: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback) */
resumeTransformFeedback(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameterf(sampler: WebGLSampler, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/samplerParameter) */
samplerParameteri(sampler: WebGLSampler, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texImage3D) */
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView | null): void;
texImage3D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage2D) */
texStorage2D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texStorage3D) */
texStorage3D(target: GLenum, levels: GLsizei, internalformat: GLenum, width: GLsizei, height: GLsizei, depth: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/texSubImage3D) */
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage3D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, zoffset: GLint, width: GLsizei, height: GLsizei, depth: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView | null, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: string[], bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1ui(location: WebGLUniformLocation | null, v0: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4ui(location: WebGLUniformLocation | null, v0: GLuint, v1: GLuint, v2: GLuint, v3: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Uint32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding) */
uniformBlockBinding(program: WebGLProgram, uniformBlockIndex: GLuint, uniformBlockBinding: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor) */
vertexAttribDivisor(index: GLuint, divisor: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4i(index: GLuint, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4ui(index: GLuint, x: GLuint, y: GLuint, z: GLuint, w: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Uint32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer) */
vertexAttribIPointer(index: GLuint, size: GLint, type: GLenum, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/waitSync) */
waitSync(sync: WebGLSync, flags: GLbitfield, timeout: GLint64): void;
readonly READ_BUFFER: 0x0C02;
readonly UNPACK_ROW_LENGTH: 0x0CF2;
readonly UNPACK_SKIP_ROWS: 0x0CF3;
readonly UNPACK_SKIP_PIXELS: 0x0CF4;
readonly PACK_ROW_LENGTH: 0x0D02;
readonly PACK_SKIP_ROWS: 0x0D03;
readonly PACK_SKIP_PIXELS: 0x0D04;
readonly COLOR: 0x1800;
readonly DEPTH: 0x1801;
readonly STENCIL: 0x1802;
readonly RED: 0x1903;
readonly RGB8: 0x8051;
readonly RGB10_A2: 0x8059;
readonly TEXTURE_BINDING_3D: 0x806A;
readonly UNPACK_SKIP_IMAGES: 0x806D;
readonly UNPACK_IMAGE_HEIGHT: 0x806E;
readonly TEXTURE_3D: 0x806F;
readonly TEXTURE_WRAP_R: 0x8072;
readonly MAX_3D_TEXTURE_SIZE: 0x8073;
readonly UNSIGNED_INT_2_10_10_10_REV: 0x8368;
readonly MAX_ELEMENTS_VERTICES: 0x80E8;
readonly MAX_ELEMENTS_INDICES: 0x80E9;
readonly TEXTURE_MIN_LOD: 0x813A;
readonly TEXTURE_MAX_LOD: 0x813B;
readonly TEXTURE_BASE_LEVEL: 0x813C;
readonly TEXTURE_MAX_LEVEL: 0x813D;
readonly MIN: 0x8007;
readonly MAX: 0x8008;
readonly DEPTH_COMPONENT24: 0x81A6;
readonly MAX_TEXTURE_LOD_BIAS: 0x84FD;
readonly TEXTURE_COMPARE_MODE: 0x884C;
readonly TEXTURE_COMPARE_FUNC: 0x884D;
readonly CURRENT_QUERY: 0x8865;
readonly QUERY_RESULT: 0x8866;
readonly QUERY_RESULT_AVAILABLE: 0x8867;
readonly STREAM_READ: 0x88E1;
readonly STREAM_COPY: 0x88E2;
readonly STATIC_READ: 0x88E5;
readonly STATIC_COPY: 0x88E6;
readonly DYNAMIC_READ: 0x88E9;
readonly DYNAMIC_COPY: 0x88EA;
readonly MAX_DRAW_BUFFERS: 0x8824;
readonly DRAW_BUFFER0: 0x8825;
readonly DRAW_BUFFER1: 0x8826;
readonly DRAW_BUFFER2: 0x8827;
readonly DRAW_BUFFER3: 0x8828;
readonly DRAW_BUFFER4: 0x8829;
readonly DRAW_BUFFER5: 0x882A;
readonly DRAW_BUFFER6: 0x882B;
readonly DRAW_BUFFER7: 0x882C;
readonly DRAW_BUFFER8: 0x882D;
readonly DRAW_BUFFER9: 0x882E;
readonly DRAW_BUFFER10: 0x882F;
readonly DRAW_BUFFER11: 0x8830;
readonly DRAW_BUFFER12: 0x8831;
readonly DRAW_BUFFER13: 0x8832;
readonly DRAW_BUFFER14: 0x8833;
readonly DRAW_BUFFER15: 0x8834;
readonly MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8B49;
readonly MAX_VERTEX_UNIFORM_COMPONENTS: 0x8B4A;
readonly SAMPLER_3D: 0x8B5F;
readonly SAMPLER_2D_SHADOW: 0x8B62;
readonly FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8B8B;
readonly PIXEL_PACK_BUFFER: 0x88EB;
readonly PIXEL_UNPACK_BUFFER: 0x88EC;
readonly PIXEL_PACK_BUFFER_BINDING: 0x88ED;
readonly PIXEL_UNPACK_BUFFER_BINDING: 0x88EF;
readonly FLOAT_MAT2x3: 0x8B65;
readonly FLOAT_MAT2x4: 0x8B66;
readonly FLOAT_MAT3x2: 0x8B67;
readonly FLOAT_MAT3x4: 0x8B68;
readonly FLOAT_MAT4x2: 0x8B69;
readonly FLOAT_MAT4x3: 0x8B6A;
readonly SRGB: 0x8C40;
readonly SRGB8: 0x8C41;
readonly SRGB8_ALPHA8: 0x8C43;
readonly COMPARE_REF_TO_TEXTURE: 0x884E;
readonly RGBA32F: 0x8814;
readonly RGB32F: 0x8815;
readonly RGBA16F: 0x881A;
readonly RGB16F: 0x881B;
readonly VERTEX_ATTRIB_ARRAY_INTEGER: 0x88FD;
readonly MAX_ARRAY_TEXTURE_LAYERS: 0x88FF;
readonly MIN_PROGRAM_TEXEL_OFFSET: 0x8904;
readonly MAX_PROGRAM_TEXEL_OFFSET: 0x8905;
readonly MAX_VARYING_COMPONENTS: 0x8B4B;
readonly TEXTURE_2D_ARRAY: 0x8C1A;
readonly TEXTURE_BINDING_2D_ARRAY: 0x8C1D;
readonly R11F_G11F_B10F: 0x8C3A;
readonly UNSIGNED_INT_10F_11F_11F_REV: 0x8C3B;
readonly RGB9_E5: 0x8C3D;
readonly UNSIGNED_INT_5_9_9_9_REV: 0x8C3E;
readonly TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8C7F;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8C80;
readonly TRANSFORM_FEEDBACK_VARYINGS: 0x8C83;
readonly TRANSFORM_FEEDBACK_BUFFER_START: 0x8C84;
readonly TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8C85;
readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8C88;
readonly RASTERIZER_DISCARD: 0x8C89;
readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8C8A;
readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8C8B;
readonly INTERLEAVED_ATTRIBS: 0x8C8C;
readonly SEPARATE_ATTRIBS: 0x8C8D;
readonly TRANSFORM_FEEDBACK_BUFFER: 0x8C8E;
readonly TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8C8F;
readonly RGBA32UI: 0x8D70;
readonly RGB32UI: 0x8D71;
readonly RGBA16UI: 0x8D76;
readonly RGB16UI: 0x8D77;
readonly RGBA8UI: 0x8D7C;
readonly RGB8UI: 0x8D7D;
readonly RGBA32I: 0x8D82;
readonly RGB32I: 0x8D83;
readonly RGBA16I: 0x8D88;
readonly RGB16I: 0x8D89;
readonly RGBA8I: 0x8D8E;
readonly RGB8I: 0x8D8F;
readonly RED_INTEGER: 0x8D94;
readonly RGB_INTEGER: 0x8D98;
readonly RGBA_INTEGER: 0x8D99;
readonly SAMPLER_2D_ARRAY: 0x8DC1;
readonly SAMPLER_2D_ARRAY_SHADOW: 0x8DC4;
readonly SAMPLER_CUBE_SHADOW: 0x8DC5;
readonly UNSIGNED_INT_VEC2: 0x8DC6;
readonly UNSIGNED_INT_VEC3: 0x8DC7;
readonly UNSIGNED_INT_VEC4: 0x8DC8;
readonly INT_SAMPLER_2D: 0x8DCA;
readonly INT_SAMPLER_3D: 0x8DCB;
readonly INT_SAMPLER_CUBE: 0x8DCC;
readonly INT_SAMPLER_2D_ARRAY: 0x8DCF;
readonly UNSIGNED_INT_SAMPLER_2D: 0x8DD2;
readonly UNSIGNED_INT_SAMPLER_3D: 0x8DD3;
readonly UNSIGNED_INT_SAMPLER_CUBE: 0x8DD4;
readonly UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8DD7;
readonly DEPTH_COMPONENT32F: 0x8CAC;
readonly DEPTH32F_STENCIL8: 0x8CAD;
readonly FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8DAD;
readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211;
readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212;
readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213;
readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214;
readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215;
readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216;
readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217;
readonly FRAMEBUFFER_DEFAULT: 0x8218;
readonly UNSIGNED_INT_24_8: 0x84FA;
readonly DEPTH24_STENCIL8: 0x88F0;
readonly UNSIGNED_NORMALIZED: 0x8C17;
readonly DRAW_FRAMEBUFFER_BINDING: 0x8CA6;
readonly READ_FRAMEBUFFER: 0x8CA8;
readonly DRAW_FRAMEBUFFER: 0x8CA9;
readonly READ_FRAMEBUFFER_BINDING: 0x8CAA;
readonly RENDERBUFFER_SAMPLES: 0x8CAB;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8CD4;
readonly MAX_COLOR_ATTACHMENTS: 0x8CDF;
readonly COLOR_ATTACHMENT1: 0x8CE1;
readonly COLOR_ATTACHMENT2: 0x8CE2;
readonly COLOR_ATTACHMENT3: 0x8CE3;
readonly COLOR_ATTACHMENT4: 0x8CE4;
readonly COLOR_ATTACHMENT5: 0x8CE5;
readonly COLOR_ATTACHMENT6: 0x8CE6;
readonly COLOR_ATTACHMENT7: 0x8CE7;
readonly COLOR_ATTACHMENT8: 0x8CE8;
readonly COLOR_ATTACHMENT9: 0x8CE9;
readonly COLOR_ATTACHMENT10: 0x8CEA;
readonly COLOR_ATTACHMENT11: 0x8CEB;
readonly COLOR_ATTACHMENT12: 0x8CEC;
readonly COLOR_ATTACHMENT13: 0x8CED;
readonly COLOR_ATTACHMENT14: 0x8CEE;
readonly COLOR_ATTACHMENT15: 0x8CEF;
readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8D56;
readonly MAX_SAMPLES: 0x8D57;
readonly HALF_FLOAT: 0x140B;
readonly RG: 0x8227;
readonly RG_INTEGER: 0x8228;
readonly R8: 0x8229;
readonly RG8: 0x822B;
readonly R16F: 0x822D;
readonly R32F: 0x822E;
readonly RG16F: 0x822F;
readonly RG32F: 0x8230;
readonly R8I: 0x8231;
readonly R8UI: 0x8232;
readonly R16I: 0x8233;
readonly R16UI: 0x8234;
readonly R32I: 0x8235;
readonly R32UI: 0x8236;
readonly RG8I: 0x8237;
readonly RG8UI: 0x8238;
readonly RG16I: 0x8239;
readonly RG16UI: 0x823A;
readonly RG32I: 0x823B;
readonly RG32UI: 0x823C;
readonly VERTEX_ARRAY_BINDING: 0x85B5;
readonly R8_SNORM: 0x8F94;
readonly RG8_SNORM: 0x8F95;
readonly RGB8_SNORM: 0x8F96;
readonly RGBA8_SNORM: 0x8F97;
readonly SIGNED_NORMALIZED: 0x8F9C;
readonly COPY_READ_BUFFER: 0x8F36;
readonly COPY_WRITE_BUFFER: 0x8F37;
readonly COPY_READ_BUFFER_BINDING: 0x8F36;
readonly COPY_WRITE_BUFFER_BINDING: 0x8F37;
readonly UNIFORM_BUFFER: 0x8A11;
readonly UNIFORM_BUFFER_BINDING: 0x8A28;
readonly UNIFORM_BUFFER_START: 0x8A29;
readonly UNIFORM_BUFFER_SIZE: 0x8A2A;
readonly MAX_VERTEX_UNIFORM_BLOCKS: 0x8A2B;
readonly MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8A2D;
readonly MAX_COMBINED_UNIFORM_BLOCKS: 0x8A2E;
readonly MAX_UNIFORM_BUFFER_BINDINGS: 0x8A2F;
readonly MAX_UNIFORM_BLOCK_SIZE: 0x8A30;
readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8A31;
readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8A33;
readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8A34;
readonly ACTIVE_UNIFORM_BLOCKS: 0x8A36;
readonly UNIFORM_TYPE: 0x8A37;
readonly UNIFORM_SIZE: 0x8A38;
readonly UNIFORM_BLOCK_INDEX: 0x8A3A;
readonly UNIFORM_OFFSET: 0x8A3B;
readonly UNIFORM_ARRAY_STRIDE: 0x8A3C;
readonly UNIFORM_MATRIX_STRIDE: 0x8A3D;
readonly UNIFORM_IS_ROW_MAJOR: 0x8A3E;
readonly UNIFORM_BLOCK_BINDING: 0x8A3F;
readonly UNIFORM_BLOCK_DATA_SIZE: 0x8A40;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8A42;
readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8A43;
readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8A44;
readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8A46;
readonly INVALID_INDEX: 0xFFFFFFFF;
readonly MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122;
readonly MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125;
readonly MAX_SERVER_WAIT_TIMEOUT: 0x9111;
readonly OBJECT_TYPE: 0x9112;
readonly SYNC_CONDITION: 0x9113;
readonly SYNC_STATUS: 0x9114;
readonly SYNC_FLAGS: 0x9115;
readonly SYNC_FENCE: 0x9116;
readonly SYNC_GPU_COMMANDS_COMPLETE: 0x9117;
readonly UNSIGNALED: 0x9118;
readonly SIGNALED: 0x9119;
readonly ALREADY_SIGNALED: 0x911A;
readonly TIMEOUT_EXPIRED: 0x911B;
readonly CONDITION_SATISFIED: 0x911C;
readonly WAIT_FAILED: 0x911D;
readonly SYNC_FLUSH_COMMANDS_BIT: 0x00000001;
readonly VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88FE;
readonly ANY_SAMPLES_PASSED: 0x8C2F;
readonly ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8D6A;
readonly SAMPLER_BINDING: 0x8919;
readonly RGB10_A2UI: 0x906F;
readonly INT_2_10_10_10_REV: 0x8D9F;
readonly TRANSFORM_FEEDBACK: 0x8E22;
readonly TRANSFORM_FEEDBACK_PAUSED: 0x8E23;
readonly TRANSFORM_FEEDBACK_ACTIVE: 0x8E24;
readonly TRANSFORM_FEEDBACK_BINDING: 0x8E25;
readonly TEXTURE_IMMUTABLE_FORMAT: 0x912F;
readonly MAX_ELEMENT_INDEX: 0x8D6B;
readonly TEXTURE_IMMUTABLE_LEVELS: 0x82DF;
readonly TIMEOUT_IGNORED: -1;
readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL: 0x9247;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, srcData: AllowSharedBufferSource | null, usage: GLenum): void;
bufferData(target: GLenum, srcData: ArrayBufferView, usage: GLenum, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: AllowSharedBufferSource): void;
bufferSubData(target: GLenum, dstByteOffset: GLintptr, srcData: ArrayBufferView, srcOffset: number, length?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, imageSize: GLsizei, offset: GLintptr): void;
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, imageSize: GLsizei, offset: GLintptr): void;
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView | null): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, offset: GLintptr): void;
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, dstData: ArrayBufferView, dstOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pboOffset: GLintptr): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, source: TexImageSource): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, srcData: ArrayBufferView, srcOffset: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Int32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Float32List, srcOffset?: number, srcLength?: GLuint): void;
}
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getActiveAttrib() and WebGLRenderingContext.getActiveUniform() methods.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo)
*/
interface WebGLActiveInfo {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/name) */
readonly name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/size) */
readonly size: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLActiveInfo/type) */
readonly type: GLenum;
}
declare var WebGLActiveInfo: {
prototype: WebGLActiveInfo;
new(): WebGLActiveInfo;
};
/**
* Part of the WebGL API and represents an opaque buffer object storing data such as vertices or colors.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLBuffer)
*/
interface WebGLBuffer {
}
declare var WebGLBuffer: {
prototype: WebGLBuffer;
new(): WebGLBuffer;
};
/**
* The WebContextEvent interface is part of the WebGL API and is an interface for an event that is generated in response to a status change to the WebGL rendering context.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent)
*/
interface WebGLContextEvent extends Event {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLContextEvent/statusMessage) */
readonly statusMessage: string;
}
declare var WebGLContextEvent: {
prototype: WebGLContextEvent;
new(type: string, eventInit?: WebGLContextEventInit): WebGLContextEvent;
};
/**
* Part of the WebGL API and represents a collection of buffers that serve as a rendering destination.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLFramebuffer)
*/
interface WebGLFramebuffer {
}
declare var WebGLFramebuffer: {
prototype: WebGLFramebuffer;
new(): WebGLFramebuffer;
};
/**
* The WebGLProgram is part of the WebGL API and is a combination of two compiled WebGLShaders consisting of a vertex shader and a fragment shader (both written in GLSL).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLProgram)
*/
interface WebGLProgram {
}
declare var WebGLProgram: {
prototype: WebGLProgram;
new(): WebGLProgram;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLQuery) */
interface WebGLQuery {
}
declare var WebGLQuery: {
prototype: WebGLQuery;
new(): WebGLQuery;
};
/**
* Part of the WebGL API and represents a buffer that can contain an image, or can be source or target of an rendering operation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderbuffer)
*/
interface WebGLRenderbuffer {
}
declare var WebGLRenderbuffer: {
prototype: WebGLRenderbuffer;
new(): WebGLRenderbuffer;
};
/**
* Provides an interface to the OpenGL ES 2.0 graphics rendering context for the drawing surface of an HTML <canvas> element.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext)
*/
interface WebGLRenderingContext extends WebGLRenderingContextBase, WebGLRenderingContextOverloads {
}
declare var WebGLRenderingContext: {
prototype: WebGLRenderingContext;
new(): WebGLRenderingContext;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
};
interface WebGLRenderingContextBase {
drawingBufferColorSpace: PredefinedColorSpace;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferHeight) */
readonly drawingBufferHeight: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawingBufferWidth) */
readonly drawingBufferWidth: GLsizei;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/activeTexture) */
activeTexture(texture: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/attachShader) */
attachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindAttribLocation) */
bindAttribLocation(program: WebGLProgram, index: GLuint, name: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindBuffer) */
bindBuffer(target: GLenum, buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindFramebuffer) */
bindFramebuffer(target: GLenum, framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindRenderbuffer) */
bindRenderbuffer(target: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bindTexture) */
bindTexture(target: GLenum, texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendColor) */
blendColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquation) */
blendEquation(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendEquationSeparate) */
blendEquationSeparate(modeRGB: GLenum, modeAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFunc) */
blendFunc(sfactor: GLenum, dfactor: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/blendFuncSeparate) */
blendFuncSeparate(srcRGB: GLenum, dstRGB: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus) */
checkFramebufferStatus(target: GLenum): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clear) */
clear(mask: GLbitfield): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearColor) */
clearColor(red: GLclampf, green: GLclampf, blue: GLclampf, alpha: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearDepth) */
clearDepth(depth: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/clearStencil) */
clearStencil(s: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/colorMask) */
colorMask(red: GLboolean, green: GLboolean, blue: GLboolean, alpha: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compileShader) */
compileShader(shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexImage2D) */
copyTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, x: GLint, y: GLint, width: GLsizei, height: GLsizei, border: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D) */
copyTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createBuffer) */
createBuffer(): WebGLBuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createFramebuffer) */
createFramebuffer(): WebGLFramebuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createProgram) */
createProgram(): WebGLProgram | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createRenderbuffer) */
createRenderbuffer(): WebGLRenderbuffer | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createShader) */
createShader(type: GLenum): WebGLShader | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/createTexture) */
createTexture(): WebGLTexture | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/cullFace) */
cullFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteBuffer) */
deleteBuffer(buffer: WebGLBuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteFramebuffer) */
deleteFramebuffer(framebuffer: WebGLFramebuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteProgram) */
deleteProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer) */
deleteRenderbuffer(renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteShader) */
deleteShader(shader: WebGLShader | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/deleteTexture) */
deleteTexture(texture: WebGLTexture | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthFunc) */
depthFunc(func: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthMask) */
depthMask(flag: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/depthRange) */
depthRange(zNear: GLclampf, zFar: GLclampf): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/detachShader) */
detachShader(program: WebGLProgram, shader: WebGLShader): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disable) */
disable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray) */
disableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawArrays) */
drawArrays(mode: GLenum, first: GLint, count: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/drawElements) */
drawElements(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enable) */
enable(cap: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray) */
enableVertexAttribArray(index: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/finish) */
finish(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/flush) */
flush(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer) */
framebufferRenderbuffer(target: GLenum, attachment: GLenum, renderbuffertarget: GLenum, renderbuffer: WebGLRenderbuffer | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/framebufferTexture2D) */
framebufferTexture2D(target: GLenum, attachment: GLenum, textarget: GLenum, texture: WebGLTexture | null, level: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/frontFace) */
frontFace(mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/generateMipmap) */
generateMipmap(target: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveAttrib) */
getActiveAttrib(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getActiveUniform) */
getActiveUniform(program: WebGLProgram, index: GLuint): WebGLActiveInfo | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttachedShaders) */
getAttachedShaders(program: WebGLProgram): WebGLShader[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getAttribLocation) */
getAttribLocation(program: WebGLProgram, name: string): GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getBufferParameter) */
getBufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getContextAttributes) */
getContextAttributes(): WebGLContextAttributes | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getError) */
getError(): GLenum;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getExtension) */
getExtension(extensionName: "ANGLE_instanced_arrays"): ANGLE_instanced_arrays | null;
getExtension(extensionName: "EXT_blend_minmax"): EXT_blend_minmax | null;
getExtension(extensionName: "EXT_color_buffer_float"): EXT_color_buffer_float | null;
getExtension(extensionName: "EXT_color_buffer_half_float"): EXT_color_buffer_half_float | null;
getExtension(extensionName: "EXT_float_blend"): EXT_float_blend | null;
getExtension(extensionName: "EXT_frag_depth"): EXT_frag_depth | null;
getExtension(extensionName: "EXT_sRGB"): EXT_sRGB | null;
getExtension(extensionName: "EXT_shader_texture_lod"): EXT_shader_texture_lod | null;
getExtension(extensionName: "EXT_texture_compression_bptc"): EXT_texture_compression_bptc | null;
getExtension(extensionName: "EXT_texture_compression_rgtc"): EXT_texture_compression_rgtc | null;
getExtension(extensionName: "EXT_texture_filter_anisotropic"): EXT_texture_filter_anisotropic | null;
getExtension(extensionName: "KHR_parallel_shader_compile"): KHR_parallel_shader_compile | null;
getExtension(extensionName: "OES_element_index_uint"): OES_element_index_uint | null;
getExtension(extensionName: "OES_fbo_render_mipmap"): OES_fbo_render_mipmap | null;
getExtension(extensionName: "OES_standard_derivatives"): OES_standard_derivatives | null;
getExtension(extensionName: "OES_texture_float"): OES_texture_float | null;
getExtension(extensionName: "OES_texture_float_linear"): OES_texture_float_linear | null;
getExtension(extensionName: "OES_texture_half_float"): OES_texture_half_float | null;
getExtension(extensionName: "OES_texture_half_float_linear"): OES_texture_half_float_linear | null;
getExtension(extensionName: "OES_vertex_array_object"): OES_vertex_array_object | null;
getExtension(extensionName: "OVR_multiview2"): OVR_multiview2 | null;
getExtension(extensionName: "WEBGL_color_buffer_float"): WEBGL_color_buffer_float | null;
getExtension(extensionName: "WEBGL_compressed_texture_astc"): WEBGL_compressed_texture_astc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc"): WEBGL_compressed_texture_etc | null;
getExtension(extensionName: "WEBGL_compressed_texture_etc1"): WEBGL_compressed_texture_etc1 | null;
getExtension(extensionName: "WEBGL_compressed_texture_pvrtc"): WEBGL_compressed_texture_pvrtc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc"): WEBGL_compressed_texture_s3tc | null;
getExtension(extensionName: "WEBGL_compressed_texture_s3tc_srgb"): WEBGL_compressed_texture_s3tc_srgb | null;
getExtension(extensionName: "WEBGL_debug_renderer_info"): WEBGL_debug_renderer_info | null;
getExtension(extensionName: "WEBGL_debug_shaders"): WEBGL_debug_shaders | null;
getExtension(extensionName: "WEBGL_depth_texture"): WEBGL_depth_texture | null;
getExtension(extensionName: "WEBGL_draw_buffers"): WEBGL_draw_buffers | null;
getExtension(extensionName: "WEBGL_lose_context"): WEBGL_lose_context | null;
getExtension(extensionName: "WEBGL_multi_draw"): WEBGL_multi_draw | null;
getExtension(name: string): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter) */
getFramebufferAttachmentParameter(target: GLenum, attachment: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getParameter) */
getParameter(pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramInfoLog) */
getProgramInfoLog(program: WebGLProgram): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getProgramParameter) */
getProgramParameter(program: WebGLProgram, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter) */
getRenderbufferParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderInfoLog) */
getShaderInfoLog(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderParameter) */
getShaderParameter(shader: WebGLShader, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat) */
getShaderPrecisionFormat(shadertype: GLenum, precisiontype: GLenum): WebGLShaderPrecisionFormat | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getShaderSource) */
getShaderSource(shader: WebGLShader): string | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getSupportedExtensions) */
getSupportedExtensions(): string[] | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getTexParameter) */
getTexParameter(target: GLenum, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniform) */
getUniform(program: WebGLProgram, location: WebGLUniformLocation): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getUniformLocation) */
getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttrib) */
getVertexAttrib(index: GLuint, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset) */
getVertexAttribOffset(index: GLuint, pname: GLenum): GLintptr;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/hint) */
hint(target: GLenum, mode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isBuffer) */
isBuffer(buffer: WebGLBuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isContextLost) */
isContextLost(): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isEnabled) */
isEnabled(cap: GLenum): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isFramebuffer) */
isFramebuffer(framebuffer: WebGLFramebuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isProgram) */
isProgram(program: WebGLProgram | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isRenderbuffer) */
isRenderbuffer(renderbuffer: WebGLRenderbuffer | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isShader) */
isShader(shader: WebGLShader | null): GLboolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/isTexture) */
isTexture(texture: WebGLTexture | null): GLboolean;
lineWidth(width: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/linkProgram) */
linkProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/pixelStorei) */
pixelStorei(pname: GLenum, param: GLint | GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/polygonOffset) */
polygonOffset(factor: GLfloat, units: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/renderbufferStorage) */
renderbufferStorage(target: GLenum, internalformat: GLenum, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/sampleCoverage) */
sampleCoverage(value: GLclampf, invert: GLboolean): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/scissor) */
scissor(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/shaderSource) */
shaderSource(shader: WebGLShader, source: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFunc) */
stencilFunc(func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate) */
stencilFuncSeparate(face: GLenum, func: GLenum, ref: GLint, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMask) */
stencilMask(mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate) */
stencilMaskSeparate(face: GLenum, mask: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOp) */
stencilOp(fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/stencilOpSeparate) */
stencilOpSeparate(face: GLenum, fail: GLenum, zfail: GLenum, zpass: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameterf(target: GLenum, pname: GLenum, param: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texParameter) */
texParameteri(target: GLenum, pname: GLenum, param: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1f(location: WebGLUniformLocation | null, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1i(location: WebGLUniformLocation | null, x: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2i(location: WebGLUniformLocation | null, x: GLint, y: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4f(location: WebGLUniformLocation | null, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4i(location: WebGLUniformLocation | null, x: GLint, y: GLint, z: GLint, w: GLint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/useProgram) */
useProgram(program: WebGLProgram | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/validateProgram) */
validateProgram(program: WebGLProgram): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1f(index: GLuint, x: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2f(index: GLuint, x: GLfloat, y: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4f(index: GLuint, x: GLfloat, y: GLfloat, z: GLfloat, w: GLfloat): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttribPointer) */
vertexAttribPointer(index: GLuint, size: GLint, type: GLenum, normalized: GLboolean, stride: GLsizei, offset: GLintptr): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/viewport) */
viewport(x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
readonly DEPTH_BUFFER_BIT: 0x00000100;
readonly STENCIL_BUFFER_BIT: 0x00000400;
readonly COLOR_BUFFER_BIT: 0x00004000;
readonly POINTS: 0x0000;
readonly LINES: 0x0001;
readonly LINE_LOOP: 0x0002;
readonly LINE_STRIP: 0x0003;
readonly TRIANGLES: 0x0004;
readonly TRIANGLE_STRIP: 0x0005;
readonly TRIANGLE_FAN: 0x0006;
readonly ZERO: 0;
readonly ONE: 1;
readonly SRC_COLOR: 0x0300;
readonly ONE_MINUS_SRC_COLOR: 0x0301;
readonly SRC_ALPHA: 0x0302;
readonly ONE_MINUS_SRC_ALPHA: 0x0303;
readonly DST_ALPHA: 0x0304;
readonly ONE_MINUS_DST_ALPHA: 0x0305;
readonly DST_COLOR: 0x0306;
readonly ONE_MINUS_DST_COLOR: 0x0307;
readonly SRC_ALPHA_SATURATE: 0x0308;
readonly FUNC_ADD: 0x8006;
readonly BLEND_EQUATION: 0x8009;
readonly BLEND_EQUATION_RGB: 0x8009;
readonly BLEND_EQUATION_ALPHA: 0x883D;
readonly FUNC_SUBTRACT: 0x800A;
readonly FUNC_REVERSE_SUBTRACT: 0x800B;
readonly BLEND_DST_RGB: 0x80C8;
readonly BLEND_SRC_RGB: 0x80C9;
readonly BLEND_DST_ALPHA: 0x80CA;
readonly BLEND_SRC_ALPHA: 0x80CB;
readonly CONSTANT_COLOR: 0x8001;
readonly ONE_MINUS_CONSTANT_COLOR: 0x8002;
readonly CONSTANT_ALPHA: 0x8003;
readonly ONE_MINUS_CONSTANT_ALPHA: 0x8004;
readonly BLEND_COLOR: 0x8005;
readonly ARRAY_BUFFER: 0x8892;
readonly ELEMENT_ARRAY_BUFFER: 0x8893;
readonly ARRAY_BUFFER_BINDING: 0x8894;
readonly ELEMENT_ARRAY_BUFFER_BINDING: 0x8895;
readonly STREAM_DRAW: 0x88E0;
readonly STATIC_DRAW: 0x88E4;
readonly DYNAMIC_DRAW: 0x88E8;
readonly BUFFER_SIZE: 0x8764;
readonly BUFFER_USAGE: 0x8765;
readonly CURRENT_VERTEX_ATTRIB: 0x8626;
readonly FRONT: 0x0404;
readonly BACK: 0x0405;
readonly FRONT_AND_BACK: 0x0408;
readonly CULL_FACE: 0x0B44;
readonly BLEND: 0x0BE2;
readonly DITHER: 0x0BD0;
readonly STENCIL_TEST: 0x0B90;
readonly DEPTH_TEST: 0x0B71;
readonly SCISSOR_TEST: 0x0C11;
readonly POLYGON_OFFSET_FILL: 0x8037;
readonly SAMPLE_ALPHA_TO_COVERAGE: 0x809E;
readonly SAMPLE_COVERAGE: 0x80A0;
readonly NO_ERROR: 0;
readonly INVALID_ENUM: 0x0500;
readonly INVALID_VALUE: 0x0501;
readonly INVALID_OPERATION: 0x0502;
readonly OUT_OF_MEMORY: 0x0505;
readonly CW: 0x0900;
readonly CCW: 0x0901;
readonly LINE_WIDTH: 0x0B21;
readonly ALIASED_POINT_SIZE_RANGE: 0x846D;
readonly ALIASED_LINE_WIDTH_RANGE: 0x846E;
readonly CULL_FACE_MODE: 0x0B45;
readonly FRONT_FACE: 0x0B46;
readonly DEPTH_RANGE: 0x0B70;
readonly DEPTH_WRITEMASK: 0x0B72;
readonly DEPTH_CLEAR_VALUE: 0x0B73;
readonly DEPTH_FUNC: 0x0B74;
readonly STENCIL_CLEAR_VALUE: 0x0B91;
readonly STENCIL_FUNC: 0x0B92;
readonly STENCIL_FAIL: 0x0B94;
readonly STENCIL_PASS_DEPTH_FAIL: 0x0B95;
readonly STENCIL_PASS_DEPTH_PASS: 0x0B96;
readonly STENCIL_REF: 0x0B97;
readonly STENCIL_VALUE_MASK: 0x0B93;
readonly STENCIL_WRITEMASK: 0x0B98;
readonly STENCIL_BACK_FUNC: 0x8800;
readonly STENCIL_BACK_FAIL: 0x8801;
readonly STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802;
readonly STENCIL_BACK_PASS_DEPTH_PASS: 0x8803;
readonly STENCIL_BACK_REF: 0x8CA3;
readonly STENCIL_BACK_VALUE_MASK: 0x8CA4;
readonly STENCIL_BACK_WRITEMASK: 0x8CA5;
readonly VIEWPORT: 0x0BA2;
readonly SCISSOR_BOX: 0x0C10;
readonly COLOR_CLEAR_VALUE: 0x0C22;
readonly COLOR_WRITEMASK: 0x0C23;
readonly UNPACK_ALIGNMENT: 0x0CF5;
readonly PACK_ALIGNMENT: 0x0D05;
readonly MAX_TEXTURE_SIZE: 0x0D33;
readonly MAX_VIEWPORT_DIMS: 0x0D3A;
readonly SUBPIXEL_BITS: 0x0D50;
readonly RED_BITS: 0x0D52;
readonly GREEN_BITS: 0x0D53;
readonly BLUE_BITS: 0x0D54;
readonly ALPHA_BITS: 0x0D55;
readonly DEPTH_BITS: 0x0D56;
readonly STENCIL_BITS: 0x0D57;
readonly POLYGON_OFFSET_UNITS: 0x2A00;
readonly POLYGON_OFFSET_FACTOR: 0x8038;
readonly TEXTURE_BINDING_2D: 0x8069;
readonly SAMPLE_BUFFERS: 0x80A8;
readonly SAMPLES: 0x80A9;
readonly SAMPLE_COVERAGE_VALUE: 0x80AA;
readonly SAMPLE_COVERAGE_INVERT: 0x80AB;
readonly COMPRESSED_TEXTURE_FORMATS: 0x86A3;
readonly DONT_CARE: 0x1100;
readonly FASTEST: 0x1101;
readonly NICEST: 0x1102;
readonly GENERATE_MIPMAP_HINT: 0x8192;
readonly BYTE: 0x1400;
readonly UNSIGNED_BYTE: 0x1401;
readonly SHORT: 0x1402;
readonly UNSIGNED_SHORT: 0x1403;
readonly INT: 0x1404;
readonly UNSIGNED_INT: 0x1405;
readonly FLOAT: 0x1406;
readonly DEPTH_COMPONENT: 0x1902;
readonly ALPHA: 0x1906;
readonly RGB: 0x1907;
readonly RGBA: 0x1908;
readonly LUMINANCE: 0x1909;
readonly LUMINANCE_ALPHA: 0x190A;
readonly UNSIGNED_SHORT_4_4_4_4: 0x8033;
readonly UNSIGNED_SHORT_5_5_5_1: 0x8034;
readonly UNSIGNED_SHORT_5_6_5: 0x8363;
readonly FRAGMENT_SHADER: 0x8B30;
readonly VERTEX_SHADER: 0x8B31;
readonly MAX_VERTEX_ATTRIBS: 0x8869;
readonly MAX_VERTEX_UNIFORM_VECTORS: 0x8DFB;
readonly MAX_VARYING_VECTORS: 0x8DFC;
readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8B4D;
readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8B4C;
readonly MAX_TEXTURE_IMAGE_UNITS: 0x8872;
readonly MAX_FRAGMENT_UNIFORM_VECTORS: 0x8DFD;
readonly SHADER_TYPE: 0x8B4F;
readonly DELETE_STATUS: 0x8B80;
readonly LINK_STATUS: 0x8B82;
readonly VALIDATE_STATUS: 0x8B83;
readonly ATTACHED_SHADERS: 0x8B85;
readonly ACTIVE_UNIFORMS: 0x8B86;
readonly ACTIVE_ATTRIBUTES: 0x8B89;
readonly SHADING_LANGUAGE_VERSION: 0x8B8C;
readonly CURRENT_PROGRAM: 0x8B8D;
readonly NEVER: 0x0200;
readonly LESS: 0x0201;
readonly EQUAL: 0x0202;
readonly LEQUAL: 0x0203;
readonly GREATER: 0x0204;
readonly NOTEQUAL: 0x0205;
readonly GEQUAL: 0x0206;
readonly ALWAYS: 0x0207;
readonly KEEP: 0x1E00;
readonly REPLACE: 0x1E01;
readonly INCR: 0x1E02;
readonly DECR: 0x1E03;
readonly INVERT: 0x150A;
readonly INCR_WRAP: 0x8507;
readonly DECR_WRAP: 0x8508;
readonly VENDOR: 0x1F00;
readonly RENDERER: 0x1F01;
readonly VERSION: 0x1F02;
readonly NEAREST: 0x2600;
readonly LINEAR: 0x2601;
readonly NEAREST_MIPMAP_NEAREST: 0x2700;
readonly LINEAR_MIPMAP_NEAREST: 0x2701;
readonly NEAREST_MIPMAP_LINEAR: 0x2702;
readonly LINEAR_MIPMAP_LINEAR: 0x2703;
readonly TEXTURE_MAG_FILTER: 0x2800;
readonly TEXTURE_MIN_FILTER: 0x2801;
readonly TEXTURE_WRAP_S: 0x2802;
readonly TEXTURE_WRAP_T: 0x2803;
readonly TEXTURE_2D: 0x0DE1;
readonly TEXTURE: 0x1702;
readonly TEXTURE_CUBE_MAP: 0x8513;
readonly TEXTURE_BINDING_CUBE_MAP: 0x8514;
readonly TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515;
readonly TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516;
readonly TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518;
readonly TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519;
readonly TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851A;
readonly MAX_CUBE_MAP_TEXTURE_SIZE: 0x851C;
readonly TEXTURE0: 0x84C0;
readonly TEXTURE1: 0x84C1;
readonly TEXTURE2: 0x84C2;
readonly TEXTURE3: 0x84C3;
readonly TEXTURE4: 0x84C4;
readonly TEXTURE5: 0x84C5;
readonly TEXTURE6: 0x84C6;
readonly TEXTURE7: 0x84C7;
readonly TEXTURE8: 0x84C8;
readonly TEXTURE9: 0x84C9;
readonly TEXTURE10: 0x84CA;
readonly TEXTURE11: 0x84CB;
readonly TEXTURE12: 0x84CC;
readonly TEXTURE13: 0x84CD;
readonly TEXTURE14: 0x84CE;
readonly TEXTURE15: 0x84CF;
readonly TEXTURE16: 0x84D0;
readonly TEXTURE17: 0x84D1;
readonly TEXTURE18: 0x84D2;
readonly TEXTURE19: 0x84D3;
readonly TEXTURE20: 0x84D4;
readonly TEXTURE21: 0x84D5;
readonly TEXTURE22: 0x84D6;
readonly TEXTURE23: 0x84D7;
readonly TEXTURE24: 0x84D8;
readonly TEXTURE25: 0x84D9;
readonly TEXTURE26: 0x84DA;
readonly TEXTURE27: 0x84DB;
readonly TEXTURE28: 0x84DC;
readonly TEXTURE29: 0x84DD;
readonly TEXTURE30: 0x84DE;
readonly TEXTURE31: 0x84DF;
readonly ACTIVE_TEXTURE: 0x84E0;
readonly REPEAT: 0x2901;
readonly CLAMP_TO_EDGE: 0x812F;
readonly MIRRORED_REPEAT: 0x8370;
readonly FLOAT_VEC2: 0x8B50;
readonly FLOAT_VEC3: 0x8B51;
readonly FLOAT_VEC4: 0x8B52;
readonly INT_VEC2: 0x8B53;
readonly INT_VEC3: 0x8B54;
readonly INT_VEC4: 0x8B55;
readonly BOOL: 0x8B56;
readonly BOOL_VEC2: 0x8B57;
readonly BOOL_VEC3: 0x8B58;
readonly BOOL_VEC4: 0x8B59;
readonly FLOAT_MAT2: 0x8B5A;
readonly FLOAT_MAT3: 0x8B5B;
readonly FLOAT_MAT4: 0x8B5C;
readonly SAMPLER_2D: 0x8B5E;
readonly SAMPLER_CUBE: 0x8B60;
readonly VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622;
readonly VERTEX_ATTRIB_ARRAY_SIZE: 0x8623;
readonly VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624;
readonly VERTEX_ATTRIB_ARRAY_TYPE: 0x8625;
readonly VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886A;
readonly VERTEX_ATTRIB_ARRAY_POINTER: 0x8645;
readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889F;
readonly IMPLEMENTATION_COLOR_READ_TYPE: 0x8B9A;
readonly IMPLEMENTATION_COLOR_READ_FORMAT: 0x8B9B;
readonly COMPILE_STATUS: 0x8B81;
readonly LOW_FLOAT: 0x8DF0;
readonly MEDIUM_FLOAT: 0x8DF1;
readonly HIGH_FLOAT: 0x8DF2;
readonly LOW_INT: 0x8DF3;
readonly MEDIUM_INT: 0x8DF4;
readonly HIGH_INT: 0x8DF5;
readonly FRAMEBUFFER: 0x8D40;
readonly RENDERBUFFER: 0x8D41;
readonly RGBA4: 0x8056;
readonly RGB5_A1: 0x8057;
readonly RGBA8: 0x8058;
readonly RGB565: 0x8D62;
readonly DEPTH_COMPONENT16: 0x81A5;
readonly STENCIL_INDEX8: 0x8D48;
readonly DEPTH_STENCIL: 0x84F9;
readonly RENDERBUFFER_WIDTH: 0x8D42;
readonly RENDERBUFFER_HEIGHT: 0x8D43;
readonly RENDERBUFFER_INTERNAL_FORMAT: 0x8D44;
readonly RENDERBUFFER_RED_SIZE: 0x8D50;
readonly RENDERBUFFER_GREEN_SIZE: 0x8D51;
readonly RENDERBUFFER_BLUE_SIZE: 0x8D52;
readonly RENDERBUFFER_ALPHA_SIZE: 0x8D53;
readonly RENDERBUFFER_DEPTH_SIZE: 0x8D54;
readonly RENDERBUFFER_STENCIL_SIZE: 0x8D55;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8CD0;
readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8CD1;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8CD2;
readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8CD3;
readonly COLOR_ATTACHMENT0: 0x8CE0;
readonly DEPTH_ATTACHMENT: 0x8D00;
readonly STENCIL_ATTACHMENT: 0x8D20;
readonly DEPTH_STENCIL_ATTACHMENT: 0x821A;
readonly NONE: 0;
readonly FRAMEBUFFER_COMPLETE: 0x8CD5;
readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8CD6;
readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8CD7;
readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8CD9;
readonly FRAMEBUFFER_UNSUPPORTED: 0x8CDD;
readonly FRAMEBUFFER_BINDING: 0x8CA6;
readonly RENDERBUFFER_BINDING: 0x8CA7;
readonly MAX_RENDERBUFFER_SIZE: 0x84E8;
readonly INVALID_FRAMEBUFFER_OPERATION: 0x0506;
readonly UNPACK_FLIP_Y_WEBGL: 0x9240;
readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241;
readonly CONTEXT_LOST_WEBGL: 0x9242;
readonly UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243;
readonly BROWSER_DEFAULT_WEBGL: 0x9244;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferData) */
bufferData(target: GLenum, size: GLsizeiptr, usage: GLenum): void;
bufferData(target: GLenum, data: AllowSharedBufferSource | null, usage: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/bufferSubData) */
bufferSubData(target: GLenum, offset: GLintptr, data: AllowSharedBufferSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexImage2D) */
compressedTexImage2D(target: GLenum, level: GLint, internalformat: GLenum, width: GLsizei, height: GLsizei, border: GLint, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D) */
compressedTexSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, data: ArrayBufferView): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/readPixels) */
readPixels(x: GLint, y: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texImage2D) */
texImage2D(target: GLenum, level: GLint, internalformat: GLint, width: GLsizei, height: GLsizei, border: GLint, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texImage2D(target: GLenum, level: GLint, internalformat: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/texSubImage2D) */
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, width: GLsizei, height: GLsizei, format: GLenum, type: GLenum, pixels: ArrayBufferView | null): void;
texSubImage2D(target: GLenum, level: GLint, xoffset: GLint, yoffset: GLint, format: GLenum, type: GLenum, source: TexImageSource): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Float32List): void;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSampler) */
interface WebGLSampler {
}
declare var WebGLSampler: {
prototype: WebGLSampler;
new(): WebGLSampler;
};
/**
* The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShader)
*/
interface WebGLShader {
}
declare var WebGLShader: {
prototype: WebGLShader;
new(): WebGLShader;
};
/**
* Part of the WebGL API and represents the information returned by calling the WebGLRenderingContext.getShaderPrecisionFormat() method.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat)
*/
interface WebGLShaderPrecisionFormat {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/precision) */
readonly precision: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax) */
readonly rangeMax: GLint;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin) */
readonly rangeMin: GLint;
}
declare var WebGLShaderPrecisionFormat: {
prototype: WebGLShaderPrecisionFormat;
new(): WebGLShaderPrecisionFormat;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLSync) */
interface WebGLSync {
}
declare var WebGLSync: {
prototype: WebGLSync;
new(): WebGLSync;
};
/**
* Part of the WebGL API and represents an opaque texture object providing storage and state for texturing operations.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTexture)
*/
interface WebGLTexture {
}
declare var WebGLTexture: {
prototype: WebGLTexture;
new(): WebGLTexture;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLTransformFeedback) */
interface WebGLTransformFeedback {
}
declare var WebGLTransformFeedback: {
prototype: WebGLTransformFeedback;
new(): WebGLTransformFeedback;
};
/**
* Part of the WebGL API and represents the location of a uniform variable in a shader program.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLUniformLocation)
*/
interface WebGLUniformLocation {
}
declare var WebGLUniformLocation: {
prototype: WebGLUniformLocation;
new(): WebGLUniformLocation;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObject) */
interface WebGLVertexArrayObject {
}
declare var WebGLVertexArrayObject: {
prototype: WebGLVertexArrayObject;
new(): WebGLVertexArrayObject;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLVertexArrayObjectOES) */
interface WebGLVertexArrayObjectOES {
}
interface WebSocketEventMap {
"close": CloseEvent;
"error": Event;
"message": MessageEvent;
"open": Event;
}
/**
* Provides the API for creating and managing a WebSocket connection to a server, as well as for sending and receiving data on the connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket)
*/
interface WebSocket extends EventTarget {
/**
* Returns a string that indicates how binary data from the WebSocket object is exposed to scripts:
*
* Can be set, to change how binary data is returned. The default is "blob".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/binaryType)
*/
binaryType: BinaryType;
/**
* Returns the number of bytes of application data (UTF-8 text and binary data) that have been queued using send() but not yet been transmitted to the network.
*
* If the WebSocket connection is closed, this attribute's value will only increase with each call to the send() method. (The number does not reset to zero once the connection closes.)
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/bufferedAmount)
*/
readonly bufferedAmount: number;
/**
* Returns the extensions selected by the server, if any.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/extensions)
*/
readonly extensions: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close_event) */
onclose: ((this: WebSocket, ev: CloseEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/error_event) */
onerror: ((this: WebSocket, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/message_event) */
onmessage: ((this: WebSocket, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/open_event) */
onopen: ((this: WebSocket, ev: Event) => any) | null;
/**
* Returns the subprotocol selected by the server, if any. It can be used in conjunction with the array form of the constructor's second argument to perform subprotocol negotiation.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/protocol)
*/
readonly protocol: string;
/**
* Returns the state of the WebSocket object's connection. It can have the values described below.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/readyState)
*/
readonly readyState: number;
/**
* Returns the URL that was used to establish the WebSocket connection.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/url)
*/
readonly url: string;
/**
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
*/
close(code?: number, reason?: string): void;
/**
* Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/send)
*/
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
addEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WebSocketEventMap>(type: K, listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WebSocket: {
prototype: WebSocket;
new(url: string | URL, protocols?: string | string[]): WebSocket;
readonly CONNECTING: 0;
readonly OPEN: 1;
readonly CLOSING: 2;
readonly CLOSED: 3;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport)
*/
interface WebTransport {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/closed) */
readonly closed: Promise<WebTransportCloseInfo>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/datagrams) */
readonly datagrams: WebTransportDatagramDuplexStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingBidirectionalStreams) */
readonly incomingBidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/incomingUnidirectionalStreams) */
readonly incomingUnidirectionalStreams: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/close) */
close(closeInfo?: WebTransportCloseInfo): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createBidirectionalStream) */
createBidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WebTransportBidirectionalStream>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransport/createUnidirectionalStream) */
createUnidirectionalStream(options?: WebTransportSendStreamOptions): Promise<WritableStream>;
}
declare var WebTransport: {
prototype: WebTransport;
new(url: string | URL, options?: WebTransportOptions): WebTransport;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream)
*/
interface WebTransportBidirectionalStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportBidirectionalStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportBidirectionalStream: {
prototype: WebTransportBidirectionalStream;
new(): WebTransportBidirectionalStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream)
*/
interface WebTransportDatagramDuplexStream {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingHighWaterMark) */
incomingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/incomingMaxAge) */
incomingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/maxDatagramSize) */
readonly maxDatagramSize: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingHighWaterMark) */
outgoingHighWaterMark: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/outgoingMaxAge) */
outgoingMaxAge: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/readable) */
readonly readable: ReadableStream;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportDatagramDuplexStream/writable) */
readonly writable: WritableStream;
}
declare var WebTransportDatagramDuplexStream: {
prototype: WebTransportDatagramDuplexStream;
new(): WebTransportDatagramDuplexStream;
};
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError)
*/
interface WebTransportError extends DOMException {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/source) */
readonly source: WebTransportErrorSource;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebTransportError/streamErrorCode) */
readonly streamErrorCode: number | null;
}
declare var WebTransportError: {
prototype: WebTransportError;
new(message?: string, options?: WebTransportErrorOptions): WebTransportError;
};
/**
* This ServiceWorker API interface represents the scope of a service worker client that is a document in a browser context, controlled by an active worker. The service worker client independently selects and uses a service worker for its own loading and sub-resources.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient)
*/
interface WindowClient extends Client {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focused) */
readonly focused: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/visibilityState) */
readonly visibilityState: DocumentVisibilityState;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/focus) */
focus(): Promise<WindowClient>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WindowClient/navigate) */
navigate(url: string | URL): Promise<WindowClient | null>;
}
declare var WindowClient: {
prototype: WindowClient;
new(): WindowClient;
};
interface WindowOrWorkerGlobalScope {
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
readonly caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
readonly crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
readonly crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
readonly indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
readonly isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
readonly performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
}
interface WorkerEventMap extends AbstractWorkerEventMap {
"message": MessageEvent;
"messageerror": MessageEvent;
}
/**
* This Web Workers API interface represents a background task that can be easily created and can send messages back to its creator. Creating a worker is as simple as calling the Worker() constructor and specifying a script to be run in the worker thread.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker)
*/
interface Worker extends EventTarget, AbstractWorker {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/message_event) */
onmessage: ((this: Worker, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/messageerror_event) */
onmessageerror: ((this: Worker, ev: MessageEvent) => any) | null;
/**
* Clones message and transmits it to worker's global environment. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/postMessage)
*/
postMessage(message: any, transfer: Transferable[]): void;
postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Aborts worker's associated global environment.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Worker/terminate)
*/
terminate(): void;
addEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerEventMap>(type: K, listener: (this: Worker, ev: WorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var Worker: {
prototype: Worker;
new(scriptURL: string | URL, options?: WorkerOptions): Worker;
};
interface WorkerGlobalScopeEventMap {
"error": ErrorEvent;
"languagechange": Event;
"offline": Event;
"online": Event;
"rejectionhandled": PromiseRejectionEvent;
"unhandledrejection": PromiseRejectionEvent;
}
/**
* This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects \u2014 in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope)
*/
interface WorkerGlobalScope extends EventTarget, FontFaceSource, WindowOrWorkerGlobalScope {
/**
* Returns workerGlobal's WorkerLocation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
*/
readonly location: WorkerLocation;
/**
* Returns workerGlobal's WorkerNavigator object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
*/
readonly navigator: WorkerNavigator;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */
onerror: ((this: WorkerGlobalScope, ev: ErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */
onlanguagechange: ((this: WorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */
onoffline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
ononline: ((this: WorkerGlobalScope, ev: Event) => any) | null;
onrejectionhandled: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
onunhandledrejection: ((this: WorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
*/
readonly self: WorkerGlobalScope & typeof globalThis;
/**
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
*/
importScripts(...urls: (string | URL)[]): void;
addEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof WorkerGlobalScopeEventMap>(type: K, listener: (this: WorkerGlobalScope, ev: WorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var WorkerGlobalScope: {
prototype: WorkerGlobalScope;
new(): WorkerGlobalScope;
};
/**
* The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation)
*/
interface WorkerLocation {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hash) */
readonly hash: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/host) */
readonly host: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/hostname) */
readonly hostname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/href) */
readonly href: string;
toString(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/origin) */
readonly origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/pathname) */
readonly pathname: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/port) */
readonly port: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/protocol) */
readonly protocol: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerLocation/search) */
readonly search: string;
}
declare var WorkerLocation: {
prototype: WorkerLocation;
new(): WorkerLocation;
};
/**
* A subset of the Navigator interface allowed to be accessed from a Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.navigator property obtained by calling window.self.navigator.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator)
*/
interface WorkerNavigator extends NavigatorBadge, NavigatorConcurrentHardware, NavigatorID, NavigatorLanguage, NavigatorLocks, NavigatorOnLine, NavigatorStorage {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/mediaCapabilities) */
readonly mediaCapabilities: MediaCapabilities;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerNavigator/permissions) */
readonly permissions: Permissions;
}
declare var WorkerNavigator: {
prototype: WorkerNavigator;
new(): WorkerNavigator;
};
/**
* This Streams API interface provides\xA0a standard abstraction for writing streaming data to a destination, known as a sink. This object comes with built-in backpressure and queuing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream)
*/
interface WritableStream<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/locked) */
readonly locked: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStream/getWriter) */
getWriter(): WritableStreamDefaultWriter<W>;
}
declare var WritableStream: {
prototype: WritableStream;
new<W = any>(underlyingSink?: UnderlyingSink<W>, strategy?: QueuingStrategy<W>): WritableStream<W>;
};
/**
* This Streams API interface represents a controller allowing control of a\xA0WritableStream's state. When constructing a WritableStream, the underlying sink is given a corresponding WritableStreamDefaultController instance to manipulate.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController)
*/
interface WritableStreamDefaultController {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/signal) */
readonly signal: AbortSignal;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultController/error) */
error(e?: any): void;
}
declare var WritableStreamDefaultController: {
prototype: WritableStreamDefaultController;
new(): WritableStreamDefaultController;
};
/**
* This Streams API interface is the object returned by WritableStream.getWriter() and once created locks the < writer to the WritableStream ensuring that no other streams can write to the underlying sink.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter)
*/
interface WritableStreamDefaultWriter<W = any> {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/closed) */
readonly closed: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/desiredSize) */
readonly desiredSize: number | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/ready) */
readonly ready: Promise<undefined>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/abort) */
abort(reason?: any): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/close) */
close(): Promise<void>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/releaseLock) */
releaseLock(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WritableStreamDefaultWriter/write) */
write(chunk?: W): Promise<void>;
}
declare var WritableStreamDefaultWriter: {
prototype: WritableStreamDefaultWriter;
new<W = any>(stream: WritableStream<W>): WritableStreamDefaultWriter<W>;
};
interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap {
"readystatechange": Event;
}
/**
* Use XMLHttpRequest (XHR) objects to interact with servers. You can retrieve data from a URL without having to do a full page refresh. This enables a Web page to update just part of a page without disrupting what the user is doing.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest)
*/
interface XMLHttpRequest extends XMLHttpRequestEventTarget {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readystatechange_event) */
onreadystatechange: ((this: XMLHttpRequest, ev: Event) => any) | null;
/**
* Returns client's state.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/readyState)
*/
readonly readyState: number;
/**
* Returns the response body.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/response)
*/
readonly response: any;
/**
* Returns response as text.
*
* Throws an "InvalidStateError" DOMException if responseType is not the empty string or "text".
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseText)
*/
readonly responseText: string;
/**
* Returns the response type.
*
* Can be set to change the response type. Values are: the empty string (default), "arraybuffer", "blob", "document", "json", and "text".
*
* When set: setting to "document" is ignored if current global object is not a Window object.
*
* When set: throws an "InvalidStateError" DOMException if state is loading or done.
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseType)
*/
responseType: XMLHttpRequestResponseType;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/responseURL) */
readonly responseURL: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/status) */
readonly status: number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/statusText) */
readonly statusText: string;
/**
* Can be set to a time in milliseconds. When set to a non-zero value will cause fetching to terminate after the given time has passed. When the time has passed, the request has not yet completed, and this's synchronous flag is unset, a timeout event will then be dispatched, or a "TimeoutError" DOMException will be thrown otherwise (for the send() method).
*
* When set: throws an "InvalidAccessError" DOMException if the synchronous flag is set and current global object is a Window object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/timeout)
*/
timeout: number;
/**
* Returns the associated XMLHttpRequestUpload object. It can be used to gather transmission information when data is transferred to a server.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/upload)
*/
readonly upload: XMLHttpRequestUpload;
/**
* True when credentials are to be included in a cross-origin request. False when they are to be excluded in a cross-origin request and when cookies are to be ignored in its response. Initially false.
*
* When set: throws an "InvalidStateError" DOMException if state is not unsent or opened, or if the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/withCredentials)
*/
withCredentials: boolean;
/**
* Cancels any network activity.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/abort)
*/
abort(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getAllResponseHeaders) */
getAllResponseHeaders(): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/getResponseHeader) */
getResponseHeader(name: string): string | null;
/**
* Sets the request method, request URL, and synchronous flag.
*
* Throws a "SyntaxError" DOMException if either method is not a valid method or url cannot be parsed.
*
* Throws a "SecurityError" DOMException if method is a case-insensitive match for \`CONNECT\`, \`TRACE\`, or \`TRACK\`.
*
* Throws an "InvalidAccessError" DOMException if async is false, current global object is a Window object, and the timeout attribute is not zero or the responseType attribute is not the empty string.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/open)
*/
open(method: string, url: string | URL): void;
open(method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null): void;
/**
* Acts as if the \`Content-Type\` header value for a response is mime. (It does not change the header.)
*
* Throws an "InvalidStateError" DOMException if state is loading or done.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/overrideMimeType)
*/
overrideMimeType(mime: string): void;
/**
* Initiates the request. The body argument provides the request body, if any, and is ignored if the request method is GET or HEAD.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/send)
*/
send(body?: XMLHttpRequestBodyInit | null): void;
/**
* Combines a header in author request headers.
*
* Throws an "InvalidStateError" DOMException if either state is not opened or the send() flag is set.
*
* Throws a "SyntaxError" DOMException if name is not a header name or if value is not a header value.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequest/setRequestHeader)
*/
setRequestHeader(name: string, value: string): void;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
addEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventMap>(type: K, listener: (this: XMLHttpRequest, ev: XMLHttpRequestEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequest: {
prototype: XMLHttpRequest;
new(): XMLHttpRequest;
readonly UNSENT: 0;
readonly OPENED: 1;
readonly HEADERS_RECEIVED: 2;
readonly LOADING: 3;
readonly DONE: 4;
};
interface XMLHttpRequestEventTargetEventMap {
"abort": ProgressEvent<XMLHttpRequestEventTarget>;
"error": ProgressEvent<XMLHttpRequestEventTarget>;
"load": ProgressEvent<XMLHttpRequestEventTarget>;
"loadend": ProgressEvent<XMLHttpRequestEventTarget>;
"loadstart": ProgressEvent<XMLHttpRequestEventTarget>;
"progress": ProgressEvent<XMLHttpRequestEventTarget>;
"timeout": ProgressEvent<XMLHttpRequestEventTarget>;
}
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestEventTarget) */
interface XMLHttpRequestEventTarget extends EventTarget {
onabort: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onerror: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onload: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadend: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onloadstart: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
onprogress: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
ontimeout: ((this: XMLHttpRequest, ev: ProgressEvent) => any) | null;
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestEventTarget, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestEventTarget: {
prototype: XMLHttpRequestEventTarget;
new(): XMLHttpRequestEventTarget;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/XMLHttpRequestUpload) */
interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget {
addEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
removeEventListener<K extends keyof XMLHttpRequestEventTargetEventMap>(type: K, listener: (this: XMLHttpRequestUpload, ev: XMLHttpRequestEventTargetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
declare var XMLHttpRequestUpload: {
prototype: XMLHttpRequestUpload;
new(): XMLHttpRequestUpload;
};
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console) */
interface Console {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/assert_static) */
assert(condition?: boolean, ...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/clear_static) */
clear(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/count_static) */
count(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/countReset_static) */
countReset(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/debug_static) */
debug(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dir_static) */
dir(item?: any, options?: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/dirxml_static) */
dirxml(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/error_static) */
error(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/group_static) */
group(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupCollapsed_static) */
groupCollapsed(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/groupEnd_static) */
groupEnd(): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/info_static) */
info(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/log_static) */
log(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/table_static) */
table(tabularData?: any, properties?: string[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/time_static) */
time(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeEnd_static) */
timeEnd(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/timeLog_static) */
timeLog(label?: string, ...data: any[]): void;
timeStamp(label?: string): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/trace_static) */
trace(...data: any[]): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/console/warn_static) */
warn(...data: any[]): void;
}
declare var console: Console;
declare namespace WebAssembly {
interface CompileError extends Error {
}
var CompileError: {
prototype: CompileError;
new(message?: string): CompileError;
(message?: string): CompileError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global) */
interface Global<T extends ValueType = ValueType> {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/value) */
value: ValueTypeMap[T];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Global/valueOf) */
valueOf(): ValueTypeMap[T];
}
var Global: {
prototype: Global;
new<T extends ValueType = ValueType>(descriptor: GlobalDescriptor<T>, v?: ValueTypeMap[T]): Global<T>;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance) */
interface Instance {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Instance/exports) */
readonly exports: Exports;
}
var Instance: {
prototype: Instance;
new(module: Module, importObject?: Imports): Instance;
};
interface LinkError extends Error {
}
var LinkError: {
prototype: LinkError;
new(message?: string): LinkError;
(message?: string): LinkError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory) */
interface Memory {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/buffer) */
readonly buffer: ArrayBuffer;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Memory/grow) */
grow(delta: number): number;
}
var Memory: {
prototype: Memory;
new(descriptor: MemoryDescriptor): Memory;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module) */
interface Module {
}
var Module: {
prototype: Module;
new(bytes: BufferSource): Module;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/customSections_static) */
customSections(moduleObject: Module, sectionName: string): ArrayBuffer[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/exports_static) */
exports(moduleObject: Module): ModuleExportDescriptor[];
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Module/imports_static) */
imports(moduleObject: Module): ModuleImportDescriptor[];
};
interface RuntimeError extends Error {
}
var RuntimeError: {
prototype: RuntimeError;
new(message?: string): RuntimeError;
(message?: string): RuntimeError;
};
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table) */
interface Table {
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/length) */
readonly length: number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/get) */
get(index: number): any;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/grow) */
grow(delta: number, value?: any): number;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/Table/set) */
set(index: number, value?: any): void;
}
var Table: {
prototype: Table;
new(descriptor: TableDescriptor, value?: any): Table;
};
interface GlobalDescriptor<T extends ValueType = ValueType> {
mutable?: boolean;
value: T;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
shared?: boolean;
}
interface ModuleExportDescriptor {
kind: ImportExportKind;
name: string;
}
interface ModuleImportDescriptor {
kind: ImportExportKind;
module: string;
name: string;
}
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
interface ValueTypeMap {
anyfunc: Function;
externref: any;
f32: number;
f64: number;
i32: number;
i64: bigint;
v128: never;
}
interface WebAssemblyInstantiatedSource {
instance: Instance;
module: Module;
}
type ImportExportKind = "function" | "global" | "memory" | "table";
type TableKind = "anyfunc" | "externref";
type ExportValue = Function | Global | Memory | Table;
type Exports = Record<string, ExportValue>;
type ImportValue = ExportValue | number;
type Imports = Record<string, ModuleImports>;
type ModuleImports = Record<string, ImportValue>;
type ValueType = keyof ValueTypeMap;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compile_static) */
function compile(bytes: BufferSource): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/compileStreaming_static) */
function compileStreaming(source: Response | PromiseLike<Response>): Promise<Module>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiate_static) */
function instantiate(bytes: BufferSource, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
function instantiate(moduleObject: Module, importObject?: Imports): Promise<Instance>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/instantiateStreaming_static) */
function instantiateStreaming(source: Response | PromiseLike<Response>, importObject?: Imports): Promise<WebAssemblyInstantiatedSource>;
/** [MDN Reference](https://developer.mozilla.org/docs/WebAssembly/JavaScript_interface/validate_static) */
function validate(bytes: BufferSource): boolean;
}
interface EncodedVideoChunkOutputCallback {
(chunk: EncodedVideoChunk, metadata?: EncodedVideoChunkMetadata): void;
}
interface FrameRequestCallback {
(time: DOMHighResTimeStamp): void;
}
interface LockGrantedCallback {
(lock: Lock | null): any;
}
interface OnErrorEventHandlerNonNull {
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
}
interface PerformanceObserverCallback {
(entries: PerformanceObserverEntryList, observer: PerformanceObserver): void;
}
interface QueuingStrategySize<T = any> {
(chunk: T): number;
}
interface ReportingObserverCallback {
(reports: Report[], observer: ReportingObserver): void;
}
interface TransformerFlushCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformerStartCallback<O> {
(controller: TransformStreamDefaultController<O>): any;
}
interface TransformerTransformCallback<I, O> {
(chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface UnderlyingSinkAbortCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSinkCloseCallback {
(): void | PromiseLike<void>;
}
interface UnderlyingSinkStartCallback {
(controller: WritableStreamDefaultController): any;
}
interface UnderlyingSinkWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface UnderlyingSourceCancelCallback {
(reason?: any): void | PromiseLike<void>;
}
interface UnderlyingSourcePullCallback<R> {
(controller: ReadableStreamController<R>): void | PromiseLike<void>;
}
interface UnderlyingSourceStartCallback<R> {
(controller: ReadableStreamController<R>): any;
}
interface VideoFrameOutputCallback {
(output: VideoFrame): void;
}
interface VoidFunction {
(): void;
}
interface WebCodecsErrorCallback {
(error: DOMException): void;
}
/**
* Returns dedicatedWorkerGlobal's name, i.e. the value given to the Worker constructor. Primarily useful for debugging.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/name)
*/
declare var name: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/message_event) */
declare var onmessage: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/messageerror_event) */
declare var onmessageerror: ((this: DedicatedWorkerGlobalScope, ev: MessageEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/rtctransform_event) */
declare var onrtctransform: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/**
* Aborts dedicatedWorkerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/close)
*/
declare function close(): void;
/**
* Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)
*/
declare function postMessage(message: any, transfer: Transferable[]): void;
declare function postMessage(message: any, options?: StructuredSerializeOptions): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/**
* Returns workerGlobal's WorkerLocation object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/location)
*/
declare var location: WorkerLocation;
/**
* Returns workerGlobal's WorkerNavigator object.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/navigator)
*/
declare var navigator: WorkerNavigator;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/error_event) */
declare var onerror: ((this: DedicatedWorkerGlobalScope, ev: ErrorEvent) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/languagechange_event) */
declare var onlanguagechange: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/offline_event) */
declare var onoffline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/online_event) */
declare var ononline: ((this: DedicatedWorkerGlobalScope, ev: Event) => any) | null;
declare var onrejectionhandled: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
declare var onunhandledrejection: ((this: DedicatedWorkerGlobalScope, ev: PromiseRejectionEvent) => any) | null;
/**
* Returns workerGlobal.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/self)
*/
declare var self: WorkerGlobalScope & typeof globalThis;
/**
* Fetches each URL in urls, executes them one-by-one in the order they are passed, and then returns (or throws if something went amiss).
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WorkerGlobalScope/importScripts)
*/
declare function importScripts(...urls: (string | URL)[]): void;
/**
* Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/EventTarget/dispatchEvent)
*/
declare function dispatchEvent(event: Event): boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Document/fonts) */
declare var fonts: FontFaceSet;
/**
* Available only in secure contexts.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/caches)
*/
declare var caches: CacheStorage;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crossOriginIsolated) */
declare var crossOriginIsolated: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/crypto_property) */
declare var crypto: Crypto;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/indexedDB) */
declare var indexedDB: IDBFactory;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/isSecureContext) */
declare var isSecureContext: boolean;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/origin) */
declare var origin: string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/performance_property) */
declare var performance: Performance;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/atob) */
declare function atob(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/btoa) */
declare function btoa(data: string): string;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearInterval) */
declare function clearInterval(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/clearTimeout) */
declare function clearTimeout(id: number | undefined): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/createImageBitmap) */
declare function createImageBitmap(image: ImageBitmapSource, options?: ImageBitmapOptions): Promise<ImageBitmap>;
declare function createImageBitmap(image: ImageBitmapSource, sx: number, sy: number, sw: number, sh: number, options?: ImageBitmapOptions): Promise<ImageBitmap>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/fetch) */
declare function fetch(input: RequestInfo | URL, init?: RequestInit): Promise<Response>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/queueMicrotask) */
declare function queueMicrotask(callback: VoidFunction): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/reportError) */
declare function reportError(e: any): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setInterval) */
declare function setInterval(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/setTimeout) */
declare function setTimeout(handler: TimerHandler, timeout?: number, ...arguments: any[]): number;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/structuredClone) */
declare function structuredClone<T = any>(value: T, options?: StructuredSerializeOptions): T;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/cancelAnimationFrame) */
declare function cancelAnimationFrame(handle: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/DedicatedWorkerGlobalScope/requestAnimationFrame) */
declare function requestAnimationFrame(callback: FrameRequestCallback): number;
declare function addEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
declare function addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
declare function removeEventListener<K extends keyof DedicatedWorkerGlobalScopeEventMap>(type: K, listener: (this: DedicatedWorkerGlobalScope, ev: DedicatedWorkerGlobalScopeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
declare function removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
type AlgorithmIdentifier = Algorithm | string;
type AllowSharedBufferSource = ArrayBuffer | ArrayBufferView;
type BigInteger = Uint8Array;
type BinaryData = ArrayBuffer | ArrayBufferView;
type BlobPart = BufferSource | Blob | string;
type BodyInit = ReadableStream | XMLHttpRequestBodyInit;
type BufferSource = ArrayBufferView | ArrayBuffer;
type CSSKeywordish = string | CSSKeywordValue;
type CSSNumberish = number | CSSNumericValue;
type CSSPerspectiveValue = CSSNumericValue | CSSKeywordish;
type CSSUnparsedSegment = string | CSSVariableReferenceValue;
type CanvasImageSource = ImageBitmap | OffscreenCanvas | VideoFrame;
type DOMHighResTimeStamp = number;
type EpochTimeStamp = number;
type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
type FileSystemWriteChunkType = BufferSource | Blob | string | WriteParams;
type Float32List = Float32Array | GLfloat[];
type FormDataEntryValue = File | string;
type GLbitfield = number;
type GLboolean = boolean;
type GLclampf = number;
type GLenum = number;
type GLfloat = number;
type GLint = number;
type GLint64 = number;
type GLintptr = number;
type GLsizei = number;
type GLsizeiptr = number;
type GLuint = number;
type GLuint64 = number;
type HashAlgorithmIdentifier = AlgorithmIdentifier;
type HeadersInit = [string, string][] | Record<string, string> | Headers;
type IDBValidKey = number | string | Date | BufferSource | IDBValidKey[];
type ImageBitmapSource = CanvasImageSource | Blob | ImageData;
type Int32List = Int32Array | GLint[];
type MessageEventSource = MessagePort | ServiceWorker;
type NamedCurve = string;
type OffscreenRenderingContext = OffscreenCanvasRenderingContext2D | ImageBitmapRenderingContext | WebGLRenderingContext | WebGL2RenderingContext;
type OnErrorEventHandler = OnErrorEventHandlerNonNull | null;
type PerformanceEntryList = PerformanceEntry[];
type PushMessageDataInit = BufferSource | string;
type ReadableStreamController<T> = ReadableStreamDefaultController<T> | ReadableByteStreamController;
type ReadableStreamReadResult<T> = ReadableStreamReadValueResult<T> | ReadableStreamReadDoneResult<T>;
type ReadableStreamReader<T> = ReadableStreamDefaultReader<T> | ReadableStreamBYOBReader;
type ReportList = Report[];
type RequestInfo = Request | string;
type TexImageSource = ImageBitmap | ImageData | OffscreenCanvas | VideoFrame;
type TimerHandler = string | Function;
type Transferable = OffscreenCanvas | ImageBitmap | MessagePort | ReadableStream | WritableStream | TransformStream | VideoFrame | ArrayBuffer;
type Uint32List = Uint32Array | GLuint[];
type XMLHttpRequestBodyInit = Blob | BufferSource | FormData | URLSearchParams | string;
type AlphaOption = "discard" | "keep";
type AvcBitstreamFormat = "annexb" | "avc";
type BinaryType = "arraybuffer" | "blob";
type CSSMathOperator = "clamp" | "invert" | "max" | "min" | "negate" | "product" | "sum";
type CSSNumericBaseType = "angle" | "flex" | "frequency" | "length" | "percent" | "resolution" | "time";
type CanvasDirection = "inherit" | "ltr" | "rtl";
type CanvasFillRule = "evenodd" | "nonzero";
type CanvasFontKerning = "auto" | "none" | "normal";
type CanvasFontStretch = "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded";
type CanvasFontVariantCaps = "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase";
type CanvasLineCap = "butt" | "round" | "square";
type CanvasLineJoin = "bevel" | "miter" | "round";
type CanvasTextAlign = "center" | "end" | "left" | "right" | "start";
type CanvasTextBaseline = "alphabetic" | "bottom" | "hanging" | "ideographic" | "middle" | "top";
type CanvasTextRendering = "auto" | "geometricPrecision" | "optimizeLegibility" | "optimizeSpeed";
type ClientTypes = "all" | "sharedworker" | "window" | "worker";
type CodecState = "closed" | "configured" | "unconfigured";
type ColorGamut = "p3" | "rec2020" | "srgb";
type ColorSpaceConversion = "default" | "none";
type CompressionFormat = "deflate" | "deflate-raw" | "gzip";
type DocumentVisibilityState = "hidden" | "visible";
type EncodedVideoChunkType = "delta" | "key";
type EndingType = "native" | "transparent";
type FileSystemHandleKind = "directory" | "file";
type FontDisplay = "auto" | "block" | "fallback" | "optional" | "swap";
type FontFaceLoadStatus = "error" | "loaded" | "loading" | "unloaded";
type FontFaceSetLoadStatus = "loaded" | "loading";
type FrameType = "auxiliary" | "nested" | "none" | "top-level";
type GlobalCompositeOperation = "color" | "color-burn" | "color-dodge" | "copy" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "lighten" | "lighter" | "luminosity" | "multiply" | "overlay" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "source-over" | "xor";
type HardwareAcceleration = "no-preference" | "prefer-hardware" | "prefer-software";
type HdrMetadataType = "smpteSt2086" | "smpteSt2094-10" | "smpteSt2094-40";
type IDBCursorDirection = "next" | "nextunique" | "prev" | "prevunique";
type IDBRequestReadyState = "done" | "pending";
type IDBTransactionDurability = "default" | "relaxed" | "strict";
type IDBTransactionMode = "readonly" | "readwrite" | "versionchange";
type ImageOrientation = "flipY" | "from-image" | "none";
type ImageSmoothingQuality = "high" | "low" | "medium";
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
type KeyType = "private" | "public" | "secret";
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
type LatencyMode = "quality" | "realtime";
type LockMode = "exclusive" | "shared";
type MediaDecodingType = "file" | "media-source" | "webrtc";
type MediaEncodingType = "record" | "webrtc";
type NotificationDirection = "auto" | "ltr" | "rtl";
type NotificationPermission = "default" | "denied" | "granted";
type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
type PermissionName = "geolocation" | "notifications" | "persistent-storage" | "push" | "screen-wake-lock" | "xr-spatial-tracking";
type PermissionState = "denied" | "granted" | "prompt";
type PredefinedColorSpace = "display-p3" | "srgb";
type PremultiplyAlpha = "default" | "none" | "premultiply";
type PushEncryptionKeyName = "auth" | "p256dh";
type RTCEncodedVideoFrameType = "delta" | "empty" | "key";
type ReadableStreamReaderMode = "byob";
type ReadableStreamType = "bytes";
type ReferrerPolicy = "" | "no-referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "same-origin" | "strict-origin" | "strict-origin-when-cross-origin" | "unsafe-url";
type RequestCache = "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestDestination = "" | "audio" | "audioworklet" | "document" | "embed" | "font" | "frame" | "iframe" | "image" | "manifest" | "object" | "paintworklet" | "report" | "script" | "sharedworker" | "style" | "track" | "video" | "worker" | "xslt";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestPriority = "auto" | "high" | "low";
type RequestRedirect = "error" | "follow" | "manual";
type ResizeQuality = "high" | "low" | "medium" | "pixelated";
type ResponseType = "basic" | "cors" | "default" | "error" | "opaque" | "opaqueredirect";
type SecurityPolicyViolationEventDisposition = "enforce" | "report";
type ServiceWorkerState = "activated" | "activating" | "installed" | "installing" | "parsed" | "redundant";
type ServiceWorkerUpdateViaCache = "all" | "imports" | "none";
type TransferFunction = "hlg" | "pq" | "srgb";
type VideoColorPrimaries = "bt470bg" | "bt709" | "smpte170m";
type VideoEncoderBitrateMode = "constant" | "quantizer" | "variable";
type VideoMatrixCoefficients = "bt470bg" | "bt709" | "rgb" | "smpte170m";
type VideoPixelFormat = "BGRA" | "BGRX" | "I420" | "I420A" | "I422" | "I444" | "NV12" | "RGBA" | "RGBX";
type VideoTransferCharacteristics = "bt709" | "iec61966-2-1" | "smpte170m";
type WebGLPowerPreference = "default" | "high-performance" | "low-power";
type WebTransportCongestionControl = "default" | "low-latency" | "throughput";
type WebTransportErrorSource = "session" | "stream";
type WorkerType = "classic" | "module";
type WriteCommandType = "seek" | "truncate" | "write";
type XMLHttpRequestResponseType = "" | "arraybuffer" | "blob" | "document" | "json" | "text";
`;Vi["lib.webworker.importscripts.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// WorkerGlobalScope APIs
/////////////////////////////
// These are only available in a Web Worker
declare function importScripts(...urls: string[]): void;
`;Vi["lib.webworker.iterable.d.ts"]=`/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
/// <reference no-default-lib="true"/>
/////////////////////////////
/// Worker Iterable APIs
/////////////////////////////
interface CSSNumericArray {
[Symbol.iterator](): IterableIterator<CSSNumericValue>;
entries(): IterableIterator<[number, CSSNumericValue]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSNumericValue>;
}
interface CSSTransformValue {
[Symbol.iterator](): IterableIterator<CSSTransformComponent>;
entries(): IterableIterator<[number, CSSTransformComponent]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSTransformComponent>;
}
interface CSSUnparsedValue {
[Symbol.iterator](): IterableIterator<CSSUnparsedSegment>;
entries(): IterableIterator<[number, CSSUnparsedSegment]>;
keys(): IterableIterator<number>;
values(): IterableIterator<CSSUnparsedSegment>;
}
interface Cache {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Cache/addAll) */
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/roundRect) */
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void;
}
interface CanvasPathDrawingStyles {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/CanvasRenderingContext2D/setLineDash) */
setLineDash(segments: Iterable<number>): void;
}
interface DOMStringList {
[Symbol.iterator](): IterableIterator<string>;
}
interface FileList {
[Symbol.iterator](): IterableIterator<File>;
}
interface FontFaceSet extends Set<FontFace> {
}
interface FormData {
[Symbol.iterator](): IterableIterator<[string, FormDataEntryValue]>;
/** Returns an array of key, value pairs for every entry in the list. */
entries(): IterableIterator<[string, FormDataEntryValue]>;
/** Returns a list of keys in the list. */
keys(): IterableIterator<string>;
/** Returns a list of values in the list. */
values(): IterableIterator<FormDataEntryValue>;
}
interface Headers {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value pairs contained in this object. */
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all keys of the key/value pairs contained in this object. */
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values of the key/value pairs contained in this object. */
values(): IterableIterator<string>;
}
interface IDBDatabase {
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBDatabase/transaction)
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode, options?: IDBTransactionOptions): IDBTransaction;
}
interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
*
* Throws an "InvalidStateError" DOMException if not called within an upgrade transaction.
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/IDBObjectStore/createIndex)
*/
createIndex(name: string, keyPath: string | Iterable<string>, options?: IDBIndexParameters): IDBIndex;
}
interface MessageEvent<T = any> {
/**
* @deprecated
*
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/MessageEvent/initMessageEvent)
*/
initMessageEvent(type: string, bubbles?: boolean, cancelable?: boolean, data?: any, origin?: string, lastEventId?: string, source?: MessageEventSource | null, ports?: Iterable<MessagePort>): void;
}
interface StylePropertyMapReadOnly {
[Symbol.iterator](): IterableIterator<[string, Iterable<CSSStyleValue>]>;
entries(): IterableIterator<[string, Iterable<CSSStyleValue>]>;
keys(): IterableIterator<string>;
values(): IterableIterator<Iterable<CSSStyleValue>>;
}
interface SubtleCrypto {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/deriveKey) */
deriveKey(algorithm: AlgorithmIdentifier | EcdhKeyDeriveParams | HkdfParams | Pbkdf2Params, baseKey: CryptoKey, derivedKeyType: AlgorithmIdentifier | AesDerivedKeyParams | HmacImportParams | HkdfParams | Pbkdf2Params, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey) */
generateKey(algorithm: "Ed25519", extractable: boolean, keyUsages: ReadonlyArray<"sign" | "verify">): Promise<CryptoKeyPair>;
generateKey(algorithm: RsaHashedKeyGenParams | EcKeyGenParams, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKeyPair>;
generateKey(algorithm: AesKeyGenParams | HmacKeyGenParams | Pbkdf2Params, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
generateKey(algorithm: AlgorithmIdentifier, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKeyPair | CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey) */
importKey(format: "jwk", keyData: JsonWebKey, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: ReadonlyArray<KeyUsage>): Promise<CryptoKey>;
importKey(format: Exclude<KeyFormat, "jwk">, keyData: BufferSource, algorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/SubtleCrypto/unwrapKey) */
unwrapKey(format: KeyFormat, wrappedKey: BufferSource, unwrappingKey: CryptoKey, unwrapAlgorithm: AlgorithmIdentifier | RsaOaepParams | AesCtrParams | AesCbcParams | AesGcmParams, unwrappedKeyAlgorithm: AlgorithmIdentifier | RsaHashedImportParams | EcKeyImportParams | HmacImportParams | AesKeyAlgorithm, extractable: boolean, keyUsages: Iterable<KeyUsage>): Promise<CryptoKey>;
}
interface URLSearchParams {
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns an array of key, value pairs for every entry in the search params. */
entries(): IterableIterator<[string, string]>;
/** Returns a list of keys in the search params. */
keys(): IterableIterator<string>;
/** Returns a list of values in the search params. */
values(): IterableIterator<string>;
}
interface WEBGL_draw_buffers {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL) */
drawBuffersWEBGL(buffers: Iterable<GLenum>): void;
}
interface WEBGL_multi_draw {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysInstancedWEBGL) */
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawArraysWEBGL) */
multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | Iterable<GLint>, firstsOffset: number, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsInstancedWEBGL) */
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, instanceCountsList: Int32Array | Iterable<GLsizei>, instanceCountsOffset: number, drawcount: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WEBGL_multi_draw/multiDrawElementsWEBGL) */
multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | Iterable<GLsizei>, countsOffset: number, type: GLenum, offsetsList: Int32Array | Iterable<GLsizei>, offsetsOffset: number, drawcount: GLsizei): void;
}
interface WebGL2RenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferfv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLfloat>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/clearBuffer) */
clearBufferuiv(buffer: GLenum, drawbuffer: GLint, values: Iterable<GLuint>, srcOffset?: number): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/drawBuffers) */
drawBuffers(buffers: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getActiveUniforms) */
getActiveUniforms(program: WebGLProgram, uniformIndices: Iterable<GLuint>, pname: GLenum): any;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/getUniformIndices) */
getUniformIndices(program: WebGLProgram, uniformNames: Iterable<string>): Iterable<GLuint> | null;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer) */
invalidateFramebuffer(target: GLenum, attachments: Iterable<GLenum>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer) */
invalidateSubFramebuffer(target: GLenum, attachments: Iterable<GLenum>, x: GLint, y: GLint, width: GLsizei, height: GLsizei): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings) */
transformFeedbackVaryings(program: WebGLProgram, varyings: Iterable<string>, bufferMode: GLenum): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform1uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform2uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform3uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniform) */
uniform4uiv(location: WebGLUniformLocation | null, data: Iterable<GLuint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix2x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix3x4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/uniformMatrix) */
uniformMatrix4x3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4iv(index: GLuint, values: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGL2RenderingContext/vertexAttribI) */
vertexAttribI4uiv(index: GLuint, values: Iterable<GLuint>): void;
}
interface WebGL2RenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, data: Iterable<GLint>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, data: Iterable<GLfloat>, srcOffset?: number, srcLength?: GLuint): void;
}
interface WebGLRenderingContextBase {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib1fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib2fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib3fv(index: GLuint, values: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/vertexAttrib) */
vertexAttrib4fv(index: GLuint, values: Iterable<GLfloat>): void;
}
interface WebGLRenderingContextOverloads {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniform) */
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix2fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix3fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebGLRenderingContext/uniformMatrix) */
uniformMatrix4fv(location: WebGLUniformLocation | null, transpose: GLboolean, value: Iterable<GLfloat>): void;
}
`;function fm(Vp){return typeof Vp=="string"?/^file:\/\/\//.test(Vp)?!!Vi[Vp.substr(8)]:!1:Vp.path.indexOf("/lib.")===0?!!Vi[Vp.path.slice(1)]:!1}var H5=class Vp{constructor(mi,pt){this._extraLibs=Object.create(null);this._languageService=rve(this);this._ctx=mi,this._compilerOptions=pt.compilerOptions,this._extraLibs=pt.extraLibs,this._inlayHintsOptions=pt.inlayHintsOptions}getCompilationSettings(){return this._compilerOptions}getLanguageService(){return this._languageService}getExtraLibs(){return this._extraLibs}getScriptFileNames(){return this._ctx.getMirrorModels().map(As=>As.uri).filter(As=>!fm(As)).map(As=>As.toString()).concat(Object.keys(this._extraLibs))}_getModel(mi){let pt=this._ctx.getMirrorModels();for(let As=0;As<pt.length;As++){let Ra=pt[As].uri;if(Ra.toString()===mi||Ra.toString(!0)===mi)return pt[As]}return null}getScriptVersion(mi){let pt=this._getModel(mi);return pt?pt.version.toString():this.isDefaultLibFileName(mi)?"1":mi in this._extraLibs?String(this._extraLibs[mi].version):""}async getScriptText(mi){return this._getScriptText(mi)}_getScriptText(mi){let pt,As=this._getModel(mi),Ra="lib."+mi+".d.ts";if(As)pt=As.getValue();else if(mi in Vi)pt=Vi[mi];else if(Ra in Vi)pt=Vi[Ra];else if(mi in this._extraLibs)pt=this._extraLibs[mi].content;else return;return pt}getScriptSnapshot(mi){let pt=this._getScriptText(mi);if(pt!==void 0)return{getText:(As,Ra)=>pt.substring(As,Ra),getLength:()=>pt.length,getChangeRange:()=>{}}}getScriptKind(mi){switch(mi.substr(mi.lastIndexOf(".")+1)){case"ts":return kD.TS;case"tsx":return kD.TSX;case"js":return kD.JS;case"jsx":return kD.JSX;default:return this.getCompilationSettings().allowJs?kD.JS:kD.TS}}getCurrentDirectory(){return""}getDefaultLibFileName(mi){switch(mi.target){case 99:let pt="lib.esnext.full.d.ts";if(pt in Vi||pt in this._extraLibs)return pt;case 7:case 6:case 5:case 4:case 3:case 2:default:let As=`lib.es${2013+(mi.target||99)}.full.d.ts`;return As in Vi||As in this._extraLibs?As:"lib.es6.d.ts";case 1:case 0:return"lib.d.ts"}}isDefaultLibFileName(mi){return mi===this.getDefaultLibFileName(this._compilerOptions)}readFile(mi){return this._getScriptText(mi)}fileExists(mi){return this._getScriptText(mi)!==void 0}async getLibFiles(){return Vi}static clearFiles(mi){let pt=[];for(let As of mi){let Ra={...As};if(Ra.file=Ra.file?{fileName:Ra.file.fileName}:void 0,As.relatedInformation){Ra.relatedInformation=[];for(let uh of As.relatedInformation){let yp={...uh};yp.file=yp.file?{fileName:yp.file.fileName}:void 0,Ra.relatedInformation.push(yp)}}pt.push(Ra)}return pt}async getSyntacticDiagnostics(mi){if(fm(mi))return[];let pt=this._languageService.getSyntacticDiagnostics(mi);return Vp.clearFiles(pt)}async getSemanticDiagnostics(mi){if(fm(mi))return[];let pt=this._languageService.getSemanticDiagnostics(mi);return Vp.clearFiles(pt)}async getSuggestionDiagnostics(mi){if(fm(mi))return[];let pt=this._languageService.getSuggestionDiagnostics(mi);return Vp.clearFiles(pt)}async getCompilerOptionsDiagnostics(mi){if(fm(mi))return[];let pt=this._languageService.getCompilerOptionsDiagnostics();return Vp.clearFiles(pt)}async getCompletionsAtPosition(mi,pt){if(!fm(mi))return this._languageService.getCompletionsAtPosition(mi,pt,void 0)}async getCompletionEntryDetails(mi,pt,As){return this._languageService.getCompletionEntryDetails(mi,pt,As,void 0,void 0,void 0,void 0)}async getSignatureHelpItems(mi,pt,As){if(!fm(mi))return this._languageService.getSignatureHelpItems(mi,pt,As)}async getQuickInfoAtPosition(mi,pt){if(!fm(mi))return this._languageService.getQuickInfoAtPosition(mi,pt)}async getDocumentHighlights(mi,pt,As){if(!fm(mi))return this._languageService.getDocumentHighlights(mi,pt,As)}async getDefinitionAtPosition(mi,pt){if(!fm(mi))return this._languageService.getDefinitionAtPosition(mi,pt)}async getReferencesAtPosition(mi,pt){if(!fm(mi))return this._languageService.getReferencesAtPosition(mi,pt)}async getNavigationTree(mi){if(!fm(mi))return this._languageService.getNavigationTree(mi)}async getFormattingEditsForDocument(mi,pt){return fm(mi)?[]:this._languageService.getFormattingEditsForDocument(mi,pt)}async getFormattingEditsForRange(mi,pt,As,Ra){return fm(mi)?[]:this._languageService.getFormattingEditsForRange(mi,pt,As,Ra)}async getFormattingEditsAfterKeystroke(mi,pt,As,Ra){return fm(mi)?[]:this._languageService.getFormattingEditsAfterKeystroke(mi,pt,As,Ra)}async findRenameLocations(mi,pt,As,Ra,uh){if(!fm(mi))return this._languageService.findRenameLocations(mi,pt,As,Ra,uh)}async getRenameInfo(mi,pt,As){return fm(mi)?{canRename:!1,localizedErrorMessage:"Cannot rename in lib file"}:this._languageService.getRenameInfo(mi,pt,As)}async getEmitOutput(mi){return fm(mi)?{outputFiles:[],emitSkipped:!0}:this._languageService.getEmitOutput(mi)}async getCodeFixesAtPosition(mi,pt,As,Ra,uh){if(fm(mi))return[];let yp={};try{return this._languageService.getCodeFixesAtPosition(mi,pt,As,Ra,uh,yp)}catch{return[]}}async updateExtraLibs(mi){this._extraLibs=mi}async provideInlayHints(mi,pt,As){if(fm(mi))return[];let Ra=this._inlayHintsOptions??{},uh={start:pt,length:As-pt};try{return this._languageService.provideInlayHints(mi,uh,Ra)}catch{return[]}}};function nft(Vp,mi){let pt=H5;if(mi.customWorkerPath)if(typeof importScripts>"u")console.warn("Monaco is not using webworkers for background tasks, and that is needed to support the customWorkerPath flag");else{self.importScripts(mi.customWorkerPath);let As=self.customTSWorkerFactory;if(!As)throw new Error(`The script at ${mi.customWorkerPath} does not add customTSWorkerFactory to self`);pt=As(H5,ove,Vi)}return new pt(Vp,mi)}globalThis.ts=ive;return Kpt(rft);})();
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
return moduleExports;
});